[General] Arrange units in name order

Status
Not open for further replies.
Level 5
Joined
Feb 1, 2024
Messages
44
I have hero taverns and shops and when I add new units or items the order seems to mess around. How can I arrange all the units and items by name in an alphabetical order? Or the list within the Techtree - Units Sold field and the respective slots of units and would help.
 
There are button position xy settings for units to do it manually yourself. You could also try giving them all the same position, which might then sort them in ascending or descending order according to rawcode?
I think when the Button positions are the same it relies on Object Editor order in the Abilities/Units Sold/Items Sold fields.
 
To do this automatically you would need a non-trivial automation build script. This would look at the data of the map, possibly when the map is in folder form, and then automatically calculate the command card button positions for the items and units and apply them to the data at build time. The publishing pipeline might be along the lines of...
Code:
edit map -> save as folder -> run build scripts -> load map folder in editor -> save as w3m/w3x -> apply optimisation/protection -> publish map to distribution networks
 
Status
Not open for further replies.
Back
Top