monkeyman192 / MBINCompiler

A tool for decompiling No Man's Sky .MBIN files to XML format
https://monkeyman192.github.io/MBINCompiler
Other
252 stars 49 forks source link

Failed to read TkAttachmentData from LANDINGDATA.ENTITY.MBIN #131

Closed Sycholic closed 5 years ago

Sycholic commented 5 years ago

Fill in the details for each relevant section. Latest Version of both MBIN and NMSMS and fresh unpack (ie. everything up to date within a 1/2hr of posting time)

[VERSION]: MBINCompiler v2.0.9.2

INFO: Auto-Detected --input-format=MBIN INFO: --input-format=MBIN --output-format=EXML

[ERROR]: [MbinException]: Failed to read TkAttachmentData from MBIN. [InvalidListException]: Invalid list read, magic 00000000 expected xxxxxx01 at 0x260

INFO: MBIN version: 0.0.0.0 guid: 87068490DC83B1C1 template: cTkAttachmentData

 at libMBIN.NMSTemplate.DeserializeList[T](BinaryReader reader, FieldInfo field, NMSAttribute settings, Int64 templateStartOffset, NMSTemplate parent)

INFO: 0 files converted.

INFO: 1 FILES FAILED.

[ERROR]: Failed to read TkAttachmentData from MBIN.

INFO: TIME: 0.057 seconds

Sorry for the poor formatting copy/pasted directly from the MBIN log in mod station

monkeyman192 commented 5 years ago

Ok, after having a look, it seems this issue is because you are trying to decompile an older version of the file. Not sure how you ended up having an old version if your files were recently unpacked, but I get that exact error you do when unpacking a 2.0.6 version of the file. The current 2.0.9-era file decompiles perfectly fine with the current version of MBINCompiler.