Kael, we need Part 2 of your guide please.

Kruelgor

Emperor
Joined
May 12, 2010
Messages
1,165
Location
The United States
Kael,

Thanks for your guide, but I think the community severely needs a Part 2.

Perhaps the community here in this thread can ask specific questions for you to address in Part 2.


For me, I want to know how to create new city states and change existing city states. If you can include a tutorial on how to do that in a new guide that would be very helpful to lots of people.

Thanks
 
I want to know how to create new city states and change existing city states.
All you need is in XML\Civilizations\CIV5MinorCivilizations.xml, it seems. You can change city-states and add new ones modifying that file. Traits themselves, however, can't be modded that easily.
 
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 9/30/2010 2:54:56 PM -->
<GameData>
	<!-- Adding new CityState entries. -->
	<MinorCivilizations>
		<Row>
			<Type>MINOR_CIV_BANDAR_SERI_BEGAWAN</Type>
			<Description>TXT_KEY_CITYSTATE_BANDAR_SERI_BEGAWAN</Description>
			<ShortDescription>TXT_KEY_CITYSTATE_BANDAR_SERI_BEGAWAN</ShortDescription>
			<Adjective>TXT_KEY_CITYSTATE_BANDAR_SERI_BEGAWAN_ADJ</Adjective>
			<Civilopedia>TXT_KEY_CITYSTATE_BANDAR_SERI_BEGAWAN_PEDIA</Civilopedia>
			<DefaultPlayerColor>PLAYERCOLOR_MINOR_LIGHT_ORANGE</DefaultPlayerColor>
			<ArtDefineTag>ART_DEF_CIVILIZATION_MINOR</ArtDefineTag>
			<ArtStyleType>ARTSTYLE_ASIAN</ArtStyleType>
			<ArtStyleSuffix>_ASIA</ArtStyleSuffix>
			<ArtStylePrefix>ASIAN</ArtStylePrefix>
			<MinorCivTrait>MINOR_TRAIT_CULTURED</MinorCivTrait>
		</Row>
         </MinorCivilizations>
         <MinorCivilization_CityNames>
		<Row>
			<MinorCivType>MINOR_CIV_BANDAR_SERI_BEGAWAN</MinorCivType>
			<CityName>Bandar Seri Begawan</CityName>
		</Row>
         </MinorCivilization_CityNames>
         <MinorCivilization_Flavors>
		<Row>
			<MinorCivType>MINOR_CIV_BANDAR_SERI_BEGAWAN</MinorCivType>
			<FlavorType>FLAVOR_EXPANSION</FlavorType>
			<Flavor>0</Flavor>
		</Row>
		<Row>
			<MinorCivType>MINOR_CIV_BANDAR_SERI_BEGAWAN</MinorCivType>
			<FlavorType>FLAVOR_CITY_DEFENSE</FlavorType>
			<Flavor>10</Flavor>
		</Row>
		<Row>
			<MinorCivType>MINOR_CIV_BANDAR_SERI_BEGAWAN</MinorCivType>
			<FlavorType>FLAVOR_DEFENSE</FlavorType>
			<Flavor>5</Flavor>
		</Row>
		<Row>
			<MinorCivType>MINOR_CIV_BANDAR_SERI_BEGAWAN</MinorCivType>
			<FlavorType>FLAVOR_WONDER</FlavorType>
			<Flavor>0</Flavor>
		</Row>
         </MinorCivilization_Flavors>
         <Language_en_US>
		<Row Tag="TXT_KEY_CITYSTATE_BANDAR_SERI_BEGAWAN">
			<Text>Bandar Seri Begawan</Text>
		</Row>
                <Row Tag="TXT_KEY_CITYSTATE_BANDAR_SERI_BEGAWAN_ADJ">
			<Text>Brunese</Text>
		</Row>
                <Row Tag="TXT_KEY_CITYSTATE_BANDAR_SERI_BEGAWAN_PEDIA">
			<Text>Habitation on the banks of the Brunei River can be traced back to the 7th century where there had been settlements similar to those in Kampong Ayer, located on areas close to the present site of the Brunei Museum.  Seri Begawan was named after the Sultan's late father Sir Omar Ali Saifuddien on 5 October 1970, its original name being Bandar Brunei. Begawan is a name given to Bruneian monarchs who have abdicated, originally coming from the Sanskrit word for "god": &#2349;&#2327;&#2357;&#2366;&#2344; bhagav&#257;n. Seri also comes from the honorific Sanskrit word Sri. Bandar, comes from Persian &#1576;&#1606;&#1583;&#1585; via Indian languages and means "port" or "haven" (bandar means "town" in Malay).</Text>
		</Row>
	</Language_en_US>
	
