|
You last visited: Today at 07:13
Advertisement
[How2]Import Mdatr in 3DSMax
Discussion on [How2]Import Mdatr in 3DSMax within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.
06/17/2012, 11:36
|
#1
|
elite*gold: 20
Join Date: Oct 2007
Posts: 610
Received Thanks: 1,247
|
[How2]Import Mdatr in 3DSMax
Open 3DSMax > "MaxScript" > "New Script" > Paste Script > Save as *.mcr > Close all
Open 3DSMax > "MaxScript" > "Run Script." > Select saved *.mcr
"Customize" > "Customize User Interface" > "Toolbars" > Search "Load Mdatr file" in "Action" list > "New..." > Choose name
Drag & Drop "Load Mdatr file" to the new window > Drag & Drop new window to 3DSMax toolbar > Open *.mdatr
or search "MacroScript 3DSMax" for other Tutorial
MacroScript: by ricky92
Code:
MacroScript Load_Mdatr
category: "Mdatr Tool"
buttonText: "Load Mdatr file"
tooltip: "Load Mdatr file"
(
fName = getOpenFileName types:"Mdatr Files (*.mdatr)|*.mdatr"
if fName != undefined do
(
f = fopen fName "rb"
if f != undefined do
(
headerText = ReadString f
if (headerText == "AttributeData") do
(
--messageBox("Header Check OK!")
numOfMeshes = ReadLong f
numOfHeightPlanes = ReadLong f
if (numOfHeightPlanes > 0) do
(
messageBox("Warning: Numer of HeighPlanes is greater than 0. This feature is currently unsupported.")
)
-- Mesh reading and creation
for i = 1 to numOfMeshes do
(
meshType = ReadLong f
meshName = ReadString f
toSeek = 31 - meshName.count
fseek f toSeek #seek_cur
meshX = ReadFloat f
meshY = ReadFloat f
meshZ = ReadFloat f
--messageBox("Mesh type " + (meshType as string) + ", position: " + (meshX as string) + ", " + (meshY as string) + ", " + (meshZ as string))
obj = undefined
case (meshType) of
(
0:
(
-- Plane mesh
scaleX = ReadFloat f
scaleY = ReadFloat f
obj = plane width:scaleX length:scaleY
obj.position = [-meshX, meshY, meshZ]
quatX = readFloat f
quatY = readFloat f
quatZ = readFloat f
quatW= readFloat f
--messageBox("Quaternion: X " + (quatX as string) + " Y " + (quatY as string) + " Z " + (quatZ as string) + " W " + (quatW as string))
rot = quat quatX quatY quatZ quatW
eulerRot = quatToEuler rot order:2
rotate obj eulerRot
)
2:
(
-- Sphere mesh
sRadius = ReadFloat f
obj = sphere radius:sRadius position:[meshX, meshY, meshZ]
quatX = readFloat f
quatY = readFloat f
quatZ = readFloat f
quatW= readFloat f
--messageBox("Quaternion: X " + (quatX as string) + " Y " + (quatY as string) + " Z " + (quatZ as string) + " W " + (quatW as string))
rot = quat quatX quatY quatZ quatW
eulerRot = quatToEuler rot order:2
rotate obj eulerRot
)
3:
(
-- Cylinder mesh
cRadius = ReadFloat f
cLength = ReadFloat f
obj = cylinder radius:cRadius height:cLength position:[meshX, meshY, meshZ]
quatX = readFloat f
quatY = readFloat f
quatZ = readFloat f
quatW= readFloat f
--messageBox("Quaternion: X " + (quatX as string) + " Y " + (quatY as string) + " Z " + (quatZ as string) + " W " + (quatW as string))
rot = quat quatX quatY quatZ quatW
eulerRot = quatToEuler rot order:1
rotate obj eulerRot
)
)
obj.name = meshName
)
)
)
)
)
|
|
|
06/17/2012, 12:12
|
#2
|
elite*gold: 0
Join Date: Apr 2009
Posts: 121
Received Thanks: 780
|
You should write that you found this script online I know on what site because it was my script and it somehow got leaked, fortunately it's just the import part.
|
|
|
06/17/2012, 12:14
|
#3
|
elite*gold: 0
Join Date: Feb 2009
Posts: 3,227
Received Thanks: 995
|
Ohh you only releas the import part ._.
|
|
|
06/17/2012, 12:16
|
#4
|
elite*gold: 20
Join Date: Oct 2007
Posts: 610
Received Thanks: 1,247
|
I thought that it's yours so added your name in thread
|
|
|
06/17/2012, 12:20
|
#5
|
elite*gold: 0
Join Date: Apr 2009
Posts: 121
Received Thanks: 780
|
Quote:
Originally Posted by >Trib°lex<
i found it here but its deleted
|
In fact I reported that link and provided proof that it was mine, and they kindly deleted it. But sadly some people still got it; not much of a problem, since it's just the import part, and it doesn't even handle heightplanes.
|
|
|
06/17/2012, 13:01
|
#6
|
elite*gold: 0
Join Date: Dec 2011
Posts: 38
Received Thanks: 0
|
How can we export with this ?
|
|
|
06/17/2012, 15:48
|
#7
|
elite*gold: 20
Join Date: Jun 2011
Posts: 2,897
Received Thanks: 3,336
|
Quote:
Originally Posted by ricky92
In fact I reported that link and provided proof that it was mine, and they kindly deleted it. But sadly some people still got it; not much of a problem, since it's just the import part, and it doesn't even handle heightplanes.
|
But from import part some people can write export part.
So i think in maximum 2 Weeks it is fully public.
|
|
|
06/17/2012, 15:49
|
#8
|
elite*gold: 500
Join Date: Oct 2008
Posts: 1,061
Received Thanks: 651
|
was soll des bringen wenn mans nicht exportieren kann ?
|
|
|
06/17/2012, 16:01
|
#9
|
elite*gold: 0
Join Date: Feb 2012
Posts: 180
Received Thanks: 117
|
And how can i export it?
|
|
|
06/17/2012, 16:22
|
#10
|
elite*gold: 0
Join Date: Jan 2012
Posts: 322
Received Thanks: 505
|
I could write an exporter but.... I'm too lazy, so just wait, some dumbass how's THX-***** gonna release it within a few days
|
|
|
06/18/2012, 11:32
|
#11
|
elite*gold: 0
Join Date: Jul 2011
Posts: 48
Received Thanks: 61
|
Na danke exportieren Sie das Skript noch?
|
|
|
06/24/2012, 04:21
|
#12
|
elite*gold: 0
Join Date: Dec 2011
Posts: 38
Received Thanks: 0
|
Quote:
Originally Posted by thepratic
Na danke exportieren Sie das Skript noch?
|
Up !
|
|
|
01/04/2013, 21:25
|
#13
|
elite*gold: 5
Join Date: Oct 2012
Posts: 290
Received Thanks: 357
|
thanks
but how to export to mdatr >>>>??
thanks
but how to export to mdatr >>>>??
|
|
|
01/04/2013, 22:28
|
#14
|
elite*gold: 0
Join Date: Mar 2011
Posts: 567
Received Thanks: 162
|
Use this
|
|
|
01/05/2013, 05:25
|
#15
|
elite*gold: 0
Join Date: Jan 2013
Posts: 87
Received Thanks: 12
|
please write the exporter, dont know how to export :/
|
|
|
|
|
Similar Threads
|
files .mdatr
07/17/2012 - Metin2 Private Server - 2 Replies
Hello elitepvpers
Can any one tell me how to do a .mdatr
When you want to put some new object in your server must make this file
Someone who realizes can tell me?
Grithings
|
Mdatr
07/01/2012 - Metin2 Private Server - 29 Replies
Hallo ,
wie schaffen eine Datei mdatr?
Vielen Dank im Voraus
|
[QUESTION]MDATR file
03/09/2012 - Metin2 Private Server - 3 Replies
Hello e*pvp,
How I open MDATR file?
Thanks :-)
|
salute to Gr2 .mdatr extension, I know how diverter
01/08/2012 - Metin2 Private Server - 0 Replies
salute to Gr2. mdatr extension, I know how diverter
|
FlyFF Import/Export Tools for 3dsMax
12/02/2011 - Flyff Private Server - 1 Replies
Hello. The one and only GlaphanKing here.
As most of you know, I am building a script to import models to max, edit them and then export them back as originally used or how ever you want. Since I am more of a programmer and not a 3d programmer, I would like some advice and or help.
My biggest wall has been bones and animating them. I can import every single mesh file (o3d), but the bones (chr) and animation (ani) are giving me problems.
I will gladly hand this tool out to everyone once...
|
All times are GMT +1. The time now is 07:13.
|
|