GAME INFORMATION
- GAME BUILD #: 39346
- GAME PLATFORM: Steam
- OPERATING SYSTEM: Windows 10
ISSUE EXPERIENCED
The ProtoUnit ‘cWallGate’ is missing from the Aztec, Inca, Chinese, Japanese, and Indian data in techtreey.xml. This is not a pertinent issue for human players as they can click the button that builds gates in walls. However, in trying to get the AI to build walls, they cannot build the gate unless this line of code is included in their Age0 techs.
<effect type="Data" amount="1.00" subtype="Enable" relativity="Absolute">
<target type="ProtoUnit">CWallGate</target>
</effect>
This code is possessed by all Age0 techs (for example the first is ‘Age0French’), except by the civs that were mentioned.
This same issue existed in legacy, but not for the Lakota. Since they were granted access to walls with the introduction of DE, the transition of adding the various wall ProtoUnits to their respective Age0 tech included ‘cWallGate’, so the issue is no longer existent for them.
FREQUENCY OF ISSUE
Always.
REPRODUCTION STEPS
- Enable the rule ‘delayWalls’ in aiMain.xs. Make sure to backup original file.
- Play a game with one of the civs mentioned that lack the gate.
- They will construct walls but no gates will be built.
EXPECTED RESULT
All AI able to construct gates once the appropriate code has been added.
IMAGE
Age0French code snippet:
...
<effect type="Data" amount="1.00" subtype="Enable" relativity="Absolute">
<target type="ProtoUnit">Skirmisher</target>
</effect>
// cWallGate exists for the French.
<effect type="Data" amount="1.00" subtype="Enable" relativity="Absolute">
<target type="ProtoUnit">CWallGate</target>
</effect>
<effect type="Data" amount="1.00" subtype="Enable" relativity="Absolute">
<target type="ProtoUnit">LivestockPen</target>
</effect>
<effect type="Data" amount="1.00" subtype="Enable" relativity="Absolute">
<target type="ProtoUnit">Church</target>
</effect>
<effect type="Data" amount="1.00" subtype="Enable" relativity="Absolute">
<target type="ProtoUnit">WallStraight2</target>
</effect>
<effect type="Data" amount="1.00" subtype="Enable" relativity="Absolute">
<target type="ProtoUnit">WallStraight5</target>
</effect>
<effect type="Data" amount="1.00" subtype="Enable" relativity="Absolute">
<target type="ProtoUnit">WallConnector</target>
</effect>
<effect type="Data" amount="1.00" subtype="Enable" relativity="Absolute">
<target type="ProtoUnit">Pikeman</target>
</effect>
<effect type="Data" amount="1.00" subtype="Enable" relativity="Absolute">
<target type="ProtoUnit">Crossbowman</target>
</effect>
...
DEAge0Inca code snippet:
<effect type="Data" amount="1.00" subtype="Enable" relativity="Absolute">
<target type="ProtoUnit">Market</target>
</effect>
<effect type="Data" amount="1.00" subtype="Enable" relativity="Absolute">
<target type="ProtoUnit">deKallanka</target>
</effect>
<effect type="Data" amount="1.00" subtype="Enable" relativity="Absolute">
<target type="ProtoUnit">deIncaStronghold</target>
</effect>
// As you can see, Wall ProtonUnits exist but cWallGate is absent.
<effect type="Data" amount="1.00" subtype="Enable" relativity="Absolute">
<target type="ProtoUnit">WallConnector</target>
</effect>
<effect type="Data" amount="1.00" subtype="Enable" relativity="Absolute">
<target type="ProtoUnit">WallStraight2</target>
</effect>
<effect type="Data" amount="1.00" subtype="Enable" relativity="Absolute">
<target type="ProtoUnit">WallStraight5</target>
</effect>
<effect type="Data" amount="1.00" subtype="Enable" relativity="Absolute">
<target type="ProtoUnit">SettlerNative</target>
</effect>
<effect type="Data" amount="1.00" subtype="Enable" relativity="Absolute">
<target type="ProtoUnit">Llama</target>
</effect>