Game Development Community

An oversight on Alpha4 on our part

by Matthew Langley · in Torque Game Builder · 02/01/2006 (4:43 pm) · 4 replies

Just wanted to post that there was an oversight in the Alpha4 T2D 1.1 we just released.

You may have already seen it referenced in a couple threads but it has had some unexpected results, though due to the awesome community we have that hammers the released quickly and efficiently posts full details on that. The oversight was due to the change of t2dSceneGraphs inheriting from SimGroup now instead of SimObject as previously. As you may or may not know, if an object is added to a SimGroup it is silently removed from any other SimGroups (as you probably have seen Stephen Zepp - and myself - warning against on the boards in reference to SimGroups vs. SimSets).

Currently we are changing them to inherit from SimSets instead and if you want to fix your own builds you can simply change this as well, in the next release it will be changed and fixed.

For some background info about the change, we did the change so the sceneGraph would have the nice .save() features of a SimGroup and SimSet which save out the entire contents into a nice and easy to read script file, this is used in the Level Editor to easily save out objects in a way that can be edited via loading into the Level Editor or by direct manipulation of the saved file.

Just wanted to post a warning to those that may be experiencing problems that were the result of this change and also to thank everyone in the community for testing this release so thoroughly, also for posting such good bug reports that we were able to determine the problem as quickly as we did, couldn't have done it without you all testing the alphas so well :)

About the author

Was a GG Associate and then joined GG in 2005. Lead tool dev for T2D and T3D. In 2011 joined mobile company ngmoco/DeNA and spent about 4 years working game and server tech. 2014 joined startup Merigo Games developing server technology.


#1
02/01/2006 (4:48 pm)
Thanks Matt. And just FYI to all, this is ultimately my fault, since I should've reviewed the graphgroup change to make sure they were simsets. Thanks to everyone for helping us catch this one! I guess I got lazy knowing that all you guys are out here helping to catch things too. :)

Anyway, simple oversight here... but a very, very cool feature overall!
#2
02/01/2006 (8:57 pm)
After a long holiday season I started getting into T2D again two days ago... Alpha3B. I did a good part of the platformer tutorial (with a few adjustments). The next day I noticed Alpha4 was available, and while working on the platformer tutorial with alpha4 I couldn't get it to work between the tilemap and actionmap segments. I keep getting a warning that says "unable to find object t2dscene attempting to call function 'getID'". I've redone the tutorial a few times and even copy/pasted my working code from 3B and I still get the same warning (which ceases game function). Is this related to the oversite?
#3
02/02/2006 (12:57 am)
Does this mean, I can now add *any* SimObject to a SceneGraph and it will get saved properly?
#4
02/02/2006 (6:56 am)
Just for a quick clarification. Are you saying change the TorqueScript code in games/tools to use SimSets or are you saying the fix is to change the inheritance in t2dSceneGraph.h for the class to inherit from SimSet? I think you are saying the first, change the script but I'd like to be sure.

I've just now seen the changes posted in the bugs section. I'll try that.