Search the Community
Showing results for tags 'sorting'.
-
[X:CE 34.2] Custom Manufacture Category Sorting ID - a Guide This thread will tell you how to assign a custom sorting ID to your manufacture categories. As of XCE 34.2 the manufacture categories are sorted alphabetically, which might not be the optimal sorting order for your game. To add a new category add them in the manufacture_categories.xml. Remember the file actually needs a modmerge command at the top. For instance <?xml version="1.0"?> <ManufactureCategories MODMERGE="replace"> <!-- Add custom manufacture categories here. Only ones not present in the vanilla game. Tags look like: <ManufactureCategory> <ID>SomeCategoryId</ID> </ManufactureCategory> The ID should then be used for the Category column in manufactures.xml, and have a corresponding entry in strings.xml --> <ManufactureCategory> <ID>Aircraft Units 0</ID> </ManufactureCategory> <ManufactureCategory> <ID>Aircraft Cannon 0</ID> </ManufactureCategory> <ManufactureCategory> <ID>Aircraft Missile & Torpedo 0</ID> </ManufactureCategory> <ManufactureCategory> <ID>Vehicles & Mechs 0</ID> </ManufactureCategory> <ManufactureCategory> <ID>Vehicle Phase 3 & 4 Weapons 0</ID> </ManufactureCategory> <ManufactureCategory> <ID>Armour & Shields 0</ID> </ManufactureCategory> Then they need to be added to the strings. This will get alphabetically sorted. HTML Entity (decimal) codes are codes for signs or commands which have to be visually/coded presented by the font. An example for this is Ⅰ the roman 1 or the more common known for a new line. Others are "e for - " - and similar commands are available. The xenonauts font is very limited which we will use to our advantage. Normally you put down those commands to insert a sign, we on the other want to look for commands which wont get visually presented but still counted into the alphabetical order. Ϩ is one of it for example. Put this at the beginning of the String line and go down like ϩ Ϫ ϫ etc ... . VoĆla, sorted. If you step on a sign which actually gets displayed just continue until you find one that doesnt get displayed and neither leaves a whitespace. Heres how our example looks like. Give some feedback if the guide is understandable enough.