Page 1 of 2

Extracting .msh files Star Wars: Ep III - RotS (2005) [XBOX]

Posted: Thu Apr 23, 2020 10:26 am
by SilesVyr
Hello :mrgreen: , I have already mentioned this subject without finding answers. I have problems with the .msh files which contain one or more 3d models. The files are from the game Star Wars Episode III: Revenge of the Sith [Xbox] 2005.
There has already been a post: viewtopic.php?f=16&t=12359
which offers a "Make_H2O_StarWarsEp3-XBOX.zip", which is not perfect but is often used only on characters with a lot of submeshes. (I'm not complaining, but the majority of .msh files are objects whose architecture, and "[*]Make_H2O_StarWarsEp3-XBOX.zip" doesn't work :[ ). This is why I create this post, I would like to know if it is possible (difficult?) to create a script which automatically extracts all the 3d models of a .msh file. I give you samples of .msh and some that I can't extract. For me, just for 3 .msh I take almost 20 minutes, knowing that sometimes it lacks polygons.
Thank you very much :)

Samples .msh: https://www.mediafire.com/file/9z8s5juo ... h.rar/file
Samples .msh that i can't extract: https://www.mediafire.com/file/am2ng2lc ... t.rar/file

Re: Extracting .msh files Star Wars: Ep III - RotS (2005) [XBOX]

Posted: Thu Apr 23, 2020 11:03 am
by shakotay2
attention: you'll need the Make_H2O.exe as of 13th of Sept, 2015 for this!

m03_droidcontrolship: just switched from 'Strip' to NoStrip for the first 2 submeshes:
.
m03_droidcontrolship-msh.png

Re: Extracting .msh files Star Wars: Ep III - RotS (2005) [XBOX]

Posted: Thu Apr 23, 2020 11:35 am
by SilesVyr
Yes, this is what is used

Re: Extracting .msh files Star Wars: Ep III - RotS (2005) [XBOX]

