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.

PS2GAME:[???????????/School Rumble Nigakki]How to expand a PAC/BIN file

Featured Replies

  • Author
  • Localization

Parasite, posted Mon Feb 06, 2023 8:07 am (75312)


PS2GAME:?School Rumble Nigakki?I would like to extract the data stored in the PAC/BIN file.

If anyone can tell me how to extract from PAC/BIN files, I would appreciate it.
  • Author
  • Localization

Parasite, posted Mon Feb 06, 2023 8:26 am (75313)


Parasite wrote:
PS2GAME:?School Rumble Nigakki?I would like to extract the data stored in the PAC/BIN file.

If anyone can tell me how to extract from PAC/BIN files, I would appreciate it.

GAME DATA
https://mega.nz/file/HgUF2JaS#-RuFSnkij ... MnM19Xkorg
SLPS
https://mega.nz/file/m4swnDpZ#BuTbrS48C ... xwWDn1lj44
  • Author
  • Localization

BloodRaynare, posted Tue Feb 07, 2023 12:50 am (75322)


Here's the script to extract the PAC.BIN
The executable must be in the same directory as PAC.BIN file

Code:
open FDSE SLPS_256.70
open FDSE PAC.BIN 1

math TOC = 0xB7790
goto TOC

for i = 0
   get HASH  long
   get HASH2 long
   if HASH == 0 || HASH2 == long
      break
   endif
   get OFFSET long
   math OFFSET * 0x800
   
   get SIZE long
   get UNK long
   get ZERO long
   
   string NAME p "d." i
   log NAME OFFSET SIZE 1
next i


And here's the script to decompress/extract the files inside the .img/.dat/.upa files
Note: Not all dat files are archive files. The one after the upa files is stereo Sony ADPCM audio file.

Code:
comtype lzss0

getDstring MAGIC 4

if MAGIC == "UPAC"
   get UNK long
   get START_OFF long
   get FILES long
   for i = 0 < FILES
      savepos TMP
      get ZSIZE long
      get ZSIZE2 long
      get ID long
      get SIZE long
      math ZSIZE2 - 8
      savepos TMP2
      string NAME p "d." i
      clog NAME TMP2 ZSIZE2 SIZE
      math TMP ZSIZE
      goto TMP
   next i
else
   goto 0
   for i = 0
      get OFFSET long
      get SIZE long
      if SIZE == OFFSET
         break
      endif
      get UNK long
      log MEMORY_FILE OFFSET 8
      getDstring MAGIC 4 MEMORY_FILE
      string NAME p "d." i
      if MAGIC == "LZS"
         math ZSIZE = SIZE
         math ZSIZE - 8
         get SIZE long MEMORY_FILE
         math OFFSET 8
         clog NAME OFFSET ZSIZE SIZE
      else
         log NAME OFFSET SIZE
      endif
   next i
endif

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.