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.

Bloody Roar 3 (PS2) "WFP" FILES

Featured Replies

  • Author
  • Localization

pepodmc, posted Sat Mar 14, 2015 9:57 pm (3885)


.

WFP files can be found in the DAT File (when you decompress it) together with a CFG...


FOR EXAMPLE:

STG01.WFP
STG01.CFG



LINK:

https://mega.co.nz/#!igJEwb5K!pNMcDU5sx ... ICYd5x7EzE



I need a script that can both extract and re-import custom files into this archives, if someone can help me it would be great! :D (If it's possible)
  • Author
  • Localization

aluigi, posted Sat Mar 14, 2015 10:46 pm (3887)


WFP are audio (mono).
  • Author
  • Localization

pepodmc, posted Sun Mar 15, 2015 7:53 am (3888)


aluigi wrote:
WFP are audio (mono).



and how can i modify them? because each WFP contains 8 sounds of the game or more. (voices or sound effects) and when I tried to open them with the program "Awave Studio", it give me an error message.
  • Author
  • Localization

aluigi, posted Sun Mar 15, 2015 10:49 am (3890)


Code:
open FDDE "CFG"
open FDDE "WFP" 1

findloc OFFSET binary "IECSigaV"
math BASE_OFF = OFFSET
math OFFSET = 8
goto OFFSET
get DUMMY long
get FILES long
math FILES = 1
for i = 0 < FILES
    get OFFSET long
    savepos TMP
    math OFFSET = BASE_OFF
    goto OFFSET
    get OFFSET long
    get FREQ threebyte
    get DUMMY byte
    goto TMP
    putarray 0 i OFFSET
    putarray 1 i FREQ
next i

    getarray OFFSET 0 0
    getarray FREQ   1 0
for i = 1 <= FILES
    if i == FILES
        get NEXT_OFFSET asize 1
    else
        getarray NEXT_OFFSET 0 i
        getarray NEXT_FREQ   1 i
    endif
    xmath SIZE "NEXT_OFFSET - OFFSET"

    endian big
    log MEMORY_FILE 0 0
    putdstring "VAGp" 4 MEMORY_FILE
    put 32 long MEMORY_FILE
    put 0 long MEMORY_FILE
    put SIZE long MEMORY_FILE
    put FREQ long MEMORY_FILE
    for x = 0 < 12
        put 0 byte MEMORY_FILE
    next x
    string NAME p= "%016x" i
    putdstring NAME 16 MEMORY_FILE
    for x = 0 < 16
        put 0 byte MEMORY_FILE
    next x
    append
    log MEMORY_FILE OFFSET SIZE 1
    append
    endian little

    string NAME = ".vag"
    get SIZE asize MEMORY_FILE
    log NAME 0 SIZE MEMORY_FILE

    math OFFSET = NEXT_OFFSET
    math FREQ = NEXT_FREQ
next i
  • Author
  • Localization

pepodmc, posted Sun Mar 15, 2015 12:01 pm (3892)


aluigi wrote:
Code:
open FDDE "CFG"
open FDDE "WFP" 1

findloc OFFSET binary "IECSigaV"
math BASE_OFF = OFFSET
math OFFSET = 8
goto OFFSET
get DUMMY long
get FILES long
math FILES = 1
for i = 0     get OFFSET long
    savepos TMP
    math OFFSET = BASE_OFF
    goto OFFSET
    get OFFSET long
    get FREQ threebyte
    get DUMMY byte
    goto TMP
    putarray 0 i OFFSET
    putarray 1 i FREQ
next i

    getarray OFFSET 0 0
    getarray FREQ   1 0
for i = 1     if i == FILES
        get NEXT_OFFSET asize 1
    else
        getarray NEXT_OFFSET 0 i
        getarray NEXT_FREQ   1 i
    endif
    xmath SIZE "NEXT_OFFSET - OFFSET"

    endian big
    log MEMORY_FILE 0 0
    putdstring "VAGp" 4 MEMORY_FILE
    put 32 long MEMORY_FILE
    put 0 long MEMORY_FILE
    put SIZE long MEMORY_FILE
    put FREQ long MEMORY_FILE
    for x = 0         put 0 byte MEMORY_FILE
    next x
    string NAME p= "%016x" i
    putdstring NAME 16 MEMORY_FILE
    for x = 0         put 0 byte MEMORY_FILE
    next x
    append
    log MEMORY_FILE OFFSET SIZE 1
    append
    endian little

    string NAME = ".vag"
    get SIZE asize MEMORY_FILE
    log NAME 0 SIZE MEMORY_FILE

    math OFFSET = NEXT_OFFSET
    math FREQ = NEXT_FREQ
next i




YOU ARE AMAzING MAN!! and so quick (you are the autor of QuickBMS so it's understandable xd ) :mrgreen: :mrgreen: :mrgreen: :mrgreen: , now with "MF Audio" I can convert the VAG files into wav and modify them or put new sounds into the WFP files. 8-)

Thanks really :D :mrgreen:
  • Author
  • Localization

pepodmc, posted Sun Mar 15, 2015 1:41 pm (3897)


aluigi wrote:
Code:
open FDDE "CFG"
open FDDE "WFP" 1

findloc OFFSET binary "IECSigaV"
math BASE_OFF = OFFSET
math OFFSET = 8
goto OFFSET
get DUMMY long
get FILES long
math FILES = 1
for i = 0 < FILES
    get OFFSET long
    savepos TMP
    math OFFSET = BASE_OFF
    goto OFFSET
    get OFFSET long
    get FREQ threebyte
    get DUMMY byte
    goto TMP
    putarray 0 i OFFSET
    putarray 1 i FREQ
next i

    getarray OFFSET 0 0
    getarray FREQ   1 0
for i = 1 <= FILES
    if i == FILES
        get NEXT_OFFSET asize 1
    else
        getarray NEXT_OFFSET 0 i
        getarray NEXT_FREQ   1 i
    endif
    xmath SIZE "NEXT_OFFSET - OFFSET"

    endian big
    log MEMORY_FILE 0 0
    putdstring "VAGp" 4 MEMORY_FILE
    put 32 long MEMORY_FILE
    put 0 long MEMORY_FILE
    put SIZE long MEMORY_FILE
    put FREQ long MEMORY_FILE
    for x = 0 < 12
        put 0 byte MEMORY_FILE
    next x
    string NAME p= "%016x" i
    putdstring NAME 16 MEMORY_FILE
    for x = 0 < 16
        put 0 byte MEMORY_FILE
    next x
    append
    log MEMORY_FILE OFFSET SIZE 1
    append
    endian little

    string NAME = ".vag"
    get SIZE asize MEMORY_FILE
    log NAME 0 SIZE MEMORY_FILE

    math OFFSET = NEXT_OFFSET
    math FREQ = NEXT_FREQ
next i



I have a problem. Even if I don't do any modification and only extract the vag files from the WFP, when i Tried to Reimport the Vag files (unmodified) an error message appears:





With QuicBMS editor GUI V2.0 this appears:


- c_structs: "xmath" "SIZE" "NEXT_OFFSET - OFFSET"






And with the normal option of Reimport.bat this appears:



Script invalid for reimporting, it uses MEMORY_FILEs".


-----------------------------------------------------------------------------------------------------


I need a new script for reimport the VAG files?
  • Author
  • Localization

aluigi, posted Sun Mar 15, 2015 3:41 pm (3899)


You are using an old version of quickbms:
http://quickbms.aluigi.org

Reimporting of the vag file is not possible because the script generates the vag from raw data, what I can do is dumping the raw data but then you have to manually remove the VAG header (the first 0x40 bytes) before reimporting.
  • Author
  • Localization

pepodmc, posted Sun Mar 15, 2015 4:05 pm (3901)


aluigi wrote:
You are using an old version of quickbms:
http://quickbms.aluigi.org

Reimporting of the vag file is not possible because the script generates the vag from raw data, what I can do is dumping the raw data but then you have to manually remove the VAG header (the first 0x40 bytes) before reimporting.


Can you explain to me how to do that? with a Hex Editor i must delete the first four or five lines?

Image



and this too (if you dont mind please)...

what I can do is dumping the raw data
  • Author
  • Localization

aluigi, posted Sun Mar 15, 2015 4:27 pm (3904)


The first 4 lines.

While for the script use this one:
Code:
open FDDE "CFG"
open FDDE "WFP" 1

findloc OFFSET binary "IECSigaV"
math BASE_OFF = OFFSET
math OFFSET = 8
goto OFFSET
get DUMMY long
get FILES long
math FILES = 1
for i = 0 < FILES
    get OFFSET long
    savepos TMP
    math OFFSET = BASE_OFF
    goto OFFSET
    get OFFSET long
    get FREQ threebyte
    get DUMMY byte
    goto TMP
    putarray 0 i OFFSET
    putarray 1 i FREQ
next i

    getarray OFFSET 0 0
    getarray FREQ   1 0
for i = 1 <= FILES
    if i == FILES
        get NEXT_OFFSET asize 1
    else
        getarray NEXT_OFFSET 0 i
        getarray NEXT_FREQ   1 i
    endif
    xmath SIZE "NEXT_OFFSET - OFFSET"

    string NAME p= "%016x" i
    string NAME = ".vag"
    log NAME OFFSET SIZE 1

    math OFFSET = NEXT_OFFSET
    math FREQ = NEXT_FREQ
next i

*edit* script fixed
  • Author
  • Localization

pepodmc, posted Sun Mar 15, 2015 7:40 pm (3911)


aluigi wrote:
The first 4 lines.



Can you try reimport the VAG ? please, because , perhaps i'm doing something wrong




This is a link with the unmodified files, modified files (removed header) and the WFP:

https://mega.co.nz/#!jtBjVSZD!iBpnCzJOs ... CPbghoE9d4
  • Author
  • Localization

aluigi, posted Sun Mar 15, 2015 9:23 pm (3914)


My fault, I forgot 2 lines of script that generated a wrong filename.
I have edited the previous post with the correct script, now it should work correctly.
  • Author
  • Localization

pepodmc, posted Mon Mar 16, 2015 7:27 am (3916)


aluigi wrote:
My fault, I forgot 2 lines of script that generated a wrong filename.
I have edited the previous post with the correct script, now it should work correctly.


It work!!

Thanks!! :mrgreen:
  • Author
  • Localization

pepodmc, posted Mon Mar 16, 2015 4:43 pm (3926)


aluigi wrote:
My fault, I forgot 2 lines of script that generated a wrong filename.
I have edited the previous post with the correct script, now it should work correctly.



Is there a way of reimport bigger files than the original? or it's impossible?
  • Author
  • Localization

aluigi, posted Tue Mar 17, 2015 9:55 am (3937)


I guess you know the answer.
It's called "reimporting" but it's just a "reinjection"
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.