Tool for WAD archives in GOD OF WAR

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Tool for WAD archives in GOD OF WAR

Post by Kratos9999 »

Hi everyone, someone can provide/make for me a tool for unpack/repack the files into this wad archive? https://drive.google.com/file/d/0B24D4L ... p=drivesdk
My goal is not to get the textures or the models, but only the texts and scripts files, a tool for export and import only the text files. Later, I will be post the link with other WAD archive that contain texts, but the file in the link above contain some scripts.
NOTE: Wad archive is from Gow1 (Ps2 version).
https://drive.google.com/file/d/0B24D4L ... p=drivesdk
IN THIS link there is my target WAD and details about the texts files.
Last edited by Kratos9999 on Mon May 01, 2017 12:08 pm, edited 4 times in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: WAD archive structure?

Post by aluigi »

There is no structure, just like there are never the names of the games in all your posts.
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: WAD archive structure?

Post by Kratos9999 »

Do you know something tool that unpack/repack this format? This WAD is from GOW1 (PS2 Version)
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: WAD archive structure?

Post by AnonBaiter »

aluigi wrote:There is no structure
Well, guess what I got when I came into one of these files?

Code: Select all

# God of War (PS2) - *.WAD

open FDDE "wad" 0

get WAD_SIZE asize 0
savepos OFFSET
do
   goto OFFSET
   get TYPE long
   get SIZE long
   getdstring NAME 0x18
   savepos OFFSET
   math SIZE x= 0x10
   if TYPE == 0x18
      math SIZE == 0
   endif
   if SIZE != 0
      log NAME OFFSET SIZE
   endif
   math OFFSET += SIZE
while OFFSET < WAD_SIZE
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Tool for WAD archives in GOD OF WAR

Post by aluigi »

@AnonBaiter
R_SHELL.WAD
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Tool for WAD archives in GOD OF WAR

Post by AnonBaiter »

aluigi wrote:@AnonBaiter
R_SHELL.WAD
Oh, you mean this?

Code: Select all

00000000  10 3D D4 10 3F 5C 01 08 03 F8 28 01 77 D0 00 DB  .=Ô.?\...ø(.wÐ.Û
00000010  8E C4 9B 6E 87 EB EA 94 6A 9D 18 74 17 A1 C6 49  ŽÄ›n‡ëê”j..t.¡ÆI
00000020  07 AB 4F 0F F6 11 0B B6 53 E4 D9 22 B7 E6 81 03  .«O.ö..¶SäÙ"·æ..
00000030  EF 81 00 0B 3E FD 80 3C 00 13 80 20 F8 00 51 D8  ï...>ý€<..€ ø.QØ
00000040  9F 8F 97 1A 2B EA 46 CD 70 97 6E CF 3B C5 94 DB  Ÿ.—.+êFÍp—nÏ;Å”Û
00000050  C9 65 07 1E DD 10 40 FC B0 40 FD 20 06 40 0E 80  Ée..Ý.@ü°@ý .@.€
00000060  19 4F 8F 70 04 5D 74 00 9C 50 A7 51 04 4B CB FA  .O.p.]t.œP§Q.KËú
00000070  74 BB 03 FB 26 C2 83 0A 6E 90 80 40 FA 70 40 FC  t».û&ƒ.n.€@úp@ü
00000080  6F B8 03 97 0A 22 DD E7 8E 9E EA 08 40 0D 9C 57  o¸.—."Ý玞ê.@.œW
00000090  65 91 6D B9 24 58 1A DB C1 03 EC 41 03 E8 41 07  e‘m¹$X.ÛÁ.ìA.èA.
000000A0  F6 40 1F FF F8 E4 50 A9 A4 4E B1 DB DF 19 3C D5  ö@.ÿøäP©¤N±Ûß.<Õ
000000B0  64 59 4F 09 46 64 ED EA C5 AB 16 16 4A 60 9E E1  dYO.FdíêÅ«..J`žá
000000C0  73 5F C6 58 3C A6 F8 C0 80 07 60 08 C0 1A 80 23  s_ÆX<¦øÀ€.`.À.€#
000000D0  00 78 22 00 33 17 C7 B6 B9 EA 23 8C CC E2 BB 89  .x".3.Ƕ¹ê#ŒÌ⻉
000000E0  49 93 51 29 2D AD 04 0F C9 00 67 45 91 79 71 1F  I“Q)-­..É.gE‘yq.
000000F0  FE 47 76 64 CE 1D 99 AF 4B 92 95 0A A8 D8 81 00  þGvdÎ.™¯K’•.¨Ø..
I don't remember the .WAD file structure being like this, let alone the file being extracted this way.
The actual structure of a .WAD file is like this:

