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.
About the author
www.bootwars.com
Associate Charlie Patterson
Default Studio Name
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.