jenks
Prince
- Ive made new technologies for Era I Roanoke in
CIV4TechInfos.xml , basically by copying and pasting code from vanilla techs and changing the name.
- I spaced them where i want them on the F6 science screen using <iGridX> and <iGridY> (they look nice )
- changed the icons for the techs
- changed their cost to scale upwards
- put them all in the ancient era
- changed all references to match them in other files (buildings, units, improvements etc.)
- assigned text keys in CIV4GameTextInfos_Tech.xml to read the tech names and pedia data
But I cant seem to get the prerequisites to work right or at all, ive tried using both the And and the OR but neither work. Does the AI need weighting for this to work? Is this what <iAsset> and <iPower> are for?
None of my techs are currently linked, and this lump of code ive been playing with (for my Science 1 tech, should require Energy 1) seems to get a completely different result to what is intended. Using the Or function it makes a line appear on the science screen and shows (the later and not related) Military 2 tech to require Energy 1, though there are no prerequisites declared in that tech. Using the And appears to do the same, only doesnt draw a line.
Anyone have any idea what is going on ?
CIV4TechInfos.xml , basically by copying and pasting code from vanilla techs and changing the name.
- I spaced them where i want them on the F6 science screen using <iGridX> and <iGridY> (they look nice )
- changed the icons for the techs
- changed their cost to scale upwards
- put them all in the ancient era
- changed all references to match them in other files (buildings, units, improvements etc.)
- assigned text keys in CIV4GameTextInfos_Tech.xml to read the tech names and pedia data
But I cant seem to get the prerequisites to work right or at all, ive tried using both the And and the OR but neither work. Does the AI need weighting for this to work? Is this what <iAsset> and <iPower> are for?
None of my techs are currently linked, and this lump of code ive been playing with (for my Science 1 tech, should require Energy 1) seems to get a completely different result to what is intended. Using the Or function it makes a line appear on the science screen and shows (the later and not related) Military 2 tech to require Energy 1, though there are no prerequisites declared in that tech. Using the And appears to do the same, only doesnt draw a line.
Code:
<TechInfo>
<Type>TECH_SCIENCE_1</Type>
<Description>TXT_KEY_TECH_SCIENCE_1</Description>
<Civilopedia>TXT_KEY_TECH_SCIENCE_1_PEDIA</Civilopedia>
<Help/>
<Strategy>TXT_KEY_TECH_SCIENCE_1_STRATEGY</Strategy>
<Advisor>ADVISOR_SCIENCE</Advisor>
<iAIWeight>0</iAIWeight>
<iAITradeModifier>0</iAITradeModifier>
<iCost>100</iCost>
<Era>ERA_ANCIENT</Era>
<FirstFreeUnitClass>NONE</FirstFreeUnitClass>
<iWorkerSpeedModifier>0</iWorkerSpeedModifier>
<iTradeRoutes>0</iTradeRoutes>
<iHealth>0</iHealth>
<iHappiness>0</iHappiness>
<iFirstFreeTechs>1</iFirstFreeTechs>
<iAsset>6</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>
<bBridgeBuilding>0</bBridgeBuilding>
<bIrrigation>0</bIrrigation>
<bIgnoreIrrigation>0</bIgnoreIrrigation>
<bWaterWork>0</bWaterWork>
<iGridX>2</iGridX>
<iGridY>2</iGridY>
<DomainExtraMoves/>
<CommerceFlexible/>
<TerrainTrades/>
<Flavors>
<Flavor>
<FlavorType>FLAVOR_SCIENCE</FlavorType>
<iFlavor>10</iFlavor>
</Flavor>
</Flavors>
<OrPreReqs>
<PrereqTech>TECH_ENERGY_1</PrereqTech>
</OrPreReqs>
<AndPreReqs/>
<Quote>TXT_KEY_TECH_SCIENCE_1_QUOTE</Quote>
<Sound/>
<SoundMP/>
<Button>,Art/Interface/Buttons/TechTree/Networks.dds</Button>
</TechInfo>
Anyone have any idea what is going on ?