Thank you. I got confused by the name at first (greatest vs. giant) and thought I had played one successfully when it was the other.
This is a technical question, but is it possible to have a civilization with one starting location when X civilization is in the game and a different one when its not? I was playing as Persia, so I am thinking of having Pasargadae or even Ecbatana as the capital instead of Tehran when Gilgamesh is sitting one out. But if it's not possible, then obviously that's fine.
The mod allows some conditional placement, yes, I've now added this "
How to use the advanced TSL placement options" section in the second post, as this documentation was lost in the middle of the thread:
There is 2 options available in the advanced setup screen when selecting "True Start Location" for Civilization placement:
- Use Leaders TSL when available
- Use Alternate TSL if required and available
And here is an exemple of use in the Map.xml with Egypt and Arabia on the Greatest Earth Map:
Code:
<Replace MapName="GreatestEarthMap" Civilization="CIVILIZATION_ARABIA" X="64" Y="33" />
<Replace MapName="GreatestEarthMap" Civilization="CIVILIZATION_ARABIA" X="58" Y="35" Leader="LEADER_SALADIN" DisabledByCivilization="CIVILIZATION_EGYPT" />
<Replace MapName="GreatestEarthMap" Civilization="CIVILIZATION_ARABIA" X="64" Y="33" Leader="LEADER_SALADIN" AlternateStart="1" />
<Replace MapName="GreatestEarthMap" Civilization="CIVILIZATION_EGYPT" X="58" Y="35" DisabledByLeader="LEADER_SALADIN" />
<Replace MapName="GreatestEarthMap" Civilization="CIVILIZATION_EGYPT" X="60" Y="30" AlternateStart="1" />
<Replace MapName="GreatestEarthMap" Civilization="CIVILIZATION_EGYPT" X="57" Y="36" Leader="LEADER_CLEOPATRA" DisabledByLeader="LEADER_SALADIN" />
<Replace MapName="GreatestEarthMap" Civilization="CIVILIZATION_EGYPT" X="60" Y="30" Leader="LEADER_CLEOPATRA" AlternateStart="1" />
Here is how it should work:
- the lines containing
Leader="LEADER_XXXXX" will be ignored if the
Use Leaders TSL when available option is not checked.
- the lines containing
AlternateStart="1" will be ignored if the
Use Alternate TSL if required and available option is not checked.
- if the
Use Leaders TSL when available option is checked, any leader that is referenced for a TSL using "
Leader=" will never use a generic TSL for its Civilization. For example with the code above, Cleopatra will never spawn at (58,35) if the option is checked.
- if the
Use Alternate TSL if required and available option is checked then the lines with
AlternateStart="1" will be used if the default TSL (defined by the lines without
AlternateStart="1") is not available for any reason.
- there should be only one "default" TSL for a Civilization alone or a Civilization/Leader, but you can use as many lines with
AlternateStart="1"
There can be 3 reasons to make a TSL unavailable:
- There is another TSL already set under the minimal separation distance for cities (the placement order is defined by the Civilization order on the advanced setup screen, the human player - or host in multi - is always placed first)
- The Civilization referenced in the tag
DisabledByCivilization is in game
- The Leader referenced in the tag
DisabledByLeader is in game
If the mod can't found a suitable alternate TSL (or if the option is not used), the default TSL will be used.
Examples:
1/ If Cleopatra is in game but not Saladin, her TSL will be Alexandria at 57,36 if
Use Leaders TSL is checked, and Cairo at 58,35 (default TSL for Egypt) if that option is disabled
2/ If Saladin is in game but not Cleopatra, his TSL will be Cairo at 58,35 if
Use Leaders TSL is checked, and Mecca at 64,33 (default TSL for Arabia) if that option is disabled
3/ If Cleopatra and Saladin are in game and
Use Leaders TSL is checked, then Cleopatra's TSL will be Thebes at 60,30 (Alternate TSL for Cleopatra) because of the
DisabledByLeader="LEADER_SALADIN" in her default TSL line, and Saladin will also use his alternate TSL at 64,33 (which is coincidentally the default TSL for Arabia, but we can set it at another position than Mecca) because Egypt is in the game (even if it was an alternate leader than Cleopatra)
Now if we change the XML a bit to this:
Code:
<Replace MapName="GreatestEarthMap" Civilization="CIVILIZATION_ARABIA" X="64" Y="33" />
<Replace MapName="GreatestEarthMap" Civilization="CIVILIZATION_ARABIA" X="58" Y="35" Leader="LEADER_SALADIN" />
<Replace MapName="GreatestEarthMap" Civilization="CIVILIZATION_ARABIA" X="64" Y="33" Leader="LEADER_SALADIN" AlternateStart="1" />
<Replace MapName="GreatestEarthMap" Civilization="CIVILIZATION_EGYPT" X="58" Y="35" DisabledByLeader="LEADER_SALADIN" />
<Replace MapName="GreatestEarthMap" Civilization="CIVILIZATION_EGYPT" X="60" Y="30" AlternateStart="1" />
<Replace MapName="GreatestEarthMap" Civilization="CIVILIZATION_EGYPT" X="57" Y="36" Leader="LEADER_CLEOPATRA" DisabledByLeader="LEADER_SALADIN" />
<Replace MapName="GreatestEarthMap" Civilization="CIVILIZATION_EGYPT" X="60" Y="30" Leader="LEADER_CLEOPATRA" AlternateStart="1" />
1/ and 2/ won't change but in 3/ Saladin's TSL would be Cairo (and Cleopatra's would be Thebes)
If we remove all
DisabledByLeader and
DisabledByCivilization references, then the setup screen order would define who will be in the Nile's delta in case 3/, the last selected leader would use it's alternate TSL
If
Use Leaders TSL was activated but not
Use Alternate TSL, then 3/ would result in Cleopatra at Alexandria and Saladin at Cairo.