aStar Tutorial does not work for me
by Justin Jones · in Torque Game Builder · 07/17/2009 (7:54 pm) · 5 replies
I am trying out the aStar tutorial found in the TGB Online Documentation here
http://tdn.garagegames.com/wiki/TGB/Tutorials/Basic_aStar
First off the tutorial says to set-up different things by looking at images, which are not there on the tutorial page in the first place.
Anyway I followed the tutorial exactly and on running it I get no script compile errors. My "player" can move about as per the behaviour.
However the other aStar object does not move at all.
On checking the console I see this:
Loading compiled script D:/TGB174/MyProjects/aStarFollow/game/data/levels/astar.t2d.
game/gameScripts/actor.cs (16): Unknown command findDestinationPath.
Object pAI(1398) pAI -> AIClass -> aStarActor -> t2dStaticSprite -> t2dSceneObject -> BehaviorComponent -> DynamicConsoleMethodComponent -> SimComponent -> SimObject
game/gameScripts/actor.cs (25): Unknown command isFrustrated.
Object pAI(1398) pAI -> AIClass -> aStarActor -> t2dStaticSprite -> t2dSceneObject -> BehaviorComponent -> DynamicConsoleMethodComponent -> SimComponent -> SimObject
game/gameScripts/actor.cs (16): Unknown command findDestinationPath.
Object pAI(1398) pAI -> AIClass -> aStarActor -> t2dStaticSprite -> t2dSceneObject -> BehaviorComponent -> DynamicConsoleMethodComponent -> SimComponent -> SimObject
game/gameScripts/actor.cs (25): Unknown command isFrustrated.
Object pAI(1398) pAI -> AIClass -> aStarActor -> t2dStaticSprite -> t2dSceneObject -> BehaviorComponent -> DynamicConsoleMethodComponent -> SimComponent -> SimObject
game/gameScripts/actor.cs (16): Unknown command findDestinationPath.
Object pAI(1398) pAI -> AIClass -> aStarActor -> t2dStaticSprite -> t2dSceneObject -> BehaviorComponent -> DynamicConsoleMethodComponent -> SimComponent -> SimObject
game/gameScripts/actor.cs (25): Unknown command isFrustrated.
Object pAI(1398) pAI -> AIClass -> aStarActor -> t2dStaticSprite -> t2dSceneObject -> BehaviorComponent -> DynamicConsoleMethodComponent -> SimComponent -> SimObject
game/gameScripts/actor.cs (16): Unknown command findDestinationPath.
Object pAI(1398) pAI -> AIClass -> aStarActor -> t2dStaticSprite -> t2dSceneObject -> BehaviorComponent
and more of the same. Can somebody here please explain what is going on here?
I am frustrated as this is the 3rd "Tutorial" that does not work in the "official Online Documentation" for TGB.
Thanks
http://tdn.garagegames.com/wiki/TGB/Tutorials/Basic_aStar
First off the tutorial says to set-up different things by looking at images, which are not there on the tutorial page in the first place.
Anyway I followed the tutorial exactly and on running it I get no script compile errors. My "player" can move about as per the behaviour.
However the other aStar object does not move at all.
On checking the console I see this:
Loading compiled script D:/TGB174/MyProjects/aStarFollow/game/data/levels/astar.t2d.
game/gameScripts/actor.cs (16): Unknown command findDestinationPath.
Object pAI(1398) pAI -> AIClass -> aStarActor -> t2dStaticSprite -> t2dSceneObject -> BehaviorComponent -> DynamicConsoleMethodComponent -> SimComponent -> SimObject
game/gameScripts/actor.cs (25): Unknown command isFrustrated.
Object pAI(1398) pAI -> AIClass -> aStarActor -> t2dStaticSprite -> t2dSceneObject -> BehaviorComponent -> DynamicConsoleMethodComponent -> SimComponent -> SimObject
game/gameScripts/actor.cs (16): Unknown command findDestinationPath.
Object pAI(1398) pAI -> AIClass -> aStarActor -> t2dStaticSprite -> t2dSceneObject -> BehaviorComponent -> DynamicConsoleMethodComponent -> SimComponent -> SimObject
game/gameScripts/actor.cs (25): Unknown command isFrustrated.
Object pAI(1398) pAI -> AIClass -> aStarActor -> t2dStaticSprite -> t2dSceneObject -> BehaviorComponent -> DynamicConsoleMethodComponent -> SimComponent -> SimObject
game/gameScripts/actor.cs (16): Unknown command findDestinationPath.
Object pAI(1398) pAI -> AIClass -> aStarActor -> t2dStaticSprite -> t2dSceneObject -> BehaviorComponent -> DynamicConsoleMethodComponent -> SimComponent -> SimObject
game/gameScripts/actor.cs (25): Unknown command isFrustrated.
Object pAI(1398) pAI -> AIClass -> aStarActor -> t2dStaticSprite -> t2dSceneObject -> BehaviorComponent -> DynamicConsoleMethodComponent -> SimComponent -> SimObject
game/gameScripts/actor.cs (16): Unknown command findDestinationPath.
Object pAI(1398) pAI -> AIClass -> aStarActor -> t2dStaticSprite -> t2dSceneObject -> BehaviorComponent
and more of the same. Can somebody here please explain what is going on here?
I am frustrated as this is the 3rd "Tutorial" that does not work in the "official Online Documentation" for TGB.
Thanks
#2
I followed the link you provided but the only reference to aStar is this in the Reference section:
http://docs.garagegames.com/tgb/official/content/documentation/Reference/A-Star%20Path%20Finding.html
and at the end it has this:
<i>Use of the TGB A-Star Implementation
An introduction tutorial is provided <here> to guide you through the features of the TGB A-Star system, and the AStarDemo game example demonstrates the completed tutorial�s capabilities</i>
What does <here> mean?
This barely scrapes the surface and does not show how to use it.
07/18/2009 (9:11 am)
Thanks Mike. I realised after posting that this was not "official" documentation.I followed the link you provided but the only reference to aStar is this in the Reference section:
http://docs.garagegames.com/tgb/official/content/documentation/Reference/A-Star%20Path%20Finding.html
and at the end it has this:
<i>Use of the TGB A-Star Implementation
An introduction tutorial is provided <here> to guide you through the features of the TGB A-Star system, and the AStarDemo game example demonstrates the completed tutorial�s capabilities</i>
What does <here> mean?
This barely scrapes the surface and does not show how to use it.
#3
That "here" is supposed to be a link that opens a the A* sample project in the TGB SDK.
07/18/2009 (10:47 am)
@Justin - Agreed. The A* that ships is a great starting point, but does not going deep enough into the details. I plan on dedicating a very large guide to the core systems of Torque 2D, such as A*, while writing the new documentation.That "here" is supposed to be a link that opens a the A* sample project in the TGB SDK.
#4
I will take my interests to other topics while waiting for the new documentation.
Unfortunately so far I have hit two dead ends - aStar and Networking(checkers tut not working)
On to the GUI I guess.
07/19/2009 (7:34 pm)
Thanks MikeI will take my interests to other topics while waiting for the new documentation.
Unfortunately so far I have hit two dead ends - aStar and Networking(checkers tut not working)
On to the GUI I guess.
#5
07/30/2010 (7:53 pm)
What is the current status of A* documentation of how to implement it?
Employee Michael Perry
ZombieShortbus
The official online documentation has an A* reference, but not a full blown tutorial. The offline documentation, which has a similar A* tutorial, is very outdated and not recommended over the Official Online Documentation