Need help with selecting specific city states to spawn

muff

Chieftain
Joined
Sep 4, 2013
Messages
5
Hello all,

I have a question that I haven't quite been able to figure out about making specific city states spawn. I'm playing with a TSL map in the ynaemp mod. My goal is to make my own collection of mods that will allow me to play with a fairly balanced and realistic European focused game. One of my goals is to space city states around the world so the AI can't mass expand at will (but still able to colonize, go to new world and settle, etc) and also, for the major European powers, have enough space to play so there is a "balance of power" in Europe.

One of my current dilemmas is I'm not able to figure out how to get ONLY certain city states to spawn. Even though I can delete TSL starting locations in ynaemp and only have city states with TSL spawn, it seems as if the game engine will randomly pick from the 50 or so city states in the game database. The end result is I might only get 15-20 city states that I want out of the 30 total that I want because the database will pick ones that I don't want (no TSL in ynaemp) but they end up getting removed anyway by ynaemp scripts.

So then I made my own mod to try to delete the city state from the xml files. I go into Assets\DLC\Expansion2\Gameplay\XML\Civilizations\CIV5MinorCivilizations.xml This is what my mod does so far:

Code:
<GameData>
	<Defines>
		<Update>
			<Where Name="WARMONGER_THREAT_PER_TURN_DECAY"/>
				<Set Value="-20"/>
		</Update>
	</Defines>
	<MinorCivilizations>
		<Update>
			<DELETE Type="MINOR_CIV_BRATISLAVA"/>
			<DELETE Type="MINOR_CIV_BUDAPEST"/>
			<DELETE Type="MINOR_CIV_GENEVA"/>
			<DELETE Type="MINOR_CIV_RIGA"/>
			<DELETE Type="MINOR_CIV_GENOA"/>
			<DELETE Type="MINOR_CIV_BUCHAREST"/>
			<DELETE Type="MINOR_CIV_BELGRADE"/>
			<DELETE Type="MINOR_CIV_BRUSSELS"/>
			<DELETE Type="MINOR_CIV_MONACO"/>
			<DELETE Type="MINOR_CIV_HANOI"/>
			<DELETE Type="MINOR_CIV_KUALA_LUMPUR"/>
			<DELETE Type="MINOR_CIV_ALMATY"/>
			<DELETE Type="MINOR_CIV_LHASA"/>
			<DELETE Type="MINOR_CIV_SIDON"/>
			<DELETE Type="MINOR_CIV_TYRE"/>
			<DELETE Type="MINOR_CIV_ANTWERP"/>
			<DELETE Type="MINOR_CIV_PRAGUE"/>
			<DELETE Type="MINOR_CIV_VALLETTA"/>
			<DELETE Type="MINOR_CIV_WITTENBERG"/>
			<DELETE Type="MINOR_CIV_YEREVAN"/>
			<DELETE Type="MINOR_CIV_ZURICH"/>
			<DELETE Type="MINOR_CIV_SAMARKAND"/>
			<DELETE Type="MINOR_CIV_MALACCA"/>
			<DELETE Type="MINOR_CIV_BYBLOS"/>
			<DELETE Type="MINOR_CIV_KYZYL"/>
			<DELETE Type="MINOR_CIV_KABUL"/>
			<DELETE Type="MINOR_CIV_SOFIA"/>
			<DELETE Type="MINOR_CIV_UR"/>
			<DELETE Type="MINOR_CIV_BOGOTA"/>
			<DELETE Type="MINOR_CIV_VILNIUS"/>
		</Update>
	</MinorCivilizations>
	<MinorCivilization_CityNames>
		<Update>
			<DELETE MinorCivType="MINOR_CIV_BRATISLAVA"/>
			<DELETE MinorCivType="MINOR_CIV_BUDAPEST"/>
			<DELETE MinorCivType="MINOR_CIV_GENEVA"/>
			<DELETE MinorCivType="MINOR_CIV_RIGA"/>
			<DELETE MinorCivType="MINOR_CIV_GENOA"/>
			<DELETE MinorCivType="MINOR_CIV_BUCHAREST"/>
			<DELETE MinorCivType="MINOR_CIV_BELGRADE"/>
			<DELETE MinorCivType="MINOR_CIV_BRUSSELS"/>
			<DELETE MinorCivType="MINOR_CIV_MONACO"/>
			<DELETE MinorCivType="MINOR_CIV_HANOI"/>
			<DELETE MinorCivType="MINOR_CIV_KUALA_LUMPUR"/>
			<DELETE MinorCivType="MINOR_CIV_ALMATY"/>
			<DELETE MinorCivType="MINOR_CIV_LHASA"/>
			<DELETE MinorCivType="MINOR_CIV_SIDON"/>
			<DELETE MinorCivType="MINOR_CIV_TYRE"/>
			<DELETE MinorCivType="MINOR_CIV_ANTWERP"/>
			<DELETE MinorCivType="MINOR_CIV_PRAGUE"/>
			<DELETE MinorCivType="MINOR_CIV_VALLETTA"/>
			<DELETE MinorCivType="MINOR_CIV_WITTENBERG"/>
			<DELETE MinorCivType="MINOR_CIV_YEREVAN"/>
			<DELETE MinorCivType="MINOR_CIV_ZURICH"/>
			<DELETE MinorCivType="MINOR_CIV_SAMARKAND"/>
			<DELETE MinorCivType="MINOR_CIV_MALACCA"/>
			<DELETE MinorCivType="MINOR_CIV_BYBLOS"/>
			<DELETE MinorCivType="MINOR_CIV_KYZYL"/>
			<DELETE MinorCivType="MINOR_CIV_KABUL"/>
			<DELETE MinorCivType="MINOR_CIV_SOFIA"/>
			<DELETE MinorCivType="MINOR_CIV_UR"/>
			<DELETE MinorCivType="MINOR_CIV_BOGOTA"/>
			<DELETE MinorCivType="MINOR_CIV_VILNIUS"/>
		</Update>
	</MinorCivilization_CityNames>
	<MinorCivilization_Flavors>
		<DELETE MinorCivType="MINOR_CIV_BRATISLAVA"/>
		<DELETE MinorCivType="MINOR_CIV_BUDAPEST"/>
		<DELETE MinorCivType="MINOR_CIV_GENEVA"/>
		<DELETE MinorCivType="MINOR_CIV_RIGA"/>
		<DELETE MinorCivType="MINOR_CIV_GENOA"/>
		<DELETE MinorCivType="MINOR_CIV_BUCHAREST"/>
		<DELETE MinorCivType="MINOR_CIV_BELGRADE"/>
		<DELETE MinorCivType="MINOR_CIV_BRUSSELS"/>
		<DELETE MinorCivType="MINOR_CIV_MONACO"/>
		<DELETE MinorCivType="MINOR_CIV_HANOI"/>
		<DELETE MinorCivType="MINOR_CIV_KUALA_LUMPUR"/>
		<DELETE MinorCivType="MINOR_CIV_ALMATY"/>
		<DELETE MinorCivType="MINOR_CIV_LHASA"/>
		<DELETE MinorCivType="MINOR_CIV_SIDON"/>
		<DELETE MinorCivType="MINOR_CIV_TYRE"/>
		<DELETE MinorCivType="MINOR_CIV_ANTWERP"/>
		<DELETE MinorCivType="MINOR_CIV_PRAGUE"/>
		<DELETE MinorCivType="MINOR_CIV_VALLETTA"/>
		<DELETE MinorCivType="MINOR_CIV_WITTENBERG"/>
		<DELETE MinorCivType="MINOR_CIV_YEREVAN"/>
		<DELETE MinorCivType="MINOR_CIV_ZURICH"/>
		<DELETE MinorCivType="MINOR_CIV_SAMARKAND"/>
		<DELETE MinorCivType="MINOR_CIV_MALACCA"/>
		<DELETE MinorCivType="MINOR_CIV_BYBLOS"/>
		<DELETE MinorCivType="MINOR_CIV_KYZYL"/>
		<DELETE MinorCivType="MINOR_CIV_KABUL"/>
		<DELETE MinorCivType="MINOR_CIV_SOFIA"/>
		<DELETE MinorCivType="MINOR_CIV_UR"/>
		<DELETE MinorCivType="MINOR_CIV_BOGOTA"/>
		<DELETE MinorCivType="MINOR_CIV_VILNIUS"/>
	</MinorCivilization_Flavors>
