Author Topic: Making a .dts to .obj converter in Blockland.  (Read 2732 times)

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: [Select]
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.
Are the commands even supported in Blockland? If so, how would you import this into Blockland?
« Last Edit: May 22, 2011, 11:45:42 PM by Daenth »

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.
« Last Edit: May 21, 2011, 03:29:51 PM by 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.
Remember anything about how you got it to work?

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

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: [Select]
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
So I don't think it's the same one.

do you remember where you found it?

The reason it doesn't work is because it's C++ code.


There was a Torquescript version on the garagegames forums. However, it must've violated their terms of service, because all posts about it have been blanked out, you can only see people's feedback about it.

There was a Torquescript version on the garagegames forums. However, it must've violated their terms of service, because all posts about it have been blanked out, you can only see people's feedback about it.
You could try looking in the webarchived versions of the link

There was a Torquescript version on the garagegames forums. However, it must've violated their terms of service, because all posts about it have been blanked out, you can only see people's feedback about it.
Could you send me the link? :)

« Last Edit: May 24, 2011, 09:03:33 AM by The Corporation »

You could try looking in the webarchived versions of the link
I think this is the right guy, just not the right timeframe. Name is Joseph Greenwalt, might wanna google him.
http://web.archive.org/web/20090329054523/http://www.garagegames.com/community/forums/authorID/35183

If you look at the unarchived version, all his info's been deleted. http://www.garagegames.com/community/forums/authorID/35183


BTW, what models were you trying to get?
« Last Edit: May 23, 2011, 10:30:19 PM by Greek2me »

I think this is the right guy, just not the right timeframe. Name is Joseph Greenwalt, might wanna google him.
http://web.archive.org/web/20090329054523/http://www.garagegames.com/community/forums/authorID/35183

If you look at the unarchived version, all his info's been deleted. http://www.garagegames.com/community/forums/authorID/35183


BTW, what models were you trying to get?
When I get an idea for something, I often look at a default model for reference... currently I don't need any but I'd find it useful.