Pro Beach Soccer the only PC Game ever made have one easy file called WadPc.wad and i need a tool was able to extract/import in to the file different textures and maybe as well player names, if they are textured even better.
I'm going to send the .wad file.
Inside of the game as i can see it have this folders.
Medias folder have 4 easy .mpg files we can change it.
Comments and Music are .rws files.
If you need those ones too i will send.
This is the format I have so far - still trying to work out how to build the directory tree. ie. the filenames and directory names are all stored in the one directory - there must be something in the "UNKNOWN DIRECTORY" that links the files to their filenames, and probably also therefore linking them to a directory name?
+------------------------+
| Pro Beach Soccer *.wad |
+------------------------+
// Uses ZLib Compression
// Files are listed in the directory in Reverse Order (ie the first entry in the directory is the last file in the archive)
// ARCHIVE HEADER
8 - Header ("PAM_PAK" + (byte)0)
2 - Number Of Files
2 - Unknown
4 - Filename Directory Length
4 - File Data Offset
// FILES DIRECTORY
// for each file
4 - File Length (Compressed)
4 - File Offset
// UNKNOWN DIRECTORY
// for each file
2 - Unknown
2 - Unknown
2 - Unknown
2 - Unknown (52685)
// FILENAME DIRECTORY
// for each file and directory
X - Filename/Directory Name
1 - null Name Terminator
1 - null End of Filename Directory terminator
// FILE DATA
// for each file
8 - File Header ("PAM-ZLB" + (byte)0)
4 - Compression Flag? (1)
4 - Decompressed Length?
4 - null
4 - Decompressed Length?
4 - Header Length (32)
4 - Hash?
X - File Data (ZLib Compression)
0-3 - null Padding to a multiple of 4 bytes (This field does not exist for the Last file in the archive!)
Happy for someone to convert this to a BMS if they feel the desire
Game Extractor - Read and write thousands of game archives!
Thanks.
I do not know. But you can try to get a copy of this online and install it.
If someone converts to .bms will be great for everyone.
This game deserves modding whatever the music sounds being boring we can change it all.
Thanks ikskoks and sorry for the private rep. but can you tell me if there is a nother script to create a new WadPc.wad to change the game textures? Thanks!
As far as I know there are no other scripts, so you could try use reimport mode in quickbms with the script mentioned above, but it is not always working properly.
There is also a possibility of creating custom tools for that (for example in Python), but that requires some programming knowledge.
For start, it would be good to see Game Extractor's code as it is handling filenames for Pro Beach Soccer pretty good.
Also, some of the files are compressed with ZLIB, so if you're lucky you could try to use reimport mode in offzip.
ikskoks wrote: ↑Wed Jul 21, 2021 2:18 pm
As far as I know there are no other scripts, so you could try use reimport mode in quickbms with the script mentioned above, but it is not always working properly.
There is also a possibility of creating custom tools for that (for example in Python), but that requires some programming knowledge.
For start, it would be good to see Game Extractor's code as it is handling filenames for Pro Beach Soccer pretty good.
Also, some of the files are compressed with ZLIB, so if you're lucky you could try to use reimport mode in offzip.
If you want a good source of reverse engineering knowledge,
you can choose something from this topic viewtopic.php?f=29&t=22266
But if you only want to learn how to use quickbms or offzip,
you can google something like "how to use quickbms" and you'll get a lot of youtube tutorials for that.
Check also documentation for quickbms http://aluigi.zenhax.com/papers/quickbms.txt