Link errors with 1.4, TLK, trans interiors
by Desmond Fletcher · in Torque Game Engine · 03/20/2006 (2:59 pm) · 5 replies
Merged in the interiorTrans resource (Chris Weber) and the TLK
No problem until I uncommented the switches in sgLighting.h
Now I'm getting some link errors:
../engine\interior/itf.h(104) : error C2059: syntax error : '*'
C:\dev\Beowulf_Chess4D_1.4sg\engine\game\game.cc(702) : error C2011: 'OutputPoint' : 'struct' type redefinition
../engine\interior/interior.h(197) : error C2146: syntax error : missing ';' before identifier 'sgInteriorData'
../engine\interior/interior.h(197) : error C2501: 'sgInterior' : missing storage-class or type specifiers
../engine\interior/interior.h(197) : error C2501: 'sgInteriorData' : missing storage-class or type specifiers
any ideas?
No problem until I uncommented the switches in sgLighting.h
Now I'm getting some link errors:
../engine\interior/itf.h(104) : error C2059: syntax error : '*'
C:\dev\Beowulf_Chess4D_1.4sg\engine\game\game.cc(702) : error C2011: 'OutputPoint' : 'struct' type redefinition
../engine\interior/interior.h(197) : error C2146: syntax error : missing ';' before identifier 'sgInteriorData'
../engine\interior/interior.h(197) : error C2501: 'sgInterior' : missing storage-class or type specifiers
../engine\interior/interior.h(197) : error C2501: 'sgInteriorData' : missing storage-class or type specifiers
any ideas?
#2
I commented out the InteriorTrans::renderObject function in sgMethods.cc after copying it to InteriorTrans.cc (and commented out the original renderObject function).
@John This is not the best solution but it eliminated the compile errors. I still have to test in-world.
03/20/2006 (4:01 pm)
I may have solved the problem (perhaps not as elegantly as John would).I commented out the InteriorTrans::renderObject function in sgMethods.cc after copying it to InteriorTrans.cc (and commented out the original renderObject function).
@John This is not the best solution but it eliminated the compile errors. I still have to test in-world.
#3
It's GDC week, but I'll take a look when I get back.
How's it going? I haven't heard from you in a while, hope all is well.
-John
03/20/2006 (9:11 pm)
Hi Desmond,It's GDC week, but I'll take a look when I get back.
How's it going? I haven't heard from you in a while, hope all is well.
-John
#4
Life's been busy--still cleaning up from katrina--but life goes on.
What I thought was fixed above is not fixed so I am looking forward to hearing from you on this. Although my maps are compiling fine with TranslucentDetails, they are crashing on relight in-world.
Edit: Geez, I just took out all the TranslucentDetails but left the polys with the transparent textures and they all render in-world. Is that new? That's sweet if that's a real fix.
Hope GDC is/was fun.
03/23/2006 (5:12 pm)
Hi John,Life's been busy--still cleaning up from katrina--but life goes on.
What I thought was fixed above is not fixed so I am looking forward to hearing from you on this. Although my maps are compiling fine with TranslucentDetails, they are crashing on relight in-world.
Edit: Geez, I just took out all the TranslucentDetails but left the polys with the transparent textures and they all render in-world. Is that new? That's sweet if that's a real fix.
Hope GDC is/was fun.
#5
I'm not sure I'm following that, what are the TranslucentDetails? I only updated the trans object rendering to support TLK style rendering, but I haven't worked heavily with the resource and am not very familiar with it.
-John
03/27/2006 (8:21 am)
Sorry to hear about the damage, but it's great to have you back again.I'm not sure I'm following that, what are the TranslucentDetails? I only updated the trans object rendering to support TLK style rendering, but I haven't worked heavily with the resource and am not very familiar with it.
-John
Torque Owner Desmond Fletcher
fletcher
#include "interior/interiorTrans.h"
to overcome the problem below:
C:\dev\Beowulf_Chess4D_1.4sg\engine\synapseGaming\contentPacks\lightingPack\sgNewMethods.cc(857) : error C2027: use of undefined type 'InteriorTrans'
../engine\interior/interiorInstance.h(50) : see declaration of 'InteriorTrans'
So I removed that include and am back to the undefined type 'InteriorTrans
which stops in sgMethods.cc
#ifdef SG_RESOURCE_INTERIORTRANS
void InteriorTrans::renderObject(SceneState* state, SceneRenderImage*)
I commented out the InteriorTrans::renderObject function in interiorTrans.cc as John requires in sgLight.h
But I left the reference in interiorTrans.h to void renderObject(SceneState*, SceneRenderImage*);) because that lead to another problem.