Topic: widelands-autokey-macros
Lazy-1
Topic Opener |
Posted at:
2026-01-01, 08:06 UTC+1.0
I hope this is the spot to post, if not I expect a mod to either move it or tell me to delete this and where to post it proper. As the heading says, I've created a macro of Hotkeys for Widelands that create building, build roads, dismantle , upgrade and destroy just by hovering over the desired building or site and hitting the appropriate Hotkey. Saves thousands of clicks in a game. https://github.com/lazy-1/widelands-autokey-macros/tree/main As my nick says, I'm lazy so don't expect a lot from me. I'll visit this regular to start with and if someone is actually interested and uses this and has suggestions I'll take them onboard. This is by no means complete. It has Atlantean and Amazon setup pretty well, but I have not setup or tested Barbarian, Empire or Frisian. Those need to be created. The package has been created with a strait copy of the Atlantean build as a 'template' for someone to get started. So if you play barbarian or the other two there is no Hotkey_Quick_Guide.md for them. If someone builds them I'll incorporator it into the Package. I hope someone other than me gets a kick out of this. I know I have enjoyed the building of it as much as I enjoy the game. too lazy to make a signature.
Top
Quote
|
|
Nordfriese |
Posted at:
2026-01-01, 20:23 UTC+1.0
Hi Lazy-1 and welcome to the forum I don't use autokey myself but I'm sure that these will be useful for some players. For instance, this feature request sounds like it may be covered by your script, or could be an extension of it. Regarding building placement specifically, may I draw your attention to the built-in Fastplace feature that is available under Options → Keyboard & Mouse Actions → Fastplace. It lets you assign shortcuts to groups of buildings so you can then place them with one keystroke on the field over which you hover with the mouse pointer
Top
Quote
|
Lazy-1
Topic Opener |
Posted at:
2026-01-02, 04:05 UTC+1.0
Thanks Nordfriese, I didn't even know of the feature request or the in game solution Fastplace you suggested. I guess its' because I enjoy coding and this project has been ongoing for many years started when I first every played with widelands when only 3 tribes were available. Anyhow, I'm still working this and today improved the documents massively, along with adding a personalized user_config.py to the .config/widelands_autokey/ newly created directory. Now they can keep their own feedback sounds and other paths between builds. My next task is making a GUI where settings can be changed real time instead of editing the user_config.py each time you change from one tribe to another. Even if no-one cares and it is never used, I will work on it over time for the pleasure of coding something I like. Here is a sample Hotkey setup for Amazon. F1 = Stonecutter F2 = Woodcutter if Built:# remove worker F3 = Jungle_Preserver if Built:# remove worker F4 = Water_Gatherer F5 = Cassava_Root_Cooker (Bread) F6 = Chocolate_Brewery F7 = Charcoal_Kiln if Built:# infinate coal F8 = Food_Preserver F9 = DressMakery F10 = Rare_Tree_Plantation if Built:# infinate Rare/StoneMine F11 = Hunter_Gatherer F12 = Wilderness_Keeper [ = Upgrade: Woodcutter and Garrisons ] = Double Click. (Delete road under mouse, good for clean up forests) \ = Dismantles: Garrison, Stonecutter, Woodcutter and Lianacutter Tab toggle Down (normal, false, default state) Tab toggle Up (true) Hover mouse over building or build site depending which action you want, build the site or dismantle, destroy, eject worker, I tried to make it portable between Tribes, F1 is always a quary even if it is called a stonecutter... But there we have it, for those that want to play, I'll keep upgrading the repo as I go, probably get tired of it in a few weeks, as I've reached a state of happyness, but I'll watch this post for a while and give feedback should any want it. https://github.com/lazy-1/widelands-autokey-macros/tree/main
Edited:
2026-01-02, 04:22 UTC+1.0
too lazy to make a signature.
Top
Quote
|
|
WorldSavior |
Posted at:
2026-01-02, 12:53 UTC+1.0
imho it's best to arrange the keys around the WASD. Currently, they can also be combined with Ctrl, alt and/or Shift (but unfortunately not with space yet). For example i have: d Woodcutter a forester s stonecutter w small military building alt+w tower ctrl+w other military building and so on.
Edited:
2026-01-02, 12:54 UTC+1.0
Wanted to save the world, then I got widetracked
Top
Quote
|



