Men of War. The most deep WW2 strategy game. it's contains great battles for every commander. With big modding community. If you like the game like us, YOU should be joining us! Ready for the fight!

Post tutorial Report content RSS feed Basic prop export tutorial for Men of War

Because there is strong demand for a simple tutorial, I decided to write a simpler prop export tutorial. This tutorial needs basic knowledge of 3ds Max 2009.

Posted by on - Basic Props Modelling

First, what do we need to start the exporting? Well, the answer is simple. The model, a volume for hit detection, it always have _vol postfix , the basis is for a global position reference in-game. (1st picture)
Tutorial

Its proper buildup is the following: the basis must be at 0;0;0; coordinates, then the main model should be centered to the basis, and the volume must cover the model, for proper hit detection. For easier understand, we usually change it to see it as a box only. You can do it by click on the volume with left mouse button, choose the object properties sub menu, then check the "display as Box" option. Here you can add the exporting parameters too in the "User Defined" text-box.
The next step is to give the proper exporting parameters. I wrote easy examples on the second picture.

Tutorial

The next thing to do is the proper linking. Linking is important, because the engine must know which parts move together example when its fall away. Every basic model goes to the basis, but if a model has a separated part, a wing on a plane example, the wing is must to be linked to the fuselage. The proper name of the most basic model is always called body. The _vols must be linked to their part, what they made for. Example, a wheels volume must be linked to its wheel. The linking method is looks like this: first, you select what you want to link, then hold right mouse button while you point to where you want to link it. The models are usually flashes for a second after a successfully linking. If you ready, you can check the linking tree if you click to "Select by name" button. ( 3rd picture)
Tutorial

When everything OK, you have to export it to .mdl format. You have choose the export function in the "File" menu, then select the .mdl as a format. As a name, you can write everything here, it does not count. The exporter using the exporter parameter in the basis for giving a name. The exporting menu shows up, you just have to click on export. The most of the error messages can be ignored like "the volume is isn't convex" , or "the mesh is not original scale".

Tutorial

If the files are ready, they need some post editing. The .def file is never proper, and always crash the game. To fix this, load it to a notepad. I recommend Notepad++, because its much more advanced and faster than the original one. When you opened, simply delete the old, bad information, but copy the .mdl file name. Paste an other props definition file here, just change the .mdl file name, or you can use my example, this is more than enough for a basic prop.

{game_entity
    (include "/properties/building.inc")
    {props "wood"}
    {Extension "box.mdl"}
}

The option prop is means the material of the props, its means what is made of. You can write here concrete, wood, or steel too. Check other .defs for good examples too, and experiment the best option for you. If everything OK now, copy your creation to the entity dir of your mod, and then you can use it.
To not be this a dead letter, here is the box in-game to made it believable.
Tutorial

I hope I helped somebody, who wanted to learn a little about this topic.

Comments
FamousSpear
FamousSpear

Yo Attilla good to see you are still active around here :-)

What software are you using for this?

Reply Good karma Bad karma+1 vote
Attila1945 Author
Attila1945

For what? To be here? I just written an AI for this. Just kidding.
For exporting the good old 3ds Max + Gem plugin combo, for texture editing the Gimp 2.8, and for file re-writing notepad++.

Reply Good karma+1 vote
FamousSpear
FamousSpear

hehe cool... :-P

Stay safe mate :-)

Reply Good karma Bad karma+1 vote
linkenator
linkenator

nice tutorial. thanks for your hard work of sharing what you know.

Reply Good karma Bad karma+1 vote
Lockdown224
Lockdown224

1 question how can u texturize anything in those god damn things LIKE photoshop and gimp its hell its mixed up and divided in peaces

Reply Good karma Bad karma+1 vote
Guest
Guest

Hello,

I have worked exactly after instructions, but if I the box click (editor) I get the following error message " Exception Block terminator expected! (esdlreader.cpp, 482 >>>>>>main >>>>>>>mp.thread_single.exec >>>>>>thread.exec <<<<<<clockThread:onExecute >>>file"/entity/construction/box/box.def" >file"box.mdl"

Reply Good karma Bad karma0 votes
Attila1945 Author
Attila1945

ok, there must be something in the def file. Did you used enough brackets?

Reply Good karma+1 vote
Korba_MDB
Korba_MDB

I know this tutorial is a year old, and your blog post makes you sound pretty down about the MoW modding community, but do you think you could do one for wheeled vehicles?
The example tank supplied with the exporter tools works for tanks, but I'd like to read a tutorial for wheeled vehicles if possible.

Reply Good karma Bad karma+1 vote
ddarmy
ddarmy

How do i get 2009 3ds max

Reply Good karma Bad karma+1 vote
Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Established
Privacy
Public
Subscription
Open to all members
Contact
Send Message
Membership
Join group
Group watch
Start tracking
Tutorial
Browse
Tutorials
Share
Related Games
Men of War: Assault Squad
Men of War: Assault Squad Real Time Tactics
Related Groups
Hungarian Mod Community
Hungarian Mod Community Geographic with 127 members
Men of war Fan club
Men of war Fan club Hobbies & Interests with 416 members
Stargate: Adventures in the galaxy developers
Stargate: Adventures in the galaxy developers Entertainment & Press with 5 members