Game Development Community

Help with the A* Pathfinding system

by Aaron Heal · in Torque 3D Professional · 02/20/2010 (8:39 am) · 10 replies

Hi I am trying to implement this into T3D 1.1 BETA but I can't get past the C++ stuff because I keep getting a crap load of errors. I have managed to fix some but there are still more. Here they are

Error 1 error C3861: 'disSqr': identifier not found c:TorqueTorque 3D 2009 Pro 1.1 Beta 1EnginesourceT3DaStar.cpp 256
Error 2 error C3861: 'disSqr': identifier not found c:TorqueTorque 3D 2009 Pro 1.1 Beta 1EnginesourceT3DaStar.cpp 257
Error 3 error C3861: 'disSqr': identifier not found c:TorqueTorque 3D 2009 Pro 1.1 Beta 1EnginesourceT3DaStar.cpp 257
Error 4 error C3861: 'disSqr': identifier not found c:TorqueTorque 3D 2009 Pro 1.1 Beta 1EnginesourceT3DaStarMesh.cpp 378
Error 5 error C3861: 'disSqr': identifier not found c:TorqueTorque 3D 2009 Pro 1.1 Beta 1EnginesourceT3DaStarMesh.cpp 379
Error 6 error C3861: 'disSqr': identifier not found c:TorqueTorque 3D 2009 Pro 1.1 Beta 1EnginesourceT3DaStarMesh.cpp 399
Error 7 error C3861: 'disSqr': identifier not found c:TorqueTorque 3D 2009 Pro 1.1 Beta 1EnginesourceT3DaStarMesh.cpp 400
Error 8 error C3861: 'disSqr': identifier not found c:TorqueTorque 3D 2009 Pro 1.1 Beta 1EnginesourceT3DaStarMesh.cpp 400
Error 9 error C3861: 'disSqr': identifier not found c:TorqueTorque 3D 2009 Pro 1.1 Beta 1EnginesourceT3DaStarMesh.cpp 415
Error 10 error C2065: 'gAStar' : undeclared identifier c:TorqueTorque 3D 2009 Pro 1.1 Beta 1EnginesourcesceneGraphsceneState.cpp 161
Error 11 error C2228: left of '.render' must have class/struct/union c:TorqueTorque 3D 2009 Pro 1.1 Beta 1EnginesourcesceneGraphsceneState.cpp 161
Error 12 fatal error C1083: Cannot open include file: 'T3D/moveManager.h': No such file or directory c:TorqueTorque 3D 2009 Pro 1.1 Beta 1EnginesourceT3DaiPlayer.cpp 8
Error 13 error BK1506 : cannot open file '....LinkVC2k8.Release.Win32test DLLaiPlayer.sbr': No such file or directory BSCMAKE
Error 14 fatal error LNK1181: cannot open input file '......gametest.lib' test
Error 15 fatal error LNK1181: cannot open input file '......gametest.lib' NP test Plugin
Error 16 fatal error C1083: Cannot open include file: 'atlbase.h': No such file or directory c:torquetorque 3d 2009 pro 1.1 beta 1my projectstestwebsourceactivexstdafx.h 19

I can diagnose the problem but I don't know how to fix it (i.e. if there are lines that need to be changed, I don't know what to change them to). I read people have implemented this into T3D before but I don't see how if there are so many errors if possible can some one who has implemented this into T3D help me please.

also here is the link to the resource
http://www.torquepowered.com/community/resource/view/14558/9#comments

#1
02/20/2010 (9:39 am)
moveManager is located at T3D - gameBase
Most of your bugs are related to wrong paths.
I remember that I did this port for one of the betas a few months ago,it was an easy port.
#2
02/20/2010 (11:23 am)
yeah I have checked all the paths and they are all corect should I try and port it again?
#3
02/20/2010 (12:11 pm)
See the error log (for example error 12),wrong path in aiPlayer.cpp
Do you replace aiPlayer files or use winmerge ?
If you replace them,it's wrong.
#4
02/20/2010 (12:24 pm)
I managed to get the errors down to 3 and these are those

Error 6 error LNK2019: unresolved external symbol "public: void __thiscall AStar::render(class SceneState *)" (?render@AStar@@QAEXPAVSceneState@@@Z) referenced in function "public: void __thiscall SceneState::renderCurrentImages(void)" (?renderCurrentImages@SceneState@@QAEXXZ) sceneState.obj
Error 7 fatal error LNK1120: 1 unresolved externals ../../../game/New Project_DEBUG.dll
Error 8 fatal error C1083: Cannot open include file: 'atlbase.h': No such file or directory c:\torque\torque 3d 2009 pro 1.1 beta 1\my projects\new project\web\source\activex\stdafx.h 19
#5
02/20/2010 (12:29 pm)
This is the debug draw,you can delete it for now.
#6
02/20/2010 (12:33 pm)
ok i think i know how to fix the last 3 errors but i can't until monday thanks for the help i will let you know what happens
#7
02/20/2010 (12:37 pm)
I realised a part of what I was doing wrong it is really stupid of me I still don't think I can fix em untill monday but I am gonna give it 1 more build for tonight
#8
02/21/2010 (10:22 pm)
okay I managed to get it to build now what torque script stuffs do I need to add to get it to work in the editor
#9
02/22/2010 (6:19 pm)
..::BUMP::.. I really need help with this
#10
02/23/2010 (6:25 pm)
..::BUMP::.. I still need help with this