ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Thu Mar 21, 2019 8:00 am

All times are UTC




Post new topic  Reply to topic  [ 17 posts ] 
Author Message
PostPosted: Fri Sep 19, 2014 4:59 pm 

Joined: Sat Aug 09, 2014 11:21 am
Posts: 645
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


Top
   
PostPosted: Fri Sep 19, 2014 7:59 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9946
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.


Top
   
PostPosted: Fri Sep 19, 2014 11:28 pm 

Joined: Sat Aug 09, 2014 11:21 am
Posts: 645
Thanks Luigi :)
Any other ideas, Ekey? ;)


Top
   
PostPosted: Fri Mar 10, 2017 11:07 pm 

Joined: Thu Feb 09, 2017 4:06 am
Posts: 3
Have you found anything out on those extracted .hog files (.comp) AlphaTwentyThree? I'm doing the same thing trying to figure out how to get full access to console Harry Potter.


Top
   
PostPosted: Sat Mar 09, 2019 5:45 pm 

Joined: Mon Feb 05, 2018 5:45 pm
Posts: 105
Could it be LZ4?


Top
   
PostPosted: Sat Mar 09, 2019 6:24 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9946
WART3.00 has been recently supported in my script:
http://aluigi.org/bms/wart3_hps.bms

The compression algorithm was dbpf, also known as xrefpack0


Top
   
PostPosted: Sat Mar 09, 2019 10:47 pm 

Joined: Mon Feb 05, 2018 5:45 pm
Posts: 105
The script doesn't work anymore on *.HOG archives from this game ^^


Top
   
PostPosted: Sun Mar 10, 2019 1:45 am 

Joined: Wed Sep 12, 2018 2:22 am
Posts: 122
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.


Top
   
PostPosted: Sun Mar 10, 2019 7:42 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9946
@Warthog1336
Please provide one of these files.


Top
   
PostPosted: Sun Mar 10, 2019 10:59 am 

Joined: Mon Feb 05, 2018 5:45 pm
Posts: 105
Filecutted "HOGDAY.HOG" from Harry Potter and the Sorcerer's Stone (PS2): https://mega.nz/#!r4MQEKgL!6L4s0_nnfKvm ... qv8Gq4Uk_k


Top
   
PostPosted: Sun Mar 10, 2019 2:51 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9946
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.


Top
   
PostPosted: Sun Mar 10, 2019 5:49 pm 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 582
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 < FILES
    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. :)

_________________
Quickbms.com link thread
Search bms scripts


Top
   
PostPosted: Sun Mar 10, 2019 7:08 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9946
Script 0.2.1:
http://aluigi.org/bms/wart3_hps.bms


Top
   
PostPosted: Sun Mar 10, 2019 7:16 pm 

Joined: Mon Feb 05, 2018 5:45 pm
Posts: 105
It worked perfectly. Thank you aluigi and Acewell.


Top
   
PostPosted: Sun Mar 10, 2019 7:54 pm 

Joined: Mon Feb 05, 2018 5:45 pm
Posts: 105
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.


Top
   
PostPosted: Sun Mar 10, 2019 11:02 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9946
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.


Top
   
PostPosted: Tue Mar 12, 2019 8:22 pm 

Joined: Mon Feb 05, 2018 5:45 pm
Posts: 105
Thank you!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 17 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited