cant figure out what im doing wrong to add new tech

Lionhawk

Chieftain
Joined
Dec 26, 2006
Messages
19
Hi there,
im trying to add a new tech in warlords and cant seem to get it to appear. i checked out other tutorials but still didnt get it right i guess. it loads with no errors but i do not see the new tech. i edited these files after copying an existing tech:

civ4techinfos
civ4gametextinfos_objects
civ4gametext_strategy
civ4gametext_civilopedia_techs

is there another folder im leaving out? i also added a dds in the art/interface/buttons/techtree folder. i created this techtree folder as a new folder. is this correct or is there a techtree folder somewhere i am missing?

can someone post the folders to edit for this if there is one im missing?
also i am basically copying the meditation tech to use for my new one.

also how do i assign a religion to the first one to discover. example, meditation gives buddhism to the first to research it. id like to do this too.

thanks for all and any help!
 
Can you copy/paste the new tech's XML code?

The coordinates on the tech tree are determined in the CIV4TechInfos.xml file. Look somewhere in there for <iGridX> and <iGridY>.

To assign a Religion to a tech, you gotta go into CIV4ReligionInfo.xml file. You'll see the <TechPreReq> tag.

Other than that, I think you have all the files needed to change covered.





You should consider using TheLopez' Tech Tree Editor. You can create Techs with it as well. Takes most of the guesswork out.
 
thanks for your reply....i will post it later tonight as i have to run to work.....so by adding a prereq in religion does that automatically give that religion to you if you are first to research it?

ill check out that editor and post the info tonight...thanks again
 
so by adding a prereq in religion does that automatically give that religion to you if you are first to research it?
Yes, that's right. I would recommend using the tech tree editor as well, but ATM to actually have that tech do anything you still have to edit xmls like the religion one, although TheLopez has said the Civilizeditor will do all that when its finished.
 
well i wanted to post my fiesl but i relaize i reset them back to get the game working right again. so im gonna start from scratch again. i am going to use meditation and copy it and paste it in the 4 files above and change the names to kama_shastra. if anyone wants to post their version of what it should look like id appreciate it. i would like to see it in the civilopedia, and obviously the game when the pop up to research appears.....thansk for any help!
 
Copy this into the bottom of a copy of Civ4TechInfos.xml in Civilization 4\Warlords\Mods\YourModFolder\Assets\XML\Techs

Code:
		<TechInfo>
			<Type>TECH_KAMA_SHASTRA</Type>
			<Description>TXT_KEY_TECH_KAMA_SHASTRA</Description>
			<Civilopedia>TXT_KEY_TECH_KAMA_SHASTRA_PEDIA</Civilopedia>
			<Help/>
			<Strategy>TXT_KEY_TECH_KAMA_SHASTRA_STRATEGY</Strategy>
			<Advisor>ADVISOR_RELIGION</Advisor>
			<iAIWeight>0</iAIWeight>
			<iAITradeModifier>0</iAITradeModifier>
			<iCost>80</iCost>
			<Era>ERA_ANCIENT</Era>
			<FirstFreeUnitClass>NONE</FirstFreeUnitClass>
			<iFeatureProductionModifier>0</iFeatureProductionModifier>
			<iWorkerSpeedModifier>0</iWorkerSpeedModifier>
			<iTradeRoutes>0</iTradeRoutes>
			<iHealth>0</iHealth>
			<iHappiness>0</iHappiness>
			<iFirstFreeTechs>0</iFirstFreeTechs>
			<iAsset>8</iAsset>
			<iPower>0</iPower>
			<bRepeat>0</bRepeat>
			<bTrade>1</bTrade>
			<bDisable>0</bDisable>
			<bGoodyTech>0</bGoodyTech>
			<bExtraWaterSeeFrom>0</bExtraWaterSeeFrom>
			<bMapCentering>0</bMapCentering>
			<bMapVisible>0</bMapVisible>
			<bMapTrading>0</bMapTrading>
			<bTechTrading>0</bTechTrading>
			<bGoldTrading>0</bGoldTrading>
			<bOpenBordersTrading>0</bOpenBordersTrading>
			<bDefensivePactTrading>0</bDefensivePactTrading>
			<bPermanentAllianceTrading>0</bPermanentAllianceTrading>
			<bVassalTrading>0</bVassalTrading>
			<bBridgeBuilding>0</bBridgeBuilding>
			<bIrrigation>0</bIrrigation>
  			<bIgnoreIrrigation>0</bIgnoreIrrigation>
			<bWaterWork>0</bWaterWork>
			[COLOR="Red"]<iGridX>2</iGridX>
			<iGridY>9</iGridY>[/COLOR]
			<DomainExtraMoves/>
			<CommerceFlexible/>
			<TerrainTrades/>
			<Flavors>
				<Flavor>
					<FlavorType>FLAVOR_RELIGION</FlavorType>
					<iFlavor>10</iFlavor>
				</Flavor>
				<Flavor>
					<FlavorType>FLAVOR_SCIENCE</FlavorType>
					<iFlavor>2</iFlavor>
				</Flavor>
				<Flavor>
					<FlavorType>FLAVOR_CULTURE</FlavorType>
					<iFlavor>7</iFlavor>
				</Flavor>
			</Flavors>
			<OrPreReqs>
				<PrereqTech>TECH_MYSTICISM</PrereqTech>
			</OrPreReqs>
			<AndPreReqs/>
			<Quote>TXT_KEY_TECH_MEDITATION_QUOTE</Quote>
			<Sound>AS2D_TECH_MEDITATION</Sound>
			<SoundMP>AS2D_TECH_MP_MEDITATION</SoundMP>
			[COLOR="Red"]<Button>,Art/Interface/Buttons/TechTree/Meditation.dds,Art/Interface/Buttons/TechTree_Atlas.dds,5,5</Button>[/COLOR]
		</TechInfo>

