Men of War: Assault Squad 2

Men of War: Assault Squad 2

Men of War: Assault Squad 2 - Workshop
The place to find custom maps, missions and mods for your favourite Men of War game! Want to contribute? Check the mainfolder of the game for all modding tools, such as map editor and plug-ins.
Editing "bone" position in .mdl files
I need to move the bone to point in a specific direction.

Can somebody please explain how the different sets of numbers effect the position?

Is it possible to open the model using 3d editing software to make this easier?

{bone "fxshell" {Matrix34 10 -10.978148 0.20791 -8 0 0 0 -0.20791 -10.978148 4.66183 7.41465 0.205551 } }

Thanks :steamhappy:
< >
Showing 1-9 of 9 comments
Emrys 1 6 Nov, 2015 @ 12:10pm 
I think if you change the bottom three values (4.66183 7.41465 0.205551), the position will change (the bottom values are sort of like z, x and y axis points, though not necessarily in that order).

To change direction you need to add or remove minus signs to the upper 9 values. I don't really understand how it works, so a lot of trial and error is required to find the correct combination of positive and negative values. Don't change the absolute values though, just add or remove a minus sign.

Once a model has been exported into .ply format there doesn't seem to be any way to open it via 3ds max or similar program. You would need a copy of the original .3ds file.
Hey thanks for your reply, its a good start :steamhappy:

Looks like I need to play around with the upper nine values to get the direction I want.

Gonna be VERY slow work lol

I need to fine-tune the direction of this bone on 30+ weapons so I was hoping there would be a faster method.

Can anybody else shed any more light on how those nine values work?
Last edited by Nocturnal Supremacy; 7 Nov, 2015 @ 2:39am
Ty 3 30 Dec, 2015 @ 8:26pm 
Gepanzerte...

Try this.. I used to mod DCG. It may change your life... it did mine.

http://www.mediafire. com/download/hdmh62xvgt38xx3/MatrixParams_v20.exe
Last edited by Ty; 14 Mar, 2017 @ 7:26am
Originally posted by Ty2903:
Gepanzerte...

Try this.. I used to mod DCG. It may change your life... it did mine.

{LINK REMOVED}

Thanks!

Can you explain how to use?

Also when I run the .exe I receive msstdfmt.dll missing error, which versions of Windows can I use this with?

I currently have Windows 10.
Last edited by Nocturnal Supremacy; 31 Dec, 2015 @ 2:42am
Ty 3 31 Dec, 2015 @ 12:31pm 
I have Win 7. Google "msstdfmt.dll" and there are many websites that offer downloads of the dll and instructions.. Let me know when you get running, if you have any questions.

It's still trial and error with .mdl editing but it can help you rotate objects correctly w/o them getting turned inside out or mis-shapend
Ty 3 9 Jan, 2016 @ 2:25pm 
Any luck?
Originally posted by Ty2903:
Any luck?

Hey thanks for asking, I fixed the msstdfmt.dll error and have it opening correctly now.

Can you give me an example of how I would actually use this?
Ty 3 10 Jan, 2016 @ 1:11pm 
As you probably know, bone position is usually easy to adjust with a little trial and error. But rotation and scaling is nearly impossible. That's what the program is for, rotating objects and scaling them.

If i want to manipulate a bone.. I'll usually change its matrix value to something like this...

{Matrix34
1 0 0 ;rotation & scale
0 1 0 ;rotation & scale
0 0 1 ;rotation & scale
0 0 0 ;position
}

This means no rotation, scale is 1 and position is exact center of the entity. From there, if the object isn't rotated correctly, I'd plug in the program different values for Rot x, y or z. The program spits out the correct matrix34 values to give the bone that rotation. Example with a Rot X value of 90 (means rotation the bone along the x axis 90 degrees) the program results would look like this....

1 0 0 0 0 -1 0 1 0

Apply that to the matrix34 layout and it looks like this....

{Matrix34
1 0 0 ;rotation & scale
0 0 -1 ;rotation & scale
0 1 0 ;rotation & scale
0 0 0 ;position
}

Say you want to rotate an object 90 degrees on the X axis.. but 20 on the Y axis. The program give this...

0.939693 0 0.34202 0.34202 0 -0.939693 0 1 0

appled to the Matrix34 in the .mdl looks like this...

{Matrix34
0.939693 0 0.34202 ;rotation & scale
0.34202 0 -0.939693 ;rotation & scale
0 1 0 ;rotation & scale
0 0 0 ;position
}

From here you can plug in any combination of rotation x, y & z along with scaling x, y & z and the program will give you the correct matrix34 values.

It's a powerful tool, but requires trial and error by pluggin in different values, then copy/pasting the results in to the matrix34 and reloading the map/mission to see how it changed the entity. After a while, I've started to get farely quick at guessing what values to plug into the program to get the desired result
Last edited by Ty; 10 Jan, 2016 @ 1:15pm
RCLAC-14 3 Apr, 2024 @ 7:43am 
Originally posted by Ty:
Gepanzerte...

Try this.. I used to mod DCG. It may change your life... it did mine.

http://www.mediafire. com/download/hdmh62xvgt38xx3/MatrixParams_v20.exe

Wonderful tool. You have changed my life. Thank you very Ty

And thank you very much for your part in DCG. Hope you all decide to continue developing the mod
< >
Showing 1-9 of 9 comments
Per page: 1530 50