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

[HELP] Luigi's Mansion 3 .DATA file

The Original Forum. Game archives, full of resources. How to open them? Get help here.
devomako
ultra-n00b
Posts: 4
Joined: Sat Oct 26, 2019 3:19 pm

[HELP] Luigi's Mansion 3 .DATA file

Post by devomako »

Hoping someone can help me extract some stuff from this format, searching online hasn't brought in any results haha

Basically from what I can tell everything from looking at sizes and the names, every separate part of the game has a .DATA file and they contain all the parts for those areas, the programming (i assume), the models, textures, etc (minus the sound since that's a wwiseaudio thing) however I can't seem to get a grasp on the format itself since there's no reference of .DATA stuff online

If someone can look into it and help me with this it'd be great, here's the global .DATA file that I assume has stuff in it for base level stuff like UI, Luigi's stuff, etc
https://drive.google.com/open?id=1wJkkG ... pdLNcJhWaf
deschamps12
ultra-n00b
Posts: 2
Joined: Tue Jun 05, 2018 4:40 pm
Has thanked: 1 time
Been thanked: 1 time

Re: [HELP] Luigi's Mansion 3 .DATA file

Post by deschamps12 »

Did you need new keys to extract the xci for this? Trying to take a look at it but can't seem to extract. Will let you know if I get anything from the DATA file though
devomako
ultra-n00b
Posts: 4
Joined: Sat Oct 26, 2019 3:19 pm

Re: [HELP] Luigi's Mansion 3 .DATA file

Post by devomako »

I got my keys from the /hbg/ discord since if I need something quick it's easier then dumping my own and those seemed to work fine, so I assume since those are probs newest firmware then that might be the reason? I'm not sure though
Demonslayerx8
veteran
Posts: 99
Joined: Mon Jul 06, 2015 12:48 am
Has thanked: 26 times
Been thanked: 24 times

Re: [HELP] Luigi's Mansion 3 .DATA file

Post by Demonslayerx8 »

From what I can tell, the .data is compressed, the .dict file that's alongside them is the file location in the .data, which also tells the size of the file, offset location, and folder path? Seems to be hashed from a quick glance at the files from my dump.
AdventureT
n00b
Posts: 16
Joined: Sat Jun 22, 2019 7:46 am
Has thanked: 3 times
Been thanked: 9 times

Re: [HELP] Luigi's Mansion 3 .DATA file

Post by AdventureT »

I have extracted the global.data file with offzip and got an file called 0adfc330.sdb which contains model data. I'm currently trying to extract it with hex2obj/advanced mesh reaper...
User avatar
DKDave
ultra-veteran
ultra-veteran
Posts: 357
Joined: Mon May 06, 2019 6:07 pm
Location: On board the USS Callister
Has thanked: 9 times
Been thanked: 167 times

Re: [HELP] Luigi's Mansion 3 .DATA file

Post by DKDave »

Have you got the .dict file as well? There are a few thousand files in that .data archive by the look of it.
I see a vision rising, dreary, Fading in as children play twilight games, In the town called Ordinary, An eye of light reveals a gateway to doomsday
devomako
ultra-n00b
Posts: 4
Joined: Sat Oct 26, 2019 3:19 pm

Re: [HELP] Luigi's Mansion 3 .DATA file

Post by devomako »

AdventureT
n00b
Posts: 16
Joined: Sat Jun 22, 2019 7:46 am
Has thanked: 3 times
Been thanked: 9 times

Re: [HELP] Luigi's Mansion 3 .DATA file

Post by AdventureT »

I now have gotten the mesh although it seems not correct.
You do not have the required permissions to view the files attached to this post.
gilsongbj
ultra-n00b
Posts: 4
Joined: Sun May 07, 2017 8:34 pm
Contact:

Re: [HELP] Luigi's Mansion 3 .DATA file

Post by gilsongbj »

I found this on the internet. I don't know if it will help you

https://gist.github.com/RoadrunnerWMC/f ... 6ee73eaa9f
Demonslayerx8
veteran
Posts: 99
Joined: Mon Jul 06, 2015 12:48 am
Has thanked: 26 times
Been thanked: 24 times

Re: [HELP] Luigi's Mansion 3 .DATA file

Post by Demonslayerx8 »

that is for Dark Moon, that will most likely not help for us lol
User avatar
DKDave
ultra-veteran
ultra-veteran
Posts: 357
Joined: Mon May 06, 2019 6:07 pm
Location: On board the USS Callister
Has thanked: 9 times
Been thanked: 167 times

Re: [HELP] Luigi's Mansion 3 .DATA file

Post by DKDave »

You can use this QuickBMS script to extract and decompress the data - not sure yet how the filenames/folders are stored in the first table in the .DICT file so there's no proper filenames yet.


# Luigi's Mansion 3 - .dict extract
# By Dave, 2019
# Needs to be in same folder as global.dict, global.data, global.debug and global.nxpc

ComType zlib

Goto 0x0c
Get ENTRIES2 byte
Get ENTRIES1 byte
Get ENTRIES3 byte

XMath FILE_TABLE "(ENTRIES1 * 0x18) + 0x10"
XMath TEXT_TABLE "FILE_TABLE + (ENTRIES2 * 0x10)"

# Open data files

Goto TEXT_TABLE

For A = 1 to ENTRIES3

Get JUNK byte
Get DATA_FILE String
Open FDDE DATA_FILE A

Next A


# Read file table entries

Goto FILE_TABLE

For A = 1 to ENTRIES2

Get OFFSET Long
Get SIZE Long
Get ZSIZE Long
Get JUNK Byte
Get JUNK Byte
Get SOURCE Byte
Math SOURCE + 1
Get JUNK Byte
Set FILENAME "LM3_"
String FILENAME + A

If SIZE <> 0
Clog FILENAME OFFSET ZSIZE SIZE SOURCE
Endif

Next A
I see a vision rising, dreary, Fading in as children play twilight games, In the town called Ordinary, An eye of light reveals a gateway to doomsday
Über Winfrey
n00b
Posts: 15
Joined: Fri Nov 16, 2018 12:38 am
Has thanked: 1 time

Re: [HELP] Luigi's Mansion 3 .DATA file

Post by Über Winfrey »

DKDave wrote: Mon Oct 28, 2019 12:30 am You can use this QuickBMS script to extract and decompress the data - not sure yet how the filenames/folders are stored in the first table in the .DICT file so there's no proper filenames yet.


# Luigi's Mansion 3 - .dict extract
# By Dave, 2019
# Needs to be in same folder as global.dict, global.data, global.debug and global.nxpc

ComType zlib

Goto 0x0c
Get ENTRIES2 byte
Get ENTRIES1 byte
Get ENTRIES3 byte

XMath FILE_TABLE "(ENTRIES1 * 0x18) + 0x10"
XMath TEXT_TABLE "FILE_TABLE + (ENTRIES2 * 0x10)"

# Open data files

Goto TEXT_TABLE

For A = 1 to ENTRIES3

Get JUNK byte
Get DATA_FILE String
Open FDDE DATA_FILE A

Next A


# Read file table entries

Goto FILE_TABLE

For A = 1 to ENTRIES2

Get OFFSET Long
Get SIZE Long
Get ZSIZE Long
Get JUNK Byte
Get JUNK Byte
Get SOURCE Byte
Math SOURCE + 1
Get JUNK Byte
Set FILENAME "LM3_"
String FILENAME + A

If SIZE <> 0
Clog FILENAME OFFSET ZSIZE SIZE SOURCE
Endif

Next A
does the debug and nxpc files dump separately or are they inside a file, cause I'm not seeing a single instance of those two files in the game except for the reference in .dict
Demonslayerx8
veteran
Posts: 99
Joined: Mon Jul 06, 2015 12:48 am
Has thanked: 26 times
Been thanked: 24 times

Re: [HELP] Luigi's Mansion 3 .DATA file

Post by Demonslayerx8 »

same with me, I only got .data and .dict from unpacking the romfs.
User avatar
DKDave
ultra-veteran
ultra-veteran
Posts: 357
Joined: Mon May 06, 2019 6:07 pm
Location: On board the USS Callister
Has thanked: 9 times
Been thanked: 167 times

Re: [HELP] Luigi's Mansion 3 .DATA file

Post by DKDave »

I just dumped the files in .DICT order.

If you add the line: Print "Source: %SOURCE%" after the Clog line, you can see which archive the files are from (1=.data, 2=.debug, 3=.nxpc)

So, files 59, 60 and 61 are from .nxpc, which looks to be about 500 MB of data.
I see a vision rising, dreary, Fading in as children play twilight games, In the town called Ordinary, An eye of light reveals a gateway to doomsday
Demonslayerx8
veteran
Posts: 99
Joined: Mon Jul 06, 2015 12:48 am
Has thanked: 26 times
Been thanked: 24 times

Re: [HELP] Luigi's Mansion 3 .DATA file

Post by Demonslayerx8 »

well I added it, but still no luck on getting those missing files..
Post Reply