Game Development Community

Port The Tank Pack To TGEA

by G · in Torque Game Engine Advanced · 05/17/2007 (9:04 pm) · 3 replies

I did search and read and send a product support message but I didnt get anything but the automated message 3 days ago.... Can anyone help with this. I am no C++ coder and I dont know what all needs to be done. I have figured out some of the changes.... but not all.

Ill share what I do know... but this is from someonelses port job on another thing:

In tankShape.cc
Change:
#include "game/fx/particleEngine.h"
to
#include "game/fx/particleEmitter.h"
Change:
#include "dgl/dgl.h"
to
#include "gfx/primBuilder.h"
In simplePolyList.cc
Change:
#include "dgl/dgl.h"
to
#include "materials/materialPropertyMap.h"

Now I am left with this mess... I believe these are referances to the change in dgl/dgl.h but I am clueless when it comes to anything deeper then what I have done... HELP!!!

Quote:...\engine\collision\simplepolylist.cc(228) : error C2065: 'mPlaneList' : undeclared identifier
...\engine\collision\simplepolylist.cc(228) : error C2228: left of '.setFileAssociation' must have class/struct/union type is ''unknown-type''
...\engine\collision\simplepolylist.cc(349) : error C2065: 'GL_FLOAT' : undeclared identifier
...\engine\collision\simplepolylist.cc(349) : error C3861: 'glVertexPointer': identifier not found
...\engine\collision\simplepolylist.cc(350) : error C2065: 'GL_VERTEX_ARRAY' : undeclared identifier
...\engine\collision\simplepolylist.cc(350) : error C3861: 'glEnableClientState': identifier not found
...\engine\collision\simplepolylist.cc(351) : error C3861: 'glColor4f': identifier not found
...\engine\collision\simplepolylist.cc(352) : error C2065: 'GL_BLEND' : undeclared identifier
...\engine\collision\simplepolylist.cc(352) : error C3861: 'glEnable': identifier not found
...\engine\collision\simplepolylist.cc(353) : error C2065: 'GL_CULL_FACE' : undeclared identifier
...\engine\collision\simplepolylist.cc(353) : error C3861: 'glDisable': identifier not found
...\engine\collision\simplepolylist.cc(354) : error C2065: 'GL_SRC_ALPHA' : undeclared identifier
...\engine\collision\simplepolylist.cc(354) : error C2065: 'GL_ONE_MINUS_SRC_ALPHA' : undeclared identifier
...\engine\collision\simplepolylist.cc(354) : error C3861: 'glBlendFunc': identifier not found
...\engine\collision\simplepolylist.cc(357) : error C2065: 'GL_POLYGON_OFFSET_FILL' : undeclared identifier
...\engine\collision\simplepolylist.cc(357) : error C3861: 'glEnable': identifier not found
...\engine\collision\simplepolylist.cc(358) : error C3861: 'glPolygonOffset': identifier not found
...\engine\collision\simplepolylist.cc(362) : error C2065: 'GL_POLYGON' : undeclared identifier
...\engine\collision\simplepolylist.cc(363) : error C2065: 'GL_UNSIGNED_INT' : undeclared identifier
...\engine\collision\simplepolylist.cc(362) : error C3861: 'glDrawElements': identifier not found
...\engine\collision\simplepolylist.cc(366) : error C3861: 'glColor3f': identifier not found
...\engine\collision\simplepolylist.cc(367) : error C3861: 'glDisable': identifier not found
...\engine\collision\simplepolylist.cc(369) : error C2065: 'GL_LINE_LOOP' : undeclared identifier
...\engine\collision\simplepolylist.cc(369) : error C3861: 'glDrawElements': identifier not found
...\engine\collision\simplepolylist.cc(373) : error C3861: 'glDisableClientState': identifier not found
...\engine\collision\simplepolylist.cc(374) : error C3861: 'glDisable': identifier not found

I would post the code for the tanks but I am pretty sure someone wouldn't like it. I have it narrowed done to a single file... so far as the compile will go..

#1
05/17/2007 (9:54 pm)
Have you changed all of the gl calls to appropriate gfx calls? Could you post the function(s) that those gl calls are in?
#2
05/18/2007 (4:05 pm)
G, [http://www.garagegames.com/mg/forums/result.thread.php?qt=33207]This[/url] post helped me port the tank pack in a earlier version of TGEA (actually, all the work was done for me), I haven't tried this on the release version of TGEA yet, let me know if it works for you.
#3
05/18/2007 (8:45 pm)
@Chris-That link should do it thanks Chris.

@Matt- Thanks for looking in on me.. Ill try this fix. It looks like the straight up solution. If I still have problems Ill post in there.