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.

Harry Potter and the Sorcerer's Stone - unknown compression

Featured Replies

  • Author
  • Localization

AlphaTwentyThree, posted Fri Sep 19, 2014 4:59 pm (522)


Hi folks!

I'm back from my vacation and want to finish a script for the above game's *.hog files ("WART3.0" identifier). The problem once again is an unknown compression method. So far, the script only extracts the compressed files as [filename].comp.
Here's an example archive (Xbox version) and the script: http://s8m3kjliho.1fichier.com/
If more samples are needed, I can provide them.
Thanks for any help! :)

Regards, Timo
  • Author
  • Localization

aluigi, posted Fri Sep 19, 2014 7:59 pm (523)


I used my compression scanner with one of the files that seems to contain just german text (so easy to guess if it's correctly decompressed) by removing the first 4 bytes, but no good results.
  • Author
  • Localization

AlphaTwentyThree, posted Fri Sep 19, 2014 11:28 pm (527)


Thanks Luigi :)
Any other ideas, Ekey? ;)
  • Author
  • Localization

Hp4Steam, posted Fri Mar 10, 2017 11:07 pm (21370)


Delete
  • Author
  • Localization

Warthog1336, posted Sat Mar 09, 2019 5:45 pm (45634)


Could it be LZ4?
  • Author
  • Localization

Warthog1336, posted Sat Mar 09, 2019 10:47 pm (45647)


The script doesn't work anymore on *.HOG archives from this game ^^
  • Author
  • Localization

Puterboy1, posted Sun Mar 10, 2019 1:45 am (45649)


Warthog1336 wrote:
The script doesn't work anymore on *.HOG archives from this game ^^

Well, as soon as you have found a way of making the sound files playable, will you submit them to www.sounds-resource.com if you please? You'd be doing a great service.
  • Author
  • Localization

aluigi, posted Sun Mar 10, 2019 7:42 am (45658)


@Warthog1336
Please provide one of these files.
  • Author
  • Localization

aluigi, posted Sun Mar 10, 2019 2:51 pm (45672)


Are you sure that file is not corrupted?
The NAME_OFF fields are all wrong.
Doesn't have sense that an archive store wrong name offsets.
  • Author
  • Localization

Acewell, posted Sun Mar 10, 2019 5:49 pm (45674)


the name offsets make sense if you start right where the folder names end.
the size of the folder name index and file name index is stored in the header.

i can't really work with file cutted samples so this is all i can give :(
Code:
# script for QuickBMS http://aluigi.altervista.org/quickbms.htm

idstring "\x57\x41\x52\x54\x33\x2e\x30\x30"
get FILES long
get STR_TABLE_OFF long
get NAME_TABLE_SZ long
get FOLDER_TABLE_SZ long
for i = 0     get OFFSET long
    get UNK long //??
    get SIZE long
    get CRCx long //??
    get NAME_OFFSET long
    get FOLDER_OFFSET long
    savepos TMP
    xmath STR_OFF "STR_TABLE_OFF FOLDER_TABLE_SZ NAME_OFFSET"
    goto STR_OFF
    get NAME string
    xmath FOLDER_OFF "STR_TABLE_OFF FOLDER_OFFSET"
    goto FOLDER_OFF
    get FOLDER string
    string NAME p "%s%s" FOLDER NAME
    log NAME OFFSET SIZE
    goto TMP
next i


edit
well i guess my UNK is a ZSIZE according to aluigis script, i can not confirm
compression with filecutted samples so my script doesn't handle that yet. :)
  • Author
  • Localization

Warthog1336, posted Sun Mar 10, 2019 7:16 pm (45678)


It worked perfectly. Thank you aluigi and Acewell.
  • Author
  • Localization

Warthog1336, posted Sun Mar 10, 2019 7:54 pm (45681)


Turns out it worked for most of the files but still getting an error for other HOG archives.

The error is at line 41 get NAME string.

Samples: https://mega.nz/#!O08hxKCB!Ht9K7Ml8C262 ... XXMQeVIUdE

The archive can be extracted with Alpha23's script but with compressed files :

Code:
# extracts the *.hog archives from Harry Potter and the Sorcerer's Stone (GC/PS2)
# (c) 2014-07-24 by AlphaTwentyThree of XeNTaX
# script for QuickBMS http://quickbms.aluigi.org

idstring "WART3.00"
get TEST byte
if TEST == 0
   endian big
endif
goto 8
get FILES long
get NAMEINFO long
get SIZE_NAMES long
get UNK long
get SIZE_FOLDERS asize
math SIZE_FOLDERS -= SIZE_NAMES
math SIZE_FOLDERS -= NAMEINFO
get OFF_NAMES asize
math OFF_NAMES -= SIZE_NAMES
append
log MEMORY_FILE NAMEINFO SIZE_FOLDERS
log MEMORY_FILE2 OFF_NAMES SIZE_NAMES
append
for i = 1 <= FILES
   get OFFSET long
   get ZSIZE long
   get SIZE long
   get CRC long
   get OFF_NAME long
   get OFF_FOLDER long
   savepos MYOFF
   goto OFF_FOLDER MEMORY_FILE
   get FOLDER string MEMORY_FILE
   goto OFF_NAME MEMORY_FILE2
   get FNAME string MEMORY_FILE2
   goto MYOFF
   set NAME FOLDER
   string NAME = FNAME
   if ZSIZE == 0
      if SIZE != 0
         log NAME OFFSET SIZE
      endif
   else
      string NAME = ".comp"
      log NAME OFFSET ZSIZE
   endif
next i


Thanks in advance.
  • Author
  • Localization

aluigi, posted Sun Mar 10, 2019 11:02 pm (45686)


Script 0.2.2.

Basically the problem was that exist 2 versions of this format and there is no easy way to know what version is used, I changed the "guessing" method and now it works.
  • Author
  • Localization

Warthog1336, posted Tue Mar 12, 2019 8:22 pm (45720)


Thank you!
  • Author
  • Localization

Stephen999, posted Tue May 28, 2019 11:17 am (48076)


@Warthog1336
Hi relating to the same topic do you know how to open the files once extracted such as the BMSH files and BTGA files also???

Thanks in advance :)
  • Author
  • Localization

Stephen999, posted Wed May 29, 2019 5:42 am (48094)


aluigi wrote:
Script 0.2.2.

Basically the problem was that exist 2 versions of this format and there is no easy way to know what version is used, I changed the "guessing" method and now it works.


Hello where is the Updated Script also is it a way to convert these two file types???

these files where in the extracted Archive for HPPS PS2
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.