Jump to content

General MM hacking (perfected scene/map extractor inside!)


Twili
 Share

Recommended Posts

UPDATED THE LINKS TO FIX A MINOR ISSUE.

 

What makes this one perfect is that the previous one, while getting the correct scene names, didn't eliminate unnecessary parts. For example, the old one would have extracted "Z2_22DEKUCITY_scene.zscene" while this new one extracts it as "dekucity_scene.zscene." It eliminates the Z2_ prefix and any numbers that are before the actual descriptor and makes it lowercase. The text document this generates now lists the offsets of all of the scenes and maps labeled like the extracted files, minus the .zscene/.zmap part.

 

Scene/map extractor source (platform-independent): http://pastebin.com/HKYY1dKM
Scene/map extractor Windows EXEcutable: http://www.mediafire.com/download/i9vgc19c70u0v1w/names.exe

 

NEW! Overlay extractor: http://www.mediafire.com/download/qkvp28shbdj1ah9/ovlnames.zip

Contains ovlnames.c (the source), ovlnames.exe (Windows EXEcutable), and table.bin.

 

To run the programs, just put them in the same folder as a JAPANESE DECOMPRESSED ROM and double-click them. The ROM must be named zelmujka.z64. ovlnames.exe needs the table.bin to generate the filenames. The scene/map extractor will in addition to the .zscene and .zmap files make a text document called romoffsets.txt, and ovlnames.exe will make ovlromoffsets.txt.

  • Like 3
Link to comment
Share on other sites

This:

 

 

else if(a<57){fseek(rom,1,SEEK_CUR);}

 

should be changed to

 

 

else if(a<58){fseek(rom,1,SEEK_CUR);if(a==56){fseek(rom,-1,SEEK_CUR);}}

 

This is a hack to fix the issue of "Z2_8ITEMSHOP" being gotten as "temshop" instead of "itemshop" due to this scene name being an exception to the number rule, having only one digit.

 

And does anyone want two more extractors to get the overlays and objects with names? They'll come with external files, one with the overlay names taken from the MM debug rom and the other with names I think the objects would have since the debug rom lacks names for them.

Link to comment
Share on other sites

 

And does anyone want two more extractors to get the overlays and objects with names? They'll come with external files, one with the overlay names taken from the MM debug rom and the other with names I think the objects would have since the debug rom lacks names for them.

This would be most appreciated if you can do so.

Link to comment
Share on other sites

 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.