Features:
-Extract assets from .data archives using the associated .dict file
-Extract textures
-Extract rigged models with material support (diffuse and normal maps)
Extraction instructions :
That game uses .dict/.data pairs to store pretty much everything. These pairs are not completely independent between themselves, as some textures/animations needed by some assets in some .data files are present in global.data, which is the most important one.
I took that into account when writing the script, so just follow the steps below
1) Open global.dict in Noesis and let the script extract everything, it'll take some time as the archive is quite big. You'll get a "global" folder next to it, with some subfolders.
2) Close Noesis, open the script in a text editor and replace
Code: Select all
globalPath = None
Code: Select all
globalPath = "D:\\LM3\\romfs\\global"
Usage instructions :
Simply open the extracted lm3m model files or lm3t texture files, located in the "Models" and "Textures" folders. Keep in mind these formats are not the real ones, they're pickle dumps I use to actually reconstruct the assets since the game has a chunk system which is tricky to deal with.
If you put the bLoadMaterials option to True (it is by default), materials will be auto applied to the model. It won't work perfectly on 100% of the models as I rely on patterns since the material sections of this game use some kind of presets and I don't want to RE them all. It'll work on most models though and the mistakes are easy to fix in a 3D soft. I only apply diffuse and normal textures for now but I could add more if people tell me what some textures are used for. Don't forget to toggle face cull and cycle through the different blend options if if some elements are invisible.
In any case all textures related to the model will be extracted, even if not used by the materials. They can be viewed using "Tools->Data Viewer->Textures" and will be exported with the models.
Animations are WIP and will be added later
Credits :
Big thanks to KillzXGaming and TheFearsomeDzeraora for their research on the file structure and the geometry chunks. That script is a direct upgrade of their hard work on the formats.
Link :
https://github.com/Joschuka/fmt_lm3