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.

Help With Decompressing .dat File.

Featured Replies

  • Author
  • Localization

MaxBOOST, posted Wed May 25, 2022 1:09 am (71654)


Hello,

So, there's this game called Moorhuhn Adventure 2: Der Fluch des Goldes, and all its assets are in a .DAT file (moorhuhn games are known for storing their assets in .DAT files). Except, this file is unlike the other .DAT files that other moorhuhn games use, but i still tried to use all .DAT file scripts i can find, and all Moorhuhn scripts, too ! But none worked. Can someone please help me ? I would be grateful if someone did.

Thanks !
MaxBOOST.

P.S: Here's the .DAT file in case you wanna try something with it.

https://drive.google.com/file/d/1ch8aKisHSowof7J3ENcQ0sJNhv9UFjdA/view?usp=sharing
  • Author
  • Localization

mrmemmo_, posted Wed May 25, 2022 2:28 am (71655)


it's zlib but more block compresses
  • Author
  • Localization

MaxBOOST, posted Wed May 25, 2022 2:13 pm (71657)


mrmemmo_ wrote:
it's zlib but more block compresses


so, what should i do with it ?
  • Author
  • Localization

mrmemmo_, posted Wed May 25, 2022 4:11 pm (71658)


i don't know. decompress and compress level 9 to get compress file...bla bla. i think
  • Author
  • Localization

rabatini, posted Wed May 25, 2022 9:59 pm (71664)


MaxBOOST wrote:
mrmemmo_ wrote:
it's zlib but more block compresses


so, what should i do with it ?


Just use offzip from alluigi

http://aluigi.altervista.org/mytoolz/offzip.zip

create a text file and put this command

Code:
offzip -s -a mha2.dat

pause


then rename the extensio .txt to .bat and run.
  • Author
  • Localization

MaxBOOST, posted Thu May 26, 2022 12:56 pm (71667)


rabatini wrote:
MaxBOOST wrote:
mrmemmo_ wrote:
it's zlib but more block compresses


so, what should i do with it ?


Just use offzip from alluigi

http://aluigi.altervista.org/mytoolz/offzip.zip

create a text file and put this command

Code:
offzip -s -a mha2.dat

pause


then rename the extensio .txt to .bat and run.



ok i did that, but then i got a bunch of dat files and vap files
  • Author
  • Localization

mrmemmo_, posted Thu May 26, 2022 3:37 pm (71670)


exam: file 000b4ba5.dat
delete 89 bytes first and change file extension to jpg and chill :D
some file vap is ogg sound
  • Author
  • Localization

MaxBOOST, posted Thu May 26, 2022 6:06 pm (71674)


mrmemmo_ wrote:
exam: file 000b4ba5.dat
delete 89 bytes first and change file extension to jpg and chill :D
some file vap is ogg sound


so, do i open dat with notepad and delete the first 89 bytes and change the vap to ogg ?
  • Author
  • Localization

rabatini, posted Thu May 26, 2022 11:01 pm (71678)


So, you did the decompress, now its up to you dig out the files, some are images and some other is songs and maybe your scripts is inside one of them.

to jpg you can use this script in quickbms.
if is jpg it will create a file with jpg image, if not will create no file.

Code:
get file asize
get name basename
get id long
if id == 0x00000000
goto 0x59
savepos temp
xmath size "(file - temp)"
String FILENAME P "%name%.%jpg%"
log filename temp size
endif
  • Author
  • Localization

MaxBOOST, posted Thu May 26, 2022 11:15 pm (71680)


rabatini wrote:
So, you did the decompress, now its up to you dig out the files, some are images and some other is songs and maybe your scripts is inside one of them.

to jpg you can use this script in quickbms.
if is jpg it will create a file with jpg image, if not will create no file.

Code:
get file asize
get name basename
get id long
if id == 0x00000000
goto 0x59
savepos temp
xmath size "(file - temp)"
String FILENAME P "%name%.%jpg%"
log filename temp size
endif


ok, and for VAPs ?
  • Author
  • Localization

rabatini, posted Thu May 26, 2022 11:19 pm (71681)


MaxBOOST wrote:
rabatini wrote:
So, you did the decompress, now its up to you dig out the files, some are images and some other is songs and maybe your scripts is inside one of them.

to jpg you can use this script in quickbms.
if is jpg it will create a file with jpg image, if not will create no file.

Code:
get file asize
get name basename
get id long
if id == 0x00000000
goto 0x59
savepos temp
xmath size "(file - temp)"
String FILENAME P "%name%.%jpg%"
log filename temp size
endif


ok, and for VAPs ?


dont know.
sound is not my field.
  • Author
  • Localization

MaxBOOST, posted Thu May 26, 2022 11:29 pm (71682)


rabatini wrote:
MaxBOOST wrote:
rabatini wrote:
So, you did the decompress, now its up to you dig out the files, some are images and some other is songs and maybe your scripts is inside one of them.

to jpg you can use this script in quickbms.
if is jpg it will create a file with jpg image, if not will create no file.

Code:
get file asize
get name basename
get id long
if id == 0x00000000
goto 0x59
savepos temp
xmath size "(file - temp)"
String FILENAME P "%name%.%jpg%"
log filename temp size
endif


ok, and for VAPs ?


dont know.
sound is not my field.


ok, so, most jpgs are fine, others are corrupted/don't open. is that normal ?
  • Author
  • Localization

MaxBOOST, posted Fri May 27, 2022 12:17 am (71684)


MaxBOOST wrote:
rabatini wrote:
MaxBOOST wrote:

ok, and for VAPs ?


dont know.
sound is not my field.


ok, so, most jpgs are fine, others are corrupted/don't open. is that normal ?


and some .dat files gave this error out


offset filesize filename
--------------------------------------

- 0 files found in 0 seconds
coverage file 0 0% 4 2079 . offset 00000004
  • Author
  • Localization

mrmemmo_, posted Fri May 27, 2022 10:55 am (71689)


some raw data, you have to know what it is to convert
  • Author
  • Localization

MaxBOOST, posted Fri May 27, 2022 1:02 pm (71691)


mrmemmo_ wrote:
some raw data, you have to know what it is to convert


alright, so what do i do with the .vap files containing the sounds ?
  • Author
  • Localization

mrmemmo_, posted Sat May 28, 2022 12:49 am (71700)


search google "ogg vorbis file structure"
  • Author
  • Localization

MaxBOOST, posted Fri Jun 24, 2022 7:32 pm (72276)


mrmemmo_ wrote:
search google "ogg vorbis file structure"


ok, i managed to get everything out of the file, but there are some images that are missing, mostly because offzip doesn't detect them. What shall i do in that case ?
  • Author
  • Localization

rabatini, posted Fri Jun 24, 2022 8:02 pm (72277)


MaxBOOST wrote:
mrmemmo_ wrote:
search google "ogg vorbis file structure"


ok, i managed to get everything out of the file, but there are some images that are missing, mostly because offzip doesn't detect them. What shall i do in that case ?

Do you know where files the offzip did not detect?
  • Author
  • Localization

MaxBOOST, posted Fri Jun 24, 2022 8:13 pm (72278)


rabatini wrote:
MaxBOOST wrote:
mrmemmo_ wrote:
search google "ogg vorbis file structure"


ok, i managed to get everything out of the file, but there are some images that are missing, mostly because offzip doesn't detect them. What shall i do in that case ?

Do you know where files the offzip did not detect?


the same .dat file, and while they are images for a fact, i don't know their formats. i tried using jaeder naub, but idk how to use it tbh..
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.