News:

Don't forget to visit the main site! There's lots of helpful docs, patches, and more!

Main Menu

[SM] How to use the MultiCRE patch?

Started by dewhi100, June 16, 2018, 11:17:21 PM

Previous topic - Next topic

dewhi100

After applying Scyzer's MultiCRE patch, the graphics in my ROM go haywire. My best guess is that the values given in the patch aren't configured for vanilla SM.

CRESetPointers: DW CR00,CR01,CR02 ;To add more CREs, just add more entries here.
CR00: DL $B9A09D,$B98000
CR01: DL $B9A09D,$B98000
CR02: DL $B9A09D,$B98000


What do these entries correspond to, and what values should they be set to for vanilla compatability?

Mettyk25jigsaw

First of all, after applying the patch, you need to change first byte in rom at pc address 000000 from 00 to 01 the next 3 bytes is a pointer to address B88000, so put the 2nd byte in rom as 00 3rd as 80 and fourth as B8, so it gets pointed to B88000, noting that the emulator doesn't need this to play but smile needs it to load the gfx, so optionally you can place it back to all 00's when you release the game, doesn't really matter though if you do or don't...Also if you have placed the data at B88000 at a different place, you need to change the pointer at 2nd 3rd and 4th byte accordingly...

Next is a big issue, it's called a major bug in patch if you are going to use it on a vanilla rom...The bug is after loading the game in smile, it will load fine, but once you enter the map, the gfx is once again screwed when you exit the map...

However I happen to be trying to find a fix to this at the moment by trying a few things. I have currently pinpointed the area in question and completely eradicated the bug, but it needs refining because it causes another big issue which I am currently trying to redicure...Will contact you if I am able to figure it out...

dewhi100

I should have clarified that the messed up graphics show up in the emulator. Quickmet is indeed fine although I have not tried replication of what you suggested. It sounds like quickmet knows how to load the proper graphics, but that the ROM itself does not.

Is this a big with existing code in the patch, or is it simply not being called in all the places it needs to be? Is think that would simply result in vanilla CRE being used...