If I add content (new xml files) do I have to add anything to the names.txt and/or the "*.locale" files?
Here is the basics of what I am doing, the Uber Cargo Mod adds two more levels of Cargo Expansion (Levels 4 and 5), I am trying to add more to this (Up to level 20). The XML part is easy and that I already have. And I even made all the icon png files. What I don't get is do I have to add anything into the names.txt and there is a .locale file called spacegame_tools.locale that has the prop files, some hex value and a description:
Code: Select all
# cargoupgrade3.prop - spaceToolDescription
0xeba16d0d Large Cargo Hold
# cargoupgrade3.prop - spaceToolDetailDescription
0x4cc4dccc Increase your spaceship's cargo capacity.
# cargoupgrade3.prop - spaceToolLockedDescription
# cargoupgrade4.prop - spaceToolDetailDescription
0x4cc4eccc Increase your spaceship's cargo capacity.
# cargoupgrade4.prop - spaceToolLockedDescription
# cargoupgrade5.prop - spaceToolDetailDescription
0x4cc4fccc Increase your spaceship's cargo capacity.
# cargoupgrade5.prop - spaceToolLockedDescription
Now, cargoupgrade3 has a Regular spaceToolDescription which the two new cargo upgrades 4 and 5 don't, I assume the guy who made this mod just didn't add it in. He only did the spaceToolDetailDescription. But I notice that the hex values are all different, I am not sure if this file is generated when the mod was unpacked or if I have to create these values some how? I can just add the lines of my new prop files but what do I do about the hex values? I notice that the hex values of the spaceToolDetailDescription of these only goes up by 4096 bytes each time (1000 hex value) eg. 0x4cc4dccc -> 0x4cc4eccc -> 0x4cc4fccc, so if I was to continue along this path, the next values would be: 0x4cc50ccc -> 0x4cc51ccc -> 0x4cc52ccc -> so and and so fourth.... Am I correct here?
Also, which is odd, this info does not match what he has in his new xml files:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<string16 name="description">Cargo Upgrade</string16>
<key name="parent" groupid="spacetools~" instanceid="tooltemplate" typeid="prop" />
<key name="spaceToolContext" instanceid="#9AB762C0" />
<text>Extreme Cargo Hold</text>
<text tableid="spacegame_tools" instanceid="#4CC4DCCC">Increase your spaceship's cargo capacity to maximum so you can haul the most of all.</text>
<key name="spaceToolImageID" groupid="ufotools~" instanceid="cargo4" typeid="png" />
<text tableid="spacegame_tools" instanceid="#A0BB7099">Requires ~commodity_requirements~</text>
<key name="spaceToolType" instanceid="#A8CFDBDA" />
Here he is using the intanceid's of cargoupgrade3.prop file (Notice above [<text tableid="spacegame_tools" instanceid="#4CC4DCCC">]) . Not sure that matters, maybe just bad practice?
Well, if anyone can help me out here, I would greatly appreciate it.