Star Wars Starfighter for the PS2 uses .PAK archives which currently (according to what I can find) have no BMS scripts that can extract its .PAK archives. I actually had a long talk with ex-Lead Developer Brett Douville about a lot of other stuff about the games, and he said that these archives should be stupidly simple to understand.
In his words, "It's *super* simple. It basically starts with some version info and then I think is a table of filenames and file sizes and offsets to that sub-file inside the package. It's possible that the manifest is actually at the end of the file or something (again, 20 years old here) but it's literally the simplest possible version of the thing".
Could an unpacker be made for these that fully unpacks all the files from any one of them? It seems this'll be a simple job, but I have no idea how to do any programming or scripting. Here's a download for the data archives so people can take a look at them:
https://mega.nz/file/CEBVDIiR#n9lirz6Op ... kL0Qsemy4s
Star Wars Starfighter (PS2) .PAK archives
-
- Posts: 29
- Joined: Thu Apr 11, 2019 7:39 pm
-
- Posts: 1383
- Joined: Sat Aug 09, 2014 2:34 pm
Re: Star Wars Starfighter (PS2) .PAK archives
Code: Select all
# Star Wars Starfighter (PS2) (PAK & PMDL) format
# script for QuickBMS http://quickbms.aluigi.org
idstring "Europa Packfile\x00"
goto 0x15
get TABLE_OFFSET long
get TABLE_SIZE long
get FILES long
goto TABLE_OFFSET
for i = 0 < FILES
get NAME_LENGTH byte
getdstring NAME NAME_LENGTH
get OFFSET long
get SIZE long
get TIME long
log NAME OFFSET SIZE
next i
-
- Posts: 29
- Joined: Thu Apr 11, 2019 7:39 pm
Re: Star Wars Starfighter (PS2) .PAK archives
Wow, that really works. Is there any way to put this on QuickBMS's site?
-
- Posts: 1383
- Joined: Sat Aug 09, 2014 2:34 pm
Re: Star Wars Starfighter (PS2) .PAK archives
You can ask Luigi about this
-
- Posts: 29
- Joined: Thu Apr 11, 2019 7:39 pm
Re: Star Wars Starfighter (PS2) .PAK archives
Could this process be reversed? I'd love to be able to take the extracted structure, add files into it, then repack it so the game would still be able to read from the PAK no problem. That's the only way modding would ever exist.
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: Star Wars Starfighter (PS2) .PAK archives
Oh the quickbms website I only collect the scripts written by me or on which I did some fixes/updates
The script is valid for reimport2 so I suggest you to try it.
For info about reimporting please check section 3 of http://aluigi.org/papers/quickbms.txt
The script is valid for reimport2 so I suggest you to try it.
For info about reimporting please check section 3 of http://aluigi.org/papers/quickbms.txt