45°38'N-13°47'E
Deity
Ok, here we go with another OOS; this time it's combat-related. I haven't imported TB Combat Mod in AND, so we can be sure that there's something causing OOS errors in combat situation and it's outside of Combat Mod (of course there could be OOS caused by Combat Mod, but even if all of them can be solved there are still some of them in the previous code).
against
OOS Logs show
against
this leads me to
void CvUnit::resolveCombat(CvUnit* ...
and particularly to a part of the code which is similar in AND and C2C; this is AND version
TB Combat MOD changed this part of the code but the common part which could cause troubles I suppose might be
or
I haven't had a chance to get further, but I'm still looking into it.
Code:
63365 230 Global Combat 1000 915
against
Code:
63365 230 Global Withdrawal 100 91
OOS Logs show
Code:
Player 0, Unit ID: 147467, Heavy Swordsman 1 (Rostov)
X: 74, Y: 40
[COLOR="Red"]Damage: 32[/COLOR]
Experience: 0
Level: 1
Promotions:
[COLOR="Red"]City Raider I[/COLOR]
against
Code:
Player 0, Unit ID: 147467, Heavy Swordsman 1 (Rostov)
X: 74, Y: 40
[COLOR="Red"]Damage: 30[/COLOR]
Experience: 0
Level: 1
Promotions:
this leads me to
void CvUnit::resolveCombat(CvUnit* ...
and particularly to a part of the code which is similar in AND and C2C; this is AND version
Code:
if (GC.getGameINLINE().getSorenRandNum(GC.getCOMBAT_DIE_SIDES(), "Combat") < iDefenderOdds)
/************************************************************************************************/
/* BETTER_BTS_AI_MOD END */
/************************************************************************************************/
{
if (getCombatFirstStrikes() == 0)
{
if (getDamage() + iAttackerDamage >= maxHitPoints() && GC.getGameINLINE().getSorenRandNum(100, "Withdrawal") < withdrawalProbability())
{
TB Combat MOD changed this part of the code but the common part which could cause troubles I suppose might be
Code:
GC.getGameINLINE().getSorenRandNum(GC.getCOMBAT_DIE_SIDES()
or
Code:
iDefenderOdds
I haven't had a chance to get further, but I'm still looking into it.