Game Development Community

Paths and Copy and Paste

by Ryan Brim · in Torque Game Builder · 10/18/2006 (11:05 pm) · 1 replies

I have found a bug where after you create a path and then proceed to copy and paste any object the nodes of the path get doubled in your level file. The level will eventually stop from loading probably due to the obscene number of nodes it tries to load.

I ran into this problem while working on my game and found that my level would stop working completely after a while and I would have to revert to a backup. Eventually it became too much of a problem to ignore and I started looking for the cause. I decided to compare the level file of my earlier build to the one that crashed and noticed how large the file was and the block of data for the path (1024+ nodes for 1 path) which made for a very long source file when you have a bunch of paths. I then retraced my steps over and over again in the level builder and found that copying and pasting any object doubles the current nodes of all the paths. I tried this also in a fresh level in the TGB project and got the same results. If anybody else could confirm this bug that would be great.

I also noticed that my paths would show its nodes in the dynamic field area of the game builder and was wondering if this was the desired behavior? and if this somehow is connected with the bug.

Thanks
-Ryan Brim

#1
10/19/2006 (11:46 am)
Confirmed. Locking or hiding the path helps for me. Also I've noticed that it only seems to do this when you create the path and, while in the same session, then move on to other things on the level and copy/paste.

There have been some instances when I've copy/pasted in the level after multiple exits and restarts and the path retains the nodes and dont freak out.