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!