Game Development Community

Problems porting RTS kit into 1.5.2

by Jonathon Schad · in RTS Starter Kit · 03/26/2008 (3:25 pm) · 6 replies

Hello

I am getting the following errors when I try porting the RTS Kit into Torque (1.5.2). I am following the directions at tdn.garagegames.com/wiki/RTS/Update_docs/WinRTSUpdate152. I have copied the appropriate files and ran the patch but still cant get it to run.

What am I doing wrong? I have compiled 1.5.2 correctly but can't get the RTS Kit merged into it. To compile I'm using VS C++ 2008 Express Edition. The following is the errors I'm getting.

#1
03/26/2008 (3:28 pm)
7>c:\rts\tge_1_5_2\engine\game\rts\guirtstsctrl.h(47) : error C3861: 'bit': identifier not found
7>c:\rts\tge_1_5_2\engine\game\rts\guirtstsctrl.h(48) : error C3861: 'bit': identifier not found
7>c:\rts\tge_1_5_2\engine\game\rts\guirtstsctrl.h(49) : error C3861: 'bit': identifier not found
7>c:\rts\tge_1_5_2\engine\game\rts\guirtstsctrl.h(50) : error C3861: 'bit': identifier not found
7>c:\rts\tge_1_5_2\engine\game\rts\guirtstsctrl.h(51) : error C3861: 'bit': identifier not found
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(5) : error C2039: 'mDynamicSelectionCount' : is not a member of 'TerrainRender'
7>        c:\rts\tge_1_5_2\engine\terrain\terrrender.h(205) : see declaration of 'TerrainRender'
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(6) : error C2039: 'mTerrainSelections' : is not a member of 'TerrainRender'
7>        c:\rts\tge_1_5_2\engine\terrain\terrrender.h(205) : see declaration of 'TerrainRender'
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(6) : error C2146: syntax error : missing ';' before identifier 'mTerrainSelections'
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(6) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(6) : error C2065: 'MaxTerrainSelections' : undeclared identifier
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(6) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(8) : error C2039: 'TestSquareSelections' : is not a member of 'TerrainRender'
7>        c:\rts\tge_1_5_2\engine\terrain\terrrender.h(205) : see declaration of 'TerrainRender'
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(8) : error C2146: syntax error : missing ';' before identifier 'TestSquareSelections'
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(8) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(8) : error C2061: syntax error : identifier 'SelectionField'
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(9) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(10) : error C2146: syntax error : missing ';' before identifier 'retMask'
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(10) : error C2065: 'retMask' : undeclared identifier
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(12) : error C2065: 'mSquareSize' : undeclared identifier
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(12) : error C2065: 'mBlockPos' : undeclared identifier
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(12) : error C2228: left of '.x' must have class/struct/union
7>        type is ''unknown-type''
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(13) : error C2065: 'mSquareSize' : undeclared identifier
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(13) : error C2065: 'mBlockPos' : undeclared identifier
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(13) : error C2228: left of '.y' must have class/struct/union
7>        type is ''unknown-type''
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(16) : error C2065: 'mSquareSize' : undeclared identifier
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(24) : error C2065: 'selectionMask' : undeclared identifier
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(24) : error C2228: left of '.test' must have class/struct/union
7>        type is ''unknown-type''
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(30) : error C2065: 'selectionMask' : undeclared identifier
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(30) : error C2228: left of '.test' must have class/struct/union
7>        type is ''unknown-type''
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(32) : error C2228: left of '.pos' must have class/struct/union
7>        type is 'int'
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(59) : error C2228: left of '.radius' must have class/struct/union
7>        type is 'int'
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(60) : error C2065: 'retMask' : undeclared identifier
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(60) : error C2228: left of '.set' must have class/struct/union
7>        type is ''unknown-type''
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(63) : error C2065: 'retMask' : undeclared identifier
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(65) : error C2039: 'addSelection' : is not a member of 'TerrainRender'
7>        c:\rts\tge_1_5_2\engine\terrain\terrrender.h(205) : see declaration of 'TerrainRender'
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(68) : error C2065: 'info' : undeclared identifier
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(70) : error C2065: 'mCurrentBlock' : undeclared identifier
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(70) : error C2227: left of '->getWorldTransform' must point to class/struct/union/generic type
7>        type is ''unknown-type''
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(70) : error C2228: left of '.mulP' must have class/struct/union
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(70) : error C2065: 'info' : undeclared identifier
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(70) : error C2228: left of '.pos' must have class/struct/union
7>        type is ''unknown-type''
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(72) : error C2065: 'info' : undeclared identifier
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(72) : error C2228: left of '.radius' must have class/struct/union
7>        type is ''unknown-type''
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(73) : error C2065: 'info' : undeclared identifier
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(73) : error C2228: left of '.radiusSquared' must have class/struct/union
7>        type is ''unknown-type''
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(73) : error C2065: 'info' : undeclared identifier
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(73) : error C2228: left of '.radius' must have class/struct/union
7>        type is ''unknown-type''
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(73) : error C2065: 'info' : undeclared identifier
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(73) : error C2228: left of '.radius' must have class/struct/union
#2
03/26/2008 (3:29 pm)
7>        type is ''unknown-type''
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(76) : error C2065: 'info' : undeclared identifier
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(76) : error C2228: left of '.r' must have class/struct/union
7>        type is ''unknown-type''
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(77) : error C2065: 'info' : undeclared identifier
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(77) : error C2228: left of '.g' must have class/struct/union
7>        type is ''unknown-type''
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(78) : error C2065: 'info' : undeclared identifier
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(78) : error C2228: left of '.b' must have class/struct/union
7>        type is ''unknown-type''
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(80) : error C2065: 'mCamPos' : undeclared identifier
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(81) : error C2065: 'info' : undeclared identifier
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(81) : error C2228: left of '.distSquared' must have class/struct/union
7>        type is ''unknown-type''
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(84) : error C2039: 'buildSelectionArray' : is not a member of 'TerrainRender'
7>        c:\rts\tge_1_5_2\engine\terrain\terrrender.h(205) : see declaration of 'TerrainRender'
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(101) : error C2065: 'MaxTerrainSelections' : undeclared identifier
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(111) : error C2065: 'MaxTerrainSelections' : undeclared identifier
7>c:\rts\tge_1_5_2\engine\terrain\terrselection.cc(117) : error C2065: 'MaxTerrainSelections' : undeclared identifier

