Sorry. It took me all of 10 hours just to find the right pak and quest file. Every time I thought I had found the right line, I had to start over. (That’s why I ended up deleting all 3 Game Over condition and both lines with “battleLost”. Otherwise I probably only needed to edit a single condition to fix the bug, instead of deleting the Game Over conditions.
Okay, I can think of one way to add more soldiers to battles. You could copy-paste existing soldiers from the xml file and let them spawn at the same coordinates as the originals. The game’s collission-boxes should then force them apart automatically.
The following code specifies the type and nicknames of some of the squads in the battle:
<SuppressFailure>
<Sequence>
<Expression expressions="'$t_category = ´main´,'" />
<IncludeTree File="'quests/q_pribBattle.xml'" Name="'battle_indexedGraphSearch'" nodeLabel="60535784" />
<VarOperation varName="'t_output'" targetVarName="'cumanMainSquads'" operation="'Copy'" argument="''" />
</Sequence>
</SuppressFailure>
<SuppressFailure>
<Sequence>
<Expression expressions="'$t_category = ´heavy´,'" />
<IncludeTree File="'quests/q_pribBattle.xml'" Name="'battle_indexedGraphSearch'" nodeLabel="76940015" />
<VarOperation varName="'t_output'" targetVarName="'cumanHeavySquads'" operation="'Copy'" argument="''" />
</Sequence>
</SuppressFailure>
<SuppressFailure>
<Sequence>
<Expression expressions="'$t_category = ´bow´,'" />
<IncludeTree File="'quests/q_pribBattle.xml'" Name="'battle_indexedGraphSearch'" nodeLabel="76569998" />
<VarOperation varName="'t_output'" targetVarName="'cumanBowSquads'" operation="'Copy'" argument="''" />
</Sequence>
</SuppressFailure>
<SuppressFailure>
<Sequence>
<Expression expressions="'$t_category = ´leader´,'" />
<IncludeTree File="'quests/q_pribBattle.xml'" Name="'battle_indexedGraphSearch'" nodeLabel="86508295" />
<VarOperation varName="'t_output'" targetVarName="'cumanLeaderSquads'" operation="'Copy'" argument="''" />
</Sequence>
</SuppressFailure>
This code says that ‘main’ is the nickname for “CumanMainSquads” and ‘bow’ is the nickname for cumanBowSquads.
The file (q_pribBattle.xml) contains lots of these ‘nicknames’ - Like ‘shield’ for ‘soldierShieldSquads’, etc.
The problem now is: How to increase the amount of soldiers in a battle? Well I did find the code I think is responsible for spawning soldiers (soldiers is a nickname for one of the allied squads in the battle). Do notice that there is a reference to the units nickname, followed by a bunch of coordinates. This is probably the start location of each ‘soldier’ in the battle):
<Sequence editorPosX="730" editorPosY="4180" isCollapsed="0" hasInputBreakpoint="0" comment="soldiers" breakpointFlags="0">
<OutputBreakpoints />
<Expression editorPosX="890" editorPosY="4180" isCollapsed="0" hasInputBreakpoint="0" comment="" breakpointFlags="0">
<OutputBreakpoints />
</Expression>
<SuppressFailure editorPosX="890" editorPosY="4260" isCollapsed="0" hasInputBreakpoint="0" comment="" breakpointFlags="0">
<OutputBreakpoints />
<Sequence editorPosX="1050" editorPosY="4260" isCollapsed="0" hasInputBreakpoint="0" comment="" breakpointFlags="0">
<OutputBreakpoints />
<Expression editorPosX="1190" editorPosY="4260" isCollapsed="0" hasInputBreakpoint="0" comment="" breakpointFlags="0">
<OutputBreakpoints />
</Expression>
<IncludeTree editorPosX="1190" editorPosY="4370" isCollapsed="0" hasInputBreakpoint="0" comment="" breakpointFlags="0">
<OutputBreakpoints />
</IncludeTree>
<VarOperation editorPosX="1190" editorPosY="4470" isCollapsed="0" hasInputBreakpoint="0" comment="" breakpointFlags="0">
<OutputBreakpoints />
</VarOperation>
</Sequence>
</SuppressFailure>
<SuppressFailure editorPosX="890" editorPosY="4580" isCollapsed="0" hasInputBreakpoint="0" comment="" breakpointFlags="0">
<OutputBreakpoints />
<Sequence editorPosX="1050" editorPosY="4580" isCollapsed="0" hasInputBreakpoint="0" comment="" breakpointFlags="0">
<OutputBreakpoints />
<Expression editorPosX="1190" editorPosY="4580" isCollapsed="0" hasInputBreakpoint="0" comment="" breakpointFlags="0">
<OutputBreakpoints />
</Expression>
<IncludeTree editorPosX="1190" editorPosY="4690" isCollapsed="0" hasInputBreakpoint="0" comment="" breakpointFlags="0">
<OutputBreakpoints />
</IncludeTree>
<VarOperation editorPosX="1190" editorPosY="4790" isCollapsed="0" hasInputBreakpoint="0" comment="" breakpointFlags="0">
<OutputBreakpoints />
</VarOperation>
</Sequence>
</SuppressFailure>
<SuppressFailure editorPosX="890" editorPosY="4890" isCollapsed="0" hasInputBreakpoint="0" comment="" breakpointFlags="0">
<OutputBreakpoints />
<Sequence editorPosX="1060" editorPosY="4890" isCollapsed="0" hasInputBreakpoint="0" comment="" breakpointFlags="0">
<OutputBreakpoints />
<Expression editorPosX="1190" editorPosY="4890" isCollapsed="0" hasInputBreakpoint="0" comment="" breakpointFlags="0">
<OutputBreakpoints />
</Expression>
<IncludeTree editorPosX="1190" editorPosY="5000" isCollapsed="0" hasInputBreakpoint="0" comment="" breakpointFlags="0">
<OutputBreakpoints />
</IncludeTree>
<VarOperation editorPosX="1190" editorPosY="5100" isCollapsed="0" hasInputBreakpoint="0" comment="" breakpointFlags="0">
<OutputBreakpoints />
</VarOperation>
</Sequence>
</SuppressFailure>
<SuppressFailure editorPosX="890" editorPosY="5200" isCollapsed="0" hasInputBreakpoint="0" comment="" breakpointFlags="0">
<OutputBreakpoints />
<Sequence editorPosX="1060" editorPosY="5200" isCollapsed="0" hasInputBreakpoint="0" comment="" breakpointFlags="0">
<OutputBreakpoints />
<Expression editorPosX="1190" editorPosY="5200" isCollapsed="0" hasInputBreakpoint="0" comment="" breakpointFlags="0">
<OutputBreakpoints />
</Expression>
<IncludeTree editorPosX="1190" editorPosY="5310" isCollapsed="0" hasInputBreakpoint="0" comment="" breakpointFlags="0">
<OutputBreakpoints />
</IncludeTree>
<VarOperation editorPosX="1190" editorPosY="5410" isCollapsed="0" hasInputBreakpoint="0" comment="" breakpointFlags="0">
<OutputBreakpoints />
</VarOperation>
</Sequence>
Notice that the first line mentions ‘soldiers’. Try and copy-paste the entire code block and see if the game now spawns twice the amount of soldiers.
Unfortunately you would have to manually guess which xml files contain the battles you want to ‘spice up’. Then you would have to locate the that spawns soldiers. So good luck and let me know if you try it out.