Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Trine 2 (data1.fbq)

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Lygatt
n00b
Posts: 12
Joined: Fri Aug 26, 2011 2:22 pm

Trine 2 (data1.fbq)

Post by Lygatt »

Violation of rules.
User avatar
aluigi
VVIP member
VVIP member
Posts: 1916
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 664 times
Contact:

Re: Trine 2 (data1.fbq)

Post by aluigi »

Lygatt
n00b
Posts: 12
Joined: Fri Aug 26, 2011 2:22 pm

Re: Trine 2 (data1.fbq)

Post by Lygatt »

Violation of rules.
hcs
mega-veteran
mega-veteran
Posts: 263
Joined: Sun Oct 18, 2009 9:41 pm
Location: Portland, OR
Has thanked: 3 times
Been thanked: 79 times
Contact:

Re: Trine 2 (data1.fbq)

Post by hcs »

The good news is these ogg files are supported by the latest version of ww2ogg (http://hcs64.com/vgm_ripping.html). However, I believe the extraction script is flawed, the files all seem to be 0xc bytes too early. I think this will fix it, but I haven't tested it.

[edit] script removed as aluigi has fixed his script linked above[/edit]

Another thing to be wary of is that ww2ogg 0.16 doesn't produce perfectly clean output in general (see the note about revorb), and it is even worse for this type of file (using shortened Vorbis packets which lack the previous and next window bits). It is possible that the output files will not work properly in some hardware decoders, or programs that use the Tremor decoder. I am thinking about how to fix this but I don't have a lot of time to do new work.

I was able to test a few files successfully with audacity, and it should be fine with the standard libvorbis reference decoder, so it will probably work once the extraction script is fixed.
Last edited by hcs on Sun Nov 06, 2011 12:50 am, edited 1 time in total.
User avatar
aluigi
VVIP member
VVIP member
Posts: 1916
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 664 times
Contact:

Re: Trine 2 (data1.fbq)

Post by aluigi »

thanx for the info hcs, I have corrected the script.
in short there is also ZSIZE - 0xc to be removed so I have simply used a BASE_OFF += 0xc at the beginning
Lygatt
n00b
Posts: 12
Joined: Fri Aug 26, 2011 2:22 pm

Re: Trine 2 (data1.fbq)

Post by Lygatt »

Thank you HCS, really awesome, all worked perfectly!
I also used revorb to fix the output from ww2ogg as suggested and everything is fine.

Aluigi and HCS thanks a lot for your support.
johntus
advanced
Posts: 48
Joined: Sat Jun 13, 2009 7:31 pm
Has thanked: 2 times
Been thanked: 5 times

Re: Trine 2 (data1.fbq)

Post by johntus »

Hello.
Is there any way to pack files back to data1.fbq?
User avatar
aluigi
VVIP member
VVIP member
Posts: 1916
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 664 times
Contact:

Re: Trine 2 (data1.fbq)

Post by aluigi »

section 3 of quickbms.txt:
http://aluigi.org/papers/quickbms.txt
johntus
advanced
Posts: 48
Joined: Sat Jun 13, 2009 7:31 pm
Has thanked: 2 times
Been thanked: 5 times

Re: Trine 2 (data1.fbq)

Post by johntus »

aluigi wrote:section 3 of quickbms.txt:
http://aluigi.org/papers/quickbms.txt
Thanx!
hyndai
advanced
Posts: 58
Joined: Tue Jun 03, 2008 9:55 pm
Has thanked: 4 times
Been thanked: 1 time

Re: Trine 2 (data1.fbq)

Post by hyndai »

thx aluigi but links no works http://aluigi.altervista.org/papers/bms/trine2.bms can you solve it plz.
finale00
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2382
Joined: Sat Apr 09, 2011 1:22 am
Has thanked: 170 times
Been thanked: 307 times

Re: Trine 2 (data1.fbq)

Post by finale00 »

Manually copy it into your browser.
speechless
ultra-n00b
Posts: 1
Joined: Fri Dec 30, 2011 6:00 am

Re: Trine 2 (data1.fbq)

Post by speechless »

Read through this thread, followed the instructions. Gotten 4,036 perfect .ogg's
after i extracted the audio files out of the data.fbq file.

I wrote this .bat to do all the work for me.
I will leave this here

Code: Select all

@echo off

echo speechless .ogg conversion .bat file

::Paths for
::  1) input ogg folder
::  2) output ogg folder
::  3) ww2ogg folder
::  4) packed codebook for ww2ogg.exe
::  5) revorb folder
echo Setting Temp Paths
setlocal
:: NOTE TO ALL: make sure you have changed the SET paths below to the locations you want/where your files are at
SET inputOGGfolder=C:\Users\speechless\Desktop\Trine2OGG\data\audio\windows
SET outputOGGfolder=C:\Users\speechless\Desktop\outputOGG
SET ww2orgFolder=C:\Users\speechless\Ripping Music\ww2ogg
SET packedCodebook=C:\Users\speechless\Ripping Music\ww2ogg\packed_codebooks.bin
SET revorbFolder=C:\Users\speechless\Ripping Music\revorb

