Game Development Community

Paths are buggy

by Andy Hawkins · in Torque Game Engine · 12/29/2007 (5:53 am) · 7 replies

What is the story with the bugs and editing paths?

I'm trying to tweak a path I have a car driving along. While the game is running I am in the editor tweaking the speed and position of markers. Every now and then (mostly now now) the engine crashes while I'm editing. I have 1.5.2 and am using AIWheeledVehicle2.cc and h files.

It makes it really hard to edit having it crash every couple of minutes, and I have resorted to saving after every move/change.

#1
12/29/2007 (5:57 am)
It seems to happen when I right click in the 3d window.
#2
12/29/2007 (6:42 am)
And happens alot when I press Ctrl+S (save) or move the mouse up to the File->Save menu - kinda really annoying :(
#3
12/29/2007 (3:51 pm)
* Bump *

So no-one has had this problem??
#4
12/29/2007 (5:44 pm)
I haven't had this problem, then again i don't edit paths. however, i'll help bump your post with some questions.

Does it matter how many nodes you have in the path?
#5
12/29/2007 (5:50 pm)
There seems to be a correlation with crashing and paths with greater than 10 nodes. It also seems to crash more if I'm editing the path a car is currently running along. But before anyone yells "well there's your problem" - to me if there isn't a node to move to it should just get the next one, and if a new node is added, the code should already know how many nodes are in the chain and adjust - it's just arrays and bounds in the end.

Why crash on saving?? Maybe I should debug the source...
#6
12/30/2007 (1:43 pm)
I recall there being some engine limitation causing issues if you used over 100 nodes in a path. But various player-fixes were eventually incorporated into the head build I thought to address this. It is still worth searching around for I guess. I've fiddled around with 3-4 nodes and moving them with things following them with no issues.
#7
12/31/2007 (11:03 am)
Generally all my node work has been dynamically created stuff, so i've never had an issue even with nearly 100 nodes, but i never did any saving.