Posted: Thu Apr 23, 2020 1:20 pm
by shakotay2
Try out this exe (not for character models!):
Make_H2O_SW_EP3_noChars.zip
(For m03_droidcontrolship msh_2 and msh_3 need a correction as described in my last post above. Numbers changed because there's 2 more meshes now. (: )

You need the dll files in the zip from this post (exe there is for character models!):
shakotay2 wrote: Thu Apr 23, 2020 5:25 pm
SilesVyr wrote: Thu Apr 23, 2020 10:26 amFor me, just for 3 .msh I take almost 20 minutes, knowing that sometimes it lacks polygons.
Life is hard! :D (What do you think how much time I spent coding?)

Re: Extracting .msh files Star Wars: Ep III - RotS (2005) [XBOX]

Posted: Thu Apr 23, 2020 3:04 pm
by SilesVyr
Thank you so much :D

Re: Extracting .msh files Star Wars: Ep III - RotS (2005) [XBOX]

Posted: Thu Apr 23, 2020 6:34 pm
by SilesVyr
There are some .msh files that crash "Make_H2O_SW_EP3_noChars" for no reason.
samples .msh files crash: https://www.mediafire.com/file/xqpofik2 ... K.rar/file
And sometimes some .msh make this error "error with FVFsize!" and it even creates .h2o file

Re: Extracting .msh files Star Wars: Ep III - RotS (2005) [XBOX]

Posted: Thu Apr 23, 2020 8:31 pm
by shakotay2
SilesVyr wrote: Thu Apr 23, 2020 6:34 pm There are some .msh files that crash "Make_H2O_SW_EP3_noChars" for no reason.
Thanks for reporting!
Updated the zip in my previous post.
fixed
control_station_tulip.msh, 4 submeshes (FVFsize changed here)
fixed
component_vent.msh -> one submesh
And sometimes some .msh make this error "error with FVFsize!" and it even creates .h2o file
And can't seem to find that error message in the actual code for non-char meshes. :eek:
(There's "error: FIs border crossing!" only, maybe a warning, don't remember 5 years later. :D )
Which .msh has that problem?

Re: Extracting .msh files Star Wars: Ep III - RotS (2005) [XBOX]

Posted: Thu Apr 23, 2020 9:31 pm
by SilesVyr
The error message seems to no longer appear.
There is a major problem, on some .msh files, Make_H2O creates extra .h2o files, and when hex2obj create the 3d models in .obj, extra 3D models are empty or simply unnecessary. (tell me if you understand :mrgreen: )
Example: control_station_tulip.msh has only 2 3d models, and Make_H2O creates 2 more. :o
I give you the affected .msh files: https://www.mediafire.com/file/bpc2zmsc ... D.rar/file

And last thing, i don't really think that this is another real problem, but in almost all 3d models .obj, it lacks a polygon, and I am certain that it is related to the last values here:
value.PNG

Re: Extracting .msh files Star Wars: Ep III - RotS (2005) [XBOX]

Posted: Thu Apr 23, 2020 10:20 pm
by shakotay2
SilesVyr wrote: Thu Apr 23, 2020 9:31 pmThere is a major problem, on some .msh files, Make_H2O creates extra .h2o files, and when hex2obj create the 3d models in .obj, extra 3D models are empty or simply unnecessary. (tell me if you understand :mrgreen: )
yeah, that was an extended feature (finding extra face indices) for the character files, iirc. It was rather cool, but doesn't seem to apply for static meshes. :D
(updated the concerned zip)

And last thing, i don't really think that this is another real problem, but in almost all 3d models .obj, it lacks a polygon, and I am certain that it is related to the last values here:value.PNG
Hmm, for m03_droidcontrolship.msh for example all 6 obj files seem to be correct.

well, from what I see it happens to control_station_tulip.msh, SM0, right?

When you switch to 'noStr' for no reasons (don't do it when not required)

But I get
...
f 171 171 279
f 281 281 283
f 283 284 285
f 285 286 286

then

Re: Extracting .msh files Star Wars: Ep III - RotS (2005) [XBOX]

Posted: Thu Apr 23, 2020 10:34 pm
by SilesVyr
For example control_station_tulip.msh, but I am sure that it concerns all 3d models... look:
1.PNG
And when i put 423 in count, the problem is fixed...(I don't think it works the same way for other 3d models)

ps: Your last updated seems to be corrupt, i can't extract it

Re: Extracting .msh files Star Wars: Ep III - RotS (2005) [XBOX]

Posted: Thu Apr 23, 2020 11:13 pm
by shakotay2
SilesVyr wrote: Thu Apr 23, 2020 10:34 pm For example control_station_tulip.msh, but I am sure that it concerns all 3d models... look:1.PNG
And when i put 423 in count, the problem is fixed...(I don't think it works the same way for other 3d models)
Thanks for reporting. Well, that one index makes a difference of one face (three indices) - magic.

missing face
...
f 171 281 279
f 283 284 285

fixed
...
f 171 281 279
f 283 284 285
f 286 288 287

You might check whether adding 1 to the face indices count does the trick for all concerned meshes.
That would be a simple fix. :D

(But guess there might be a little problem with the triangle strips algo. :eek: )
ps: Your last updated seems to be corrupt, i can't extract it
fixed.

Re: Extracting .msh files Star Wars: Ep III - RotS (2005) [XBOX]

Posted: Thu Apr 23, 2020 11:34 pm
by SilesVyr
I will check the face count indices of differents 3d models tomorrow, thank you again for your help :]

Re: Extracting .msh files Star Wars: Ep III - RotS (2005) [XBOX]

Posted: Fri Apr 24, 2020 7:56 am
by SilesVyr
Well, yes, i checked around fifty 3d models, and everytime, so that the models have all of their polygons, i have to add 1 in "count" in the .h2o files. :)
Ex: throne_light_rack (model 1), count: 1087 ---> 1088
throne_light_rack (model 2), count: 106 ---> 107

And it seems to be the same for Make_H2O chars, just add 1 in "count" :D

Re: Extracting .msh files Star Wars: Ep III - RotS (2005) [XBOX]

Posted: Fri Apr 24, 2020 8:46 am
by shakotay2
done as you wished :D

Re: Extracting .msh files Star Wars: Ep III - RotS (2005) [XBOX]

Posted: Fri Apr 24, 2020 11:23 am
by SilesVyr
Thank you very much! :D
It works perfectly except on .msh containing large spacecraft, i just have 2 examples:
m03_droidcontrolship.msh
bug.PNG
and on jedicruiserlo.msh on the engine part

link: https://www.mediafire.com/file/ejd4whct ... g.rar/file