(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 12:26 PM
0 users currently in ROM Hacking.
Acmlm's Board - I3 Archive - ROM Hacking - Compressed SNES Graphics Question
  
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
GlitchCog
Posts: 6/29
Yeah, my ROM file has a header. I noticed that I was using the wrong hex address before anyway, but the correct one both with and without the 0x200 added on for the header didn't work any better.

With this command line:
Decomp.exe smk.smc test.bin 4137F 5 0
this is the output I get:
DLL Version 1.60
Data Format 5
Data Format 2 0
Source Offset 4137F
Compressed Size 9F
Uncompressed Size 200


And with this command line:
Decomp.exe smk.smc test.bin 4157F 5 0
I get:
DLL Version 1.60
Data Format 5
Data Format 2 0
Source Offset 4157F
Compressed Size E1
Uncompressed Size 1D0


Neither of which seem to have any graphic data in them.

-------------------
Edit: I figured out what I was doing wrong. The data format the graphics are compressed with is "LC_LZ5," which is "4" in the syntax, not "5." The syntax used is one less than the number assigned to the type of compression.
d4s
Posts: 31/98
does your rom have a 0x200 byte header? you may have to adjust the start adress to obtain the correct adress if it has one.

i dont remember if the adresses in my doc are for a headerless rom or not, but my guess is they are because i hate backup unit headers.
GlitchCog
Posts: 5/29
So if I use Lunar Compress with LC_LZ5 for Super Mario Kart, I should be able to edit the compressed graphics it outputs, right? I can't seem to get it to work.

According to d4s's documentation, the sniffed out location for some Mario Circuit graphics is:

palettes(mcpal.bin):
Compressed Structure #309 Info...
Start Address: 4137F
End Address: 41513
Compressed Size: 194
Uncompressed Size: 200
Combo File Address: FDD90
0x00: mario circuit #1
0x20: mario circuit #2
0x40: turbo arrows and ramps
0x60: hud(time and position)
0x80: mario circuit bg scrollplane #1
0xa0: colored standard-blocks
0xc0: mario circuit bg scrollplane #2
0xe0: coins
0x100: yoshi & bowser
0x120: mario & toad
0x140: koopa & luigi
0x160: princess & dk jr.
0x180: starting lights & hud(coins & cars)
0x1a0: lakito
0x1c0: crash & collected coins
0x1e0: sandtrail & tubes


So, based on that Start Address, this command line:
Decomp.exe smk.smc test.bin 4137F 5 0
should give me a file called test.bin that I can open and edit in a tile editing program, but it doesn't.

What am I doing wrong? Thanks.
Raccoon Sam
Posts: 234/1040
Lunar Compress
GlitchCog
Posts: 4/29
Can anybody tell me how to edit map tiles in Super Mario Kart? Since they don't show up in any tile editing programs I assume they're compressed, so I guess my question is how do I go about uncompressing them for editing. Thanks.
Acmlm's Board - I3 Archive - ROM Hacking - Compressed SNES Graphics Question


ABII

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

Page rendered in 0.004 seconds; used 350.98 kB (max 386.55 kB)