Code: Select all

00000000  78 03 00 00 08 00 00 00 57 41 44 5F 73 65 77 72  x.......WAD_sewr
00000010  30 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00  01..............
00000020  00 00 80 00 00 00 80 00 00 00 00 00 00 00 00 00  ..€...€.........
00000030  28 00 00 00 00 00 00 00 47 72 6F 75 70 53 74 61  (.......GroupSta
00000040  72 74 00 00 00 00 00 00 00 00 00 00 00 00 00 00  rt..............
00000050  1E 00 00 00 38 00 00 00 57 41 44 5F 73 65 77 72  ....8...WAD_sewr
00000060  30 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00  01..............
00000070  1B 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00  ...€............
00000080  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000090  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000A0  00 00 80 00 00 00 80 00 00 00 00 00 00 00 00 00  ..€...€.........
The "WIP" script I've posted gives you an idea of the structure.
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: Tool for WAD archives in GOD OF WAR

Post by Kratos9999 »

Thanks Anonbaiter and aluigi.
Last edited by Kratos9999 on Wed May 03, 2017 12:41 am, edited 2 times in total.
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Tool for WAD archives in GOD OF WAR

Post by AnonBaiter »

Okay, now the script is released! Check out at my "Script Compendium" thread.
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: Tool for WAD archives in GOD OF WAR

Post by Kratos9999 »

This WAD it seems do not reduce the filesize, only joint them. If I insert a file larger than original using the Hex editor, the others files after this are moved out your original position. How I can update the new positions of those files and make the game to read them?
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Tool for WAD archives in GOD OF WAR

Post by AnonBaiter »

I can`t think of anything else, really.

For the time being, try to experiment with manual hex editing using your hex editor program of choice.
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: Tool for WAD archives in GOD OF WAR

Post by Kratos9999 »

Hi Anonbaiter, I've translated all the strings in text plain using only the Hex editor and the Notepad ++. However, the menu texts, weapons menu, I have not found, it seems compressed. Something texts are in the main executable, the others I have no idea. The only place that I have found manys scripts has been the R_PERM.WAD and the R_SHELL.WAD.
Can you help me to find the remaining texts? If YES, I can upload some files that I hope to be compressed text or using special table chars
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Tool for WAD archives in GOD OF WAR

Post by AnonBaiter »

I only have the European version by now, but I`ll see what I can do.

Bring them on.
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: Tool for WAD archives in GOD OF WAR

Post by Kratos9999 »

AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Tool for WAD archives in GOD OF WAR

Post by AnonBaiter »

Well, in FLP_Shell and FLP_HUD these "texts" aren't actually compressed or encrypted in any way. Perhaps, it may have something to do with some kind of (compiled) programming stuff.
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: Tool for WAD archives in GOD OF WAR

Post by Kratos9999 »

Some idea where this texts can be? It seems to be very hidden.
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Tool for WAD archives in GOD OF WAR

Post by AnonBaiter »

Not as I know of.
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: Tool for WAD archives in GOD OF WAR

Post by Kratos9999 »

Anonbaiter, can you upload here the executable of Gow1 european version, and the R_PERM and R_SHELL from this version, but the Text Font?
It is why the texts in Spanish are larger, so I have more liberty to type larger texts, and the Spanish have support to special chars.
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: Tool for WAD archives in GOD OF WAR

Post by Kratos9999 »

Editing this post to delete the repeated, my internet connection has failed several times when I try to reply, and in the end, the browser has duplicate the posts. I managed to delete just a post repeated. Sorry.
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Tool for WAD archives in GOD OF WAR

Post by AnonBaiter »

Okay, here.
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: Tool for WAD archives in GOD OF WAR

Post by Kratos9999 »

Thanks Anonbaiter, it is missing only the R_SHELL, R_PERM and the Chars Font.