Compression Challenge! (6)

1 Name: ライトダーク3D : 2007-01-28 00:17 ID:ul/5lEWU

Help me 4-ch! I need your mad programming skillz.
I've spent a few weeks trying to reverse engineer the PolygonLove2 "PL2" file compression system. I know it's LZ77, I know it's distance:length is encoded as 12:4+3, I know the escape sequence, but I cannot figure out how the offset is decoded.
Theres some framework code at http://code.google.com/p/open-pl2/ in SVN trunk. The code you want to modify is in libpl2/pak.c, function pl2Pak_unpackID. And you can use the unpl2 tool for testing. You'll obviously need (compressed) pl2 files from polygonlove2 too!
Hopefully somebody can figure out the offset to window position relation!
Oh, and the winrar will get many internets as a reward, lolz.

2 Name: #!/usr/bin/anonymous : 2007-06-11 13:30 ID:Heaven

SECOND POST

3 Name: #!/usr/bin/anonymous : 2008-10-27 01:19 ID:Heaven

>>2
ONLY POST

4 Name: Criptych : 2009-10-17 18:15 ID:BVjJVEMP

I came across your project looking for more info on the format, since I was writing something similar. I'd actually reversed the compression some time ago, it's the animation/skinning that I'm having trouble with.

Here's the compression code: http://open-pl2.googlecode.com/issues/attachment?aid=-2333878378191024939&name=pl2PackageDecompressFile.c

Any chance I can take a look at your animation code? :)

5 Name: #!/usr/bin/anonymous : 2009-10-19 16:34 ID:Heaven

> Any chance I can take a look at your animation code? :)

i'm not >>1, but http://code.google.com/p/open-pl2/ says:

> The viewer at the moment supports loading and displaying of TMB model files using the format library. There is no animation support yet.

6 Name: #!/usr/bin/anonymous : 2009-10-20 20:17 ID:BVjJVEMP

I think he might be dead. Or just too busy for the project.

No, the code in the repository doesn't have animation support, but there's mention - with a screenshot - that it has since been added. Never mind, anyway, I figured it out. So far I've got package loading, models, animations, and even camera paths working. Not fully decoded, but renderable. Next on the list is the script format. (Which is awful, by the way; even NScripter is better than this mess. I'm replacing it with Lua or Python ASAP.)

If you ever do read this, LightDark, thanks for the very helpful documentation on the formats. :)

This thread has been closed. You cannot post in this thread any longer.