sonicretro / mania-mod-loader

Mod loader for Mania.
44 stars 6 forks source link

Dynamic file patching? #11

Open MainMemory opened 6 years ago

MainMemory commented 6 years ago

One of the problems people often have with mods is when a mod made for an older version of the game includes a modified static object file (usually Player). Perhaps there could be some system within the mod loader where a mod can tell the loader that it wants to change Sonic's palette, and the mod loader would know where that is supposed to be in the file and create a patched version of the file in a temporary folder.

stahpittgetzomehelp commented 6 years ago

can you explain how to fix this issue exactly as i am playing a star light zone mod and it gives me the same problem. is it possible if you can explain how to fix the issue?

MainMemory commented 6 years ago

Take the file from the game's RSDK archive and apply the same changes that were applied to the file in the mod.

stahpittgetzomehelp commented 6 years ago

so i basically open the rsdk file with the rsdkv5 extractor and modify the mod's file's contents into the rsdk?

stahpittgetzomehelp commented 6 years ago

this is my first time downloading mods for sonic mania

stahpittgetzomehelp commented 6 years ago

so correct me if i'm wrong

MainMemory commented 6 years ago

You have to examine the mod's file in a hex editor, compare it to the original file for the version of Mania it was made for, and then compare that version's file with your version's file to see where the data was moved to, and copy the changes over.

stahpittgetzomehelp commented 6 years ago

one question do i have to check the "savedata.bin" file and copy the changes or do something else?

MainMemory commented 6 years ago

This has nothing to do with savedata.bin.

stahpittgetzomehelp commented 6 years ago

oh.