Mirage Knight
6th Aug 11, 1:57 PM
I haven't seen anything on this topic in the Armoury, so I figured I'd post up this helpful tutorial for those who are either just starting out modding or were never able to figure how how to do this.
As most modders know, adding a value to the ui_group_position entry in a squad's ui_ext determines the display order of units in a building. The problem is that this will not work for buildings, defenses, and static guns. Instead, this is determined by construction priorities.
First, a bit of planning in advance will really help out in terms of mapping out visually how you want things. I draw up a 4x3 grid on paper with a thick pen and and scribble in each grid with a pencil what constructable item I want where. I find this also helps tremendously with regard to determining UI positions for units.
Now on to the fun part: Changing the display order for your buildings in the construction menu.
1. In Corsix's Mod Studio, open up the ebps for the constructable item you want to change.
2. In the building's ebps, look for "construct_ext" and expand that.
3. Go to "construction_menus" and expand that. You will notice that there are 10 entries there. We're concerned with the first, so expand that.
4. In "construction_menu_entry_01" you'll notice there's a section for "construction_type" and another for "priority". You're going to be changing the value in "priority". Setting a value of 100 will place that structure first in terms of display order.
5. On subsequent buildings, change their priority values so that they are under 100. I start with 95 for the second building, 90 for the third and so on. Remember - a building's priority value determines its display order.
Keep in mind that some structures can have additional construction entries, so you might need to edit the priority values for those as well.
Hope this helps someone :)
As most modders know, adding a value to the ui_group_position entry in a squad's ui_ext determines the display order of units in a building. The problem is that this will not work for buildings, defenses, and static guns. Instead, this is determined by construction priorities.
First, a bit of planning in advance will really help out in terms of mapping out visually how you want things. I draw up a 4x3 grid on paper with a thick pen and and scribble in each grid with a pencil what constructable item I want where. I find this also helps tremendously with regard to determining UI positions for units.
Now on to the fun part: Changing the display order for your buildings in the construction menu.
1. In Corsix's Mod Studio, open up the ebps for the constructable item you want to change.
2. In the building's ebps, look for "construct_ext" and expand that.
3. Go to "construction_menus" and expand that. You will notice that there are 10 entries there. We're concerned with the first, so expand that.
4. In "construction_menu_entry_01" you'll notice there's a section for "construction_type" and another for "priority". You're going to be changing the value in "priority". Setting a value of 100 will place that structure first in terms of display order.
5. On subsequent buildings, change their priority values so that they are under 100. I start with 95 for the second building, 90 for the third and so on. Remember - a building's priority value determines its display order.
Keep in mind that some structures can have additional construction entries, so you might need to edit the priority values for those as well.
Hope this helps someone :)