7>        c:\rts\tge_1_5_2\engine\game\gameconnection.h(41) : see declaration of 'GameConnection'
7>c:\rts\tge_1_5_2\engine\game\rts\rtscamera.cc(165) : error C3861: 'getServerConnection': identifier not found
7>c:\rts\tge_1_5_2\engine\game\rts\rtscamera.cc(402) : error C2039: 'getServerConnection' : is not a member of 'GameConnection'
7>        c:\rts\tge_1_5_2\engine\game\gameconnection.h(41) : see declaration of 'GameConnection'
7>c:\rts\tge_1_5_2\engine\game\rts\rtscamera.cc(402) : error C3861: 'getServerConnection': identifier not found
7>RTSBuilding.cc
7>c:\rts\tge_1_5_2\engine\game\rts\rtsbuilding.cc(49) : error C3861: 'installLights': identifier not found
7>c:\rts\tge_1_5_2\engine\game\rts\rtsbuilding.cc(117) : error C2664: 'SceneObject::renderShadow' : cannot convert parameter 1 from 'F32' to 'SceneState *'
7>c:\rts\tge_1_5_2\engine\game\rts\rtsbuilding.cc(126) : error C3861: 'uninstallLights': identifier not found
7>guiRTSTSCtrl.cc
7>c:\rts\tge_1_5_2\engine\game\rts\guirtstsctrl.h(47) : error C3861: 'bit': identifier not found
7>c:\rts\tge_1_5_2\engine\game\rts\guirtstsctrl.h(48) : error C3861: 'bit': identifier not found
7>c:\rts\tge_1_5_2\engine\game\rts\guirtstsctrl.h(49) : error C3861: 'bit': identifier not found
7>c:\rts\tge_1_5_2\engine\game\rts\guirtstsctrl.h(50) : error C3861: 'bit': identifier not found
7>c:\rts\tge_1_5_2\engine\game\rts\guirtstsctrl.h(51) : error C3861: 'bit': identifier not found
7>c:\rts\tge_1_5_2\engine\game\rts\guirtstsctrl.cc(341) : error C2039: 'getServerConnection' : is not a member of 'NetConnection'
7>        c:\rts\tge_1_5_2\engine\sim\netconnection.h(371) : see declaration of 'NetConnection'
7>c:\rts\tge_1_5_2\engine\game\rts\guirtstsctrl.cc(341) : error C3861: 'getServerConnection': identifier not found
7>c:\rts\tge_1_5_2\engine\game\rts\guirtstsctrl.cc(390) : error C2039: 'getServerConnection' : is not a member of 'NetConnection'
7>        c:\rts\tge_1_5_2\engine\sim\netconnection.h(371) : see declaration of 'NetConnection'
7>c:\rts\tge_1_5_2\engine\game\rts\guirtstsctrl.cc(390) : error C3861: 'getServerConnection': identifier not found
7>guiMapHudRender.cc
7>c:\rts\tge_1_5_2\engine\game\rts\guimaphudrender.cc(10) : error C2039: 'getServerConnection' : is not a member of 'NetConnection'
7>        c:\rts\tge_1_5_2\engine\sim\netconnection.h(371) : see declaration of 'NetConnection'
7>c:\rts\tge_1_5_2\engine\game\rts\guimaphudrender.cc(10) : error C3861: 'getServerConnection': identifier not found
7>guiMapHudGen.cc
7>c:\rts\tge_1_5_2\engine\game\rts\guimaphudgen.cc(97) : error C2039: 'getServerConnection' : is not a member of 'GameConnection'
7>        c:\rts\tge_1_5_2\engine\game\gameconnection.h(41) : see declaration of 'GameConnection'
7>c:\rts\tge_1_5_2\engine\game\rts\guimaphudgen.cc(97) : error C3861: 'getServerConnection': identifier not found
7>guiMapHud.cc
7>c:\rts\tge_1_5_2\engine\game\rts\guimaphud.cc(57) : error C2039: 'getServerConnection' : is not a member of 'GameConnection'
7>        c:\rts\tge_1_5_2\engine\game\gameconnection.h(41) : see declaration of 'GameConnection'
7>c:\rts\tge_1_5_2\engine\game\rts\guimaphud.cc(57) : error C3861: 'getServerConnection': identifier not found
#3
03/26/2008 (3:29 pm)
7>c:\rts\tge_1_5_2\engine\game\rts\rtsunit.cc(628) : error C2039: 'getServerConnection' : is not a member of 'GameConnection'
7>        c:\rts\tge_1_5_2\engine\game\gameconnection.h(41) : see declaration of 'GameConnection'
7>c:\rts\tge_1_5_2\engine\game\rts\rtsunit.cc(628) : error C3861: 'getServerConnection': identifier not found
7>c:\rts\tge_1_5_2\engine\game\rts\rtsunit.cc(829) : error C2039: 'getServerConnection' : is not a member of 'GameConnection'
7>        c:\rts\tge_1_5_2\engine\game\gameconnection.h(41) : see declaration of 'GameConnection'
7>c:\rts\tge_1_5_2\engine\game\rts\rtsunit.cc(829) : error C3861: 'getServerConnection': identifier not found
7>c:\rts\tge_1_5_2\engine\game\rts\rtsunit.cc(875) : error C2039: 'getServerConnection' : is not a member of 'GameConnection'
7>        c:\rts\tge_1_5_2\engine\game\gameconnection.h(41) : see declaration of 'GameConnection'
7>c:\rts\tge_1_5_2\engine\game\rts\rtsunit.cc(875) : error C3861: 'getServerConnection': identifier not found
7>c:\rts\tge_1_5_2\engine\game\rts\rtsunit.cc(970) : error C2248: 'ShapeBase::mSoundThread' : cannot access private member declared in class 'ShapeBase'
7>        c:\rts\tge_1_5_2\engine\game\shapebase.h(588) : see declaration of 'ShapeBase::mSoundThread'
7>        c:\rts\tge_1_5_2\engine\game\shapebase.h(539) : see declaration of 'ShapeBase'
7>c:\rts\tge_1_5_2\engine\game\rts\rtsunit.cc(975) : error C2248: 'ShapeBase::mScriptThread' : cannot access private member declared in class 'ShapeBase'
7>        c:\rts\tge_1_5_2\engine\game\shapebase.h(608) : see declaration of 'ShapeBase::mScriptThread'
7>        c:\rts\tge_1_5_2\engine\game\shapebase.h(539) : see declaration of 'ShapeBase'
7>c:\rts\tge_1_5_2\engine\game\rts\rtsunit.cc(994) : error C2248: 'ShapeBase::Thread' : cannot access private struct declared in class 'ShapeBase'
7>        c:\rts\tge_1_5_2\engine\game\shapebase.h(594) : see declaration of 'ShapeBase::Thread'
7>        c:\rts\tge_1_5_2\engine\game\shapebase.h(539) : see declaration of 'ShapeBase'
7>c:\rts\tge_1_5_2\engine\game\rts\rtsunit.cc(994) : error C2248: 'ShapeBase::mScriptThread' : cannot access private member declared in class 'ShapeBase'
7>        c:\rts\tge_1_5_2\engine\game\shapebase.h(608) : see declaration of 'ShapeBase::mScriptThread'
7>        c:\rts\tge_1_5_2\engine\game\shapebase.h(539) : see declaration of 'ShapeBase'
7>c:\rts\tge_1_5_2\engine\game\rts\rtsunit.cc(1182) : error C2248: 'ShapeBase::Thread' : cannot access private struct declared in class 'ShapeBase'
7>        c:\rts\tge_1_5_2\engine\game\shapebase.h(594) : see declaration of 'ShapeBase::Thread'
7>        c:\rts\tge_1_5_2\engine\game\shapebase.h(539) : see declaration of 'ShapeBase'
7>c:\rts\tge_1_5_2\engine\game\rts\rtsunit.cc(1182) : error C2248: 'ShapeBase::mScriptThread' : cannot access private member declared in class 'ShapeBase'
7>        c:\rts\tge_1_5_2\engine\game\shapebase.h(608) : see declaration of 'ShapeBase::mScriptThread'
7>        c:\rts\tge_1_5_2\engine\game\shapebase.h(539) : see declaration of 'ShapeBase'
7>RTSProjectile.cc
7>Deprecated: lightManager.h is deprecated and will be removed in the future.  Replaced by lightingSystem/sgLightManager.h
7>rtsPathDebug.cc
7>RTSConnection.cc
7>c:\rts\tge_1_5_2\engine\game\rts\rtsconnection.cc(48) : error C2039: 'isServerConnection' : is not a member of 'NetConnection'
7>        c:\rts\tge_1_5_2\engine\sim\netconnection.h(371) : see declaration of 'NetConnection'
7>c:\rts\tge_1_5_2\engine\game\rts\rtsconnection.cc(254) : error C3861: 'isServerConnection': identifier not found
7>c:\rts\tge_1_5_2\engine\game\rts\rtsconnection.cc(269) : error C3861: 'isServerConnection': identifier not found
7>c:\rts\tge_1_5_2\engine\game\rts\rtsconnection.cc(275) : error C3861: 'isServerConnection': identifier not found
7>c:\rts\tge_1_5_2\engine\game\rts\rtsconnection.cc(286) : error C3861: 'isServerConnection': identifier not found
7>c:\rts\tge_1_5_2\engine\game\rts\rtsconnection.cc(330) : error C2039: 'isServerConnection' : is not a member of 'RTSConnection'
7>        c:\rts\tge_1_5_2\engine\game\rts\rtsconnection.h(4) : see declaration of 'RTSConnection'
7>RTSCamera.cc
7>c:\rts\tge_1_5_2\engine\game\rts\guirtstsctrl.h(47) : error C3861: 'bit': identifier not found
7>c:\rts\tge_1_5_2\engine\game\rts\guirtstsctrl.h(48) : error C3861: 'bit': identifier not found
7>c:\rts\tge_1_5_2\engine\game\rts\guirtstsctrl.h(49) : error C3861: 'bit': identifier not found
7>c:\rts\tge_1_5_2\engine\game\rts\guirtstsctrl.h(50) : error C3861: 'bit': identifier not found
7>c:\rts\tge_1_5_2\engine\game\rts\guirtstsctrl.h(51) : error C3861: 'bit': identifier not found
7>c:\rts\tge_1_5_2\engine\game\rts\rtscamera.cc(165) : error C2039: 'getServerConnection' : is not a member of 'GameConnection'
#4
03/26/2008 (6:15 pm)
Hello Jonathon, it seems like some includes are not there, or broken, but it could be also a problem beyond the port of the RTS Kit, are you actually able to compile the TGE 1.5.2 (without the rts-sk) flawlessly?
#5
03/27/2008 (4:38 pm)
I fixed all of the errors. The patch was not fully updating the source code. I traced this problem to Windows Vista. In order to run the patch completely I had to disable User Account Control. The port then compiled with 0 errors.

Thanks Novack
#6
03/27/2008 (8:49 pm)
Good to know Jonathon, note taken, will come handy ;)