LEGO Star Wars II: The Original Trilogy (NDS) *.FIB

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: LEGO Star Wars II: The Original Trilogy (NDS) *.FIB

Post by AlphaTwentyThree »

Thanks for this!
There's some error hidden inside the script - the uncompressed files are sometimes truncated. Take this archive:
http://www12.zippyshare.com/v/xEGagmjn/file.html
http://www12.zippyshare.com/v/DEibBgqw/file.html
First of all, the script finishes with an error. Then, there are three examples for truncated files, the ones I found after a quick check: 8e, bb and 40b. They contain cwav files, which have the full file size at offset 0xc. The last file is truncated in all of these examples.
BTW, yes, the music is included in the files with known compression so your script is perfect once it functions properly.
Thanks for taking another look!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: LEGO Star Wars II: The Original Trilogy (NDS) *.FIB

Post by aluigi »

No, really, this format is pure crap with every archive which is not compatible with the others, complete lack of reliability and any sense.
The only alternative is removing the script, I have chosen to add an additional useless work-around but I will no longer waste time here.
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: LEGO Star Wars II: The Original Trilogy (NDS) *.FIB

Post by AlphaTwentyThree »

Understandable. :\
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: LEGO Star Wars II: The Original Trilogy (NDS) *.FIB

Post by AlphaTwentyThree »

Maybe I'll try to implement more variants or rather write individual scripts for different games. I know that the demand is there, so why not do some good? ;)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: LEGO Star Wars II: The Original Trilogy (NDS) *.FIB

Post by aluigi »

I think that's the only solution, well done
SSSerek
Posts: 1
Joined: Fri Oct 25, 2019 11:04 pm

Re: LEGO Star Wars II: The Original Trilogy (NDS) *.FIB

Post by SSSerek »

Hello!
I know this format is known for being a mess, but I just found out that I have two of these games that have .CSV files attached - LEGO Harry Potter: Years 5-7 and LEGO City: Undercover, both for 3DS. I'd like to try and translate them to Polish. LEGO HP extracts flawlessly - LEGO City, however, doesn't at all. It does unpack without CSV file, but with it the script doesn't unpack anything. I think there may be something different in these two CSV files, could anybody look into it? I am quite positive that the .fib file itself doesn't differ from the LEGO HP one.
PS. In the .csv I found some text files listed with "_pl" suffixes. Maybe Polish language is already implemented into the game, but isn't available?
smithdog
Posts: 2
Joined: Sun May 23, 2021 12:36 pm

Re: LEGO Star Wars II: The Original Trilogy (NDS) *.FIB

Post by smithdog »

Is it possible at all just to even extract the .tga files from the .fib files (the ones that have them), on any of the portable versions of any of the lego games?