RevilLib icon indicating copy to clipboard operation
RevilLib copied to clipboard

Help how to use lmt to gltf for Monster Hunter Stories 2

Open lordabura opened this issue 9 months ago • 7 comments

I'm trying to use lmt_to_json.cmd "archive.lmt"

But it doesn't generate any results, and from what I understand, this is the first step to using lmt to gltf.

I don't understand what I'm doing wrong.

Image Image

lmt_to_json_25_04_07-02.07.07.txt

lordabura avatar Apr 07 '25 06:04 lordabura

I think the problem is with the file. Another LTM generates a JSON file, but not in the correct format for convert to gltf. I've attached the files. Please help me, and thank you in advance.

Not generate JSON file mo004_body.zip

Generate JSON file but wrong format em346_06.zip

Image

lordabura avatar Apr 08 '25 05:04 lordabura

lmt_to_json will create json with events In order to convert lmt to gltf, you need to refer to this page Same link is also located inside toolset readme for this module.

PredatorCZ avatar Apr 10 '25 11:04 PredatorCZ

I don't understand, do I have to generate the batch.json file manually? Is there a way to know which files to merge?

lordabura avatar Apr 11 '25 03:04 lordabura

You need to create json manually. There is no easy way to know which files to merge, however most of then time they share file names, so for example em000.mod will have em000.lmt counterpart somewhere.

PredatorCZ avatar Apr 11 '25 09:04 PredatorCZ

I'm trying to make a batch.json file but I get the error [0x00004DF4] Invalid format: 0x7B 0x22 0x65 0x6D

[ [ "mo/mo001/em001/em001.mod", "scale/mo/mo001/mo001_body.lmt" ] ]

Image

files

`archive\mod\mo\mo001\em001\orderlog.txt

archive\mod\mo\mo001\em001\mod\EM001batch.json archive\mod\mo\mo001\em001\mod\mo\mo001\em001\em001.ccinfo archive\mod\mo\mo001\em001\mod\mo\mo001\em001\em001.clc archive\mod\mo\mo001\em001\mod\mo\mo001\em001\em001.cli archive\mod\mo\mo001\em001\mod\mo\mo001\em001\em001.mod archive\mod\mo\mo001\em001\mod\mo\mo001\em001\em001.mpd archive\mod\mo\mo001\em001\mod\mo\mo001\em001\em001.mrl archive\mod\mo\mo001\em001\mod\mo\mo001\em001\em001.rdp archive\mod\mo\mo001\em001\mod\mo\mo001\em001\em001.vjr archive\mod\mo\mo001\em001\mod\mo\mo001\em001\em001_1.clc archive\mod\mo\mo001\em001\mod\mo\mo001\em001\em001_2.clc archive\mod\mo\mo001\em001\mod\mo\mo001\em001\em001_3.clc archive\mod\mo\mo001\em001\mod\mo\mo001\em001\em001_4.clc archive\mod\mo\mo001\em001\mod\mo\mo001\em001\em001_5.clc archive\mod\mo\mo001\em001\mod\mo\mo001\em001\em001_eye.pvi archive\mod\mo\mo001\em001\mod\mo\mo001\em001\em001_mad.clc archive\mod\mo\mo001\em001\mod\mo\mo001\em001\em001_sdl.pvi archive\mod\mo\mo001\em001\mod\mo\mo001\textures\mo001_01_BM.tex archive\mod\mo\mo001\em001\mod\mo\mo001\textures\mo001_01_CMM.tex archive\mod\mo\mo001\em001\mod\mo\mo001\textures\mo001_02_BM.tex archive\mod\mo\mo001\em001\mod\mo\mo001\textures\mo001_02_CMM.tex archive\mod\mo\mo001\em001\mod\mo\mo001\textures\NoImage_EM.tex archive\mod\mo\mo001\em001\mod\mo\mo001\textures\noimage_masuku_CMM.tex archive\mod\mo\mo001\em001\mod\scale\mo\mo001\mo001_body.lmt `

lordabura avatar Apr 16 '25 06:04 lordabura

mod needs to be converted into gltf via mod_to_gltf and then used in json

PredatorCZ avatar Apr 16 '25 09:04 PredatorCZ