Fatal t2dPath.cc @28 getPathMode() - Invalid Path Mode
by Jason Darby · in iTorque 2D · 06/16/2010 (2:10 pm) · 26 replies
When going into certain screens on my iphone game (on the simulator, i am getting this fatal error
t2dPath.cc @28
GetPathMode() Invalid Path Mode
Did a search on the forums and not really much i can find, one post did mention physics and switching it on... but that doesnt seem to have fixed it....
Anyone else encountered this error and confirm its to do with an objects direction/path and physics being switched off? Ive tried the following in the scene that is getting the problem...
UseUpdateCallback = "1";
setUsesPhysics = "1"; (also tried usesphysics)
Anyone else have any ideas?
Just typical, 2nd game has taken so long to get done... and when i actually have some energy to finish it, i have a problem :D just my luck!!!!
Jason
t2dPath.cc @28
GetPathMode() Invalid Path Mode
Did a search on the forums and not really much i can find, one post did mention physics and switching it on... but that doesnt seem to have fixed it....
Anyone else encountered this error and confirm its to do with an objects direction/path and physics being switched off? Ive tried the following in the scene that is getting the problem...
UseUpdateCallback = "1";
setUsesPhysics = "1"; (also tried usesphysics)
Anyone else have any ideas?
Just typical, 2nd game has taken so long to get done... and when i actually have some energy to finish it, i have a problem :D just my luck!!!!
Jason
About the author
Computer games book author, have written 6 game creation books, published by Cengage Course Technology. Owner of Arcade website www.madword.com and Castle software.
#22
Also, the other reason it might not move would be if the nodes on the path were wrong / all the same position etc.
Might be worth dumping out the node values for each path.
06/29/2010 (2:22 pm)
You definitely got the flag UsesPhysics = "1" set for the arrow object?Also, the other reason it might not move would be if the nodes on the path were wrong / all the same position etc.
Might be worth dumping out the node values for each path.
#23
I can see the different nodes in the scene and in the t2d file it specifies the node path.
06/29/2010 (2:37 pm)
Yeah spent alot of time in the last few days adding UsesPhysics to the objects in the game.. got path movement working in the other screen.I can see the different nodes in the scene and in the t2d file it specifies the node path.
new t2dPath(arrow_path_0) {
pathType = "LINEAR";
pathModeEnum = "WRAP";
canSaveDynamicFields = "1";
class = "OpponentArrowPath";
Position = "-0.143 5.186";
size = "52.928 6.964";
mountID = "11";
node0 = "-26.606747 6.241508 0.000000 10.000000";
node1 = "-22.455482 5.006694 0.000000 10.000000";
node10 = "18.211971 5.641615 0.000000 10.000000";
node11 = "21.735981 6.996282 0.000000 10.000000";
node12 = "26.321356 8.668077 0.000000 10.000000";
node2 = "-20.184685 4.451058 0.000000 10.000000";
node3 = "-15.870906 3.325801 0.000000 10.000000";
node4 = "-11.333035 2.318990 0.000000 10.000000";
node5 = "-7.243343 1.785972 0.000000 10.000000";
node6 = "-3.349442 1.703699 0.000000 10.000000";
node7 = "2.440637 2.189486 0.000000 10.000000";
node8 = "8.310717 3.024976 0.000000 10.000000";
node9 = "12.592387 3.856339 0.000000 10.000000";
nodeCount = "13";
object0 = "15 0 -1 10.000000 1 1 0.000000 -1 WRAP";
objectCount = "0";
};
#24
I feel bad asking, but as no one else seems to be frequenting these forums much (where are the GG employees for starters), i have very few options open to me on a $700 piece of software :(
06/30/2010 (12:40 pm)
Scott, would it be rude to ask if you could look at the source and see if you can figure it out? We dont know why it works in TGB and not ITGB, and something is not right with it somewhere. :(I feel bad asking, but as no one else seems to be frequenting these forums much (where are the GG employees for starters), i have very few options open to me on a $700 piece of software :(
#25
06/30/2010 (4:55 pm)
Jason, more than happy to help. I can look at it July 1st but it wont be until late afternoon. Send me the source to the same email as last time and I'll see if I can figure it out.
#26
07/01/2010 (10:19 am)
Thanks Scott, thats much appreciated.
Torque Owner Jason Darby