Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Star Wars Starfighter (PS2) .PAK archives

Featured Replies

  • Author
  • Localization

SlyCooperReloadCoded, posted Thu Aug 19, 2021 7:40 pm (65790)


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
  • Author
  • Localization

Ekey, posted Thu Aug 19, 2021 10:24 pm (65791)


Code:
# 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
  • Author
  • Localization

SlyCooperReloadCoded, posted Fri Aug 20, 2021 1:26 am (65793)


Wow, that really works. Is there any way to put this on QuickBMS's site?
  • Author
  • Localization

Ekey, posted Fri Aug 20, 2021 10:35 am (65797)


You can ask Luigi about this :)
  • Author
  • Localization

SlyCooperReloadCoded, posted Sun Aug 22, 2021 12:21 am (65814)


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.
  • Author
  • Localization

aluigi, posted Fri Aug 27, 2021 12:58 pm (65919)


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
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.