Drawing a blank

ArcandSpark

Chieftain
Joined
Apr 6, 2012
Messages
20
I am looking for the table to increase the great people rate for my civs leader and i just cant find the thing. I know Neb has it and this is what i found for him

Code:
-<GameData> 
<!-- Table data -->
 -<Traits>
 -<Row>
 <Type>TRAIT_INGENIOUS</Type>
 <Description>TXT_KEY_TRAIT_INGENIOUS</Description>
 <ShortDescription>TXT_KEY_TRAIT_INGENIOUS_SHORT</ShortDescription>
 <GreatScientistRateModifier>50</GreatScientistRateModifier>
 <FreeUnit>UNITCLASS_SCIENTIST</FreeUnit>
 <FreeUnitPrereqTech>TECH_WRITING</FreeUnitPrereqTech>
 </Row> 
</Traits>
 </GameData>

But that really doesnt look right. I am more looking for a table like

Code:
-<Table name="Trait_SpecialistYieldChanges">
 <Column name="TraitType" type="text" reference="Traits(Type)"/>
 Column name="SpecialistType" type="text" reference="Specialists(Type)"/> 
<Column name="YieldType" type="text" reference="Yields(Type)"/>
<Column name="Yield" type="integer"/> </Table>

But i cant find that for great people rate for specifically one type of great person.
 
You've found the correct table (<Traits>), but your "mistake" is in assuming that there is any consistency in the way the game can be expanded.

Great People rates have been "hard coded" are only available for Generals, Scientists, or All. If you look at the <Table> at the top of the Civ5Traits.xml file you will see

Code:
<Column name="GreatPeopleRateModifier" type="integer" default="0"/>
<Column name="GreatScientistRateModifier" type="integer" default="0"/>
<Column name="GreatGeneralRateModifier" type="integer" default="0"/>

so this is all you get. While it would "make sense" to be able to add a

Code:
<GreatArtistRateModifier>50</GreatArtistRateModifier>

the XML/SQL parser will fail as there is no column in the traits table with that name. Even if you modify the Traits table to add such a column, this will not work as there is no underlying code to "understand" such an entry.
 
hmm... its late and i dont think my brain is working properly anymore...

<GreatScientistRateModifier>20</GreatScientistRateModifier>
How do i add that into the traits for my civ?

Code:
<GameData>
	<Trait_SpecialistYieldChanges>
		<Row>
			<TraitType>TRAIT_SCIENCE</TraitType>
			<SpecialistType>SPECIALIST_SCIENTIST</SpecialistType>
			<YieldType>YIELD_SCIENCE</YieldType>
			<Yield>3</Yield>
		</Row>
	</Trait_SpecialistYieldChanges>
	<Trait_ImprovementYieldChanges>
		<Row>
			<TraitType>TRAIT_SCIENCE</TraitType>
			<ImprovementType>IMPROVEMENT_ACADEMY</ImprovementType>
			<YieldType>YIELD_SCIENCE</YieldType>
			<Yield>3</Yield>
		</Row>
	</Trait_ImprovementYieldChanges>	
</GameData>

I still cant figure this one out. I know they did it for Babylon somewhere in the xmls where it can be found and changed but i am unable to put the right stuff together. Do i have to make a new table for this to work?
 
Back
Top Bottom