Lego Star Wars II (NDS) *.FIB

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Lego Star Wars II (NDS) *.FIB

Post by Mygoshi »

Hi! I need a script to extract the music from this game.

Link: https://mega.co.nz/#!MEgWHRxD!1dC5WXatT ... LwJlH-UzY0

Thanks.
Last edited by Mygoshi on Fri Jan 14, 2022 10:18 pm, edited 2 times in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Lego Star Wars II (NDS) *.BFM_multi

Post by aluigi »

It's just a sequence of offsets:

Code: Select all

get DUMMY1 long
get DUMMY2 long
get DUMMY3 long
get DUMMY4 long
get DUMMY5 long
get DUMMY6 long
savepos TMP
xmath FILES "(DUMMY6 - TMP) / 4"
    get OFFSET long
for i = 1 <= FILES
    if i == FILES
        get NEXT_OFF asize
    else
        get NEXT_OFF long
    endif
    xmath SIZE "NEXT_OFF - OFFSET"
    log "" OFFSET SIZE
    math OFFSET = NEXT_OFF
next i
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Lego Star Wars II (NDS) *.FIB

Post by Mygoshi »

I have a big problem with quickbms on Windows 8.1 though
Last edited by Mygoshi on Fri Jan 14, 2022 10:19 pm, edited 1 time in total.
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Lego Star Wars II (NDS) *.FIB

Post by Mygoshi »

Is that normal the biggest extracted file is just 57kb?
Last edited by Mygoshi on Fri Jan 14, 2022 10:21 pm, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Lego Star Wars II (NDS) *.BFM_multi

Post by aluigi »

Regarding Windows 8.1, I already tested quickbms with that OS and it works perfectly.
Probably you have a driver or an external software that tries to access invalid zones of the memory of quickbms and crashing it.
This is exactly what happened with the bugged ASUS Xonar drivers.

It's difficult to tell you more from here because you should debug quickbms and giving me more information.

The total size of the extracted files matches the original archive, so it's all correct.
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Lego Star Wars II (NDS) *.FIB

Post by Mygoshi »

Yes it seems correct after all.
Last edited by Mygoshi on Fri Jan 14, 2022 10:23 pm, edited 1 time in total.
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Lego Star Wars II (NDS) *.FIB

Post by Mygoshi »

I truly loved the music from this game.
Last edited by Mygoshi on Fri Jan 14, 2022 10:23 pm, edited 2 times in total.
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Lego Star Wars II (NDS) *.FIB

Post by Mygoshi »

Here are other samples which may be useful: (expired)
Last edited by Mygoshi on Fri Jan 14, 2022 10:24 pm, edited 2 times in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Lego Star Wars II (NDS) *.BFM_multi

Post by aluigi »

Code: Select all

get BIN_SIZE asize
    get OFFSET long
do
    get NEXT_OFF long
    xmath SIZE "NEXT_OFF - OFFSET"
    log "" OFFSET SIZE
    math OFFSET = NEXT_OFF
while OFFSET != BIN_SIZE
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Lego Star Wars II (NDS) *.FIB

Post by Mygoshi »

Thanks! After some checks I know the music is stored in SoundData.rom now.
Last edited by Mygoshi on Fri Jan 14, 2022 10:25 pm, edited 2 times in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Lego Star Wars II (NDS) *.BFM_multi

Post by aluigi »

maybe provide this new file
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Lego Star Wars II (NDS) *.FIB

Post by Mygoshi »

Here it is: (expired)