echo Converting .ogg files [please wait]
for %%a in ("%inputOGGfolder%\*.ogg") do "%ww2orgFolder%\ww2ogg" "%%a" --pcb "%packedCodebook%"
for %%a in ("%inputOGGfolder%\english_us_\*.ogg") do "%ww2orgFolder%\ww2ogg" "%%a" --pcb "%packedCodebook%"
for %%a in ("%inputOGGfolder%\french_france_\*.ogg") do "%ww2orgFolder%\ww2ogg" "%%a" --pcb "%packedCodebook%"
for %%a in ("%inputOGGfolder%\german\*.ogg") do "%ww2orgFolder%\ww2ogg" "%%a" --pcb "%packedCodebook%"
for %%a in ("%inputOGGfolder%\spanish_spain_\*.ogg") do "%ww2orgFolder%\ww2ogg" "%%a" --pcb "%packedCodebook%"

echo Moving converted .ogg files to Output Folder [please wait]
for %%a in ("%inputOGGfolder%\*.ogg_conv.ogg") do move "%%a" "%outputOGGfolder%"
for %%a in ("%inputOGGfolder%\english_us_\*.ogg_conv.ogg") do move "%%a" "%outputOGGfolder%\english_us_"
for %%a in ("%inputOGGfolder%\french_france_\*.ogg_conv.ogg") do move "%%a" "%outputOGGfolder%\french_france_"
for %%a in ("%inputOGGfolder%\german\*.ogg_conv.ogg") do move "%%a" "%outputOGGfolder%\german"
for %%a in ("%inputOGGfolder%\spanish_spain_\*.ogg_conv.ogg") do move "%%a" "%outputOGGfolder%\spanish_spain_"

echo Removing errors in converted .ogg files [please wait]
for %%a in ("%outputOGGfolder%\*.ogg_conv.ogg") do "%revorbFolder%\revorb" "%%a"
for %%a in ("%outputOGGfolder%\english_us_\*.ogg_conv.ogg") do "%revorbFolder%\revorb" "%%a"
for %%a in ("%outputOGGfolder%\french_france_\*.ogg_conv.ogg") do "%revorbFolder%\revorb" "%%a"
for %%a in ("%outputOGGfolder%\german\*.ogg_conv.ogg") do "%revorbFolder%\revorb" "%%a"
for %%a in ("%outputOGGfolder%\spanish_spain_\*.ogg_conv.ogg") do "%revorbFolder%\revorb" "%%a"
endlocal

echo .ogg conversion complete
pause
copy the code into a .bat file, edit/use it as you feel like.

p.s. it is not really that great, for that i apologize, this is the first .bat code i have ever written in my left (:
User avatar
XpoZed
veteran
Posts: 144
Joined: Sat Oct 24, 2009 5:08 pm
Location: Bulgaria
Has thanked: 2 times
Been thanked: 50 times
Contact:

Re: Trine 2 (data1.fbq)

Post by XpoZed »

I don't think QuickBMS will be able to patch the resources right, because the game uses a custom CRC, that is later checked.
I might be wrong, but however i make a unpakke module for these type of archives.

Check the forum topic here: viewtopic.php?f=33&t=6168 or Unpakke's homepage here: http://nullsecurity.org/unpakke/
revex
ultra-n00b
Posts: 1
Joined: Wed Feb 08, 2012 7:10 am
Location: http://www.noobaran.com
Contact:

Re: Trine 2 (data1.fbq)

Post by revex »

when the going to reimport *.bin or *.fbi file shown error message (crash)
but reimport "trine 2" videos files with QuickBMS is ok
is there a solution to this problem?
User avatar
XpoZed
veteran
Posts: 144
Joined: Sat Oct 24, 2009 5:08 pm
Location: Bulgaria
Has thanked: 2 times
Been thanked: 50 times
Contact:

Re: Trine 2 (data1.fbq)

Post by XpoZed »

revex wrote:when the going to reimport *.bin or *.fbi file shown error message (crash)
but reimport "trine 2" videos files with QuickBMS is ok
is there a solution to this problem?
I didn't get that one... is it about Unpakke or about QuickBMS?
Post Reply