Jump to content

ResetQueue mod - a hotkey for clearing production queues of selected buildings


 Share

Recommended Posts

Hello 0 A.D. friends!

Many times I find myself in the situation of having many units under production from several buildings and I want to clear ALL the production queues simultaneously. This can happen for many reasons: maybe I want to get back some resources that had been allocated to units production; or maybe I suddenly need to change type of units being produced if I see that the game steers from the direction I expect.

As far as I know (correct me if I'm wrong), there is no explicit hotkey that allows to clear all production queues simultaneously. It is also very annoying to clear production queues by clicking on icons one by one, especially when you have many buildings producing or many units being produced.

So, I made a mod for this. The ResetQueue mod (official repository at this page) allows to bind a hotkey for clearing production queues of selected buildings. The default hotkey provided from this mod is Shift+Esc. This can be changed from the Settings > Hotkeys menu.

resetqueue.png.eb93240cdde2230d1b2833ad450f2f70.png

I find this feature very useful and I often use it in game. I hope this feature will be present in a future version of the game. What do you think?

Installation

Spoiler
  1. Download the attached zip file and extract it.
  2. Copy the ResetQueue folder into the mods folder, tipically located at:
    • Linux: ~/.local/share/0ad/mods/
    • macOS: ~/Library/Application\ Support/0ad/mods/
    • Windows: ~\Documents\My Games\0ad\mods\
  3. Launch 0 A.D. and open the Settings > Mod Selection menu.
  4. Select the ResetQueue mod, Enable it and Save Configuration.

Contribute

The public repository is at this page. Everybody is very welcome to contribute, suggest, fork or simply give feedback. Have fun!

 

ResetQueue.pyromod ResetQueue.zip

Edited by Mentula
new v0.26.1 attachment
  • Like 7
  • Thanks 1
  • Sad 1
Link to comment
Share on other sites

Great to see other people that appreciate hotkeys :), but in case you didn't know autociv mod already had that feature added long ago (see https://github.com/nanihadesuka/autociv/blob/81601be697900917768089a77273b9be330c58b6/autociv_data/default_config.json#L182

Anyway, is good to have two options. I see you used the proper functions and sane code style to do it so it might have high chances to get merged to the main game if you try it to make a patch (see https://code.wildfiregames.com/)

  • Like 3
Link to comment
Share on other sites

4 hours ago, Player of 0AD said:

What about a mod which leaves auto-queu on if its on instead of disabling it if a unit cant be trained?

It shouldn't be hard to implement such a feature, I can look into that. Perhaps it is also something that developers can consider to include by default in the game.

23 minutes ago, Sevda said:

@Mentula this mod and your other mods are amazing! Would you mind if I implement some of them into StarGUI? I will also look into how not to disable autoqueue. 

@Sevda of course, you are welcome to use them (or part of them) into your StarGUI!

  • Like 1
Link to comment
Share on other sites

  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...