XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Sun Oct 22, 2017 5:49 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: men of war pc .ply models
PostPosted: Thu Jul 21, 2016 11:21 am 
Offline
double-veteran
double-veteran
User avatar

Joined: Thu Oct 22, 2009 10:24 am
Posts: 825
Location: Russia, Siberia
Has thanked: 155 times
Have thanks: 85 times
Can someone of you pros add weight support into this script everything else works great?
Here's video:
https://www.youtube.com/watch?v=sezVg2ZJusc
Here's script:
https://github.com/bjornmp/Men-of-War-Blender-Importer

it seems like this script was abandoned.


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
Thank you for all you do here
my blog | my forum


Top
 Profile  
 
 Post subject: Re: men of war pc .ply models
PostPosted: Thu Jul 21, 2016 3:13 pm 
Offline
VIP member
VIP member

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 895
Has thanked: 1882 times
Have thanks: 475 times
i know you want someone to add weight support to the Blender script but i just had to run the skin.ply through Hex2obj for kicks :D


early last year i was looking for a way to open these models and found nothing
this is a very easy format for anyone to learn the basics of Hex2obj with :D


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
Noesis
Hex2obj
QuickBMS
TextureFinder
Unity Assets Bundle Extractor


Top
 Profile  
 
 Post subject: Re: men of war pc .ply models
PostPosted: Thu Jul 21, 2016 5:54 pm 
Offline
double-veteran
double-veteran
User avatar

Joined: Thu Oct 22, 2009 10:24 am
Posts: 825
Location: Russia, Siberia
Has thanked: 155 times
Have thanks: 85 times
nice one, AceWell. the models are not that good, I know ;) though since I playing this old strategy game I wanted to play with it models :)

_________________
Thank you for all you do here
my blog | my forum


Top
 Profile  
 
 Post subject: Re: men of war pc .ply models
PostPosted: Thu Jul 21, 2016 6:55 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran
User avatar

Joined: Fri Apr 20, 2012 9:24 am
Posts: 2154
Location: Nexus, searching for Jim Kirk
Has thanked: 424 times
Have thanks: 1097 times
did you get the script to run?
In blender 2.73 neither installing from file (zip) nor copying the io_scene_mdl folder into the addons folder worked.

