Game Development Community

Help with Blender

by Stuart Froman · in Torque Game Engine · 01/09/2005 (9:06 pm) · 20 replies

Hello Folks,

Can anyone tell me how to get Blender to export .DTS files. I cannot seem to get it to export in that format.

Thanks

About the author

Recent Threads

  • DSQ Viewer

  • #1
    01/09/2005 (9:16 pm)
    It APPEARS that there isnt an official exporter for blender to DTS files.

    www.alexswanson.com/torque/dts/

    Scroll all the way down to the line that says "Official GG Exporter"
    #2
    01/09/2005 (10:29 pm)
    Thanks for the response Nate.

    I did a little more digging and decided to go back to an older version of the Python files, but after installing them in my drive and changing the PYTHONPATH I still cannot get Blender to show DTS as an import/export option. Does anyone have any ideas what I could have done wrong. Using version 2.2 of the Python scripts
    #3
    01/09/2005 (11:40 pm)
    Try to remove one of your other exporters. Blender seems to have some problems when having more then 16 exporters aktiv.
    #4
    01/10/2005 (12:11 am)
    Marco,

    I gave your suggestion a try and it did not solve my problem.
    For some reason I think that Blender is just not seeing the scripts.
    I have double and triple checked the SET Path as well.

    Here is where my files reside

    D:\Garage\Blender contains the install version 2.36 of Blender
    D:\Garage\Blender\Python contains the install version 2.3.4 of Python
    D:\Garage\Blender\Python\Torque_exporter contains the scripts in the 4662.pyoct230.85 zip file

    my Setpath is D:\Garage\Blender\Python

    Can you see anything wrong with this setup ?
    #5
    01/10/2005 (1:00 am)
    If remember correctly you have to have a different .py file for Blender Versions higher than 2.34; you might try the 'Dts_Blender.py' changed one from Scott ("SegFault") Coursey in this thread (at the bottom). If that doesn't work, I would switch back to 2.34.
    #6
    01/10/2005 (2:08 am)
    I finally got the Exporter working.

    I had to revert to the 2.34 versions of Blender and Python, then the script works properly.

    Thanks to everyone that responded and to the community as a whole. The forums are used by some real cool individuals willing to help.
    #7
    01/10/2005 (8:15 am)
    To get versions beyond 2.34 working with the exporter you have to go into the Dts_blender.py and change

    n 'Torque DTS Exporter'
    b 233
    g 'Export'
    s 'Export' export
    s 'Configure' config
    t 'Export to Torque (.dts) format.'

    to this:

    Name: 'Torque DTS Exporter'
    Blender: 233
    Group: 'Export'
    Submenu: 'Export' export
    Submenu: 'Configure' config
    Tooltip: 'Export to Torque (.dts) format.'

    Then (because these forums switch out the chracter to the left of your enter key, to this character ' ... you have to go back and replace the ' s with the character to the left of your enter key. Then update menus in scripts.
    #8
    01/31/2005 (3:28 am)
    Hi,

    I made the above change to the header of Dts_blender.py. It puts the exporter in the menu as I had hoped. However, when I choose the option it leads to a
    submenu with 2 options: Export and Configure. If I choose Export the console reports the following errors:

    Traceback (most recent call last):
    File "", line 36, in ?
    File "C:\Torque_Exporter\DTSPython\__init__.py", line 30, in ?
    from Torque_Util import *
    File "C:\Torque_Exporter\DTSPython\Torque_Util.py", line 26, in ?
    import struct, array, math, string
    File "C:\PYTHON24\LIB\string.py", line 83, in ?
    import re as _re
    File "C:\PYTHON24\LIB\re.py", line 5, in ?
    from sre import *
    File "C:\PYTHON24\LIB\sre.py", line 97, in ?
    import sre_compile
    File "C:\PYTHON24\LIB\sre_compile.py", line 13, in ?
    import _sre, sys
    ImportError: No module named _sre


    If I choose Configure, the console reports the following errors:

    Traceback (most recent call last):
    File "", line 43, in ?
    File "C:\PYTHON24\LIB\copy.py", line 102, in ?
    for t in (types.NoneType, int, long, float, bool, str, tuple,
    NameError: name 'frozenset' is not defined


    Is someone finally going to get this exporter working, or should I just give up
    on using Blender? I was hoping I wouldn't have to buy Milkshape, but if it
    exports DTS models without this kind of hassle, I may just have to!


    David.
    #9
    01/31/2005 (4:02 am)
    Hey David,
    I don't know why this doesn't work. After installing Blender 2.36 and placing the exporter in the subfolder all I've done was changing the Dts_blender.py file as Matthew said.
    Sorry for this question but are you sure you placed everything in the right place and have done everything else?
    #10
    02/02/2005 (12:29 am)
    Marco,

    Thanks for the moral support. I'll keep trying! I don't know much about
    Blender, but it still looks like a much more powerful modeller than MilkShape.
    I'll un-install everything and try again.


    David.
    #11
    02/03/2005 (4:56 am)
    Ahaa!!,

    I've just discovered why I've been having problems installing the Blender
    DTS exporter scripts. It has something to do with the version of Python.

    So far I've been using the latest version of Python (version 2.4). With this
    version, the scripts were not working - the menu option was appearing but
    the script console would report some errors when I selected either 'Export'
    or 'Configure'.

    So, I downloaded an older version of Python (version 2.3.4) and installed this
    instead. Now both menu options work! Of course this doesn't make much
    sense. Version 2.4 should be better, but there's something about it that
    causes the scripts to puke.


    David Kromek.
    #12
    02/16/2005 (12:19 am)
    Arrrrgh!

    I've followed all the directions, uninstalled Blender and all traces of python. I've installed Blender 2.36 and Python 2.3.4, even taken out previous PYTHONPATH variables, and added a new one that points to the srcipts folder of blender.

    All I get is:

    Traceback (most recent call last):
    File "", line 37, in ?
    ImportError: No module named DTSPython


    I looked through all the .py files starting with Dts_ and indeed there is no module "DTSPython"

    What the hell is going on? It has taken me 3.5 hours, followed every guide around, double checked my steps searched google, reinstalled everything and nothing.

    I've owned the TGE for about 22 hours now and am less than impressed, the documentation on this topic seems to go around in circles and/or is outdated.

    Do GG think people can seriously afford $2500 for Max and that is the way to go?

    This is the first time in the last 6 months I've felt like punching my moniter, frustrated is an understatement.

    I am prepared to work through problems and expect to do so but having to read the 3 million comments on the resource page www.garagegames.com/blender and then finding nothing works, advice is circular and there is nothing upto date to point to and say that will work.....well

    Anyone got a definative idea as to how to get this working?????
    #13
    02/16/2005 (12:38 am)
    Before blaiming the GG people you should follow this How-to. From what you said I fear that you didn't install the DTS exporter. Follow the steps in the How-to and everything should work.
    #14
    02/16/2005 (1:37 am)
    That is the exact guide I followed lastly.

    Unfortunatly in step 2 it uses 2.34 so I have to deviate and use 2.36 instead (2.34 doesn't have global undo so want to avoid it)

    In step 3 it says to download the latest version of the exporter. I do this (4662-1.pyfeb010.87.zip) and thus my files are then not the same as those shown in step 4. The zip file I have downloaded looks like this:

    www.users.on.net/~symes/other/DTSzip.jpg
    I've tried placing all the files in the scripts dir, I've tried unzipping with paths into the scripts dir, I've tried replicating the folder structure shown in the guide (util, etc) I still get the error.

    Despite step 5 saying it doesn't need the path I modified the path I had so I covered that base too.

    Then when I follow the next steps I get the error:

    Traceback (most recent call last):
    File "", line 37, in ?
    ImportError: No module named DTSPython

    So I fear that HOWTO is outdated as both Blender and the DTSexporter itself have changed since.

    Is there any current info around?
    #15
    02/16/2005 (3:27 am)
    If you just want to start, then I would downgrade to 2.34. I am quite sure I already tested it with 2.36, and for this I *think* I followed this thread.
    #16
    02/16/2005 (3:55 am)
    Yeah downgrading to 2.34 works with the latest DTS exporter.

    Unfortunately the difference between 2.34 and 2.36 is pretty big (IMO)

    It was with 2.35 we gained global undo and the knife tool.

    Two things I consider essential (nothing worse than non-global undo)

    As well as numerous bugs I used to get under those earlier versions, fixed up.

    I really can't see why 2.36 has a problem. the scripts containing the "missing" modules are in the same dir, on the PATH and available as far as I can see. Yet the way Blender calls the DTS_blender.py script seems to stop python looking at all (even on PATH).

    I've even confirmed the python can see and access the modules required.


    On another note, in my hours and hours of research, I came across mention of including the DTS exporter as standard in the next version of Blender. Now that is something I would love ;)
    #17
    02/16/2005 (4:11 am)
    It seems Blender 2.35a works for me aswell.

    So it seems my solution is to develop in 2.36 and open it and export from 2.35a.

    I really hope a stable working DTS exporter for 2.36 is released soon.
    #18
    02/16/2005 (7:34 pm)
    Nigel,

    Are you sure you have the right zip file of the exporter? The one I downloaded is
    named "pyjan270.87". Sorry, but I can't remember exactly where I downloaded it
    from. I'll email it to you. Give it a try.


    David Kromek.
    #19
    02/16/2005 (7:44 pm)
    Thanks, sorry everyone if I came on a little strong in my first post in this thread but that was me at the height of my frustration :(
    #20
    02/16/2005 (9:23 pm)
    Hi there.
    I've was just recently having some trouble with Blender 2.36 and Python2.4, however, Blender does not need a full install of Python. It can read and execute Python scripts on its own.

    I was trying to use a 3ds import/export script and I kept getting these erors. However, after I uninstalled Python, the scripts would work. I don't understand it at all, but such was the case.

    So Nigel, David and whoever else... just for the fun of it, unless you really *need* Python, try uninstalling it, then running the script after dropping into Blender and see what happens.