Opcode/Polysoup help
by James Laker (BurNinG) · in Torque Game Engine Advanced · 09/18/2007 (1:52 am) · 4 replies
For some reason I'm unable to get this working with TGEA 1.02.
I'm getting the following errors in tsMesh.cpp:
And is found at this line:
Here are steps I've taken, which I assume is correct, since the problem is not with the opcode calls itself.
1) From the Polysoup.rar I extracted the the Opcode directory to my lib folder.
2) I've added the Opcode project to my TGEA SDK Solution.
3) Added the opcode.lib the Additional Dependencies under Properties->Linker->Input.
4) Added the opcode path to to Additional Include Directories in Properties -> C/C++
5) Made the changes to tsShapeInstance, tsCollision, Convex, tsMesh, tsStatic files.
I'm using Visual Studio 2005.
Any help would be greatly appreciated.
Thanx
I'm getting the following errors in tsMesh.cpp:
... error C2065: 'TSStaticPolysoupConvex' : undeclared identifier c:\Torque\TGEA_1_0_2\engine\ts\tsMesh.cpp error C2061: syntax error : identifier 'TSStaticPolysoupConvex' c:\Torque\TGEA_1_0_2\engine\ts\tsMesh.cpp ...
And is found at this line:
TSStaticPolysoupConvex *chunkc = static_cast<TSStaticPolysoupConvex*>(itr->mConvex);
Here are steps I've taken, which I assume is correct, since the problem is not with the opcode calls itself.
1) From the Polysoup.rar I extracted the the Opcode directory to my lib folder.
2) I've added the Opcode project to my TGEA SDK Solution.
3) Added the opcode.lib the Additional Dependencies under Properties->Linker->Input.
4) Added the opcode path to to Additional Include Directories in Properties -> C/C++
5) Made the changes to tsShapeInstance, tsCollision, Convex, tsMesh, tsStatic files.
I'm using Visual Studio 2005.
Any help would be greatly appreciated.
Thanx
#2
Sometimes I just need a good ol whack against the head...
You were right... just needed this in tsMesh.cpp at the top:
Hopefully this saves someone the headache.
09/19/2007 (1:26 am)
Thanx Ross,Sometimes I just need a good ol whack against the head...
You were right... just needed this in tsMesh.cpp at the top:
#include "game/tsStatic.h"
Hopefully this saves someone the headache.
#3
Anyway, if anyone has the correctly merged files or a compiled .exe, would it be possible to email them to me?
Thanks.
12/26/2007 (9:42 pm)
I spent the past week attempting to hand merge the proper code with 1.0.3. Unfortunately, even though I was able to get it to compile, once in game it would crash. I was using WinMerge, but I had trouble with some of the differences in the code.Anyway, if anyone has the correctly merged files or a compiled .exe, would it be possible to email them to me?
Thanks.
#4
\Dev\Torque\PTGEA\engine\ts\tsMesh.cpp(430): error C2440: '=' : cannot convert from 'GFXTexHandle *' to 'GFXTextureObject *'
02/01/2008 (4:50 pm)
This is the best I've been able to manage from VS 2003 Professional and TGEA 1.0.3:\Dev\Torque\PTGEA\engine\ts\tsMesh.cpp(430): error C2440: '=' : cannot convert from 'GFXTexHandle *' to 'GFXTextureObject *'
Associate Ross Pawley