</GameData>

that is everything you need
 
Thanks Shiggs, but such fine help as yours often gets lost even with the forum search engine, that's why I suggest for a Part 2.


Also, I'm trying to change an existing scenario made in World Builder to apply the new city states after the fact. I'll tinker with it and see if I can figure it out.
 
Do the following (to change ragusa from a maritime state to a cultured state)

Code:
        <GameData>
            <MinorCivilizations>
                <Update>
                    <Set MinorCivTrait="MINOR_TRAIT_CULTURED"/>
                    <Where Type="MINOR_CIV_RAGUSA"/>
                </Update>
            </MinorCivilizations>
        </GameData>


Any time you need to change something, use 'set' and 'where'. I'm still a little foggy on how to set something where there are two wheres but i'm sure with enough fiddling you'll figure it out ^^
 
yes that is useful as well. Once you get the hang of it, adding city states isn't too bad (not that much info) so for each one I add, I just copy an old entry and change the variables. I always edit my files from within modbuddy, but you can copy the data from other editors and then paste it into there.
 
yes that is useful as well. Once you get the hang of it, adding city states isn't too bad (not that much info) so for each one I add, I just copy an old entry and change the variables. I always edit my files from within modbuddy, but you can copy the data from other editors and then paste it into there.


Yep, I got the hang of it now. Thanks for all your help.
 
A question: is it possible to rewrite AssignStartingPlots and MapGenerator to create a mod which would allow other mods to add/remove resources, terrain types, features without conflicting each other (because now they have to overwrite same function). In short: how many of them are hardcoded. Oh well, I guess I will try that in any case ;)
 
A question: is it possible to rewrite AssignStartingPlots and MapGenerator to create a mod which would allow other mods to add/remove resources, terrain types, features without conflicting each other (because now they have to overwrite same function). In short: how many of them are hardcoded. Oh well, I guess I will try that in any case ;)
Working on it ;) will probably get more done this weekend. I have a Plan, that should (according to folks who know Lua better) work, depending only on how this LuaEvents interface works... can't find any documentation on it at all.

I have an alternative plan that involves adding new tables to the DB, then it could be set in XML, but the Lua code would be less intuitive.
 
Working on it ;) will probably get more done this weekend. I have a Plan, that should (according to folks who know Lua better) work, depending only on how this LuaEvents interface works... can't find any documentation on it at all.

I have an alternative plan that involves adding new tables to the DB, then it could be set in XML, but the Lua code would be less intuitive.

Give me a word if you need any help. I will be away for this weekend, but after that I will be back. I dream about constructing a tool that scans technology tree and determines which resources are the most important and valuable. Don't know about feasibility of such thing too, but oh well no harm to try ;)
 
Give me a word if you need any help. I will be away for this weekend, but after that I will be back. I dream about constructing a tool that scans technology tree and determines which resources are the most important and valuable. Don't know about feasibility of such thing too, but oh well no harm to try ;)
Could base it on flavour values... but I'd leave that as a goal for a long time from now, compared to other features! Would be awesome coolness, assuming flavour values are properly tuned.
 
Back
Top Bottom