And this into a blank XML in Civilization 4\Warlords\Mods\YourModFolder\Assets\XML\Text

Code:
<Civ4GameText>
	<TEXT>
		<Tag>TXT_KEY_TECH_KAMA_SHASTRA</Tag>
		<English>[COLOR="Red"]Name of tech[/COLOR]</English>
		<French>In french</French>
		<German>In German</German>
		<Italian>In Italian</Italian>
		<Spanish>In Spanish</Spanish>
	</TEXT>
        <TEXT>
		<Tag>TXT_KEY_TECH_KAMA_SHASTRA_PEDIA</Tag>
		<English>[COLOR="Red"]Civlopedia entry[/COLOR]</English>
		<French>In french</French>
		<German>In German</German>
		<Italian>In Italian</Italian>
		<Spanish>In Spanish</Spanish>
	</TEXT>
         <TEXT>
		<Tag>TXT_KEY_TECH_KAMA_SHASTRA_STRATEGY</Tag>
		<English>[COLOR="Red"]Strategy Text (the "Sid's Tips" when you hover over a tech in the popup.[/COLOR]</English>
		<French>In french</French>
		<German>In German</German>
		<Italian>In Italian</Italian>
		<Spanish>In Spanish</Spanish>
	</TEXT>
</Civ4GameText>

And that should be it. The text in red is stuff you should change btw.

If yoyu have any other questions in future, I spend most of my time on TBS Modder, and your membership would be very welcome there.
 
thanks, so far this looks similar to what i did but even though its taboo i was edited my original folders.....i save them first before i mod them so i can go back to originals or earlier ones. i havent tweaked much just the 24 civ dll and added 2 civs using default units. i dont know how to do graphics so i can create a new unit.

when i added this tech it did not appear...how important is the grid to actually showing the tech? could you post a possible coordinates i could try to use to get it to show? ill check out the site this weekend too.
 
thanks, so far this looks similar to what i did but even though its taboo i was edited my original folders.....i save them first before i mod them so i can go back to originals or earlier ones. i havent tweaked much just the 24 civ dll and added 2 civs using default units. i dont know how to do graphics so i can create a new unit.

when i added this tech it did not appear...how important is the grid to actually showing the tech? could you post a possible coordinates i could try to use to get it to show? ill check out the site this weekend too.


It would be much safer if you saved all your work into a seperate MOD folder, in your My Documents/My Games/ directory instead of the original source files. When you installed the game, it should of created these directories for you.


The grid is not very important. It's strictly for the Civopedia. IF you don't set it right, it'll just look out of place on the Tech Tree... it has no effect on gameplay. Purely asthetic.

I strongly suggest you try TheLopez' Tech Tree Editor, though. It does all the XML work for you.


Just to piggyback on what Macmatt said:

Do this...

In CIV4TechInfos.xml
Copy this to the BOTTOM of the XML file, right after the last </TechIfno> of the last Tech and right before </TechInfos>, and change everything in RED to what you want....
Code:
				<TechInfo>
			<Type>TECH_[COLOR="red"]MEDITATION[/COLOR]</Type>
			<Description>TXT_KEY_TECH_[COLOR="red"]MEDITATION[/COLOR]</Description>
			<Civilopedia>TXT_KEY_TECH_[COLOR="red"]MEDITATION[/COLOR]_PEDIA</Civilopedia>
			<Help/>
			<Strategy>TXT_KEY_TECH_[COLOR="red"]MEDITATION[/COLOR]_STRATEGY</Strategy>
			<Advisor>ADVISOR_RELIGION</Advisor>
			<iAIWeight>0</iAIWeight>
			<iAITradeModifier>0</iAITradeModifier>
			<iCost>90</iCost>
			<Era>[COLOR="Red"]ERA_ANCIENT[/COLOR]</Era>
			<FirstFreeUnitClass>NONE</FirstFreeUnitClass>
			<iFeatureProductionModifier>0</iFeatureProductionModifier>
			<iWorkerSpeedModifier>0</iWorkerSpeedModifier>
			<iTradeRoutes>0</iTradeRoutes>
			<iHealth>0</iHealth>
			<iHappiness>0</iHappiness>
			<iFirstFreeTechs>0</iFirstFreeTechs>
			<iAsset>8</iAsset>
			<iPower>0</iPower>
			<bRepeat>0</bRepeat>
			<bTrade>1</bTrade>
			<bDisable>0</bDisable>
			<bGoodyTech>0</bGoodyTech>
			<bExtraWaterSeeFrom>0</bExtraWaterSeeFrom>
			<bMapCentering>0</bMapCentering>
			<bMapVisible>0</bMapVisible>
			<bMapTrading>0</bMapTrading>
			<bTechTrading>0</bTechTrading>
			<bGoldTrading>0</bGoldTrading>
			<bOpenBordersTrading>0</bOpenBordersTrading>
			<bDefensivePactTrading>0</bDefensivePactTrading>
			<bPermanentAllianceTrading>0</bPermanentAllianceTrading>
			<bVassalTrading>0</bVassalTrading>
			<bBridgeBuilding>0</bBridgeBuilding>
			<bIrrigation>0</bIrrigation>
			<bIgnoreIrrigation>0</bIgnoreIrrigation>
			<bWaterWork>0</bWaterWork>
			<iGridX>[COLOR="red"]2[/COLOR]</iGridX>
			<iGridY>[COLOR="red"]17[/COLOR]</iGridY>
			<DomainExtraMoves/>
			<CommerceFlexible/>
			<TerrainTrades/>
			<Flavors>
				<Flavor>
					<FlavorType>FLAVOR_RELIGION</FlavorType>
					<iFlavor>10</iFlavor>
				</Flavor>
				<Flavor>
					<FlavorType>FLAVOR_SCIENCE</FlavorType>
					<iFlavor>4</iFlavor>
				</Flavor>
				<Flavor>
					<FlavorType>FLAVOR_CULTURE</FlavorType>
					<iFlavor>7</iFlavor>
				</Flavor>
			</Flavors>
			<OrPreReqs>
				<PrereqTech>[COLOR="red"]TECH_MYSTICISM[/COLOR]</PrereqTech>
			</OrPreReqs>
			<AndPreReqs/>
			<Quote>TXT_KEY_TECH_[COLOR="red"]MEDITATION[/COLOR]_QUOTE</Quote>
			<Sound>AS2D_TECH_MEDITATION</Sound>
			<SoundMP>AS2D_TECH_MP_MEDITATION</SoundMP>
			<Button>[COLOR="red"],Art/Interface/Buttons/TechTree/Meditation.dds,Art/Interface/Buttons/TechTree_Atlas.dds,5,5[/COLOR]</Button>
		</TechInfo>

This is just to get it running in the game. Research time, Flavors, PreReqTechs will all mirror Meditation. It'll be up to you to change this around to your liking.




In CIV4ReligionInfo.xml
If you're going to make a new Religion, copy and paste one of the other Religions after the </ReligionInfo> of the last Religion and before </ReligionInfos> at the very bottom of the file. If you're looking to reassign a Religion to the new Tech you're making, change only the GREEN colored code (you don't have to copy and paste the whole Religion if you're only changing the TechPreReq of one of the existing Religions).

If you want to create a whole new Religion, change everything in RED and GREEN...

Code:
		<ReligionInfo>
			<Type>RELIGION_[COLOR="red"]JUDAISM[/COLOR]</Type>
			<Description>TXT_KEY_RELIGION_[COLOR="red"]JUDAISM[/COLOR]</Description>
			<Civilopedia>TXT_KEY_RELIGION_[COLOR="red"]JUDAISM[/COLOR]_PEDIA</Civilopedia>
			<TechPrereq>TECH_[COLOR="SeaGreen"]MONOTHEISM[/COLOR]</TechPrereq>
			<FreeUnitClass>NONE</FreeUnitClass>
			<iSpreadFactor>100</iSpreadFactor>
			<GlobalReligionCommerces>
				<iGlobalReligionCommerce>1</iGlobalReligionCommerce>
				<iGlobalReligionCommerce>0</iGlobalReligionCommerce>
				<iGlobalReligionCommerce>0</iGlobalReligionCommerce>
			</GlobalReligionCommerces>
			<HolyCityCommerces>
				<iHolyCityCommerce>0</iHolyCityCommerce>
				<iHolyCityCommerce>0</iHolyCityCommerce>
				<iHolyCityCommerce>4</iHolyCityCommerce>
			</HolyCityCommerces>
			<StateReligionCommerces>
				<iStateReligionCommerce>0</iStateReligionCommerce>
				<iStateReligionCommerce>0</iStateReligionCommerce>
				<iStateReligionCommerce>1</iStateReligionCommerce>
			</StateReligionCommerces>
			<Button>[COLOR="Red"]Art/Interface/Buttons/Religions/Jewish.dds[/COLOR]</Button>
			<TechButton>[COLOR="red"]Art/Interface/Buttons/TechTree/Judaism.dds[/COLOR]</TechButton>
			<MovieFile>[COLOR="red"]Art/Movies/Religion/Judaism/Jud_Found.nif[/COLOR]</MovieFile>
			<MovieSound>AS2D_BUILD_JEWISH_MOVIE</MovieSound>
			<Sound>AS2D_BUILD_JEWISH</Sound>
		</ReligionInfo>

Again, the rest of the tags you need to change to suit your needs.

Next, take any XML Text file, I'll use CIV4GameText_Warlords.xml as an example. Delete everything in file until it looks like the below example and SAVE AS a new XML file in your ASSETS/XML/TEXT directory...

Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Ed Piper (Firaxis Games) -->
<!-- Sid Meier's Civilization 4 -->
<!-- Copyright Firaxis Games 2005 -->
<!-- -->
<!-- Game Text - New -->
<Civ4GameText xmlns="http://www.firaxis.com">
	<!--Please place any new text entries into this file-->


</Civ4GameText>

OK... in that new XML file you created, add the following tags, again changing the RED to what you need

Code:
	<TEXT>
		<Tag>TXT_KEY_TECH_[COLOR="Red"]KAMA_SHASTRA[/COLOR]</Tag>
		<English>[COLOR="red"]Name of tech[/COLOR]</English>
		<French>[COLOR="red"]In french[/COLOR]</French>
		<German>[COLOR="red"]In German[/COLOR]</German>
		<Italian>[COLOR="red"]In Italian[/COLOR]</Italian>
		<Spanish>[COLOR="red"]In Spanish[/COLOR]</Spanish>
	</TEXT>
        <TEXT>
		<Tag>TXT_KEY_TECH_[COLOR="red"]KAMA_SHASTRA[/COLOR]_PEDIA</Tag>
		<English>[COLOR="red"]Civlopedia entry[/COLOR]</English>
		<French>[COLOR="red"]In french[/COLOR]</French>
		<German>[COLOR="red"]In German[/COLOR]</German>
		<Italian>[COLOR="red"]In Italian[/COLOR]</Italian>
		<Spanish>[COLOR="red"]In Spanish[/COLOR]</Spanish>
	</TEXT>
         <TEXT>
		<Tag>TXT_KEY_TECH_[COLOR="red"]KAMA_SHASTRA[/COLOR]_STRATEGY</Tag>
		<English>[COLOR="red"]Strategy Text (the "Sid's Tips" when you hover over a tech in the popup[/COLOR].</English>
		<French>[COLOR="red"]In french[/COLOR]</French>
		<German>[COLOR="red"]In German[/COLOR]</German>
		<Italian>[COLOR="red"]In Italian[/COLOR]</Italian>
		<Spanish>[COLOR="Red"]In Spanish[/COLOR]</Spanish>
	</TEXT>

Not all the language tags are required. You can delete some of the language tags. For example in my mod I'm working on, I only have the <English> tags.

If you created a new Religion instead of just changing the TechPreReq of one of the existing ones, add this as well...

Code:
         <TEXT>
		<Tag>TXT_KEY_RELIGION_[COLOR="red"]KAMA_SHASTRA[/COLOR]</Tag>
		<English>[COLOR="red"]Kama Shastra[/COLOR].</English>
		<French>[COLOR="red"]In french[/COLOR]</French>
		<German>[COLOR="red"]In German[/COLOR]</German>
		<Italian>[COLOR="red"]In Italian[/COLOR]</Italian>
		<Spanish>[COLOR="Red"]In Spanish[/COLOR]</Spanish>
	</TEXT>
         <TEXT>
		<Tag>TXT_KEY_RELIGION_[COLOR="red"]KAMA_SHASTRA[/COLOR]_PEDIA</Tag>
		<English>[COLOR="red"]What ever you want.[/COLOR].</English>
		<French>[COLOR="red"]In french[/COLOR]</French>
		<German>[COLOR="red"]In German[/COLOR]</German>
		<Italian>[COLOR="red"]In Italian[/COLOR]</Italian>
		<Spanish>[COLOR="Red"]In Spanish[/COLOR]</Spanish>
	</TEXT>

For the buttons... they can go anywhere, just as long as where you specify in the <Button> portion of the XML's match up with where you actually put them. It's easiest just to follow standard Civ4 format, and create an identical looking file tree in your MY DOCUMENTS/MY GAMES/WARLORDS/MODS/ASSETS/ART/INTERFACE directory. You get the point, I'm sure.

Fire up the game and it should work. This is what I do when I create new Techs and Religions, and I've never had one not work for me.

Other than that, if this doesn't help out... I'm not sure I can offer up any more assistance, other than to download and use TheLopez' Tech Tree Editor.

Good luck!
 
thanks! i got it this time mainly because i continue to edit game files and not the custom files so i saw this part :

<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Ed Piper (Firaxis Games) -->
<!-- Sid Meier's Civilization 4 -->
<!-- Copyright Firaxis Games 2005 -->
<!-- -->
<!-- Game Text - New -->
<Civ4GameText xmlns="http://www.firaxis.com">
<!--Please place any new text entries into this file-->

this wasnt in the files i edited in the original game files. So i added all three text entries into this xml file in the game:

Civ4GameText_Warlords_Civ4Changed

and it now appears in game....its a slow tweaking process but im having fun learning a few things! thanks again for the input! now on to the religion. that will probably be hard.....do i need to change monasteries and missionaries for it to work in game? adding a new religion that is.
 
now on to the religion. that will probably be hard.....do i need to change monasteries and missionaries for it to work in game? adding a new religion that is.

Well, yes... you'll need to create Monasteries/Temples/Cathedrals/Shrine for your new Religion. Actually you don't HAVE to, but you should. :)

Same as with the Tech, just copy the religious buildings, and paste them to the bottom of the CIV4BuildingsInfo.xml file. You'll see the tags you need to change.

You'll also have to add building classes in the CIV4BuildingsClassInfo.xml which is probably the easiest part. Same as above, find the other religious buildings, and copy/paste them to the bottom of the file. Change the tags that need changed.

Then finally, you'll need to add Descriptions and a Pedia entry. Use the XML file you created in the TEXT directory, just like you did for the Tech/Religion.
 
so realistically i could create new religion and use the default monasteries and missionaries right? i dont want to but i dont know how to create new art. so unless someone takes requests i have to use the graphics involved and just rename things i guess. although im creating Hedonism and would like to make a cute hot brown chick in like a lion cloth bikini or something to appear as the missionary...hehe
 
ok so now ive added the missionary and temples, etc........although no new art......i copied the missionaries and they exisit in game. now the buildings im missing something. it loads without error but all the new icons say jewish temple for all the buildings and in world builder i cant place any of them. i can only place the missionaries. i did the buildininfo and building class, added the txt, pedia, and stratgegy.....any ideas as to what i am overlooking?
 
Back
Top Bottom