View Full Version : Grrr! Tech tree!
jbryant Mar 10, 2009, 03:39 PM 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?
Flintlock1415 Mar 10, 2009, 03:55 PM Try pasting your code here so others can look. ;)
jbryant Mar 10, 2009, 03:57 PM 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>
Tholish Mar 10, 2009, 04:31 PM Unzip this and paste it into your Text folder.
Ajidica Mar 10, 2009, 04:33 PM It looks like you have the AndPrereq and OrPrereq set up wrong.
jbryant Mar 10, 2009, 04:58 PM In what way?
Flintlock1415 Mar 10, 2009, 05:04 PM Make sure your grid definitions don't overlap another technology. You also have a comma on your button tag that needs removal.
<Button>,Art/Interface/Buttons/TechTree/DL1.dds</Button>
Should be
<Button>Art/Interface/Buttons/TechTree/DL1.dds</Button>
Make sure your button exists, also.
Ajidica Mar 10, 2009, 05:11 PM 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.
Tholish Mar 10, 2009, 05:18 PM 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.
Ajidica Mar 10, 2009, 05:37 PM 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)
jbryant Mar 10, 2009, 05:57 PM 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!
Ajidica Mar 10, 2009, 07:10 PM 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.
jbryant Mar 10, 2009, 07:17 PM Excuse my ignorance, what's IIRC?
jbryant Mar 10, 2009, 07:19 PM Also, what do you mean clear my custom assets, I've found the folder but no mygames directory.
Ajidica Mar 10, 2009, 07:31 PM 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.
jbryant Mar 10, 2009, 08:11 PM Oh I see. Hmmm, will it screw anything up if I delete stuff in the folder?
jbryant Mar 11, 2009, 01:30 PM 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?
jbryant Mar 11, 2009, 01:32 PM Oh I've cleared out the custom assets file but it looks like it didn't fix it.
jbryant Mar 11, 2009, 01:34 PM 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.
|
|