GoW

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
rkthelegend
Posts: 56
Joined: Wed Jun 20, 2018 7:57 pm

GoW

Post by rkthelegend »

Hello to all members of the board and I hope everything is good with all of you.
Here I am with a new file game archive from GOW.

I'm trying to extract the proper wem audio package.

What I actually want is to extract them with proper file name and wem ID
.

Here is the screenshot of the files.

I'm also uploading the sample file here too.
Here is the link of files via Mega.nz

https://mega.nz/file/bnRAxADI#y7baL-ESb ... kRNAZ2aOoA
Last edited by rkthelegend on Sat Dec 10, 2022 11:56 am, edited 3 times in total.
ponaromixxx
Posts: 176
Joined: Tue Sep 30, 2014 5:59 pm

Re: God of war Ragnarok .audiopack .TOC extraction

Post by ponaromixxx »

Here I wrote a small application for unpacking.

Update v1.2 from 09.01.2023
1. Added extraction and import mode in decimal for Wwiser Tools.
2. Fixed a bug with re-import, after which the file was re-imported with duplicates.

Update v1.1 from 18.11.2022
Added Import

GoWRagSND-Tools.zip
GoWRagSND-Tools.zip
Last edited by ponaromixxx on Mon Jan 09, 2023 9:17 am, edited 5 times in total.
rkthelegend
Posts: 56
Joined: Wed Jun 20, 2018 7:57 pm

Re: God of war Ragnarok .audiopack .TOC extraction

Post by rkthelegend »

ponaromixxx wrote:Here I wrote a small application for unpacking.

GoWRagSND-Extractor.zip
Thank you
Last edited by rkthelegend on Tue Nov 22, 2022 9:17 am, edited 1 time in total.
ponaromixxx
Posts: 176
Joined: Tue Sep 30, 2014 5:59 pm

Re: God of war Ragnarok .audiopack .TOC extraction

Post by ponaromixxx »

rkthelegend wrote: Thank you brother, is it possible to repack .TOC file.
I think it's a wwise pck container.
Update v1.1
Added Import.
rkthelegend
Posts: 56
Joined: Wed Jun 20, 2018 7:57 pm

Re: God of war Ragnarok .audiopack .TOC extraction

Post by rkthelegend »

ponaromixxx wrote:
rkthelegend wrote: Thank you brother, is it possible to repack .TOC file.
I think it's a wwise pck container.
Update v1.1
Added Import.
Content deleted because of copyright
Last edited by rkthelegend on Tue Nov 22, 2022 9:19 am, edited 1 time in total.
ponaromixxx
Posts: 176
Joined: Tue Sep 30, 2014 5:59 pm

Re: God of war Ragnarok .audiopack .TOC extraction

Post by ponaromixxx »

rkthelegend wrote:
First of all I wanna say a warm thank you to you for spending your valuable time adding import option in the tool.
Second, I wanna add some info which I got from the wems in the archive.
The wems are originally encoded in vorbis format but when I used your tool it worked perfectly fine, the only thing which is missing or need a little more work is that the tool should export the wems as wwise vorbis not wwise Atrac9.
It'll be your great kindness to fix the issue with the tool.
Thank you again and sorry for my bad English, I'm not a native speaker of English.

Here is another 60MB sample file which contains vorbis audio files encoded with wwise.
I extracted the content of this sample file with your amazing tool but the only problem is that the tool exports all wems as wwise Atrac9, what I need is that the tools should export them as wwise vorbis.

That's right, the archives contain Wwise wem atrac9, this codec is designed for Sony consoles, my tool has nothing to do with it, it extracts exactly what is in the archive.
I looked at the archive of English localization, it contains wem files with 2 different codecs atrac9 and vorbis. As far as I know, there is no tool for encoding in Wwise atrac9 on the network, but you can encode all the sound in vorbis and try to add such sound to the game, you can decode wem atrac9 using the VgmStream toolkit.

And don't worry, I don't speak English myself.
BanhMi
Posts: 10
Joined: Sun Oct 31, 2021 12:12 pm

