Lego Worlds (.DAT)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Lego Worlds (.DAT)

Post by aluigi »

Script 0.7.3, I guess I have solved the problem.
Basically in the first version I modified CHUNK_ZSIZE that was later used to reach the next offset, that one was the bug.
Xiron
Posts: 104
Joined: Sat Sep 12, 2015 7:09 am

Re: Lego Worlds (.DAT)

Post by Xiron »

aluigi wrote:I guess I have solved the problem.
You are correct. It works now!
Deadbot
Posts: 7
Joined: Mon Sep 28, 2015 7:07 pm

Re: Lego Worlds (.DAT)

Post by Deadbot »

yeah its working, but the game crash at startup, doing a deep investigation to discover wtf is happening....
Xiron
Posts: 104
Joined: Sat Sep 12, 2015 7:09 am

Re: Lego Worlds (.DAT)

Post by Xiron »

In the RRU post I linked in my first reply, it also states that the game can no longer run with extracted files.
rioforce
Posts: 2
Joined: Tue Nov 03, 2015 6:10 pm

Re: Lego Worlds (.DAT)

Post by rioforce »

Hi! Update 3 of LEGO Worlds seems to have changed the file format at bit, and it's ending up in an error when trying to extract.

Code: Select all

Error: [myfseek] the offset 0x443432e8 in the file -1 can't be reached

Last script line before the error or that produced the error:
  83  goto NAME_INFO MEMORY_FILE


I wonder if you can fix this? The QuickBMS script is awesome, and has extracted brilliantly for me in the past. ;)

Thanks!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Lego Worlds (.DAT)

Post by aluigi »

Any sample of the new format?
rioforce
Posts: 2
Joined: Tue Nov 03, 2015 6:10 pm

Re: Lego Worlds (.DAT)

Post by rioforce »

aluigi wrote:Any sample of the new format?


Whoops, sorry, forgot about that: http://www.mediafire.com/download/p9df7 ... /GAME0.DAT
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Lego Worlds (.DAT)

Post by aluigi »

This format is a lot different than the others.
I don't think I will support it but I will keep you update if there will be progresses.
SuperCriss
Posts: 11
Joined: Sun Dec 13, 2015 8:49 am

Re: Lego Worlds (.DAT) and Dimensions

Post by SuperCriss »

hello,
any news on this new format?
I see that the PATCH.DAT from the Lego Dimensions WII U version have this same format so I suppose that's a new format used for the new TT games

I also found a strange behaviour of the ttgames.bms script, or to be more precise of the quickbms.exe:
if I use the last ttgames script (script 0.7.3) with quickbms 0.6.7a on Lego Dimensions GAME.DAT I'm able to unpack the archives, but if I use the latest quickbms (0.7.2a) with the same script on the same file I got this error:
    - open input file j:\3d\LegoGames.DAT\Dimensions\GAME.DAT
    - open script ttgames.bms

    offset filesize filename
    --------------------------------------
    - enter in folder j:\LegoGames.DAT\Dimensions
    - open input file j:\LegoGames.DAT\Dimensions\GAME.hdr

    Error: offset in GetVarChr (0x00000000) is bigger than the var (0x00000000)

    Last script line before the error or that produced the error:
    145 getvarchr TMP0 NAME 0

neither version work with PATCH.DAT :-(

I'm playing around with an HexEditor to see if I'm able to understand this new format

thak you Cris
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Lego Worlds (.DAT)

Post by aluigi »

Can you check how it works with quickbms 0.7.1?
http://aluigi.org/papers/quickbms_0.7.1.zip
SuperCriss
Posts: 11
Joined: Sun Dec 13, 2015 8:49 am

Re: Lego Worlds (.DAT)

Post by SuperCriss »

hello Luigi,
the version 0.7.1 works with GAME.DAT

with PATCH.DAT I have this error:
- open input file j:\3d\LegoGames.DAT\Dimensions\PATCH.DAT
- open script ttgames.bms

offset filesize filename
--------------------------------------
- enter in folder j:\3d\LegoGames.DAT\Dimensions
- open input file j:\3d\LegoGames.DAT\Dimensions\PATCH.hdr

Error: [myfseek] the offset 0x443432e8 in the file -1 can't be reached

Last script line before the error or that produced the error:
83 goto NAME_INFO MEMORY_FILE

GAME.DAT is compiled with TTBuilder-Version: 1.19.60
PATCH.DAT is compiled with TTBuilder-Version: 1.21.93

GAME.DAT from Lego Worlds Early Access 10 is a lot different..
if you want to help me I can send you the PATCH.DAT
thank you
Cris
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Lego Worlds (.DAT)

Post by aluigi »

That's good, in the next version of quickbms I will fix the bug.

Anyway there are no news about the new format used in patch.dat. sorry.
SuperCriss
Posts: 11
Joined: Sun Dec 13, 2015 8:49 am

Re: Lego Worlds (.DAT)

Post by SuperCriss »

looking with an hexeditor it seems that this PATCH.DAT is similar to GAMES.DAT from Lego Dimensions
while GAME.DAT from Worlds are very different from the both above.. so i guess that is possible to unpak PATCH.DAT if we can find the correct offset of the Info_Files_Offset block
SuperCriss
Posts: 11
Joined: Sun Dec 13, 2015 8:49 am

Re: Lego Worlds (.DAT)

Post by SuperCriss »

this is a link to PATCH.DAT if someone would like to help me :
http://www.filedropper.com/patch_6

link to the file updated today (12/01/2016)
thank you
Cris
SuperCriss
Posts: 11
Joined: Sun Dec 13, 2015 8:49 am

Re: Lego Worlds (.DAT)

Post by SuperCriss »

still working on PATH.DAT I had a bad news, the new PATH.DAT is in the same format of the Lego Worlds file so I suppose this is the new format for the upcoming TTGames... too sad..
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Lego Worlds (.DAT)

Post by aluigi »

I have updated the script to version 0.8, can you test it with patch.dat?
http://aluigi.org/bms/ttgames.bms

P.S.: use quickbms 0.7.1, not 0.7.2a
SuperCriss
Posts: 11
Joined: Sun Dec 13, 2015 8:49 am

Re: Lego Worlds (.DAT)

Post by SuperCriss »

you are the man... it works with latest PATCH.DAT and even with latest GAME.DAT from Lego Worlds!

thank you very much!
Cris
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Lego Worlds (.DAT)

Post by AnonBaiter »

Sorry for necroposting but I must thank aluigi for the ttgames.bms script.
I do have a question though, can I just extract the duplicated files without having the hassle to rename them to a new one?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Lego Worlds (.DAT)

Post by aluigi »

quickbms will ask you if you want to overwrite, rename, skip or automatically rename the files if already exist.
So it's enough to choose 'a' and enjoy the extraction.
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Lego Worlds (.DAT)

Post by AnonBaiter »

^ Oh, thanks. I've already figured it out anyway.