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.

I'm curious about how to use the vgmtoolbox.

Featured Replies

  • Author
  • Localization

fkcpt456, posted Sun Jan 09, 2022 8:27 am (68887)


samurai warriors xtreme legends Linkdata.cns file.

http://naver.me/xwDoVAai

I would like to know how to use 'vgmtoolbox' to extract the SShd/SSbd file.
  • Author
  • Localization

BloodRaynare, posted Sun Jan 09, 2022 9:01 am (68888)


From my experience of modding Omega Force's PS2 Warriors games, They never used that format for the ingame BGM, well unless you only wanted the audio track of the FMV cutscenes, which indeed was inside that CNS archive, while the ingame BGM is on the ANS archive file IIRC.

Anyway, as for using VGMToolbox to extract the *NS archive, you can use the "Virtual File System Extractor" section to extract the contents of the archive. The archive file spec goes like this (I'll try make it simple as possible):

Code:
0x00: Archive ID? (4 bytes) 
0x04: File counts (4 bytes)
0x08: Offset multipliers (4 bytes)
0x0c: Unknown (Always zero?) (4 bytes)
File records starts at offset 0x10
For the N of each records:
0x00 - Offset the files (Must be multiplied using the multipliers values from before) (4 bytes)
0x04 - Sizes of the file (4 bytes)


Use the spec info above to fill the necessary field for the extraction.
  • Author
  • Localization

aluigi, posted Sun Jan 09, 2022 9:39 am (68892)


I didn't check the file, just wrote a script for quickbms based on BloodRaynare's info:
Code:
get ARCHIVE_ID long
get FILES long
get MUL long
get ZERO long
for i = 0 < FILES
    get OFFSET long
    math OFFSET * MUL
    get SIZE long
    log "" OFFSET SIZE
next i
  • Author
  • Localization

BloodRaynare, posted Sun Jan 09, 2022 10:48 am (68897)


Umm, so I checked this game just for curiosity, and turns out the header info was hardcoded in the executable, so the archive files contains nothing but sequenced files. And by quick glance in ps2dis, looks like the file spec is different too. However, unless OP provided the SLPM/SLPS/SLUS/SLES files too, nothing can be done.
Still, assuming that this thread is about SW1 and it's variants. SW2 did actually contains header info on every *NS archives.
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.