Re: God of war Ragnarok .audiopack .TOC extraction

Post by BanhMi »

ponaromixxx wrote:
rkthelegend wrote: Thank you brother, is it possible to repack .TOC file.
I think it's a wwise pck container.
Update v1.1
Added Import.
Could you make a tool which can export and import the lang .wad file? here are some sample: https://drive.google.com/file/d/1GuO1Sb ... sp=sharing
rkthelegend
Posts: 56
Joined: Wed Jun 20, 2018 7:57 pm

Re: God of war Ragnarok .audiopack .TOC extraction

Post by rkthelegend »

ponaromixxx wrote:
rkthelegend wrote:
First of all I wanna say a warm thank you to you for spending your valuable time adding import option in the tool.
Second, I wanna add some info which I got from the wems in the archive.
The wems are originally encoded in vorbis format but when I used your tool it worked perfectly fine, the only thing which is missing or need a little more work is that the tool should export the wems as wwise vorbis not wwise Atrac9.
It'll be your great kindness to fix the issue with the tool.
Thank you again and sorry for my bad English, I'm not a native speaker of English.

Here is another 60MB sample file which contains vorbis audio files encoded with wwise.
I extracted the content of this sample file with your amazing tool but the only problem is that the tool exports all wems as wwise Atrac9, what I need is that the tools should export them as wwise vorbis.

That's right, the archives contain Wwise wem atrac9, this codec is designed for Sony consoles, my tool has nothing to do with it, it extracts exactly what is in the archive.
I looked at the archive of English localization, it contains wem files with 2 different codecs atrac9 and vorbis. As far as I know, there is no tool for encoding in Wwise atrac9 on the network, but you can encode all the sound in vorbis and try to add such sound to the game, you can decode wem atrac9 using the VgmStream toolkit.

And don't worry, I don't speak English myself.
You are 100% right, it was my mistake, yes the game uses 2 Codec at9 and vorbis, at9 are used in short in game dialouges while vorbis are used in cinematic scenes.

I'm gonna try to change the at9 with vorbis, hopefully we get a good result.
Anyway, thanks again for your great tool.
God bless you brother.
ponaromixxx
Posts: 176
Joined: Tue Sep 30, 2014 5:59 pm

Re: God of war Ragnarok .audiopack .TOC extraction

Post by ponaromixxx »

rkthelegend wrote:
You are 100% right, it was my mistake, yes the game uses 2 Codec at9 and vorbis, at9 are used in short in game dialouges while vorbis are used in cinematic scenes.

I'm gonna try to change the at9 with vorbis, hopefully we get a good result.
Anyway, thanks again for your great tool.
God bless you brother.
;) :!:
ponaromixxx
Posts: 176
Joined: Tue Sep 30, 2014 5:59 pm

Re: God of war Ragnarok .audiopack .TOC extraction

Post by ponaromixxx »

BanhMi wrote: Could you make a tool which can export and import the lang .wad file? here are some sample: https://drive.google.com/file/d/1GuO1Sb ... sp=sharing
I looked at the files, many data are not clear what they are responsible for, there is no time to parse the format now.

Ask here!
BloatheadSorcerer
Posts: 2
Joined: Tue Oct 11, 2022 4:42 pm

Re: GoW

Post by BloatheadSorcerer »

Is there any way that the file names can be properly parsed? Because they seem to have names like 0x000B4C0E and 0x000E1A77. I am not sure if we can reference them to the text files of the game, but here is an example:

This file is named 0x00B78AE6.wem, and the text is:
*107623*
[[S:ATREUS:vo_int9_lvl_asg1a_s115_020_son:140-6090:34690]]
N-no, I’m going. I’ve got to. Just, uh... wanted to say it was good meeting you.

Another example:
This file is named 0x00CD6205.wem, and the text is:

*125710*
[[S:FREYA:vo_int9_gbs_fre_s910_WallFlawRevisited_130:50-4926:60181]]
So off I went, not knowing what had truly
been promised or expected,
*125711*
[[S:::4926-7357:60181]]
dagger stashed in my robe for emergency.
rkthelegend
Posts: 56
Joined: Wed Jun 20, 2018 7:57 pm

