monkeyman192 / MBINCompiler

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

Add index attributes to all classes #598

Closed monkeyman192 closed 5 months ago

monkeyman192 commented 5 months ago

This adds the Index attribute which will allow us to order the exml fields in the same order they were previously. There should be no real overhead with this other than a slightly larger exe (and leas readable .cs files which shouldn't be a problem...) There was an issue I didn't realise with padded strings where the padding wasn't null terminated like it should be, so this has been fixed as well as a number of other alignment issues with classes inside entity files.

Final addition was list data reordering which is required to write geometry and anim files back 1:1. They are still not there and I haven't implemented the reordering for geometry files, but it's progress nonetheless!