Blockland Forums > Modification Help

Making a .dts to .obj converter in Blockland.

Pages: (1/3) > >>

Daenth:

We all (at least people who work with models) know that getting a .dts into .obj is hard/impossible, mainly because Shaper is the only program that allows the conversion. Doing a little research I found this. I attempted to add it into Blockland and get this error in my console...



--- Code: ---Executing base/models/exportscript.cs.
base/models/exportscript.cs Line: 2 - Syntax error.
>>> Some error context, with ## on sides of error halt:
onsoleFunction(dumpDTStoObj, void, 3, 3, "(string objfile, string dts)");

{##
##
    Resource<TSShape> shape;  

    shape = ResourceManager->load(argv[2]);  

    const char * str;  

    if(shape.isNull())  

        return;  

      

    TSShapeInstance *shapeinst = new TSShapeInstance(shape, true);  

    if(!shapeinst)  

        return;  
>>> Error report complete.

--- End code ---
Are the commands even supported in Blockland? If so, how would you import this into Blockland?

Greek2me:

I actually made this work a long time ago and I got a lot of the default models imported to blender. Lemme see if I can find my working copy.

Nope, can't find it, I only found the models. But yeah, you can make it work.

Daenth:


--- Quote from: Greek2me on May 21, 2011, 03:13:23 PM ---I actually made this work a long time ago and I got a lot of the default models imported to blender. Lemme see if I can find my working copy.

Nope, can't find it, I only found the models. But yeah, you can make it work.

--- End quote ---
Remember anything about how you got it to work?


Gadgethm:

If you get this working, I'd like a copy, lol

Greek2me:

I think I actually used a different script, this one says that it doesn't export bones or materials. All my files have stuff like this at the end of them:

--- Code: ---Materials: 1
"blank"
1.000000059139 1.000000059139 1.000000059139 0
1.000000059139 1.000000059139 1.000000059139 0
1.000000059139 1.000000059139 1.000000059139 0
0 0 0 0
0
0
"C:/Blockland/base/data/shapes/blank.png"
""
Bones: 5
"main"
""
0 0.000000 0.000000 -0.000000 0.000000 1.570451 0.000000
0
0
"start"
"main"
0 0.000000 0.000000 0.000000 0.000000 1.570451 0.000000
0
0
"mountPoint"
"start"
0 0.000000 -0.458544 -0.000000 3.141593 0.000000 3.141593
0
0
"Wrench9999"
"start"
0 -0.000019 0.701812 0.229633 0.000000 -1.570796 -1.570796
0
0
"WrenchB32"
"start"
0 -0.000019 0.000445 0.108349 0.000000 -1.570796 -1.570796
0
0
--- End code ---
So I don't think it's the same one.

Pages: (1/3) > >>

Go to full version