Jump to content

Distributing tech production across several buildings in group selection


Recommended Posts

Hey all, I'm a regular 0ad player. When I'm playing I usually build two blacksmiths and put them in a group select hotkey. It frustrates me a bit that when I queue up several techs in the blacksmiths (I generally have 2 or 3 which I select via a hotkey), the techs all get queued up in the same blacksmith. This irritated me to the point that I wanted to get into the code to understand if this is something I could 'fix'. After struggling to understand how it all works (was just barely able understand some isolated pieces) I made some changes to the selection panel code with the following 'enhancement':

  • Whenever multiple buildings are selected that have the same tech, when researching these techs, the tech is researched in the structure with the lowest queue count. Thus distributing future tech research across the structures in the group that is currently selected. Using the above blacksmith example, if I have 2 blacksmiths in a group select, I would now be able to queue 'iron arrowheads' and 'wooden shield' and have them be produced each in a different blacksmith.

I wanted to run this by people in the forum before creating a ticket and submitting a patch since I'm unsure if this functionality is desired.

  • Like 7
Link to comment
Share on other sites

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...