Game Development Community

Shapes not working but interiors are

by Foestar · in Torque Game Engine Advanced · 08/11/2009 (10:10 pm) · 6 replies

So for some reason I can get anything I create in constructor to work when I place it in the interiors folder but not the shapes. So I am placing in my objects there for the time being until I can figure out why it's working in one and not the other. Any ideas? Did I miss something in the common issues?

#1
08/11/2009 (10:19 pm)
Ok, now it's showing up. But i'm getting an error.
"Invalid st coord encoding in Interior::readLMapTG"
#2
08/11/2009 (10:19 pm)
There are three locations that shapes/objects/whatever can be found: Interiors, Shapes, and StaticShapes.

  • Interiors -- as you know are DIFs
  • Shapes -- would be DTS objects, but require a datablock, ie scripted objects that you interact with or use.
  • StaticShapes -- would be DTS objects, recursively found by the editor. These are simple, non-interactive shapes or props.

  • So which shapes are you having difficulty finding/using?
    #3
    08/11/2009 (10:24 pm)
    Quote:
    Ok, now it's showing up. But i'm getting an error.
    "Invalid st coord encoding in Interior::readLMapTG"

    Either you haven't exported your DIF with the "TGEA" version of map2dif (I prefer(ed) Constructor's "Export To Dif" option), or you're trying to use some Interior assets created for an old version of TGE in a newer version.
    #4
    08/12/2009 (8:05 am)
    StaticShapes are what i'm having trouble with. I haven't put in any interactive objects yet. So most of the stuff I want to put in are just simple props. But for some reason when I put them in they show up under interiors/shapes and then come up with errors.

    As for the exporting. I used constructors export to dif as well. Should I try another way?
    #5
    08/12/2009 (9:55 am)
    You may have to adjust your lightmap parameters before exporting, that seems to be another reason for that error.

    Your meshes would have to work as StaticShapes before they would work as Shapes. Do they show up in ShowTool? That you say they show up under Interiors doesn't seem right to me....
    #6
    08/12/2009 (11:04 am)
    Yeah, it's completly odd. I put the shapes in the shapes folder. But in TGEA it comes up under Interiors/scriptsAndAssets/data/shapes and then has that error.

    Also, it's not showing up in showtool. + I just reinstalled ShowTool and it wont let me enter my key. Keeps telling me it's invalid..... which it is the correct key. I've checked under my products multiple times.