Game Development Community

Troubles with TGB's "cloneWithBehaviors()" func

by Daniel Hopkins · in Torque Game Engine · 06/17/2008 (10:32 pm) · 2 replies

Howdy:)

Whenever I call "[t2dSprite].cloneWithBehaviors()" it generates this error message in the console:

///////////////////////////////////////////////////////////////////////////////////////////////
t2dSceneGraph::addToScene() - Object '1593' is already in a SceneGraph!.
t2dSceneContainer::removeSceneObject() - Object 'Always Scope' but not in Scope-List! (1593)
/////////////////////////////////////////////////////////////////////////////////////////////////

Generally, this wouldn't be to much of a problem, except that my game is very "cloning" intensive: after several minutes of play, the console gets pretty big (I played for 8 min or so and the console size ended up around 150 KB).

I took a look at the "Behavior Playground" demo, which uses the same function, and it generates the same errors.

Any help, suggestions, ideas, etc. would be greatly appreciated!
Thanks

Daniel

#1
06/18/2008 (10:10 am)
Gah - took me over 10 minutes to find the thread that answers this.
Here you go.

Also, next time this sort of question should be posted in a TGB forum, which can be added to your forum subscriptions by going here.
#2
06/18/2008 (10:27 pm)
Sorry about the post! I didn't see the TGB public forum.

Thanks a bunch, though!!