Points of Required Attention™
Smaghetti, a new Super Mario Advance 4 editor, is currently in development! Check out the thread HERE!

Please chime in on a proposed restructuring of the ROM hacking sections.
Views: 88,313,890
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search 03-28-24 07:30 PM
Guest: Register | Login

0 users currently in ROM Hacking | 1 guest

Main - ROM Hacking - Pb with Lunar Decompression algorythm. New thread | New reply


midwife
Posted on 05-22-08 03:57 PM Link | Quote | ID: 84040

Newcomer
Level: 8

Posts: 4/7
EXP: 1463
Next: 724

Since: 02-24-07

Last post: 5545 days
Last view: 5518 days
Hi !

Writing a C# code for decompressing Super Mario Kart data, I've a pb with the last byte of my decompressed data. I explain :
- 2nd decompression of tracks data works fine,
- 1st decompression of tracks data works fine too...

but !

when I use the same algorythm to decompress tileset, background, colorpalette and so, the last byte is wrong.

I can't handle this.

anyone could help ?

I've seen SMKDan co/decompression algo and use it.

thanks !

blackhole89
Posted on 05-22-08 04:06 PM Link | Quote | ID: 84041


The Guardian
Moloch whose eyes are a thousand blind windows!
Level: 124

Posts: 1672/4196
EXP: 21483824
Next: 352777

Since: 02-19-07
From: Ithaca, NY, US

Last post: 442 days
Last view: 55 days



So how is this related to SMW?

Moving to ROM Hacking.

____________________



Stifu
Posted on 05-22-08 09:39 PM Link | Quote | ID: 84050


Cobrat
Level: 56

Posts: 245/666
EXP: 1358186
Next: 39990

Since: 02-22-07

Last post: 657 days
Last view: 279 days
For the record, Midwife figured it out and solved the problem.
There's still one last problem standing, though: decompressing "badly-built" data (blocks that aren't properly delimited with an FF).

midwife
Posted on 05-23-08 10:16 AM Link | Quote | ID: 84062

Newcomer
Level: 8

Posts: 5/7
EXP: 1463
Next: 724

Since: 02-24-07

Last post: 5545 days
Last view: 5518 days
Yeah ! that's done !

Open Source data coming ASAP !


Stifu
Posted on 05-24-08 04:28 PM Link | Quote | ID: 84107


Cobrat
Level: 56

Posts: 246/666
EXP: 1358186
Next: 39990

Since: 02-22-07

Last post: 657 days
Last view: 279 days
Stupid question, as I'm out of touch with the ROM hacking community: has some kind of replacement for Lunar Compress showed up at all lately?
I'm asking because I was considering reusing our compression/decompression code of Epic Edit to make an open-source alternative to Lunar Compress (but which would only support one type of compression for now)... and which would actually have a GUI, so no command line needed.

midwife
Posted on 05-25-08 03:57 PM Link | Quote | ID: 84141

Newcomer
Level: 8

Posts: 6/7
EXP: 1463
Next: 724

Since: 02-24-07

Last post: 5545 days
Last view: 5518 days
Stifu, if someone knows how to implement more types of compression, the open source will develop quickly. This alternative could be a great tool for upcoming developpers !

Stifu
Posted on 05-25-08 04:17 PM Link | Quote | ID: 84147


Cobrat
Level: 56

Posts: 247/666
EXP: 1358186
Next: 39990

Since: 02-22-07

Last post: 657 days
Last view: 279 days
Assuming people care in the first place. :p

Arbe
Posted on 05-25-08 04:17 PM Link | Quote | ID: 84148

go away
Level: 86

Posts: 837/1788
EXP: 5973672
Next: 168435

Since: 02-23-07

Last post: 4940 days
Last view: 1509 days
HEY STIFU REMEMBER DON????

Stifu
Posted on 05-25-08 04:56 PM Link | Quote | ID: 84149


Cobrat
Level: 56

Posts: 248/666
EXP: 1358186
Next: 39990

Since: 02-22-07

Last post: 657 days
Last view: 279 days
Huh, that was random.
I'm still in touch with Don Miguel.

Arbe
Posted on 05-25-08 04:57 PM Link | Quote | ID: 84150

go away
Level: 86

Posts: 838/1788
EXP: 5973672
Next: 168435

Since: 02-23-07

Last post: 4940 days
Last view: 1509 days
Posted by Stifu
Huh, that was random.
I'm still in touch with Don Miguel.


Oh wow. No way. I thought the russian police killed him or something.

MathOnNapkins
Posted on 05-25-08 10:29 PM (rev. 2 of 05-25-08 10:31 PM) Link | Quote | ID: 84168


Super Koopa
Level: 62

Posts: 426/842
EXP: 1931093
Next: 53593

Since: 02-19-07
From: durff

Last post: 4459 days
Last view: 3983 days
Posted by Stifu
Stupid question, as I'm out of touch with the ROM hacking community: has some kind of replacement for Lunar Compress showed up at all lately?
I'm asking because I was considering reusing our compression/decompression code of Epic Edit to make an open-source alternative to Lunar Compress (but which would only support one type of compression for now)... and which would actually have a GUI, so no command line needed.


Disch has created a small compression library for a handful of games that works very well. I was able to adapt it to Link to the Past with minimal hassle. I guess it would depend upon the nature of the compression, but if it's SMK, that means it's likely to have a similar format since it's Nintendo first party.

The library is in C++ and it performs pretty well, achieving better compression than the original games in most cases. But you'll likely have to configure a new .cpp file (and class) for use with SMK.

____________________
Zelda Hacking Forum
hobbies: delectatio morosa

Stifu
Posted on 05-25-08 10:48 PM (rev. 2 of 05-25-08 10:51 PM) Link | Quote | ID: 84169


Cobrat
Level: 56

Posts: 249/666
EXP: 1358186
Next: 39990

Since: 02-22-07

Last post: 657 days
Last view: 279 days
Thanks, MoN.
Actually, we implemented 2 types of compression, the first one being the one referred to as LZ or Lunar Compression (according to this page), used in other Nintendo games (including a Link to the Past). The second one is specifically for SMK tracks, and I don't know if it's used anywhere else.

A few little questions, though:

Where can I find this library by Disch? Is it open source?
Finally, do you know how well it compresses data compared to Lunar Compress (which also compresses better than the original games)? If not, I'll find out...

MathOnNapkins
Posted on 05-26-08 03:08 AM (rev. 2 of 05-26-08 03:08 AM) Link | Quote | ID: 84182


Super Koopa
Level: 62

Posts: 427/842
EXP: 1931093
Next: 53593

Since: 02-19-07
From: durff

Last post: 4459 days
Last view: 3983 days
http://www.romhacking.net/forum/index.php/topic,5444.0.html

I can also upload my modified version of the library if you want.

http://disch.arc-nova.org/compresch_rel2.zip <- the latest version that Disch has released, but does not include my changes.



____________________
Zelda Hacking Forum
hobbies: delectatio morosa

Stifu
Posted on 05-26-08 09:47 PM (rev. 2 of 05-28-08 12:42 PM) Link | Quote | ID: 84209


Cobrat
Level: 56

Posts: 250/666
EXP: 1358186
Next: 39990

Since: 02-22-07

Last post: 657 days
Last view: 279 days
Ugh, download link is dead. I'll look for it later then, at least I have the name now.
Thanks for your help.

Edit: but the second link works fine, so whatever.

Main - ROM Hacking - Pb with Lunar Decompression algorythm. New thread | New reply

Acmlmboard 2.1+4δ (2023-01-15)
© 2005-2023 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 0.025 seconds. (340KB of memory used)
MySQL - queries: 87, rows: 120/121, time: 0.018 seconds.