Game Development Community

Why Persistent Objects lose Behaviors - LOGGED (TGB-514)

by Afan Olovcic · in Torque Game Builder · 02/12/2011 (1:42 pm) · 3 replies

Can someone give me an explanation why Persistent Objects lose Behaviors I can't figure out reason ,I found a few posts about this bug ,but I can not believe that nobody has responded to these posts, just give us direction to solve the problem.

#1
07/20/2011 (5:47 pm)
Ditto on this bug. I just started trying the persistent flag today. Perhaps no one uses this feature?

Here is what I see so far:
1. in your level, select a scene object, then select its "scripting" tab and check "persist".
* when you save the level, the object will be removed from your level file and placed into game/managed/persistent.cs
* note that the persistent objects in the persistent.cs file still have their behaviors listed!
2. reload your level and the objects will still be present (cool), but the behaviors are not shown.

As another minor bug.
3. create a new level. The persistent objects are not there. However, save the level and then reload it. The objects are there.
*(In my case, TGB crashed on reload, but once I restarted it, the persistent objects where there.)
* of course, still no behaviors showing.
#2
07/20/2011 (5:49 pm)
As another note, how safe should I feel editing files manually in the "managed" directory. That seems an odd name for a directory if I am allowed to mess with it.
#3
08/12/2011 (1:01 pm)
Logged this so that it's on our radar.