the part to set the position, for example<Components>
<UpdateDatabase id="PERSIA_COMPONENT">
<Items>
<File>Persia_Buildings.xml</File>
<File>Persia_Civilizations.xml</File>
<File>Persia_Colours.xml</File>
<File>Persia_Gossip.xml</File>
<File>Persia_Leaders.xml</File>
<File>Persia_PlayerColours.xml</File>
<File>Persia_Units.xml</File>
</Items>
<GameInfo>
<GiantEarth_StartPosition>
<Replace>
<Civilization>CIVILIZATION_YOURCIV</Civilization>
<X>13</X>
<Y>67</Y>
</Replace>
</GiantEarth_StartPosition>
</GameInfo>
</UpdateDatabase>
<LocalizedText id="PERSIA_TEXT">
<Items>
<File>Persia_Text.xml</File>
</Items>
</LocalizedText>
</Components>
Inputted this into my .modinfo file for my custom civ.
Now it's not showing up in the additional content for a mod :-/
Thoughts?
(I KNOW THE X and Y LOCATIONS ARE FOR PARIS, JUST TESTING IT)
Code:
<GameInfo>
<GiantEarth_StartPosition>
<Replace>
<Civilization>CIVILIZATION_YOURCIV</Civilization>
<X>50</X>
<Y>50</Y>
</Replace>
</GiantEarth_StartPosition>
</GameInfo>
must be in one of the XML file (like your Persia_Civilizations.xml)
Note that with next update (no ETA) the code will change to:
Code:
<GameInfo>
<StartPosition>
<Replace>
<MapName>GiantEarth</MapName>
<Civilization>CIVILIZATION_YOURCIV</Civilization>
<X>50</X>
<Y>50</Y>
</Replace>
</StartPosition>
</GameInfo>
And, as from my test the load order was not always as expected (IE references does not seems to work), you also need to add a sql file in <Components><Items> with the following code:
Code:
CREATE TABLE IF NOT EXISTS StartPosition
( MapName TEXT,
Civilization TEXT,
Leader TEXT,
X INT default 0,
Y INT default 0);
I'll update the FP when I'll release the next version.