GarretSidzaka
Modder
- Joined
- Dec 17, 2002
- Messages
- 4,700
Please feel free to add to this basic description.
Here are some more hints:
these entries are just above the "flavors" entry. these are postitional coordinates, in the "X" axis and "Y" axis (just like high school math class) you place the techs "floating" on the tech tree screen at those coordinates.
just experiment with it
You will also need to go to <yourmodname>/Assets/Art/Interface/Buttons/TechTree/
*you will likely need to create these folders!!!*
Then you can make a 64X64 pixel JPG picture and convert it using either GIMP 2.0 with GIMP DDS PLUGINS or some other comprable graphics program and DDS conversion tool.
save the file in the above folder i told you to create. save as "testtech.dds"
now go back to the XML file and look here:
Notice it says </TechInfo>
that means its the end of the tech and anything that follows must begin with
<TechTree> (beginning)
anyways..you will change the above codebox contents to this:
Remember to remove all commas! as this will create strange pink dots!!
What you will have to do is make some changes, save it, and then run the mod in civ4 to observe the consequences of your changes.
I hope this helps. And please, post here so we can make this more complete!
- Add the program you want to use to edit XML. like "XML marker" "XMLspy" or just plain old notepad.
- go to the warlords directory. go to the mods directory there. copy the "barebones mod" and rename the copy after your mod.
- open it to Mods/<yourmodhere>/assets/xml/technologies/CIV4TechInfos.xml. open this file with the program you want to use to edit
- you should see this:Spoiler :Code:
<?xml version="1.0"?> <!-- edited with XMLSpy v2005 rel. 3 U (http://www.altova.com) by Soren Johnson (Firaxis Games) --> <!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Jon Shafer (Firaxis Games) --> <!-- Sid Meier's Civilization 4 --> <!-- Copyright Firaxis Games 2005 --> <!-- --> <!-- Tech Infos --> <Civ4TechInfos xmlns="x-schema:CIV4TechnologiesSchema.xml"> <TechInfos> <TechInfo> <Type>TECH_MYSTICISM</Type> <Description>TXT_KEY_TECH_MYSTICISM</Description> <Civilopedia>TXT_KEY_TECH_MYSTICISM_PEDIA</Civilopedia> <Help/> <Strategy>TXT_KEY_TECH_MYSTICISM_STRATEGY</Strategy> <Advisor>ADVISOR_RELIGION</Advisor> <iAIWeight>0</iAIWeight> <iAITradeModifier>0</iAITradeModifier> <iCost>500</iCost> <Era>ERA_ANCIENT</Era> <FirstFreeUnitClass>NONE</FirstFreeUnitClass> <iFeatureProductionModifier>50</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>0</bTrade> <bDisable>0</bDisable> <bGoodyTech>0</bGoodyTech> <bExtraWaterSeeFrom>0</bExtraWaterSeeFrom> <bMapCentering>0</bMapCentering> <bMapVisible>0</bMapVisible> <bMapTrading>0</bMapTrading> <bTechTrading>0</bTechTrading> <bGoldTrading>1</bGoldTrading> <bOpenBordersTrading>1</bOpenBordersTrading> <bDefensivePactTrading>0</bDefensivePactTrading> <bPermanentAllianceTrading>0</bPermanentAllianceTrading> <bVassalTrading>1</bVassalTrading> <bBridgeBuilding>1</bBridgeBuilding> <bIrrigation>0</bIrrigation> <bIgnoreIrrigation>0</bIgnoreIrrigation> <bWaterWork>1</bWaterWork> <iGridX>1</iGridX> <iGridY>1</iGridY> <DomainExtraMoves/> <CommerceFlexible/> <TerrainTrades> <TerrainTrade> <TerrainType>TERRAIN_COAST</TerrainType> <bTerrainTrade>1</bTerrainTrade> </TerrainTrade> </TerrainTrades> <Flavors> <Flavor> <FlavorType>FLAVOR_RELIGION</FlavorType> <iFlavor>9</iFlavor> </Flavor> <Flavor> <FlavorType>FLAVOR_GOLD</FlavorType> <iFlavor>1</iFlavor> </Flavor> <Flavor> <FlavorType>FLAVOR_CULTURE</FlavorType> <iFlavor>8</iFlavor> </Flavor> <Flavor> <FlavorType>FLAVOR_GROWTH</FlavorType> <iFlavor>2</iFlavor> </Flavor> </Flavors> <OrPreReqs/> <AndPreReqs/> <Quote/> <Sound/> <SoundMP/> <Button>,Art/Interface/Buttons/TechTree/Mysticism.dds,Art/Interface/Buttons/TechTree_Atlas.dds,4,11</Button> </TechInfo> <TechInfo> <Type>TECH_FUTURE_TECH</Type> <Description>TXT_KEY_TECH_FUTURE_TECH</Description> <Civilopedia>TXT_KEY_TECH_FUTURE_TECH_PEDIA</Civilopedia> <Help/> <Strategy>TXT_KEY_TECH_FUTURE_TECH_STRATEGY</Strategy> <Advisor>ADVISOR_SCIENCE</Advisor> <iAIWeight>0</iAIWeight> <iAITradeModifier>0</iAITradeModifier> <iCost>10000</iCost> <Era>ERA_FUTURE</Era> <FirstFreeUnitClass>NONE</FirstFreeUnitClass> <iFeatureProductionModifier>0</iFeatureProductionModifier> <iWorkerSpeedModifier>0</iWorkerSpeedModifier> <iTradeRoutes>0</iTradeRoutes> <iHealth>1</iHealth> <iHappiness>1</iHappiness> <iFirstFreeTechs>0</iFirstFreeTechs> <iAsset>64</iAsset> <iPower>0</iPower> <bRepeat>1</bRepeat> <bTrade>0</bTrade> <bDisable>1</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>1</iGridX> <iGridY>3</iGridY> <DomainExtraMoves/> <CommerceFlexible/> <TerrainTrades/> <Flavors> <Flavor> <FlavorType>FLAVOR_MILITARY</FlavorType> <iFlavor>1</iFlavor> </Flavor> <Flavor> <FlavorType>FLAVOR_RELIGION</FlavorType> <iFlavor>1</iFlavor> </Flavor> <Flavor> <FlavorType>FLAVOR_PRODUCTION</FlavorType> <iFlavor>1</iFlavor> </Flavor> <Flavor> <FlavorType>FLAVOR_GOLD</FlavorType> <iFlavor>1</iFlavor> </Flavor> <Flavor> <FlavorType>FLAVOR_SCIENCE</FlavorType> <iFlavor>1</iFlavor> </Flavor> <Flavor> <FlavorType>FLAVOR_CULTURE</FlavorType> <iFlavor>1</iFlavor> </Flavor> </Flavors> <OrPreReqs/> <AndPreReqs/> <Quote>TXT_KEY_TECH_FUTURE_TECH_QUOTE</Quote> <Sound>AS2D_TECH_FUTURE</Sound> <SoundMP>AS2D_TECH_MP_FUTURE</SoundMP> <Button>,Art/Interface/Buttons/TechTree/Future Tech.dds,Art/Interface/Buttons/TechTree_Atlas.dds,2,4</Button> </TechInfo> </TechInfos> </Civ4TechInfos>
- you should cut and paste this part as many times as you need techs. For now just once. Spoiler :Code:
<TechInfo> <Type>TECH_FUTURE_TECH</Type> <Description>TXT_KEY_TECH_FUTURE_TECH</Description> <Civilopedia>TXT_KEY_TECH_FUTURE_TECH_PEDIA</Civilopedia> <Help/> <Strategy>TXT_KEY_TECH_FUTURE_TECH_STRATEGY</Strategy> <Advisor>ADVISOR_SCIENCE</Advisor> <iAIWeight>0</iAIWeight> <iAITradeModifier>0</iAITradeModifier> <iCost>10000</iCost> <Era>ERA_FUTURE</Era> <FirstFreeUnitClass>NONE</FirstFreeUnitClass> <iFeatureProductionModifier>0</iFeatureProductionModifier> <iWorkerSpeedModifier>0</iWorkerSpeedModifier> <iTradeRoutes>0</iTradeRoutes> <iHealth>1</iHealth> <iHappiness>1</iHappiness> <iFirstFreeTechs>0</iFirstFreeTechs> <iAsset>64</iAsset> <iPower>0</iPower> <bRepeat>1</bRepeat> <bTrade>0</bTrade> <bDisable>1</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>1</iGridX> <iGridY>3</iGridY> <DomainExtraMoves/> <CommerceFlexible/> <TerrainTrades/> <Flavors> <Flavor> <FlavorType>FLAVOR_MILITARY</FlavorType> <iFlavor>1</iFlavor> </Flavor> <Flavor> <FlavorType>FLAVOR_RELIGION</FlavorType> <iFlavor>1</iFlavor> </Flavor> <Flavor> <FlavorType>FLAVOR_PRODUCTION</FlavorType> <iFlavor>1</iFlavor> </Flavor> <Flavor> <FlavorType>FLAVOR_GOLD</FlavorType> <iFlavor>1</iFlavor> </Flavor> <Flavor> <FlavorType>FLAVOR_SCIENCE</FlavorType> <iFlavor>1</iFlavor> </Flavor> <Flavor> <FlavorType>FLAVOR_CULTURE</FlavorType> <iFlavor>1</iFlavor> </Flavor> </Flavors> <OrPreReqs/> <AndPreReqs/> <Quote>TXT_KEY_TECH_FUTURE_TECH_QUOTE</Quote> <Sound>AS2D_TECH_FUTURE</Sound> <SoundMP>AS2D_TECH_MP_FUTURE</SoundMP> <Button>,Art/Interface/Buttons/TechTree/Future Tech.dds,Art/Interface/Buttons/TechTree_Atlas.dds,2,4</Button> </TechInfo>
- after you paste these, you need to change this part with the name of the tech. be consistant (very important)
Code:
<Type>TECH_FUTURE_TECH</Type> <Description>TXT_KEY_TECH_FUTURE_TECH</Description> <Civilopedia>TXT_KEY_TECH_FUTURE_TECH_PEDIA</Civilopedia> <Help/> <Strategy>TXT_KEY_TECH_FUTURE_TECH_STRATEGY</Strategy>
- Then check this page to understand what the other variables are
- when you finish, you have to load the mod and check the civiliopaedia.
- more than likely, you typoed (especially if you just use notepad) and it will tell you more or less what is wrong. this is not easy and cannot be taught, it is debugging.
- repeat the above steps a few dozen times, until you techs are done!
Here are some more hints:
Spoiler :
Code:
<iGridX>1</iGridX>
<iGridY>3</iGridY>
these entries are just above the "flavors" entry. these are postitional coordinates, in the "X" axis and "Y" axis (just like high school math class) you place the techs "floating" on the tech tree screen at those coordinates.
just experiment with it

You will also need to go to <yourmodname>/Assets/Art/Interface/Buttons/TechTree/
*you will likely need to create these folders!!!*
Then you can make a 64X64 pixel JPG picture and convert it using either GIMP 2.0 with GIMP DDS PLUGINS or some other comprable graphics program and DDS conversion tool.
save the file in the above folder i told you to create. save as "testtech.dds"
now go back to the XML file and look here:
Code:
<Button>,Art/Interface/Buttons/TechTree/Future Tech.dds,Art/Interface/Buttons/TechTree_Atlas.dds,2,4</Button>
</TechInfo>
that means its the end of the tech and anything that follows must begin with
<TechTree> (beginning)
anyways..you will change the above codebox contents to this:
Code:
<Button>Art/Interface/Buttons/TechTree/[B]testtech.dds[/B]</Button>
</TechInfo>
What you will have to do is make some changes, save it, and then run the mod in civ4 to observe the consequences of your changes.
I hope this helps. And please, post here so we can make this more complete!