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.

Romance of the Three Kingdoms 11 wbd and whd

Featured Replies

  • Author
  • Localization

Yukino, posted Mon Dec 16, 2019 4:47 pm (52620)


Greetings.

I want to change sound effects of the RTK11. But it seems not to easy because I don't know these extensions and may be encrypted by Koei.

Can I establish the identity of these files using Quickbms or VGMToolBox, and achieve my purpose by any chance?
  • Author
  • Localization

Yukino, posted Sat Jan 18, 2020 1:24 pm (53339)


I refer to redump_audiobin script and finally made a quickbms script for extracting WBD(Sound file) and WHD(Header file). But it has an error.
Code:
endian little

open FDDE wbd 0 
open FDDE whd 1 

get UNK1 long 1
get WBDSIZE long 1
get HEADERLENGTH long 1
goto HEADERLENGTH 1

for i < 9 1
    get UNK2 long 1
    get FREQUENCY short 1
    get SUNK1 short 1
    get BITS short 1
    get CHANNELS short 1
    get null1 long 1
    get OFFSET long 1
    get UNK3 long 1
    get SIZE long 1
    get null2 long 1
    get UNK4 long 1
   get UNK5 long 1
   putarray 0 j OFFSET 1 0
    callfunction PCM 1 0
next i

startfunction PCM
    set MEMORY_FILE binary "\x52\x49\x46\x46\x00\x00\x00\x00\x57\x41\x56\x45\x66\x6d\x74\x20\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x64\x61\x74\x61\x00\x00\x00\x00"

    set RIFFSIZE long SIZE
    math RIFFSIZE = 36
    set BLOCKALIGN long BITS
    set AVGBYTES long FREQUENCY
    math BLOCKALIGN /= 8
    math BLOCKALIGN *= CHANNELS
    math AVGBYTES *= BLOCKALIGN

    putvarchr MEMORY_FILE 4 RIFFSIZE long
    putvarchr MEMORY_FILE 20 1 short          # wFormatTag: Microsoft PCM Format (0x0001)
    putvarchr MEMORY_FILE 22 CHANNELS short   # wChannels
    putvarchr MEMORY_FILE 24 FREQUENCY long   # dwSamplesPerSec
    putvarchr MEMORY_FILE 28 AVGBYTES long    # dwAvgBytesPerSec
    putvarchr MEMORY_FILE 32 BLOCKALIGN short # wBlockAlign
    putvarchr MEMORY_FILE 34 BITS short       # wBitsPerSample
    putvarchr MEMORY_FILE 40 SIZE long

    log MEMORY_FILE2 0 44 MEMORY_FILE
    append
    log MEMORY_FILE2 OFFSET SIZE
    append
    get RIFF_SIZE asize MEMORY_FILE2
    log "" 0 RIFF_SIZE MEMORY_FILE2
endfunction

Quote:
Error: incomplete input file 1: H:\Aluigi\Quickbms\BNK_ADV_2D.whd
Can't read 4 bytes from offset 000001c8.
Anyway don't worry, it's possible that the BMS script has been written
to exit in this way if it's reached the end of the archive so check it
or contact its author or verify that all the files have been extracted.
Please check the following coverage information to know if it's ok.

coverage file 1 81% 372 456 . offset 000001c8

Last script line before the error or that produced the error:
13 get UNK2 long 1

Press ENTER or close the window to quit

I really want to fix my script issue. Please help!

San11wbdandwhd.bms

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.