BBTools icon indicating copy to clipboard operation
BBTools copied to clipboard

Question about resolution and redraw area.

Open barisusakli opened this issue 1 year ago • 3 comments

Hello,

I am interested in modifying beasts.exe in a hex editor to increase the resolution of the game from the original 640 x 480

I was able to modify it and increase the resolution by searching for 80020000E001 and replace the entire thing with 000500000004 to increase the resolution to 1280x1024.

This makes the play area bigger like this picture

I also moved the unit portraits with these

At offset 29714 replace 1C 02 with 9C 04 At offset 2972D replace 7C 01 with 9C 03.

The only problems I have left are the unit thought bubble (not critical) and sprites like houses and monsters sometimes disappear if they are outside the viewport and they come back. I am guessing there is some kind of clipping or frustum culling going on to increase performance. It looks like the below picture. It fixes itself if I open and close the main menu or if peasants move over these areas causing a redraw. So it feels like the engine isn't redrawing everything everywhere and only redrawing areas that needs to be updated.

bnb

Since you have disassembled the exe do you have any idea where this might be? Maybe there are other values of 640 x 480 that needs to be changed to increase the clipping area.

Thanks for the great tools 👍🏼

barisusakli avatar Jun 30 '23 21:06 barisusakli