Interiors won't load up into TGE
by Kevin · in Technical Issues · 04/20/2008 (12:59 am) · 8 replies
I've only been attempting to make a 3D game for about a week so I'm a real noob right now.
I'm using Torque Constructor to make my Interiors, the first thing I made, I made it following this tutorial.
http://wiki.pwlabs.com/index.php?title=Torque_Constructor_Build_Museum
I've made the structure and exported it as a .DIF, but when I try to add it in TGE, the prompt to relight my scene ( "a lightmapped object has been altered, relight the scene!" ) always pops up as if I just added something, but nothing ever shows up, no handles for the X/Y/Z, no red dot, no actual structure...nothing. I've added a castle .DIF that someone else made and it works fine.
I've tried many things but I've run out of ideas, please help.
I'm using Torque Constructor to make my Interiors, the first thing I made, I made it following this tutorial.
http://wiki.pwlabs.com/index.php?title=Torque_Constructor_Build_Museum
I've made the structure and exported it as a .DIF, but when I try to add it in TGE, the prompt to relight my scene ( "a lightmapped object has been altered, relight the scene!" ) always pops up as if I just added something, but nothing ever shows up, no handles for the X/Y/Z, no red dot, no actual structure...nothing. I've added a castle .DIF that someone else made and it works fine.
I've tried many things but I've run out of ideas, please help.
#2
Jondo
04/20/2008 (10:44 am)
I may be off based, I only used constructor a few times successfully, but I seem to remember having the same issue. I believe what did to fix it was exported as a Legacy DIF. At any rate, you could export using each of the options, name them differently, and see if one works.Jondo
#3
I opened the console after trying to add my DIF, this is what I saw
Interior::read: incompatible file version found.
Unable to read detail level 0 in interior resource
Unable to load interior: prototype22/data/interiors/stone/stone.dif
creator/editor/EditorGui.cs (1294): Register object failed for object (null) of class InteriorInstance.
04/20/2008 (2:53 pm)
The DIF is 7.87 KB. I've already tried a Legacy DIF and I've already made sure I had my texture file in the same directory with the .difI opened the console after trying to add my DIF, this is what I saw
Interior::read: incompatible file version found.
Unable to read detail level 0 in interior resource
Unable to load interior: prototype22/data/interiors/stone/stone.dif
creator/editor/EditorGui.cs (1294): Register object failed for object (null) of class InteriorInstance.
#4
04/20/2008 (2:59 pm)
This is a problem I haven't encountered. I don't use constructor, so can't really help you with this. Sorry about that.
#5
04/20/2008 (3:28 pm)
Exporting as a Legacy seems to work now, but with the version of TGE I'm using I'm not supposed to have to use the Legacy, and the lighting on it is too dark. Does the lighting have to do with Constructor or TGE, or both?
#6
Legacy dif is what regular tge uses. (I think)
If constructor exports a .map file, you can use the map2dif that's included with tge. It's in the tools folder. (main folder, not a sub folder)
04/20/2008 (3:32 pm)
Which version of tge are you using?Legacy dif is what regular tge uses. (I think)
If constructor exports a .map file, you can use the map2dif that's included with tge. It's in the tools folder. (main folder, not a sub folder)
#7
04/20/2008 (4:14 pm)
I've fixed the lighting problem, it seems to be working fine so I guess I'll just use Legacy from now on. Thanks for the help.
#8
How complex is your map? Have you done any vertex editing?
04/20/2008 (5:13 pm)
This is extremely odd. I've had quite a good run exporting with the default export functions (I only use export to legacy if I'm using an older version of the engine and even then usually run it through map2dif for that version rather than working with the legacy export functionality. I haven't done that in a long time, though.How complex is your map? Have you done any vertex editing?
Torque Owner Mike Rowley
Mike Rowley
That log will give you big hints as to what is going on.
Also, make sure your textures are in the same folder as your dif file.
The prompt to relight is standard when adding a dif file becouse it alters the shadowing in your scene. No need to worry about it, and you don't have to worry about relighting until you are done working in your scene.
This is odd behavior. When you hover your mouse over your dif, how many mb is it in size?