LEGO Star Wars The Skywalker Saga DAT Archives

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Alub
Posts: 1
Joined: Sun Apr 03, 2022 3:44 am

LEGO Star Wars The Skywalker Saga DAT Archives

Post by Alub »

Hi there, I am interested in modding the new LEGO Star Wars game, the DAT file is actually almost the same as LEGO Star Wars The Force Awakens DAT files. The script that works with TFA however does not work for TSS. I can provide samples of DAT files if need be. Thanks for anyone's help!

Here is a screenshot of the TFA script outputs.
Image
Puterboy1
Posts: 382
Joined: Wed Sep 12, 2018 2:22 am

Re: LEGO Star Wars The Skywalker Saga DAT Archives

Post by Puterboy1 »

Can we have a sample or two?
Panzerdroid
Posts: 66
Joined: Sun Aug 30, 2015 12:51 pm

Re: LEGO Star Wars The Skywalker Saga DAT Archives

Post by Panzerdroid »

Puterboy1
Posts: 382
Joined: Wed Sep 12, 2018 2:22 am

Re: LEGO Star Wars The Skywalker Saga DAT Archives

Post by Puterboy1 »

Panzerdroid wrote:first 10 megs of one dat file
https://anonfiles.com/f9CbIfT1x3/GAME_DAT_BEGINNING

Nice, but we might need an entire .dat file to look things further.
SneakySteve
Posts: 2
Joined: Tue Apr 05, 2022 5:23 pm

Re: LEGO Star Wars The Skywalker Saga DAT Archives

Post by SneakySteve »

Puterboy1 wrote:
Panzerdroid wrote:first 10 megs of one dat file
https://anonfiles.com/f9CbIfT1x3/GAME_DAT_BEGINNING

Nice, but we might need an entire .dat file to look things further.


IDK how to actually use the files but this is one of the .DAT files from the main game directory. Hope it helps.
https://anonfiles.com/x9x0OdT3x6/CP_STORMTROOPER_DAT
MSQ
Posts: 20
Joined: Sat Oct 30, 2021 7:59 pm

Re: LEGO Star Wars The Skywalker Saga DAT Archives

Post by MSQ »

Samples of DLC Character Packs:

https://mega.co.nz/#!995CwRxL!AAAAAAAAA ... DSA_Se2Yus

Hopefully a BMS script can be constructed :P
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: LEGO Star Wars The Skywalker Saga DAT Archives

Post by spiritovod »

Here is fixed script for Skywalker Saga files from PC version. The difference from default script is that packed flag is now derived from offset field rather than size field. It's recommended to run it with 0.10.x quickbms (latest beta doesn't work correctly with used crc function), otherwise it may crash with an exception error on some files.

Update: The script is updated to support oodle compressed chunks.
Last edited by spiritovod on Tue Apr 05, 2022 10:15 pm, edited 1 time in total.
VJ+
Posts: 4
Joined: Tue Apr 05, 2022 8:04 pm

Re: LEGO Star Wars The Skywalker Saga DAT Archives

Post by VJ+ »

spiritovod wrote:Here is fixed script for Skywalker Saga files from PC version. The difference from default script is that packed flag is now derived from offset field rather than size field. It's recommended to run it with 0.10.x quickbms (latest beta doesn't work correctly with used crc function), otherwise it may crash with an exception error on some files.

i tried your script and it only seems to be extracting the DLC - for the GAME.dat files, it says 0 files found
MSQ
Posts: 20
Joined: Sat Oct 30, 2021 7:59 pm

Re: LEGO Star Wars The Skywalker Saga DAT Archives

Post by MSQ »

spiritovod wrote:Here is fixed script for Skywalker Saga files from PC version. The difference from default script is that packed flag is now derived from offset field rather than size field. It's recommended to run it with 0.10.x quickbms (latest beta doesn't work correctly with used crc function), otherwise it may crash with an exception error on some files.

Hi, unfortunately this script does not work for the GAME.DAT archives nor the LP audio archives, only the DLC packs. The difference being here that Oodle Kraken compression is being used with the OODL sign instead of DFLT/LZ2K used previously.

Here is a better sample of what cannot be unpacked: https://1fichier.com/?iq3b0w3kvv8f8bjdruhf

Not compressed, but still has OODL sign and cannot be unpacked either: https://1fichier.com/?wrc4zgiab1zvv4yoistd
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: LEGO Star Wars The Skywalker Saga DAT Archives

Post by spiritovod »

@VJ+, @MSQ: I've updated the script, it should now handle oodle compressed chunks as well. Tested only on the provided samples.
stalja
Posts: 2
Joined: Mon May 25, 2015 11:51 am

Re: LEGO Star Wars The Skywalker Saga DAT Archives

