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.

void tRrLM(); //Void Terrarium (music files)

Featured Replies

  • Author
  • Localization

Lansam, posted Wed Jul 13, 2022 10:45 am (72591)


Hello,

Somehow I ended up in a situation that while I was checking files for Switch version of Void Terrarium, I tried to play music files, which are implied to be AT9/ATRAC, but obviously couldn't be played as is.

All music is stored in a single PS_FS_V1 file which can be split into separate at9 files easily. Resulting files, assuming they are really ATRAC, are missing header and likes. As far I can guess, there might be some compression (in header of that files there are values which are roughly match 2x of original file size, and good chances that LZ4, because there is data for that), or/and maybe some encryption (maybe XOR like it was implied in bms file for Yomawari - one of games from same developer).

In particular, I'm currently checking data for the sequel game. Would appreciate if anyone has ideas on the matter.

Original archive music file, if needed - BGM_0.dat.
Samples - 01.at9, 02.at9, 03.at9.

Update: managed to get corresponding file from PS4 version. To my surprise, PS4 doesn't use any encryption for music, you just remove first 24 bytes of individual at9 music file and done, you can play it. Filesize, they are roughly same size (69.7 for PS4 vs 70.9 for Switch) so it might be still at9 with some minor compression/encryption for Switch, and there is some visual similarity of same blocks in files between versions (like, you can see blocks of 0x00 in Switch and blocks of 0x01 in similar places for PS4, of different size). So, honestly not sure what's the deal with Switch version, doesn't feel like it was obfuscated on purpose. I might try to fiddle with files a bit more but otherwise will just try to grab playable music file from PS4 version of VT2 if/when I spot it. It's rather difficult to investigate with static disasm.

In case, music files from original game (links above are from sequel on Switch) - Switch Sound_BGM_0.dat and PS4 Sound_BGM_0.dat.

Update #2: alright, figured out after spending (a lot) more time. Cutting long story short, the music was actually in "libopus Opus" format. Cutting first 24 bytes of music files and naming as *.lopus, I could play them with vgmstream (for example, in Foobar).

Crappy sample script (based on existing PS_FS_V1 one):

Code:
idstring "PS_FS_V1"
get FILES longlong
for i = 0 < FILES
    getdstring NAME 0x30
    get SIZE longlong
    get OFFSET longlong
    math OFFSET 0x18
    string NAME ".lopus"
    log NAME OFFSET SIZE
next i
  • Author
  • Localization

Lansam, posted Mon Jul 18, 2022 12:19 pm (72642)


Updated original post.
  • Author
  • Localization

Lansam, posted Wed Jul 27, 2022 10:03 am (72774)


Final update, matter was resolved.
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.