(27.12.2021 11:56)igrik Wrote: [ -> ]PHP Code:
char *__thiscall Battle_GetBackgroundPcxName(_BattleMgr_ *this)
{
battleMgr = this;
if ( this->ShootTowers <= 0 )
{
SpecialGround = this->Special_Ground;
if ( SpecialGround != -1 && SpecialGround )
{
result = SpecialGroundNames[SpecialGround];
}
else
{
HeroA = battleMgr->Hero[LEFT];
if ( HeroA
&& LODWORD(HeroA->vizitedFlags) & HF_IN_BOAT
&& (HeroD = battleMgr->Hero[RIGHT]) != 0
&& LODWORD(HeroD->vizitedFlags) & HF_IN_BOAT )
{
result = aCmbkboat_pcx;
}
else if ( battleMgr->isWaterBank )
{
result = aCmbkdeck_pcx;
}
else if ( SpecialGround )
{
result = BattlePcxNames[AdvMgr_GetBattlefieldTerrian(o_AdvMgr, battleMgr->mapPoint)
+ 2 * battleMgr->combatTerrain
+ battleMgr->combatTerrain];
}
else
{
result = aCmbkbch_pcx;
}
}
}
else
{
result = TownSiegeBackground[this->Town->type];
}
battleMgr->iCombatCycleType = 1;
battleMgr->combatFringe = -1;
return result;
}
thank you.
Now, I have modified most UI boxes
But the coordinates of the battlefield background picture are still not found


(28.12.2021 16:44)daemon_n Wrote: [ -> ]imswear, use bin patch https://tools.hmm35.ru/unc-to-bin/index.html
good
It worked
Get a new tool. A new world.
thank!










--------------------------------------
Looks like I made a mistake
My test is wrong
After entering the game map and returning to the main menu, it works.
This is still the effect of ERM.
When you first open the game, it is invalid.
I have only recently modified the game and have 10000 questions.
There may always be some stupid questions. Thank you for your patience.
--------------------------------------
Update again: done!
The previous mistake is that I put The bin file is in the wrong folder.
Thank you, daemon_ n
(28.12.2021 19:16)igrik Wrote: [ -> ] (28.12.2021 16:34)imswear Wrote: [ -> ]But the coordinates of the battlefield background picture are still not found

0x55D133
Although I haven't finished it all. But it does work. thank you
Such as this post
Battlefield image
(21.05.2020 00:32)XEPOMAHT Wrote: [ -> ]Если кто-то сможет перерисовать абсолютно все спрайты в игре, увеличив их размер в 1,5 раза по сравнению с текущими, тогда и окно боевого режима игры можно увеличить в 1,5 раза (по коду с этим проблем никаких нет, проблема - это отсутствие самой графики).
I just found out that I was doing something similar: trying to zoom in on the battlefield
But at present, it may be a huge project. Obviously, it is far beyond my ability
I wonder if there are any similar mod achievements or tutorials?
Is there anyone interested in it?
igrik, спасибо! Я из открытой базы этот код копировал, в закрытой у меня эта функция тоже есть.