Post by stalja »

Just added oodle to UNPACK function and it seems to work now

Edit: spiritovod beat me to it :)
VJ+
Posts: 4
Joined: Tue Apr 05, 2022 8:04 pm

Re: LEGO Star Wars The Skywalker Saga DAT Archives

Post by VJ+ »

spiritovod wrote:@VJ+, @MSQ: I've updated the script, it should now handle oodle compressed chunks as well. Tested only on the provided samples.

works like a charm! thank you!
SneakySteve
Posts: 2
Joined: Tue Apr 05, 2022 5:23 pm

Re: LEGO Star Wars The Skywalker Saga DAT Archives

Post by SneakySteve »

Does anyone know if theres a way to further decompress/extract the files after quickbms extracts them from the .dat? I'm seeing files such as .PRJ, .GHG, .PC_SHADERS, .PREFAB_BAKED, etc.

Is there anything known about these files yet or is this a roadblock to modding the skywalker saga?
MSQ
Posts: 20
Joined: Sat Oct 30, 2021 7:59 pm

Re: LEGO Star Wars The Skywalker Saga DAT Archives

Post by MSQ »

spiritovod,
Thanks, working great!
VJ+
Posts: 4
Joined: Tue Apr 05, 2022 8:04 pm

Re: LEGO Star Wars The Skywalker Saga DAT Archives

Post by VJ+ »

SneakySteve wrote:Does anyone know if theres a way to further decompress/extract the files after quickbms extracts them from the .dat? I'm seeing files such as .PRJ, .GHG, .PC_SHADERS, .PREFAB_BAKED, etc.

Is there anything known about these files yet or is this a roadblock to modding the skywalker saga?

i've noticed this about the files in the "\AUDIO\PC\VO\VOX\" folder - they won't play at all and i can't figure them out
gunhandroid
Posts: 14
Joined: Sun Oct 03, 2021 2:25 pm

Re: LEGO Star Wars The Skywalker Saga DAT Archives

Post by gunhandroid »

spiritovod wrote:Here is fixed script for Skywalker Saga files from PC version. The difference from default script is that packed flag is now derived from offset field rather than size field. It's recommended to run it with 0.10.x quickbms (latest beta doesn't work correctly with used crc function), otherwise it may crash with an exception error on some files.

Update: The script is updated to support oodle compressed chunks.
Granheart
Posts: 14
Joined: Mon Jul 13, 2020 1:16 pm

Re: LEGO Star Wars The Skywalker Saga DAT Archives

Post by Granheart »

I managed to find the csv file for languages, and when I try to translate the english ones, some lines work, some lines disappear like the rows get pushed. For example in the intro

Luke: Breathe.

I translate it and it becomes: Luke

But other long sentences work like a charm even with characters not supported in the font. Main menu "NEW GAME" if I translate anything in the CSV it just becomes "NEW"

"Press any key / button to start" becomes "Press"

Any idea why is that happening? Using CSV editor and all but can't figure it out. Next task is getting the fonts and editing them for extra characters :D
desperados
Posts: 6
Joined: Tue May 26, 2015 9:45 am

Re: LEGO Star Wars The Skywalker Saga DAT Archives

Post by desperados »

So script.bms on reimport doesn't take fonts. (UI/FONT/DEFAULT/FONT_SUBTITLE_NXG.FT2)
It throws an error even though the file is exactly the same size.
I also used the origo font without modification and also the same, reimport does not work. It says it is a larger size. :cry:
Texts (TEXT.CSV) it takes fine, but fonts it doesn't want to take
Is there a way to fix this? thank you

text cmd reiport:

- REIMPORT MEMORY_FILE WORK-AROUND: "UI\FONT\EULAS\FONT_EULA_ASIAN_NXG.FT2"
- REIMPORT MEMORY_FILE WORK-AROUND: "UI\FONT\FONT_CONFIG.XML"
- REIMPORT MEMORY_FILE WORK-AROUND: "UI\FONT\DEFAULT\FONT_SUBTITLE_NXG.FT2"

Error: file "UI\FONT\DEFAULT\FONT_SUBTITLE_NXG.FT2"
the reimport option acts as a reinjector, thereforey ou cannot insert a
file if it's larger than the original for not overwriting the rest of
the archive which cannot be loaded correctly:

new size: 6942 (32768 uncompressed)
old size: 4419 (32768 uncompressed)

- do you want to skip this file, quit or retry? (y/N/r)
y: continue with the next file and skip the current file
N: (default) terminate QuickBMS, maybe try later with the -r -r mode
r: retry the reimporting so you can edit the file in the meantime
force: corrupt the archive by writing the bigger file (NEVER use this!!!)