Re: GoW

Post by rkthelegend »

BloatheadSorcerer wrote:Is there any way that the file names can be properly parsed? Because they seem to have names like 0x000B4C0E and 0x000E1A77. I am not sure if we can reference them to the text files of the game, but here is an example:

This file is named 0x00B78AE6.wem, and the text is:
*107623*
[[S:ATREUS:vo_int9_lvl_asg1a_s115_020_son:140-6090:34690]]
N-no, I’m going. I’ve got to. Just, uh... wanted to say it was good meeting you.

Another example:
This file is named 0x00CD6205.wem, and the text is:

*125710*
[[S:FREYA:vo_int9_gbs_fre_s910_WallFlawRevisited_130:50-4926:60181]]
So off I went, not knowing what had truly
been promised or expected,
*125711*
[[S:::4926-7357:60181]]
dagger stashed in my robe for emergency.
Maybe there is no way to parse the proper file name but. To be honest, this tool works great and I even checked it on ps4,
ponaromixxx
Posts: 176
Joined: Tue Sep 30, 2014 5:59 pm

Re: GoW

Post by ponaromixxx »

You will have to analyze the whole game for these names, since the names are hashed into an id using FNV technology.
rkthelegend
Posts: 56
Joined: Wed Jun 20, 2018 7:57 pm

Re: GoW

Post by rkthelegend »

ponaromixxx wrote:You will have to analyze the whole game for these names, since the names are hashed into an id using FNV technology.
Brother I have send you a private message, please check it once, it's out of this topic
xroc88
Posts: 12
Joined: Mon Jun 03, 2019 2:08 pm

Re: GoW

Post by xroc88 »

The tool works great!! however, I would like to parse these with the wwiser tool, however the wem names are still in the hash names and not the Wwise ID's. so thus far currently there is no way to extract with wem ID's?
ponaromixxx
Posts: 176
Joined: Tue Sep 30, 2014 5:59 pm

Re: GoW

Post by ponaromixxx »

xroc88 wrote:The tool works great!! however, I would like to parse these with the wwiser tool, however the wem names are still in the hash names and not the Wwise ID's. so thus far currently there is no way to extract with wem ID's?
Updated v1.2
xroc88
Posts: 12
Joined: Mon Jun 03, 2019 2:08 pm

Re: GoW

Post by xroc88 »

Thanks!!

any idea how to unwrap the BNK's from these archives?

see attached
ponaromixxx
Posts: 176
Joined: Tue Sep 30, 2014 5:59 pm

Re: GoW

Post by ponaromixxx »

xroc88 wrote:Thanks!!

any idea how to unwrap the BNK's from these archives?

see attached
bnk_scan-GOW.bms

Code: Select all

idstring "WTOC"
get FILE_SIZE asize
findloc OFFSET binary "BKHD"
math i = 1
for OFFSET = OFFSET < FILE_SIZE
  goto OFFSET
  get DUMMY long
  findloc NEXT_OFFSET binary "BKHD" 0 ""
  if NEXT_OFFSET == ""
   get NEXT_OFFSET asize
  endif
  xmath SIZE "NEXT_OFFSET - OFFSET"
  get NAME basename
  string NAME += "_"
  string NAME += i
  string NAME += ".bnk"
  log NAME OFFSET SIZE
  math OFFSET = NEXT_OFFSET
next i
If in haste, then only so. You need to study the structure of building a file, then you can try to write software.
xroc88
Posts: 12
Joined: Mon Jun 03, 2019 2:08 pm

Re: GoW

Post by xroc88 »

Thanks!!

mx_helheim_1.bnk
i wondering if its leaving out some bytes at the end as im getting parse error with wwiser.

- failed parsing chunk b'\x00\x00\x00\x00'
- can't read requested 0x4 bytes at 0x241f0
parser: done

EDIT: the bank size seem to be in the SBP information header so thats why im having this problem. is it possible to modify the script to retain bank information?