Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Lz77 compression, SD0 Archive Gundam Ghiren

Featured Replies

  • Author
  • Localization

lsaint, posted Sat Oct 22, 2016 9:15 pm (18258)


One final question,

I'm trying to program a re compresser/de comperessor

The C String at MEMORY_FILE10 binary is the Decompression Table right?
  • Author
  • Localization

aluigi, posted Sat Oct 22, 2016 9:31 pm (18262)


No, MEMORY_FILE10 is just the compiled x86 function, the executable code.
  • Author
  • Localization

lsaint, posted Sat Oct 22, 2016 9:37 pm (18264)


Ah thank you, so much to learn!
  • Author
  • Localization

lsaint, posted Mon Oct 24, 2016 5:37 pm (18313)


Hey,

is it impossible to reimport with this script due to it being chunked?
  • Author
  • Localization

aluigi, posted Mon Oct 24, 2016 7:23 pm (18316)


It's not possible to reimport the files because there is no recompression algorithm available.
  • Author
  • Localization

BlackDog, posted Mon Oct 24, 2016 8:25 pm (18318)


Quick question, aLuigi: would you share the source code used to compile that MEMORY_FILE10 DLL?
Did you have to implement the whole of what lsaint described in his long post?
  • Author
  • Localization

aluigi, posted Tue Oct 25, 2016 6:07 am (18326)


There is no source code.
That one is the original code taken from that tool you linked.
  • Author
  • Localization

Holdenbrawlfield, posted Tue Nov 01, 2016 3:21 pm (18510)


Hi,

I'm looking into this game also, and apparently there are RIFF files in one of the archives
and the current script stops when it see's them. I've uploaded an example

https://mega.nz/#!DJlVgTiZ!LixZ0EKDXcPh ... wOrFto1kLI

Can you do an update?

also, what exact kind of compression is it? I've read the thread and the OP's post is hard to follow.
It appears to be some kind of variant of Lz77?
  • Author
  • Localization

aluigi, posted Tue Nov 01, 2016 4:59 pm (18511)


Script 0.1.2
  • Author
  • Localization

lsaint, posted Tue Nov 08, 2016 2:02 am (18646)


ahh finally!

So here is the binary Luigi dumped, translated into a working program in C.

right now it can only handle single files.

now on to the long road to figuring out re-compression.

decompress.c

  • Author
  • Localization

aluigi, posted Tue Nov 08, 2016 5:01 pm (18653)


Well done, less work for me when I will add it natively in quickbms :D
  • Author
  • Localization

lsaint, posted Tue Nov 08, 2016 6:02 pm (18656)


Glad I could be of some assistance!

do you have any tips about understanding re compression?
  • Author
  • Localization

aluigi, posted Wed Nov 09, 2016 11:03 am (18669)


I suggest you to post on http://encode.ru, they can write a compressor on the fly.
  • Author
  • Localization

lsaint, posted Wed Nov 16, 2016 10:18 pm (18874)


Hey,

Thanks for the help luigi and the guys at encode.ru! I have now achieved semi working compression....it's larger than the original but can be decompressed by the girenaxv program. It appears there is another compression on top of the lz and the rle: it avoids using markers for repeated literals. I haven't figured it out yet.

but if anyone is interested I'm attaching my test program....

slow and steady

compressed.rar

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.