diff options
author | Teravus Ovares | 2008-09-06 07:52:41 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-09-06 07:52:41 +0000 |
commit | 7d89e122930be39e84a6d174548fa2d12ac0484a (patch) | |
tree | e5aa5752f988a9aba2a969f49e5e208985eda80c /OpenSim/Region/ScriptEngine/Shared/Instance | |
parent | * minor: speculatively try a change to bamboo.build to see if this generates ... (diff) | |
download | opensim-SC_OLD-7d89e122930be39e84a6d174548fa2d12ac0484a.zip opensim-SC_OLD-7d89e122930be39e84a6d174548fa2d12ac0484a.tar.gz opensim-SC_OLD-7d89e122930be39e84a6d174548fa2d12ac0484a.tar.bz2 opensim-SC_OLD-7d89e122930be39e84a6d174548fa2d12ac0484a.tar.xz |
* This is the fabled LibOMV update with all of the libOMV types from JHurliman
* This is a HUGE OMG update and will definitely have unknown side effects.. so this is really only for the strong hearted at this point. Regular people should let the dust settle.
* This has been tested to work with most basic functions. However.. make sure you back up 'everything' before using this. It's that big!
* Essentially we're back at square 1 in the testing phase.. so lets identify things that broke.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Instance')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | 30 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Instance/ScriptSerializer.cs | 20 |
2 files changed, 25 insertions, 25 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs index e3dd9e9..d35bfa8 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | |||
@@ -34,7 +34,7 @@ using System.Security.Policy; | |||
34 | using System.Reflection; | 34 | using System.Reflection; |
35 | using System.Globalization; | 35 | using System.Globalization; |
36 | using System.Xml; | 36 | using System.Xml; |
37 | using libsecondlife; | 37 | using OpenMetaverse; |
38 | using log4net; | 38 | using log4net; |
39 | using Nini.Config; | 39 | using Nini.Config; |
40 | using Amib.Threading; | 40 | using Amib.Threading; |
@@ -56,12 +56,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
56 | private IScriptWorkItem m_CurrentResult=null; | 56 | private IScriptWorkItem m_CurrentResult=null; |
57 | private Queue m_EventQueue = new Queue(32); | 57 | private Queue m_EventQueue = new Queue(32); |
58 | private bool m_RunEvents = false; | 58 | private bool m_RunEvents = false; |
59 | private LLUUID m_ItemID; | 59 | private UUID m_ItemID; |
60 | private uint m_LocalID; | 60 | private uint m_LocalID; |
61 | private LLUUID m_ObjectID; | 61 | private UUID m_ObjectID; |
62 | private LLUUID m_AssetID; | 62 | private UUID m_AssetID; |
63 | private IScript m_Script; | 63 | private IScript m_Script; |
64 | private LLUUID m_AppDomain; | 64 | private UUID m_AppDomain; |
65 | private DetectParams[] m_DetectParams; | 65 | private DetectParams[] m_DetectParams; |
66 | private bool m_TimerQueued; | 66 | private bool m_TimerQueued; |
67 | private DateTime m_EventStart; | 67 | private DateTime m_EventStart; |
@@ -98,7 +98,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
98 | get { return m_Engine; } | 98 | get { return m_Engine; } |
99 | } | 99 | } |
100 | 100 | ||
101 | public LLUUID AppDomain | 101 | public UUID AppDomain |
102 | { | 102 | { |
103 | get { return m_AppDomain; } | 103 | get { return m_AppDomain; } |
104 | set { m_AppDomain = value; } | 104 | set { m_AppDomain = value; } |
@@ -114,12 +114,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
114 | get { return m_ScriptName; } | 114 | get { return m_ScriptName; } |
115 | } | 115 | } |
116 | 116 | ||
117 | public LLUUID ItemID | 117 | public UUID ItemID |
118 | { | 118 | { |
119 | get { return m_ItemID; } | 119 | get { return m_ItemID; } |
120 | } | 120 | } |
121 | 121 | ||
122 | public LLUUID ObjectID | 122 | public UUID ObjectID |
123 | { | 123 | { |
124 | get { return m_ObjectID; } | 124 | get { return m_ObjectID; } |
125 | } | 125 | } |
@@ -129,7 +129,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
129 | get { return m_LocalID; } | 129 | get { return m_LocalID; } |
130 | } | 130 | } |
131 | 131 | ||
132 | public LLUUID AssetID | 132 | public UUID AssetID |
133 | { | 133 | { |
134 | get { return m_AssetID; } | 134 | get { return m_AssetID; } |
135 | } | 135 | } |
@@ -152,7 +152,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
152 | } | 152 | } |
153 | 153 | ||
154 | public ScriptInstance(IScriptEngine engine, uint localID, | 154 | public ScriptInstance(IScriptEngine engine, uint localID, |
155 | LLUUID objectID, LLUUID itemID, LLUUID assetID, string assembly, | 155 | UUID objectID, UUID itemID, UUID assetID, string assembly, |
156 | AppDomain dom, string primName, string scriptName, | 156 | AppDomain dom, string primName, string scriptName, |
157 | int startParam, bool postOnRez, StateSource stateSource, | 157 | int startParam, bool postOnRez, StateSource stateSource, |
158 | int maxScriptQueue) | 158 | int maxScriptQueue) |
@@ -520,7 +520,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
520 | string text = "Runtime error:\n" + e.InnerException.ToString(); | 520 | string text = "Runtime error:\n" + e.InnerException.ToString(); |
521 | if (text.Length > 1000) | 521 | if (text.Length > 1000) |
522 | text = text.Substring(0, 1000); | 522 | text = text.Substring(0, 1000); |
523 | m_Engine.World.SimChat(Helpers.StringToField(text), | 523 | m_Engine.World.SimChat(Utils.StringToBytes(text), |
524 | ChatTypeEnum.DebugChannel, 2147483647, | 524 | ChatTypeEnum.DebugChannel, 2147483647, |
525 | part.AbsolutePosition, | 525 | part.AbsolutePosition, |
526 | part.Name, part.UUID, false); | 526 | part.Name, part.UUID, false); |
@@ -581,7 +581,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
581 | Stop(0); | 581 | Stop(0); |
582 | SceneObjectPart part=m_Engine.World.GetSceneObjectPart(m_LocalID); | 582 | SceneObjectPart part=m_Engine.World.GetSceneObjectPart(m_LocalID); |
583 | part.GetInventoryItem(m_ItemID).PermsMask = 0; | 583 | part.GetInventoryItem(m_ItemID).PermsMask = 0; |
584 | part.GetInventoryItem(m_ItemID).PermsGranter = LLUUID.Zero; | 584 | part.GetInventoryItem(m_ItemID).PermsGranter = UUID.Zero; |
585 | AsyncCommandManager async = (AsyncCommandManager)m_Engine.AsyncCommands; | 585 | AsyncCommandManager async = (AsyncCommandManager)m_Engine.AsyncCommands; |
586 | async.RemoveScript(m_LocalID, m_ItemID); | 586 | async.RemoveScript(m_LocalID, m_ItemID); |
587 | m_EventQueue.Clear(); | 587 | m_EventQueue.Clear(); |
@@ -602,7 +602,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
602 | m_Script.ResetVars(); | 602 | m_Script.ResetVars(); |
603 | SceneObjectPart part=m_Engine.World.GetSceneObjectPart(m_LocalID); | 603 | SceneObjectPart part=m_Engine.World.GetSceneObjectPart(m_LocalID); |
604 | part.GetInventoryItem(m_ItemID).PermsMask = 0; | 604 | part.GetInventoryItem(m_ItemID).PermsMask = 0; |
605 | part.GetInventoryItem(m_ItemID).PermsGranter = LLUUID.Zero; | 605 | part.GetInventoryItem(m_ItemID).PermsGranter = UUID.Zero; |
606 | AsyncCommandManager async = (AsyncCommandManager)m_Engine.AsyncCommands; | 606 | AsyncCommandManager async = (AsyncCommandManager)m_Engine.AsyncCommands; |
607 | async.RemoveScript(m_LocalID, m_ItemID); | 607 | async.RemoveScript(m_LocalID, m_ItemID); |
608 | if (m_CurrentEvent != "state_entry") | 608 | if (m_CurrentEvent != "state_entry") |
@@ -630,10 +630,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
630 | return m_DetectParams[idx]; | 630 | return m_DetectParams[idx]; |
631 | } | 631 | } |
632 | 632 | ||
633 | public LLUUID GetDetectID(int idx) | 633 | public UUID GetDetectID(int idx) |
634 | { | 634 | { |
635 | if (idx < 0 || idx >= m_DetectParams.Length) | 635 | if (idx < 0 || idx >= m_DetectParams.Length) |
636 | return LLUUID.Zero; | 636 | return UUID.Zero; |
637 | 637 | ||
638 | return m_DetectParams[idx].Key; | 638 | return m_DetectParams[idx].Key; |
639 | } | 639 | } |
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptSerializer.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptSerializer.cs index ba003c5..bc9b174 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptSerializer.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptSerializer.cs | |||
@@ -34,7 +34,7 @@ using System.Security.Policy; | |||
34 | using System.Reflection; | 34 | using System.Reflection; |
35 | using System.Globalization; | 35 | using System.Globalization; |
36 | using System.Xml; | 36 | using System.Xml; |
37 | using libsecondlife; | 37 | using OpenMetaverse; |
38 | using log4net; | 38 | using log4net; |
39 | using Nini.Config; | 39 | using Nini.Config; |
40 | using Amib.Threading; | 40 | using Amib.Threading; |
@@ -264,9 +264,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
264 | new LSL_Types.Vector3(vect); | 264 | new LSL_Types.Vector3(vect); |
265 | 265 | ||
266 | int d_linkNum=0; | 266 | int d_linkNum=0; |
267 | LLUUID d_group = LLUUID.Zero; | 267 | UUID d_group = UUID.Zero; |
268 | string d_name = String.Empty; | 268 | string d_name = String.Empty; |
269 | LLUUID d_owner = LLUUID.Zero; | 269 | UUID d_owner = UUID.Zero; |
270 | LSL_Types.Vector3 d_position = | 270 | LSL_Types.Vector3 d_position = |
271 | new LSL_Types.Vector3(); | 271 | new LSL_Types.Vector3(); |
272 | LSL_Types.Quaternion d_rotation = | 272 | LSL_Types.Quaternion d_rotation = |
@@ -285,14 +285,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
285 | 285 | ||
286 | tmp = det.Attributes.GetNamedItem( | 286 | tmp = det.Attributes.GetNamedItem( |
287 | "group").Value; | 287 | "group").Value; |
288 | LLUUID.TryParse(tmp, out d_group); | 288 | UUID.TryParse(tmp, out d_group); |
289 | 289 | ||
290 | d_name = det.Attributes.GetNamedItem( | 290 | d_name = det.Attributes.GetNamedItem( |
291 | "name").Value; | 291 | "name").Value; |
292 | 292 | ||
293 | tmp = det.Attributes.GetNamedItem( | 293 | tmp = det.Attributes.GetNamedItem( |
294 | "owner").Value; | 294 | "owner").Value; |
295 | LLUUID.TryParse(tmp, out d_owner); | 295 | UUID.TryParse(tmp, out d_owner); |
296 | 296 | ||
297 | tmp = det.Attributes.GetNamedItem( | 297 | tmp = det.Attributes.GetNamedItem( |
298 | "position").Value; | 298 | "position").Value; |
@@ -318,8 +318,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
318 | { | 318 | { |
319 | } | 319 | } |
320 | 320 | ||
321 | LLUUID uuid = new LLUUID(); | 321 | UUID uuid = new UUID(); |
322 | LLUUID.TryParse(det.InnerText, | 322 | UUID.TryParse(det.InnerText, |
323 | out uuid); | 323 | out uuid); |
324 | 324 | ||
325 | DetectParams d = new DetectParams(); | 325 | DetectParams d = new DetectParams(); |
@@ -427,10 +427,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
427 | if (itemType == "list") | 427 | if (itemType == "list") |
428 | return ReadList(tag); | 428 | return ReadList(tag); |
429 | 429 | ||
430 | if (itemType == "libsecondlife.LLUUID") | 430 | if (itemType == "libsecondlife.UUID") |
431 | { | 431 | { |
432 | LLUUID val = new LLUUID(); | 432 | UUID val = new UUID(); |
433 | LLUUID.TryParse(tag.InnerText, out val); | 433 | UUID.TryParse(tag.InnerText, out val); |
434 | 434 | ||
435 | return val; | 435 | return val; |
436 | } | 436 | } |