Game Development Community

Ever had a "Always-scope...not in Scope-list" error?

by Daniel Hopkins · in Torque Game Builder · 06/24/2008 (9:33 pm) · 2 replies

Hey,

I was wondering what causes this error:

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
t2dSceneContainer::removeSceneObject() - Object 'Always Scope' but not in Scope-List! (1614)
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

The BehaviorPlayground demo generates this error as well.

When I play my game, TONS of these errors appear in the console--enough to increase the console's size to around 100KB or so after about 8 min of play.

Any help would be grealy appreciated!!

Thanks,
Daniel

#1
06/27/2008 (5:24 am)
I don't totally understand your error here, but it doesn't seem like you should be trying to remove a t2dSceneContainer from the scene. If the errors keep multiplying they must be in an onTimer or onUpdate callback. I'd try and find where ever a removeSceneObject is being called, remove it, and see if the errors go away.
#2
06/28/2008 (4:57 pm)
Alright, I did some debuging and found the problem. In my game, I cloned a particle effect using the "cloneWithBehaviors()" function and attached it to an object to create a trailing effect. Apparently, using that particular function on a particle effect generated the error. When I used the "clone()" function instead, the errors never showed up. The "cloneWithBehaviors()" function works fine on other objects.

Thankfully, none of my particle effects had any "important" behaviors, so everything will run fine without them.

Daniel