BlueAmulet / EDFModLoader

Rudimentary ModLoader for Earth Defence Force 4.1, 5, and 6
MIT License
44 stars 8 forks source link

Making widescreen fix work as patch #2

Open haarp opened 3 years ago

haarp commented 3 years ago

Hello,

first off, thanks for making this, it's much nicer than editing binaries directly!

I'm trying to make the Widescreen fix work in this mod loader, but I'm not having much success. 1.0.5 is loaded and working. I cannot directly use Souzooka's offsets, right? By comparing your patches with their source material, the offsets appear to be incremented by 0xC00.

So I tried this:

EE58C4: float! 2.38888
60C17E: 42

Now this does seem to have the effect of hiding the character model preview in the menu and making the game crash once a mission starts. So clearly something is still wrong.

Any ideas? Thanks!

Kemui52 commented 1 month ago

I know I am very, very late to help, but for the sake of closure, the offset you should have used was +1800.

EDF 5:
      0 to  C957FF: +C00
 C95800 to 10E7DFF: +1800
10E7E00 to 11D15FF: +2200

Thus, the patch you wanted would be:

EE64C4: float! 2.38888

60C17E: 42 
4B30BC: 04 ; this prevents HUD stretching