|View Issue Details [ Jump to Notes ] ||[ Issue History ] [ Print ] |
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0006445||opensim||[REGION] Scripting Engine||public||2012-11-28 11:23||2012-11-28 11:23|
|Reporter||Robert Adams|| |
|Assigned To|| |
|Product Version||master (dev code)|| |
|Target Version||master (dev code)||Fixed in Version|| |
|Summary||0006445: Vehicle state is not saved with script state|
|Description||Vehicle scripts set a bunch of variables for vehicle properties. These settings are not saved and restored with the script. This causes scripted vehicles to not have vehicle features restored when a region is restarted.|
|Steps To Reproduce||Rez a "Flying Tako 2.1 SO-0.2 - Touring" in a water region. This particular boat sets the vehicle parameters at rez time. Sail the boat, get off, leave the boat in the region and then restart the region. In the newly rebooted region, try to sail the boat. It will sink under the waves because it does not have its boat vehicle parameters set.|
The problem is that neither a state_entry nor on_rez event happen when the boat reappears in the restarted region so the boat is relying on its state set before the region was restarted.
The restoration of vehicle script parameters must happen in SL. An OpenSim workaround is to use the region_restart event to reset the vehicle parameters.
|Tags||No tags attached.|
|Git Revision or version number||2ccd4c130234ff16a6c31845958476c759f72245|
|Run Mode|| Grid (Multiple Regions per Sim)|