I can identify/install any other script by its name from
Code:
bl_info = {
    "name": "Web3D X3D/VRML2 format",
for example

but not this one from Mr. Paz.

_________________
"you can't always get things served on a silver tray"
extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip

"We are Microsoft. You will be assimilated. Resistance is Futile."


Top
 Profile  
 
 Post subject: Re: men of war pc .ply models
PostPosted: Thu Jul 21, 2016 7:40 pm 
Offline
double-veteran
double-veteran
User avatar

Joined: Thu Oct 22, 2009 10:24 am
Posts: 825
Location: Russia, Siberia
Has thanked: 155 times
Have thanks: 85 times
shakotay2 wrote:
did you get the script to run?
In blender 2.73 neither installing from file (zip) nor copying the io_scene_mdl folder into the addons folder worked.
I had this issue too. Don't recall how I solved it. Luckily I have a habit to always do a readme file so here it is:

to install:

- copy folder 'io_scene_mdl' to 'C:\Program Files (x86)\Blender Foundation\Blender\2.77\scripts\addons\';
- in Blender open 'User Preferences';
- press 'Install from File' and choose '__init__.py';
- done.

_________________
Thank you for all you do here
my blog | my forum


Top
 Profile  
 
 Post subject: Re: men of war pc .ply models
PostPosted: Thu Jul 21, 2016 8:06 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran
User avatar

Joined: Fri Apr 20, 2012 9:24 am
Posts: 2154
Location: Nexus, searching for Jim Kirk
Has thanked: 424 times
Have thanks: 1097 times
Tosyk wrote:
to install:

- copy folder 'io_scene_mdl' to 'C:\Program Files (x86)\Blender Foundation\Blender\2.77\scripts\addons\';
- in Blender open 'User Preferences';
- press 'Install from File' and choose '__init__.py';
- done.
sadly that doesn't work for me (Win7).
(I was thinking it might be a matter of the UTF-8 encoding of the mdl scripts but that doesn't make sense because
By default, Python source files are treated as encoded in UTF-8)

But all the other scripts installed are ANSI. Sometimes I really hate blender. :D

_________________
"you can't always get things served on a silver tray"
extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip

"We are Microsoft. You will be assimilated. Resistance is Futile."


Top
 Profile  
 
 Post subject: Re: men of war pc .ply models
PostPosted: Thu Jul 21, 2016 8:13 pm 
Offline
double-veteran
double-veteran
User avatar

Joined: Thu Oct 22, 2009 10:24 am
Posts: 825
Location: Russia, Siberia
Has thanked: 155 times
Have thanks: 85 times
shakotay2 wrote:
sadly that doesn't work for me (Win7).
it should appear in "Testing" in "Supported Level" btw

_________________
Thank you for all you do here
my blog | my forum


Top
 Profile  
 
 Post subject: Re: men of war pc .ply models
PostPosted: Thu Jul 21, 2016 8:35 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran
User avatar

Joined: Fri Apr 20, 2012 9:24 am
Posts: 2154
Location: Nexus, searching for Jim Kirk
Has thanked: 424 times
Have thanks: 1097 times
Tosyk wrote:
shakotay2 wrote:
sadly that doesn't work for me (Win7).
it should appear in "Testing" in "Supported Level" btw
well, that's an essential info, you know? :D

Anyway, as import/export options I've Men of War (.def) only.

This may be due to this strange icon (know what it means?):


(I should have known this that those blender guys/developers are totally insane, hahaha.
But I've to confess that I don't use blender too often, so it's my fault - confirmed)


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
"you can't always get things served on a silver tray"
extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip

"We are Microsoft. You will be assimilated. Resistance is Futile."


Top
 Profile  
 
 Post subject: Re: men of war pc .ply models
PostPosted: Thu Jul 21, 2016 8:40 pm 
Offline
double-veteran
double-veteran
User avatar

Joined: Thu Oct 22, 2009 10:24 am
Posts: 825
Location: Russia, Siberia
Has thanked: 155 times
Have thanks: 85 times
shakotay2 wrote:
Anyway, as import/export options I've Men of War (.def) only.

This may be due to this strange icon (know what it means?):
this is it, .def - it's file for ingame entity. you should load .def file and all the rest files will load automatically.

_________________
Thank you for all you do here
my blog | my forum


Top
 Profile  
 
 Post subject: Re: men of war pc .ply models
PostPosted: Thu Jul 21, 2016 8:47 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran
User avatar

Joined: Fri Apr 20, 2012 9:24 am
Posts: 2154
Location: Nexus, searching for Jim Kirk
Has thanked: 424 times
Have thanks: 1097 times
would be nice if it did, but it doesn't for some reason.
It seems to read data but it doesn't display anything:
Code:
Found entry b'MESH' at 0xf0
Number of triangles: 572
Material info: 0xf14
Material name length: 0x8
Material file: b'ammo.mtl'
Found entry b'MESH' at 0x129
Number of triangles: 2090
Material info: 0xf14
Material name length: 0x8
Material file: b'body.mtl'
Found entry b'MESH' at 0x162
Number of triangles: 374
Material info: 0xd14
<class 'Exception'>
Building Blender scene
Finished building Blender scene
MOWDEF_NODE_ROOT
  MOWDEF_NODE_GAME_ENTITY
    MOWDEF_NODE_EXTENSION
    MOWDEF_NODE_TAG
Maybe it's due to this <class 'Exception'>?

(Guess it works for you with ger-mgun.def, does it?)

btw: this ger-mgun.mdl contains ASCII data of a skeleton
Also did you notice that in the youtube video the import entry is named Men of War (.mdl)?

I'm on blender 2.75, this should not be an issue, should it?

_________________
"you can't always get things served on a silver tray"
extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip

"We are Microsoft. You will be assimilated. Resistance is Futile."


Last edited by shakotay2 on Thu Jul 21, 2016 9:15 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: men of war pc .ply models
PostPosted: Thu Jul 21, 2016 9:14 pm 
Offline
double-veteran
double-veteran
User avatar

Joined: Thu Oct 22, 2009 10:24 am
Posts: 825
Location: Russia, Siberia
Has thanked: 155 times
Have thanks: 85 times
unfortunately script doesn't load mgunner but it does load older (or just simplier?) models


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
Thank you for all you do here
my blog | my forum


Top
 Profile  
 
 Post subject: Re: men of war pc .ply models
PostPosted: Thu Jul 21, 2016 9:15 pm 
Offline
double-veteran
double-veteran
User avatar

Joined: Thu Oct 22, 2009 10:24 am
Posts: 825
Location: Russia, Siberia
Has thanked: 155 times
Have thanks: 85 times
Tosyk wrote:
unfortunately script doesn't load mgunner but it does load older (or just simplier?) models
and


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
Thank you for all you do here
my blog | my forum


Top
 Profile  
 
 Post subject: Re: men of war pc .ply models
PostPosted: Thu Jul 21, 2016 9:41 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran
User avatar

Joined: Fri Apr 20, 2012 9:24 am
Posts: 2154
Location: Nexus, searching for Jim Kirk
Has thanked: 424 times
Have thanks: 1097 times
okay, got them loaded, plus we've a skeleton here.

23 bones only ? For me it looks like it doesn't have (all) fingers - so dunno if it's worth dealing with it.

_________________
"you can't always get things served on a silver tray"
extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip

"We are Microsoft. You will be assimilated. Resistance is Futile."


Top
 Profile  
 
 Post subject: Re: men of war pc .ply models
PostPosted: Thu Jul 21, 2016 9:46 pm 
Offline
double-veteran
double-veteran
User avatar

Joined: Thu Oct 22, 2009 10:24 am
Posts: 825
Location: Russia, Siberia
Has thanked: 155 times
Have thanks: 85 times
shakotay2 wrote:
okay, got them loaded, plus we've a skeleton here.

23 bones only ? For me it looks like it doesn't have (all) fingers - so dunno if it's worth dealing with it.

true, it may look crappy since it's an old strategy game but I'd like play with the original models since I'm a huge fan of the series. plus mgunner-guy has a detailed texture, I suppose he is from cutscenes.

_________________
Thank you for all you do here
my blog | my forum


Top
 Profile  
 
 Post subject: Re: men of war pc .ply models
PostPosted: Thu Jul 21, 2016 10:17 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran
User avatar

Joined: Fri Apr 20, 2012 9:24 am
Posts: 2154
Location: Nexus, searching for Jim Kirk
Has thanked: 424 times
Have thanks: 1097 times
you could check for weights (in FVF block?) and boneids. Weights are in the range of 0.0 to 1.0, sum of weights (for 4 boneids in most cases) is 1.0.
Boneids from 0 to 22.

For machine_gunner_male_eng_outfit (FVFsize=40) at FVF offset 20 it looks like normals (sum of squares = 1.0).
There might be boneIDs at FVF offset 16 (four bytes, maximum 2 ids, rest 0), just a wild guess - I'll check that later.

(I've planned a weights logging feature for hex2obj since ages (or less :D ) but it won't come too soon.)

_________________
"you can't always get things served on a silver tray"
extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip

"We are Microsoft. You will be assimilated. Resistance is Futile."


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: cosmaty, Rutabaga and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group