Duckman Game

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Pakolmo
Posts: 52
Joined: Thu Jun 09, 2016 1:15 am

Duckman Game

Post by Pakolmo »

I am trying to translate Duckman game.

I did a comtype_scan2.bat and I have 2 files with texts: 206.dmp (COMP_DICT, 92Mb) and 493.dmp (COMP_PCLZFG, 570Mb)

Now I can see all the texts.

But, I don't know how I can do the reverse. I need the original file (28Mb).

Can you help me wih a QuickBMS script, please?

The file is: https://www.dropbox.com/s/b2zx28gv3395m ... N.GAM?dl=0

Thanks!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Duckman Game

Post by aluigi »

Honestly I don't know if exist a (re)compression implementation of the algorithm because dict was available on the (apparently no longer existent) freearc.org website as a "research" while pclzfg doesn't have any recompressor in its source code.
I leave here the 2 links available in the source code of quickbms:
http://freearc.org/download/research/dict.zip
http://www.embedded-os.de/en/pclzfg.shtml

I'm really surprised there is a game using this (these) algorithms anyway I didn't investigate and simply answered to the question.
Pakolmo
Posts: 52
Joined: Thu Jun 09, 2016 1:15 am

Re: Duckman Game

Post by Pakolmo »

Ok. Thanks!
Pakolmo
Posts: 52
Joined: Thu Jun 09, 2016 1:15 am

Re: Duckman Game

Post by Pakolmo »

I have more compression for the file: CKRLE, LZ77WII_RAW30, COMPRLIB_RLE1

I have the same problem.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Duckman Game

Post by aluigi »

You have done a huge mess with this topic. It was in the wrong section and tried to use comtype.
NEVER EVER USE THE COMTYPE SCANNER: you are wasting your time and, unfortunately, mine too.

I have moved the topic in the correct section and made a script for the format:
http://aluigi.org/bms/duckman.bms

The script automatically handles the dialog files having type 15 so will directly get the txt files in the extracted folder "15" without any additional operation.
Pakolmo
Posts: 52
Joined: Thu Jun 09, 2016 1:15 am

Re: Duckman Game

Post by Pakolmo »

Sorry and thank you.
Pakolmo
Posts: 52
Joined: Thu Jun 09, 2016 1:15 am

Re: Duckman Game

Post by Pakolmo »

I finished the translation but I have a BIG problem when I import the texts.
The game crash because the pointers aren’t updated.

Please, HELP ME!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Duckman Game

Post by aluigi »

@Pakolmo
Are you using reimport2.bat?
Pakolmo
Posts: 52
Joined: Thu Jun 09, 2016 1:15 am

Re: Duckman Game

Post by Pakolmo »

@alugi

Yes and reimport.bat, too.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Duckman Game

Post by aluigi »

The first link no longer exists.
And I confirm that reimport2.bat works perfectly and the OFFSET field is correctly updated.
No idea why you get the crash, probably because the data must be located in a specific block of bytes and if the new (longer) string is moved outside this block (necessary for adding longer strings) then the game may refuse to work.
No fix, it's all ok here.
Delutto
Posts: 561
Joined: Tue Oct 13, 2015 1:26 pm

Re: Duckman Game

Post by Delutto »

aluigi wrote:No idea why you get the crash, probably because the data must be located in a specific block of bytes...
All files sizes have a 0x0800 padding.