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.

fsbext - Take filenames from TOC

Featured Replies

  • Author
  • Localization

Mygoshi, posted Wed Jan 24, 2018 8:01 pm (31872)


Hello. I have the game Avatar: The Last Airbender: The Burning Earth (PS2) which has FSB archives for audio but also TOC files which contain the FSB musc filenames. Unfortunately, FSBExt extracts the files without the filenames. Is there any way to take the TOC to apply filenames? Thanks in advance.
  • Author
  • Localization

Delutto, posted Wed Jan 24, 2018 9:50 pm (31875)


Upload some file sample.
  • Author
  • Localization

Mygoshi, posted Wed Jan 24, 2018 10:13 pm (31877)


Sorry?
  • Author
  • Localization

Delutto, posted Wed Jan 24, 2018 10:44 pm (31878)


You need be specific with what you want to do and how or everyone will just ignore this thread.
You want get FileName from TOC... OK
Are looking for a BMS statement which do that... ?!?
  • Author
  • Localization

aluigi, posted Thu Jan 25, 2018 9:13 am (31889)


@Mygoshi
eh??? An option for a tool based on a specific format (fsb) for taking filenames from a custom "toc" format used by a specific game?
And without samples too, oh sure :)
  • Author
  • Localization

aluigi, posted Thu Jan 25, 2018 10:51 am (31897)


This script parses the toc file and you can redirect the output to a bat file:
Code:
idstring "ctbw"
get NUM long
get NAMESZ byte
getdstring NAME NAMESZ
get FILES long
for i = 0 < FILES
    get NAMESZ byte
    getdstring NAME NAMESZ
    get DUMMY long  # 0 or 1
    get TSTAMP long
    get FREQ long
    string TMP p "move x.dat.ss2 %s.ss2" i NAME
    print "%TMP%"
next i
quickbms script.bms c7_level_static_wbsdvd.toc > run.bat
  • Author
  • Localization

Mygoshi, posted Thu Jan 25, 2018 11:32 am (31900)


Thank you very much!
  • Author
  • Localization

Mygoshi, posted Fri Jan 26, 2018 12:32 pm (31924)


How to adapt it for multiple files please?
  • Author
  • Localization

aluigi, posted Fri Jan 26, 2018 3:49 pm (31934)


I give you an example that you can personalize as you wish.

Original string:
Code:
string TMP p "move x.dat.ss2 %s.ss2" i NAME

New string:
Code:
get TOC_NAME basename
string TMP p "move %sx.dat.ss2 %s%s.ss2" TOC_NAME i TOC_NAME NAME
It's just text so it's easy to adapt it to your needs.
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.