Need help with Soukaigi .PAC files

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
ffvdgames
Posts: 2
Joined: Wed Nov 17, 2021 9:25 am

Need help with Soukaigi .PAC files

Post by ffvdgames »

I'm attempting to translate a Yuke's game for PS1 published by Square called Soukaigi and I've hit a wall as of late. I can extract some textures from the files just fine via PSicture and jPSXdec, but I can't extract every single texture present in these .PAC files. I also can't seem to extract any models from these files, either. I've tried to use a couple tools that turned up from a couple Google searches, but those either didn't work or exported what jPSXdec and PSicture can see as well. I'm pretty new to this level of ROM hacking, so I'm pretty out of my depth. I've only really done simple hex edits for another game called SaGa Frontier up to this point, but I'm willing to learn how to do this manually if need be.

If someone reading this is willing to at least point me in the right direction, I'm sure I can figure something out given enough time. Any and all help is well appreciated.

You can download the .PAC files from all 3 discs here: https://www.ffvdgames.com/wp-content/uploads/2021/11/Soukaigi-PAC.7z. Feel free to pick at them. CHAR.PAC should be player and enemy characters, DTPAC.PAC should be main menu stuff and stages, PMV.PAC might be attacks and menu textures and such but I don't know, and I have no clue what STG1.PAC could be. I haven't done a ton of digging, but I'm assuming CHAR.PAC and STG1.PAC are the same across all 3 discs since there's a NG+.
ffvdgames
Posts: 2
Joined: Wed Nov 17, 2021 9:25 am

Re: Need help with Soukaigi .PAC files

Post by ffvdgames »

Nevermind. Turns out there's an old .PAC extractor for Yuke's wrestling games that works with DPAC-type files since they were used on the PS2, though the tool is definitely jank. I now have every sub-file separated into .dat files, which will make this translation patch a hell of a lot easier to make. I guess I'll update this thread again either when I run into another PAC-related problem or I finish the patch
rabatini
Posts: 179
Joined: Tue Jan 18, 2022 12:21 am

Re: Need help with Soukaigi .PAC files

Post by rabatini »

ffvdgames wrote:Nevermind. Turns out there's an old .PAC extractor for Yuke's wrestling games that works with DPAC-type files since they were used on the PS2, though the tool is definitely jank. I now have every sub-file separated into .dat files, which will make this translation patch a hell of a lot easier to make. I guess I'll update this thread again either when I run into another PAC-related problem or I finish the patch


You can use this script that i've made for EVIL ZONE

Code: Select all

# Script by Rabatini (Luke)
# Evil Zone (.PAC)
# Version 0.2b

idstring "DPAC"
GET UNK LONG
Get ENTRIES Long
goto 0x800
For RIP = 1 To ENTRIES
GetDString NAME 0x0c
Get OFFSET SHORT
XMath OFFSET "(OFFSET * 0x800)"
Get SIZE SHORT
XMath SIZE "(SIZE * 0x800)"
log name offset size

Next RIP