Grrr! Tech tree!

jbryant

Prince
Joined
Jun 24, 2006
Messages
419
Location
State of Denial
I went in and modified the CIVIVTechInfos file with my new techs. Gave then a Pedia and strategies entry as well. Assigned them a space (kinda arbitrarily) and gave them prerequisites (except the first one, which has none). For some reason it will not show up in the civilopedia or in the game. I'm not sure what I'm doing wrong. I followed a tutorial I found here, but I don't seem to be enjoying any success. Is there some other file I need to mess with?
 
Yeah good idea, thanks.

Here it is:

<TechInfo>
<Type>TECH_DEPLOYMENT_LEVEL_1</Type>
<Description>Deployment Level 1</Description>
<Civilopedia>TXT_KEY_TECH_DEPLOYMENT_LEVEL_1_PEDIA</Civilopedia>
<Help/>
<Strategy>TXT_KEY_TECH_DEPLOYMENT_LEVEL_1_STRATEGY</Strategy>
<Advisor>ADVISOR_SCIENCE</Advisor>
<iAIWeight>0</iAIWeight>
<iAITradeModifier>10</iAITradeModifier>
<iCost>8000</iCost>
<iAdvancedStartCost>100</iAdvancedStartCost>
<iAdvancedStartCostIncrease>0</iAdvancedStartCostIncrease>
<Era>ERA_MODERN</Era>
<FirstFreeUnitClass>NONE</FirstFreeUnitClass>
<iFeatureProductionModifier>0</iFeatureProductionModifier>
<iWorkerSpeedModifier>0</iWorkerSpeedModifier>
<iTradeRoutes>0</iTradeRoutes>
<iHealth>0</iHealth>
<iHappiness>0</iHappiness>
<iFirstFreeTechs>0</iFirstFreeTechs>
<iAsset>48</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>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>1</iGridY>
<DomainExtraMoves/>
<CommerceFlexible/>
<TerrainTrades/>
<bRiverTrade>0</bRiverTrade>
<Flavors>
<Flavor>
<FlavorType>FLAVOR_MILITARY</FlavorType>
<iFlavor>8</iFlavor>
</Flavor>
<Flavor>
<FlavorType>FLAVOR_PRODUCTION</FlavorType>
<iFlavor>1</iFlavor>
</Flavor>
<Flavor>
<FlavorType>FLAVOR_SCIENCE</FlavorType>
<iFlavor>2</iFlavor>
</Flavor>
<Flavor>
<FlavorType>FLAVOR_CULTURE</FlavorType>
<iFlavor>1</iFlavor>
</Flavor>
</Flavors>
<OrPreReqs>
<PrereqTech></PrereqTech>
</OrPreReqs>
<AndPreReqs/>
<Quote>XXX</Quote>
<Sound>AS2D_TECH_ROBOTICS</Sound>
<SoundMP>AS2D_TECH_MP_ROBOTICS</SoundMP>
<Button>,Art/Interface/Buttons/TechTree/DL1.dds</Button>
</TechInfo>
 
It looks like you have the AndPrereq and OrPrereq set up wrong.
 
Make sure your grid definitions don't overlap another technology. You also have a comma on your button tag that needs removal.

Code:
<Button>,Art/Interface/Buttons/TechTree/DL1.dds</Button>
Should be
<Button>Art/Interface/Buttons/TechTree/DL1.dds</Button>
Make sure your button exists, also.
 
Your not defining what the prereqs are, so the tech can be researched from straight out, and for AndPrereqs the / should be next to the < mark, not the > mark. Also, you have 2 OrPrereqs and the <Prereq></Prereq> thing going on, which isnt in normal BTS.
 
Yeah, that too. Good catch Ajidica. I'm surprosed there was no XML error warning.

You can just have techs not require any prereq


</Flavors>
<OrPreReqs/>
<AndPreReqs/>
<Quote>XXX</Quote>

or you can have them require techs like this

</Flavors>
<OrPreReqs/>
<AndPreReqs>
<PrereqTech>TECH_ASSEMBLY_LINE</PrereqTech>
<PrereqTech>TECH_ADVANCED_FLIGHT</PrereqTech>
</AndPreReqs>
<Quote>XXX</Quote>

And prereqs give you the icon in the upper right corner and you have to have al these. Or prereqs give you the arrow lines and you have to have one of these. You can only have so many, 4 I think, unless you also change a tag in GlobalDefines. The series of PrereqTech lines have to be nested between the start and end of the AndPreReqs or OrPreReqs not outside of them, they are a subset, not independent tags.
 
There wouldnt be an XML error for these errors (IIRC) because when loading, civ doesnt notice the misplacement of tags, only when it goes to call info from it, it simply doesnt show it. I dont think there is a limit to how many techs you can have as a prereq, there doesnt seem to be any reason to have that there (unless if Firaxis felt ornery)
 
Thanks everyone for the help! However, I think maybe I didn't define my problem clearly enough. The buttons and such aren't a problem, at least I don't think they are, because I can't get the tech to show up at all. I have entered it into the Tech folder, civilopedia and strategies. I made a button and linked it.

I went back and adjusted the slashes on the end tags, but that didn't change it.

Not sure why the file would be unusual for BTS, I copied it wholesale.

As far as the text file, I've been entering descriptions into the actual infos file (I did this for units and had no ill effects). I've been entering the civilopedia and strats into the main files that i've copied into my mod folder.

The pre-reqs I don't think are a problem, but then again I don't know. The first deployment tech has no pre-req, while the 2nd is tied to the first, 3rd to the 2nd and so on, very linear.

As far as overlapping causing the problem, not sure again. I don't know exactly where 1,1 falls on the tech tree. Even if it overlapped, wouldn't it show up in the pedia?

Anyway, if you guys need more info, I can post whatever you like.

Thanks for the help so far, I hope you guys can help me out, it's really holding up my progress!
 
Its not showing up at all? If thats the issue, clear your custom assets (mygames directory) and hold shift (IIRC) while the game is loading to override custom assets.
 
IIRC, If I Remember Correctly. Clearing custom assets is when you delete all files in custom assets which might be messing it up. MyGames is in the My Documents directory (for me at least), not in the program files where civ is.
 
Ok, now I'm really confused. I thought I would try a little experiment. I changed the name of an established tech, in both the type and description fields. The change again was not reflected in the game. This is so odd, I have added over 20 units to this game and never had a similar problem. Does anybody have any idea why it seems to always display the default values and not reflect any of my changes?
 
Ok, everyone, let's forget this ever happened. I found out the reason for the flubb up and it's pretty stupid. Looks like copying the folder name wasn't easy enough for me and I named it technology instead of technologies. Sorry for all the trouble, I'm still new at this.
 
Back
Top Bottom