(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
05-15-24 05:47 AM
0 users currently in ROM Hacking.
Acmlm's Board - I3 Archive - ROM Hacking - Anyone know a program that can decompress an entire rom file and recompress?
  
User name:
Password:
Reply:
 
Options: - -
Quik-Attach:
Preview for more options

Max size 1.00 MB, types: png, gif, jpg, txt, zip, rar, tar, gz, 7z, ace, mp3, ogg, mid, ips, bz2, lzh, psd

UserPost
Guardian
Posts: 14/28
Actually no. I'm working on a genesis rom .bin file.
JLukas
Posts: 18/20
Assuming you are using a program like Lunar Compress: It sounds like the problem you are having is that your newly edited graphics, when compressed, are larger than the original packet. As a result, when you reinsert, the data overwrites something else.

If you are instead doing all this manually in a hex editor, you must be sure the data you put in doesn't shift any of the following data.

Let's say you have an original title screen graphic at:

$10000-$10FFF

In other words, the compressed data is $1000 bytes.

You decompress, edit, and recompress. The new file is only $500 bytes. You insert it back to the $10000 starting offset.

If you were to load the game, it will crash, as all the data following that compressed packet will have been shifted since there is $500 bytes missing. What you want to do is "pad" the now unsed space from $10500-$10FFF with $00 values.

Now load up the game, and it should work.

But what if your recompressed data was larger than the original? Ex: $1500 bytes. In that case you have to relocate it to a spot that can fit it, and change the pointer to match.
Guardian
Posts: 13/28
I've tried all I could working with hex editors to reinsert compressed art back into a rom. It never seems to load up. I've like given up on this. The best thing to do would be to decompress the entire rom, work on it in tile layer pro, and then re-compress it again. Is there any program that enables me to accomplish this?
Acmlm's Board - I3 Archive - ROM Hacking - Anyone know a program that can decompress an entire rom file and recompress?


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.012 seconds; used 348.80 kB (max 381.30 kB)