News: Vincentmrl's Mac can make origami out of hamburga french fry. Don't ask how.

Main Menu

Reverse engineering

Started by cows, March 04, 2017, 01:47:07 AM

0 Members and 2 Guests are viewing this topic.

Voka~Daemyn

Yay nice progress :D. Again I'm happy to see this stuff even if I only barely understand some of it my self.
Klonoa DtP Playthrough : http://www.youtube.com/playlist?list=PLzi0N7-iVFsUr0N84a42yBM92o5VV0P2w
http://bandainamcoent.co.jp/cs/list/klonoa/relay-essay/essay-11.html

[img width=267 height=150]https://i.gyazo.com/f762966ecd6652e9cdbf348b1967e3c8.png[/img]
Sorry but you are not allowed to view spoiler contents.

cows

So I totally dropped of the face of the earth for a month. I haven't been able to find time to make any real progress on this, but I've got another project that should be finishing soon which might give me a bit more free time.

Voka~Daemyn

Ah ok. I hope things are ok and that your other project goes smoothly
Klonoa DtP Playthrough : http://www.youtube.com/playlist?list=PLzi0N7-iVFsUr0N84a42yBM92o5VV0P2w
http://bandainamcoent.co.jp/cs/list/klonoa/relay-essay/essay-11.html

[img width=267 height=150]https://i.gyazo.com/f762966ecd6652e9cdbf348b1967e3c8.png[/img]
Sorry but you are not allowed to view spoiler contents.

cows

I finally have a bit of free time, so I'm going to be able to get back into this. It might take some time for me to remember where I left off, though.

Voka~Daemyn

Klonoa DtP Playthrough : http://www.youtube.com/playlist?list=PLzi0N7-iVFsUr0N84a42yBM92o5VV0P2w
http://bandainamcoent.co.jp/cs/list/klonoa/relay-essay/essay-11.html

[img width=267 height=150]https://i.gyazo.com/f762966ecd6652e9cdbf348b1967e3c8.png[/img]
Sorry but you are not allowed to view spoiler contents.

vervalkon

#45
sorry for the mega bump guys but here's my decompression code for Ulz entries.

faq:
what is it?
Klonoa: Door to Phantomile has both uncompressed (raw) data and compressed data. If you open the game's files in a graphics viewer/PSicture/whatever, you might find some graphics and/or other stuff, but a good chunk of it is compressed. The compression wasn't figured out for the longest time so sprite rips were unavailable for many years (as Klonoa's sprites are compressed) until I cracked it and ripped them.

how do i find compressed data?
just search for 55 6C 7A 1A (in hex) or Ulz (in ASCII) from any file.

how do i decompress it?
edit the .py file to match your needs. Below the #edit these line you find three variables; inadr, inpath and outpath. Edit these to represent the address, incoming filepath and the output folder path, respectively. Then just run the code.

why is your code so bad
i'm not a good programmer but i'm learnin'

is the compression format really called Ulz?
Yes! You can find a string in the ISO that says ulz decoder ver.1.05 programmed by Junichi Sakai. I don't know what the U stands for but the LZ is definitely Lempel-Ziv. What's also interesting is that Junichi Sakai is not credited in the game at all, but does get a credit in Klonoa 2 under "Special Thanks"

NEW ADDITIONAL QUESTIONS:

why can't i unpack data even though it's a legitimate ulz header?
in the ISO, the address 0xD79A4 is a legit ulz header but NOT legit ulz data. This is the only special exception.


ok i found another legit ulz header but still not working
Do not open the ISO itself (ever). This tool is meant to be used with files you get from inside the ISO/CD.
If you have a real CD, pop the disc in your computer and look at those files inside. that's the ones you want to look at

Voka~Daemyn

I'm doing something wrong. Or I'm just very programming dumb.
I don't know if I am using the wrong hex viewer or what yet. I would assume use 0xD79A0 but no matter which value I use I tend to get this sort of error.


Ah if anything just curious know what tools you used. I'll try to figure it out. Been a fun little puzzle for an hour or so now to me.
Klonoa DtP Playthrough : http://www.youtube.com/playlist?list=PLzi0N7-iVFsUr0N84a42yBM92o5VV0P2w
http://bandainamcoent.co.jp/cs/list/klonoa/relay-essay/essay-11.html

[img width=267 height=150]https://i.gyazo.com/f762966ecd6652e9cdbf348b1967e3c8.png[/img]
Sorry but you are not allowed to view spoiler contents.

vervalkon

added more info to faq
three things:
0. your inadr was wrong
1. don't open the ISO, but the ISO's files
2. that particular adress is actually a special exception case :D

Voka~Daemyn

#48
Yeah I was using the iso  x_x . I got it to work after you told me about opening the files directly. US version works.

I tried it again on the Japanese version of Klonoa. on 0xBA910.
Klonoa DtP Playthrough : http://www.youtube.com/playlist?list=PLzi0N7-iVFsUr0N84a42yBM92o5VV0P2w
http://bandainamcoent.co.jp/cs/list/klonoa/relay-essay/essay-11.html

[img width=267 height=150]https://i.gyazo.com/f762966ecd6652e9cdbf348b1967e3c8.png[/img]
Sorry but you are not allowed to view spoiler contents.

cows

After figuring out a few new (to me at least) things about how the game works, I've started working on a little tool to make it easier to manipulate and observe the game state. You can grab it from https://github.com/amoser/Klonoa-stuff/ .

It's very incomplete, not to mention a bit finicky and broken, but I think parts of it work well enough that it could be useful to someone.

Quote from: vervalkon on February 26, 2020, 09:58:05 AM
sorry for the mega bump guys but here's my decompression code for Ulz entries.
(...)

Wow! This is great.