</GameData>

I've searched my directory for minor civs and those were all the references I've found. Am I missing something else I have to delete or am I doing something wrong? My intention is that I delete all unwanted city states, leaving only the desired ones, which means I can select 29 to spawn and the 29 will be the exact ones I want. I also want to avoid using map scenarios, unless maybe I do it in the scenario and then use a mod to enable the scenario along with ynaemp?

Thanks in advance for any help
 
Have you managed your mod to work, I am interested in this mod too?
 
It's tough to guess what you might have done wrong, but a crash is relatively rare for simple XML mods. Did you get rid of more city states than the number you're trying to start a game with? Are you trying to load a saved game that didn't start with the mod activated or after making changes to the XML? Did you enable logging and check your database.log?

In any event, the best way to get help is to attach your built mod so we can actually look at it and figure out what's wrong.
 
Here is the customized mod.
I am trying to load this with ynaemp giant earth with 43civs and this 20 city states.
I also use Cultural Diversity, Health and Plague, Events and Decisions and DMS's Natural Disasters.
Thanks for helping!
 

Attachments

  • City State Selection (v 1).rar
    2.3 KB · Views: 92
Glad to see forum back on line...
I cleared cache folder and it worked on every map except YnAEMP Giant Earth.
Does anyone knows what is needed to edit to make it compatible with YnAEMP maps?
 
Top Bottom