Merkava120
Oberleutnant
So, I have been fighting a ctd on the first city found for a few days now, and I finally isolated the thing that's causing it. I just have no idea why it would be.
The crash happens when these two things happen:
1. A civilization is given TECH_USA (a disabled dummy tech, given to the Americans in this mod). This can be a free tech, given through worldbuilder, researched, whatever - it causes the crash no matter which way they get it.
2. The civ builds a city.
If the civ has the tech, but doesn't build a city, the game goes along fine and dandy. If the civ doesn't have the tech, they can build a dozen cities and everything's fine and dandy. But if they have the tech, as soon as the first city is built, the game freezes and CTD.
Nothing else causes the crash; I took out my python and DLL and ran it alone, and it still crashed with the tech and was fine without it.
I am totally lost. Is there a way a technology can cause the game to crash, but only on the building of a city??
The technology's xml is below in the spoiler.
<TechInfo>
<Type>TECH_USA</Type>
<Description>Murica</Description>
<Civilopedia>what's a civilopedia? like a wikipedia for civilians...???</Civilopedia>
<Help/>
<Strategy>Just a dummy tech for the US troops.</Strategy>
<Advisor>ADVISOR_RELIGION</Advisor>
<iAIWeight>0</iAIWeight>
<iAITradeModifier>0</iAITradeModifier>
<iCost>1</iCost>
<iAdvancedStartCost>100000</iAdvancedStartCost>
<iAdvancedStartCostIncrease>0</iAdvancedStartCostIncrease>
<Era>ERA_ANCIENT</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>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>-1</iGridY>
<DomainExtraMoves/>
<CommerceFlexible/>
<TerrainTrades/>
<bRiverTrade>0</bRiverTrade>
<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>"This is not a researchable tech." - Merkava120</Quote>
<Sound>AS2D_TECH_MYSTICISM</Sound>
<SoundMP>AS2D_TECH_MP_MYSTICISM</SoundMP>
<Button>,Art/Interface/Buttons/TechTree/Mysticism.dds,Art/Interface/Buttons/TechTree_Atlas.dds,4,11</Button>
</TechInfo>
The crash happens when these two things happen:
1. A civilization is given TECH_USA (a disabled dummy tech, given to the Americans in this mod). This can be a free tech, given through worldbuilder, researched, whatever - it causes the crash no matter which way they get it.
2. The civ builds a city.
If the civ has the tech, but doesn't build a city, the game goes along fine and dandy. If the civ doesn't have the tech, they can build a dozen cities and everything's fine and dandy. But if they have the tech, as soon as the first city is built, the game freezes and CTD.
Nothing else causes the crash; I took out my python and DLL and ran it alone, and it still crashed with the tech and was fine without it.
I am totally lost. Is there a way a technology can cause the game to crash, but only on the building of a city??
The technology's xml is below in the spoiler.
Spoiler :
<TechInfo>
<Type>TECH_USA</Type>
<Description>Murica</Description>
<Civilopedia>what's a civilopedia? like a wikipedia for civilians...???</Civilopedia>
<Help/>
<Strategy>Just a dummy tech for the US troops.</Strategy>
<Advisor>ADVISOR_RELIGION</Advisor>
<iAIWeight>0</iAIWeight>
<iAITradeModifier>0</iAITradeModifier>
<iCost>1</iCost>
<iAdvancedStartCost>100000</iAdvancedStartCost>
<iAdvancedStartCostIncrease>0</iAdvancedStartCostIncrease>
<Era>ERA_ANCIENT</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>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>-1</iGridY>
<DomainExtraMoves/>
<CommerceFlexible/>
<TerrainTrades/>
<bRiverTrade>0</bRiverTrade>
<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>"This is not a researchable tech." - Merkava120</Quote>
<Sound>AS2D_TECH_MYSTICISM</Sound>
<SoundMP>AS2D_TECH_MP_MYSTICISM</SoundMP>
<Button>,Art/Interface/Buttons/TechTree/Mysticism.dds,Art/Interface/Buttons/TechTree_Atlas.dds,4,11</Button>
</TechInfo>