BraveTree Tank Pack for TSE
by Kip Carr · in Torque Game Engine Advanced · 08/09/2005 (11:22 am) · 68 replies
Hi guys just trying to get an idea of what needs to be done to get the tank pack working. I have the tank pack now and followed all the insturctions but when i go to compile the code i am missing the whole dgl folder and that references some platformGL.h file which references more of those and etc.... I dont know what the dgl folder is for and I think the GL stuff is opengl but im not sure. I dont know what i need to do to get this working. Has anyone else had any luck getting it to work with TSE.
I am also interested in the extras pack, car pack, and sparrow pack. All of which i havent tried yet.
I am also interested in the extras pack, car pack, and sparrow pack. All of which i havent tried yet.
#42
08/29/2005 (2:53 pm)
O.K., it's Monday, who wants to share the fun?:)
#43
On line 18 change
to
On line 347 change
to
In engine/game/tankShape.cc
On line 10 change
to
On line 27 change
to
On line 50 change
to
On line 69 change
to
On line 2505 change
to
08/29/2005 (10:50 pm)
In engine\collision\simplePolyList.cc:On line 18 change
#include "dgl/dgl.h"
to
//#include "dgl/dgl.h"
On line 347 change
void SimplePolyList::render()
{
glVertexPointer(3,GL_FLOAT,sizeof(Point3F),mVertexList.address());
glEnableClientState(GL_VERTEX_ARRAY);
glColor4f(1,0,0,0.25);
glEnable(GL_BLEND);
glDisable(GL_CULL_FACE);
glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);
// fight z-fighting
glEnable(GL_POLYGON_OFFSET_FILL);
glPolygonOffset(-2,-2);
Poly * p;
for (p = mPolyList.begin(); p < mPolyList.end(); p++) {
glDrawElements(GL_POLYGON,p->vertexCount,
GL_UNSIGNED_INT,&mIndexList[p->vertexStart]);
}
glColor3f(0.6,0.6,0.6);
glDisable(GL_BLEND);
for (p = mPolyList.begin(); p < mPolyList.end(); p++) {
glDrawElements(GL_LINE_LOOP,p->vertexCount,
GL_UNSIGNED_INT,&mIndexList[p->vertexStart]);
}
glDisableClientState(GL_VERTEX_ARRAY);
glDisable(GL_POLYGON_OFFSET_FILL);
}to
void SimplePolyList::render()
{
//glVertexPointer(3,GL_FLOAT,sizeof(Point3F),mVertexList.address());
//glEnableClientState(GL_VERTEX_ARRAY);
//glColor4f(1,0,0,0.25);
//glEnable(GL_BLEND);
//glDisable(GL_CULL_FACE);
//glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);
//// fight z-fighting
//glEnable(GL_POLYGON_OFFSET_FILL);
//glPolygonOffset(-2,-2);
//Poly * p;
//for (p = mPolyList.begin(); p < mPolyList.end(); p++) {
// glDrawElements(GL_POLYGON,p->vertexCount,
// GL_UNSIGNED_INT,&mIndexList[p->vertexStart]);
//}
//glColor3f(0.6,0.6,0.6);
//glDisable(GL_BLEND);
//for (p = mPolyList.begin(); p < mPolyList.end(); p++) {
// glDrawElements(GL_LINE_LOOP,p->vertexCount,
// GL_UNSIGNED_INT,&mIndexList[p->vertexStart]);
//}
//glDisableClientState(GL_VERTEX_ARRAY);
//glDisable(GL_POLYGON_OFFSET_FILL);
}In engine/game/tankShape.cc
On line 10 change
#include "dgl/dgl.h"
to
//#include "dgl/dgl.h"
On line 27 change
#include "game/fx/particleEngine.h"
to
//#include "game/fx/particleEngine.h"
On line 50 change
const U32 sCameraCollisionMask = TerrainObjectType|InteriorObjectType;
to
const U32 sCameraCollisionMask = TerrainObjectType|InteriorObjectType|
AtlasObjectType;On line 69 change
const U32 sConformToMask = TerrainObjectType | InteriorObjectType;
to
const U32 sConformToMask = TerrainObjectType | InteriorObjectType | AtlasObjectType;
On line 2505 change
bool isTerr = coll.object && (coll.object->getTypeMask() & TerrainObjectType);
to
bool isTerr = coll.object &&
((coll.object->getTypeMask() & TerrainObjectType ) ||
(coll.object->getTypeMask() & AtlasObjectType ));
#46
08/31/2005 (1:28 pm)
What was the simplepoly list there for if you can comment it out completely?
#47
08/31/2005 (3:25 pm)
He didn't comment it out completely. It's part of the collision system, responsible for collating a list of polygons that an object may be colliding with. All we did just now was get rid of some debug code that would render the poly list to OpenGL, to make it easier to debug things. Everything meaningful that it does is completely unrelated to rendering.
#48
09/01/2005 (7:21 am)
Ok so it was just a debug function within simplepoly list that was causing the problems. Cool Thx.
#49
Now all we need is Bradley and Stryker packs :-).
09/01/2005 (7:36 pm)
Yay! Thanks very much for this fix. I just ran into this today and was completely stumped!Now all we need is Bradley and Stryker packs :-).
#50
And knowing is half the battle. - Duke, GI Joe
09/23/2005 (8:21 am)
Ah, I love the search function. I was wondering about the Tank pack with the TSE and now I know! Will be getting it this weekend. Thanks GarageGames!And knowing is half the battle. - Duke, GI Joe
#51
By any chance has anyone gotten Jonathan Ferris's gear shifting code working on the tank? It isn't an exact fit and coding has to be done as his thing is aimed directly at the WheeledVehicle/Vehicle class. But I think it can be done, with most changes being made in the UpdateMove category of the tankpack. I've started but am not the greatest coder to be doing that sort of thing.
11/19/2005 (7:25 am)
Thanks Matt for putting up that code.By any chance has anyone gotten Jonathan Ferris's gear shifting code working on the tank? It isn't an exact fit and coding has to be done as his thing is aimed directly at the WheeledVehicle/Vehicle class. But I think it can be done, with most changes being made in the UpdateMove category of the tankpack. I've started but am not the greatest coder to be doing that sort of thing.
#52
Now that means I have to start figuring out multiple fighting positions..... More gui's to make.....
Cheers, Mark.
11/19/2005 (8:24 am)
Cool, my tanks can work in TSE?Now that means I have to start figuring out multiple fighting positions..... More gui's to make.....
Cheers, Mark.
#53
11/19/2005 (9:43 pm)
We should make this a resource or put it in TDN as a how to.
#54
http://www.garagegames.com/mg/forums/result.thread.php?qt=37218
05/23/2006 (5:52 am)
You'll have to make a few more changes to make this 1.4 compatible for MS3. You can find details on that here:http://www.garagegames.com/mg/forums/result.thread.php?qt=37218
#55
i've done everything explained in this post and the following post
www.garagegames.com/mg/forums/result.thread.php?qt=37218
But i got many errors. Can anybody help?
thi i've put into the consoletypes.h
07/13/2006 (9:15 am)
Hi,i've done everything explained in this post and the following post
www.garagegames.com/mg/forums/result.thread.php?qt=37218
But i got many errors. Can anybody help?
les\tankshape.cpp(201) : error C2065: 'TypeTankCameraDataPtr' : undeclared identifier
6>c:\copy\torque\tse\engine\game\vehicles\tankshape.cpp(202) : error C2065: 'TypeTankFxDataPtr' : undeclared identifier
6>c:\copy\torque\tse\engine\game\vehicles\tankshape.cpp(203) : error C2065: 'TypeTankMiscDataPtr' : undeclared identifier
6>c:\copy\torque\tse\engine\game\vehicles\tankshape.cpp(740) : error C2923: 'ConcreteClassRep' : 'TankCameraData' is not a valid template type argument for parameter 'T'
6> c:\copy\torque\tse\engine\console\consoletypes.h(44) : see declaration of 'TankCameraData'
6>c:\copy\torque\tse\engine\game\vehicles\tankshape.cpp(740) : error C2371: 'dynClassRep' : redefinition; different basic types
6> c:\copy\torque\tse\engine\game\vehicles\tankshape.h(169) : see declaration of 'dynClassRep'
6>c:\copy\torque\tse\engine\game\vehicles\tankshape.cpp(741) : error C2371: 'TypeTankCameraDataPtr' : redefinition; different basic types
6>c:\copy\torque\tse\engine\game\vehicles\tankshape.cpp(741) : error C2059: syntax error : ')'
6>c:\copy\torque\tse\engine\game\vehicles\tankshape.cpp(742) : error C2059: syntax error : ')'
6>c:\copy\torque\tse\engine\game\vehicles\tankshape.cpp(742) : error C2143: syntax error : missing '(' before ')'
6>c:\copy\torque\tse\engine\game\vehicles\tankshape.cpp(742) : error C2065: 'obj' : undeclared identifier
6>c:\copy\torque\tse\engine\game\vehicles\tankshape.cpp(742) : error C2061: syntax error : identifier 'TankCameraData'
6>c:\copy\torque\tse\engine\game\vehicles\tankshape.cpp(742) : error C2227: left of '->getName' must point to class/struct/union/generic typethi i've put into the consoletypes.h
DefineConsoleType( TypeTankCameraData) DefineConsoleType( TypeTankFxData) DefineConsoleType( TypeTankMiscData);
#56
05/02/2007 (2:35 pm)
This seems to not work with 1.01
#57
Didnt work.....
Any help? Im trying to take this to TGEA 1.01
05/18/2007 (10:08 pm)
Im going to try this:// BraveTree Tank Pack // registered in tankVehicle.cc TypeTankCameraDataPtr, TypeTankFxDataPtr, TypeTankMiscDataPtr, // BraveTree Tank Packto:
// BraveTree Tank Pack // registered in tankVehicle.cc DefineConsoleType( TypeTankCameraDataPtr ) DefineConsoleType( TypeTankFxDataPtr ) DefineConsoleType( TypeTankMiscDataPtr ) // BraveTree Tank Packand see what happens..
Didnt work.....
Any help? Im trying to take this to TGEA 1.01
Quote:
...\engine\game\vehicles\tankshape.cc(776) : error C2653: 'ConsoleTypeTypeTankCameraDataPtr' : is not a class or namespace name
...\engine\game\vehicles\tankshape.cc(777) : error C2653: 'ConsoleTypeTypeTankCameraDataPtr' : is not a class or namespace name
...\engine\game\vehicles\tankshape.cc(814) : error C2039: 'registerType' : is not a member of 'Con'
...\engine\game\vehicles\tankshape.cc(815) : error C2275: 'TankCameraData' : illegal use of this type as an expression
...\engine\game\vehicles\tankshape.cc(816) : error C2275: 'TankCameraData' : illegal use of this type as an expression
...\engine\game\vehicles\tankshape.cc(814) : error C3861: 'registerType': identifier not found
...\engine\game\vehicles\tankshape.cc(815) : error C3861: 'REF_GETDATATYPE': identifier not found
...\engine\game\vehicles\tankshape.cc(816) : error C3861: 'REF_SETDATATYPE': identifier not found
...\engine\game\vehicles\tankshape.cc(867) : error C2653: 'ConsoleTypeTypeTankFxDataPtr' : is not a class or namespace name
...\engine\game\vehicles\tankshape.cc(867) : error C2084: function 'const char *getData(void *,EnumTable *,BitSet32)' already has a body
...\engine\game\vehicles\tankshape.cc(776) : see previous definition of 'getData'
...\engine\game\vehicles\tankshape.cc(868) : error C2653: 'ConsoleTypeTypeTankFxDataPtr' : is not a class or namespace name
...\engine\game\vehicles\tankshape.cc(868) : error C2084: function 'void setData(void *,S32,const char **,EnumTable *,BitSet32)' already has a body
...\engine\game\vehicles\tankshape.cc(777) : see previous definition of 'setData'
...\engine\game\vehicles\tankshape.cc(951) : error C2039: 'registerType' : is not a member of 'Con'
...\engine\game\vehicles\tankshape.cc(952) : error C2275: 'TankFxData' : illegal use of this type as an expression
...\engine\game\vehicles\tankshape.cc(953) : error C2275: 'TankFxData' : illegal use of this type as an expression
...\engine\game\vehicles\tankshape.cc(951) : error C3861: 'registerType': identifier not found
...\engine\game\vehicles\tankshape.cc(952) : error C3861: 'REF_GETDATATYPE': identifier not found
...\engine\game\vehicles\tankshape.cc(953) : error C3861: 'REF_SETDATATYPE': identifier not found
...\engine\game\vehicles\tankshape.cc(1162) : error C2653: 'ConsoleTypeTypeTankMiscDataPtr' : is not a class or namespace name
...\engine\game\vehicles\tankshape.cc(1163) : error C2653: 'ConsoleTypeTypeTankMiscDataPtr' : is not a class or namespace name
...\engine\game\vehicles\tankshape.cc(1192) : error C2039: 'registerType' : is not a member of 'Con'
...\engine\game\vehicles\tankshape.cc(1193) : error C2275: 'TankMiscData' : illegal use of this type as an expression
...\engine\game\vehicles\tankshape.cc(1194) : error C2275: 'TankMiscData' : illegal use of this type as an expression
...\engine\game\vehicles\tankshape.cc(1192) : error C3861: 'registerType': identifier not found
...\engine\game\vehicles\tankshape.cc(1193) : error C3861: 'REF_GETDATATYPE': identifier not found
...\engine\game\vehicles\tankshape.cc(1194) : error C3861: 'REF_SETDATATYPE': identifier not found
...\engine\game\vehicles\tankshape.cc(1280) : error C2065: 'mGenerateShadow' : undeclared identifier
...\engine\game\vehicles\tankshape.cc(1563) : error C2039: 'getServerConnection' : is not a member of 'GameConnection'
...\engine\game\gameconnection.h(41) : see declaration of 'GameConnection'
...\engine\game\vehicles\tankshape.cc(1564) : error C2039: 'getServerConnection' : is not a member of 'GameConnection'
...\engine\game\gameconnection.h(41) : see declaration of 'GameConnection'
...\engine\game\vehicles\tankshape.cc(1564) : error C2227: left of '->getControlObject' must point to class/struct/union/generic type
type is ''unknown-type''
...\engine\game\vehicles\tankshape.cc(1563) : error C3861: 'getServerConnection': identifier not found
...\engine\game\vehicles\tankshape.cc(1564) : error C3861: 'getServerConnection': identifier not found
...\engine\game\vehicles\tankshape.cc(1568) : error C2039: 'getServerConnection' : is not a member of 'GameConnection'
...\engine\game\gameconnection.h(41) : see declaration of 'GameConnection'
...\engine\game\vehicles\tankshape.cc(1568) : error C2227: left of '->getControlObject' must point to class/struct/union/generic type
type is ''unknown-type''
...\engine\game\vehicles\tankshape.cc(1568) : error C2227: left of '->getTransform' must point to class/struct/union/generic type
...\engine\game\vehicles\tankshape.cc(1568) : error C2228: left of '.getColumn' must have class/struct/union
...\engine\game\vehicles\tankshape.cc(1568) : error C3861: 'getServerConnection': identifier not found
simplePolyList.cc
...\engine\collision\simplepolylist.cc(235) : error C2065: 'mPlaneList' : undeclared identifier
...\engine\collision\simplepolylist.cc(235) : error C2228: left of '.setFileAssociation' must have class/struct/union
type is ''unknown-type''
#58
05/19/2007 (3:18 pm)
Now Im caught up to Albert on that other page he suggested.Which means I have the same errors as he does....
#59
Followed things here and Here.
I have the remaining errors of:
Any thoughts?
05/20/2007 (4:46 am)
Trying to port to TGEA 1.01Followed things here and Here.
I have the remaining errors of:
Quote:
...\engine\game\vehicles\tankshape.cc(235) : error C2065: 'TypeTankCameraDataPtr' : undeclared identifier
...\engine\game\vehicles\tankshape.cc(236) : error C2065: 'TypeTankFxDataPtr' : undeclared identifier
...\engine\game\vehicles\tankshape.cc(237) : error C2065: 'TypeTankMiscDataPtr' : undeclared identifier
...\engine\game\vehicles\tankshape.cc(775) : error C2371: 'TypeTankCameraDataPtr' : redefinition; different basic types
...\engine\game\vehicles\tankshape.cc(866) : error C2371: 'TypeTankFxDataPtr' : redefinition; different basic types
...\engine\game\vehicles\tankshape.cc(1161) : error C2371: 'TypeTankMiscDataPtr' : redefinition; different basic types
...\engine\game\vehicles\tankshape.cc(1280) : error C2065: 'mGenerateShadow' : undeclared identifier
...\engine\collision\simplepolylist.cc(235) : error C2065: 'mPlaneList' : undeclared identifier
...\engine\collision\simplepolylist.cc(235) : error C2228: left of '.setFileAssociation' must have class/struct/union
type is ''unknown-type''
Any thoughts?
#60
I dont think your placing the 1.4 updates in the right spot. Read the update more carefully.
05/25/2007 (3:17 pm)
@G:I dont think your placing the 1.4 updates in the right spot. Read the update more carefully.
Associate Adrian Wright
Max Gaming Technologies