UnofficialCrusaderPatch / UnofficialCrusaderPatch2

Unofficial balancing patch installer for Stronghold Crusader 1
MIT License
429 stars 59 forks source link

repairing allies damaged buildings #881

Open lycanthropyinc opened 3 years ago

lycanthropyinc commented 3 years ago

Despite installing patch and having checked fixing bugs with AIs repairing buildings still I'm unable to repair my allies' towers and gates as he is reluctant to do so. I'm using Stronghold Crusader v. 1.3.

LordDerMoff commented 3 years ago

As I remember correctly, the UCP doesn't include the ability to repair damage done to allied buildings. The AI will fix destroyed towers, but won't repair them if they are only damaged.

LeSpec commented 3 years ago

The patch supports 1.41 and 1.41 extreme, no guarantee it will work with 1.3. Being able to repair allies' towers would be new, but is easy to implement. Just change the byte at 0x466344 (v 1.41) from 0x74 to 0xEB.

lycanthropyinc commented 3 years ago

Actually the game intends to give a player an opportunity to repair his allies' buildings - when you select them on the map, the "repair" button is visible and highlighted just as in player's buildings, but you're unable to press it.