[PS1] WAD Tool Checksum

Discussion about Pre-THUG1 things can go here, such as modding, etc
Demo
VIP
Posts: 285
Joined: Thu Aug 25, 2011 5:54 am
Contact:

[PS1] WAD Tool Checksum

Post by Demo » Sun May 13, 2012 12:46 pm

This tool can extract files from THPS2, THPS3 and THPS4 pseudo-archives and rebuild HED/WAD files by given folder.
Files should be named exactly as they were extracted, else game wouldn't be able to find it.

Download: http://www.mediafire.com/download/55exk ... ecksum.zip

HED file format

Code: Select all

until end of file
{
  4 bytes - file checksum
  4 bytes - offset in WAD file
  4 bytes - file size
}
Here's a small modification to demonstrate tool's functionality - different manual bar color.
Image

----------

now the question. is there any way to know the original string, used to be filename. currently I get file extension by reading header, but this doesnt work for pre and fnt files (cause no unique header) and prolly some other. if there's no way to get it, then it's probably final verison.

the answer is here: https://thmods.com/forum/viewtopic.php?f=5&p=4326#p4326
the tool is here: https://github.com/DCxDemo/WAD-Tool/releases
Last edited by Demo on Sun Aug 13, 2017 4:24 am, edited 5 times in total.

%.gone.
Global Moderator
Posts: 390
Joined: Sun Mar 07, 2010 5:12 pm

Re: [PS1] THPS3/THPS4 HED/WAD Extractor

Post by %.gone. » Sun May 13, 2012 2:16 pm

If you can't find any internal tables within the ps1 disk you can try your luck with a THAW dbg.pak.
Aside from that there isn't a way to generate a string from a qbkey alone.

quazz
Global Moderator
Posts: 196
Joined: Sat Nov 13, 2010 12:04 am

Re: [PS1] THPS3/THPS4 HED/WAD Extractor

Post by quazz » Mon May 14, 2012 12:30 am

Any chance of a builder? :)

Demo
VIP
Posts: 285
Joined: Thu Aug 25, 2011 5:54 am
Contact:

Re: [PS1] THPS3/THPS4 HED/WAD Extractor

Post by Demo » Mon May 14, 2012 3:24 am

sure could pack files back, but this didnt work for thps1-2 where filenames were used, check kamiloxnumetal's tools (after repacking WAD, when build iso again, you get a red square on the screen). maybe he just writes smth wrong, else the offsets are hardcoded. just if i'd new how to get filename and generate again those 4 bytes

%.gone.
Global Moderator
Posts: 390
Joined: Sun Mar 07, 2010 5:12 pm

Re: [PS1] THPS3/THPS4 HED/WAD Extractor

Post by %.gone. » Mon May 14, 2012 8:45 am

Generating the 4 byte key is most likely just a CRC32 checksum of the string, 1's compliment.

Demo
VIP
Posts: 285
Joined: Thu Aug 25, 2011 5:54 am
Contact:

Re: [PS1] TH2/TH3/TH4 HED/WAD Extractor

Post by Demo » Thu May 24, 2012 6:47 pm

just found that thps2 ps1 uses same hed file format. though nothing unusual there.

Demo
VIP
Posts: 285
Joined: Thu Aug 25, 2011 5:54 am
Contact:

Re: [PS1] THPS3/THPS4 HED/WAD Extractor

Post by Demo » Mon Apr 15, 2013 12:55 pm

quazz7654 wrote:Any chance of a builder? :)
almost year after returned to this while working on thps2 mod again, i realised i can modify this tool to work with checksums.

quazz
Global Moderator
Posts: 196
Joined: Sat Nov 13, 2010 12:04 am

Re: [PS1] WAD Tool Checksum

Post by quazz » Mon Apr 15, 2013 5:25 pm

Make a mod of thps4 on psx to include thps-thps2 levels so there are reverts and stuff :D

Demo
VIP
Posts: 285
Joined: Thu Aug 25, 2011 5:54 am
Contact:

Re: [PS1] WAD Tool Checksum

Post by Demo » Mon Apr 15, 2013 6:45 pm

you can only replace those eight levels in the game and even that is nearly impossible cause everything is "checksummed"

bAstimc
VIP
Posts: 137
Joined: Thu Jun 10, 2010 2:33 pm

Re: [PS1] WAD Tool Checksum

Post by bAstimc » Tue Apr 16, 2013 6:11 pm

Demo wrote:you can only replace those eight levels in the game and even that is nearly impossible cause everything is "checksummed"
*dang* :x

Post Reply