Add A New Tech to he Game

Samuriman

Chieftain
Joined
May 29, 2012
Messages
32
Location
Toronto
Adding a new tech is easy. even putting the delete tag.
Code:
<GameData>
	<Technoligies>
		<Row>
			<Type>TECH_BURIAL</Type>
			<Cost>233</Cost>
			<Description>Comunisiom</Description>
			<Civilopedia>Comunisiom no companies means no jobs.</Civilopedia>
			<Help>Allows you to build the Rebel Mueseum. Allows you to build the rebel unit.</Help>
			<Era>ERA_INDUSTRILAL</Era>
			<Trade>true</Trade>
			<GoodyTech>true</GoodyTech>
			<GridX>3</GridX>
			<GridY>3</GridY>
			<Quote>Can you amagine walking into a store and theres nothing there?</Quote>
			<PortraitIndex>4</PortraitIndex>
			<IconAtlas>TECH_ATLAS_1</IconAtlas>
		</Row>
	</Technoligies>
	<Technoligy_PrereqTechs>
		<Delete/>

		<Row>
			<TechType>TECH_BURIAL</TechType>
			<PrereqTech>TECH_STEAM_POWER</PrereqTech>
		</Row>
	</Technoligy_PrereqTechs>
	<Technoligy_LeedingTechs>
		<Row>
			<TechType>TECH_BURIAL</TechType>
			<LeddingTech>TECH_CUMBUSTION</LeddingTech>
		</Row>
	</Technoligy_LeedingTechs>
</GameData>
See art and Language en US bellow.:D
 
So i will do the languge en us for you.
Code:
<language_en_US>
<Row Tag="Comunisiom">
<Text>Comunisiom<Text>
</Row>
ect...
 
And Art...
1. Create your picture using gimp or Photo Shopper.
2. type in the code you will need 4 Sizes 250 100 65 45 make each one the same so players dont get mixed up.
3. follow the code bellow
Code:
<Atlas>TECH_ATLAS_1<Atlas>
<Size>250<Size>
<FileName>TECH_COMUNISIOM<FileName>
<SizePerRow>8<SizePerRow>
<SizePerColumn>8<SizePerColumn>
Now put your original first row (i.e. Your Technoligies tab all over again but this time you will have PorTraitIndex set to 0)
and there your new tech has been added!
 
First of all, you misspelled "Technologies". Also "Communism", "Museum", "Leading", and "Combustion". (And "Samurai" in your username, but I'd assumed that one was deliberate.) Spelling is important; the fact that you misspelled Technologies in every table title means that absolutely none of your changes would work.

More importantly, there's no table called "Technologies_LeadingTechs", even if you hadn't misspelled two out of those three words. You can't just make up new tables, unless you're going to add a new table declaration to the top of the file. In this particular case, you're obviously trying to specify what techs the one you're adding is the prerequisite for, but you just can't do it this way; you have to add more entries in the PrereqTech table for that, with your new tech as the prerequisite.

And finally, and most critically, your line
<Delete/>
would delete the entire contents of the Technology_PrereqTechs table, causing the entire game to stop working as every other tech in the game would no longer depend on anything. (Okay, the game might actually WORK, but every tech would be available to research on turn 1.)

So if this was supposed to be a "why is my new tech not working?" post, then you need to fix all of the above. But if you meant this as a tutorial for other players, then you really need to change a lot to make this useful to anyone else, because what you've posted is just very, very wrong.
 
Sorry This is the real way to add a new tech. (without AI Flavors)
Code:
<GameData>
		<Technologies>
			<Row>
				<Type>TECH_STONE_TOOLS</Type>
				<Cost>35</Cost>
				<Description>TXT_KEY_TECH_STONE_TOOLS_TITLE</Description>
				<Civilopedia>TXT_KEY_TECH_STONE_TOOLS_DESC</Civilopedia>
				<Help>TXT_KEY_TECH_STONE_TOOLS_HELP</Help>
				<Era>ERA_ANCIENT</Era>
				<Trade>true</Trade>
				<GoodyTech>true</GoodyTech>
				<GridX>3</GridX>
				<GridY>3</GridY>
				<Quote>TXT_KEY_TECH_STONE_TOOLS_QUOTE</Quote>
				<PortraitIndex>0</PortraitIndex>
				<IconAtlas>TECH_ATLAS_1</IconAtlas>
			</Row>
		</Technologies>
<Technology_PrereqTechs>
<Row>
<TechType>TECH_STONE_TOOLS<TechType>
<PrereqTech>TECH_AGRICULTURE<PrereqTech>
<Row>
<Technology_PrereqTech>

		<Language_en_US>
			<Row Tag="TXT_KEY_TECH_STONE_TOOLS_TITLE">
				<Text>Stone Tools</Text>
			</Row>
			<Row Tag="TXT_KEY_TECH_STONE_TOOLS_DESC">
				<Text>Stone Tools was discovered by not humans but apes the last upright standing ape that actully looked like one. Stone tools brought smashing into bones, To eat and more. Watch the movie Walking With Caveman to fully understand this.</Text>
			</Row>
			<Row Tag="TXT_KEY_TECH_STONE_TOOLS_HELP">
				<Text>Allows you to Cunstruct the Termite mound and Habilas Unit.</Text>
			</Row>
			<Row Tag="TXT_KEY_TECH_STONE_TOOLS_QUOTE">
				<Text>Welcome to the new world of ideas! Walking with Caveman BBC</Text>
			</Row>
		</Language_en_US>
	</GameData>
 
Back
Top Bottom