aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler
diff options
context:
space:
mode:
authorTedd Hansen2007-08-14 15:59:36 +0000
committerTedd Hansen2007-08-14 15:59:36 +0000
commitafaa12a9e2fd24c03c0f46716e9758cc591703c2 (patch)
treef6f6977314ab65d88822b592378806142090e99d /OpenSim/Region/ScriptEngine/DotNetEngine/Compiler
parentMore inventory work, should be able to now create new inventory folders and t... (diff)
downloadopensim-SC_OLD-afaa12a9e2fd24c03c0f46716e9758cc591703c2.zip
opensim-SC_OLD-afaa12a9e2fd24c03c0f46716e9758cc591703c2.tar.gz
opensim-SC_OLD-afaa12a9e2fd24c03c0f46716e9758cc591703c2.tar.bz2
opensim-SC_OLD-afaa12a9e2fd24c03c0f46716e9758cc591703c2.tar.xz
ScriptEngine: Some error handling, logs to logger
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/Compiler')
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs6
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands_TestImplementation.cs387
2 files changed, 3 insertions, 390 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs
index 5fa25fb..f9908e4 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs
@@ -13,7 +13,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
13 public void Start(OpenSim.Region.Environment.Scenes.Scene _World, string FullScriptID) 13 public void Start(OpenSim.Region.Environment.Scenes.Scene _World, string FullScriptID)
14 { 14 {
15 World = _World; 15 World = _World;
16 Common.SendToLog("OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL.LSL_BaseClass.Start() called. FullScriptID: " + FullScriptID); 16 Console.WriteLine("ScriptEngine", "LSL_BaseClass.Start() called. FullScriptID: " + FullScriptID);
17 17
18 return; 18 return;
19 } 19 }
@@ -49,14 +49,14 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
49 public void llWhisper(int channelID, string text) 49 public void llWhisper(int channelID, string text)
50 { 50 {
51 //Common.SendToDebug("INTERNAL FUNCTION llWhisper(" + channelID + ", \"" + text + "\");"); 51 //Common.SendToDebug("INTERNAL FUNCTION llWhisper(" + channelID + ", \"" + text + "\");");
52 Console.WriteLine("llWhisper Channel " + channelID + ", Text: \"" + text + "\""); 52 Console.WriteLine("ScriptEngine", "llWhisper Channel " + channelID + ", Text: \"" + text + "\"");
53 } 53 }
54 //public void llSay(UInt32 channelID, string text) 54 //public void llSay(UInt32 channelID, string text)
55 public void llSay(int channelID, string text) 55 public void llSay(int channelID, string text)
56 { 56 {
57 //TODO: DO SOMETHING USEFUL HERE 57 //TODO: DO SOMETHING USEFUL HERE
58 //Common.SendToDebug("INTERNAL FUNCTION llSay(" + (UInt32)channelID + ", \"" + (string)text + "\");"); 58 //Common.SendToDebug("INTERNAL FUNCTION llSay(" + (UInt32)channelID + ", \"" + (string)text + "\");");
59 Console.WriteLine("llSay Channel " + channelID + ", Text: \"" + text + "\""); 59 Console.WriteLine("ScriptEngine", "llSay Channel " + channelID + ", Text: \"" + text + "\"");
60 //World.SimChat( 60 //World.SimChat(
61 } 61 }
62 public void llShout(UInt16 channelID, string text) { return; } 62 public void llShout(UInt16 channelID, string text) { return; }
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands_TestImplementation.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands_TestImplementation.cs
deleted file mode 100644
index 3a87fa9..0000000
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands_TestImplementation.cs
+++ /dev/null
@@ -1,387 +0,0 @@
1 /*
2* Copyright (c) Contributors, http://www.openmetaverse.org/
3* See CONTRIBUTORS.TXT for a full list of copyright holders.
4*
5* Redistribution and use in source and binary forms, with or without
6* modification, are permitted provided that the following conditions are met:
7* * Redistributions of source code must retain the above copyright
8* notice, this list of conditions and the following disclaimer.
9* * Redistributions in binary form must reproduce the above copyright
10* notice, this list of conditions and the following disclaimer in the
11* documentation and/or other materials provided with the distribution.
12* * Neither the name of the OpenSim Project nor the
13* names of its contributors may be used to endorse or promote products
14* derived from this software without specific prior written permission.
15*
16* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS AND ANY
17* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26*
27*/
28/* Original code: Tedd Hansen */
29using System;
30using System.Collections.Generic;
31using System.Text;
32
33namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler
34{
35 public class LSL_BuiltIn_Commands_TestImplementation //: LSL_BuiltIn_Commands_Interface
36 {
37 public LSL_BuiltIn_Commands_TestImplementation(string FullScriptID)
38 {
39 Common.SendToDebug("LSL_BuiltIn_Commands_TestImplementation: Creating object for FullScriptID: " + FullScriptID);
40 }
41
42
43 public float llSin(float f) { return 0; }
44 public float llCos(float f) { return 0; }
45 public float llTan(float f) { return 0; }
46 public float llAtan2(float x, float y) { return 0; }
47 public float llSqrt(float f) { return 0; }
48 public float llPow(float fbase, float fexponent) { return 0; }
49 public UInt32 llAbs(UInt32 i) { return 0; }
50 public float llFabs(float f) { return 0; }
51 public float llFrand(float mag) { return 0; }
52 public UInt32 llFloor(float f) { return 0; }
53 public UInt32 llCeil(float f) { return 0; }
54 public UInt32 llRound(float f) { return 0; }
55 public float llVecMag(Axiom.Math.Vector3 v) { return 0; }
56 public Axiom.Math.Vector3 llVecNorm(Axiom.Math.Vector3 v) { return new Axiom.Math.Vector3(); }
57 public float llVecDist(Axiom.Math.Vector3 a, Axiom.Math.Vector3 b) { return 0; }
58 public Axiom.Math.Vector3 llRot2Euler(Axiom.Math.Quaternion r) { return new Axiom.Math.Vector3(); }
59 public Axiom.Math.Quaternion llEuler2Rot(Axiom.Math.Vector3 v) { return new Axiom.Math.Quaternion(); }
60 public Axiom.Math.Quaternion llAxes2Rot(Axiom.Math.Vector3 fwd, Axiom.Math.Vector3 left, Axiom.Math.Vector3 up) { return new Axiom.Math.Quaternion(); }
61 public Axiom.Math.Vector3 llRot2Fwd(Axiom.Math.Quaternion r) { return new Axiom.Math.Vector3(); }
62 public Axiom.Math.Vector3 llRot2Left(Axiom.Math.Quaternion r) { return new Axiom.Math.Vector3(); }
63 public Axiom.Math.Vector3 llRot2Up(Axiom.Math.Quaternion r) { return new Axiom.Math.Vector3(); }
64 public Axiom.Math.Quaternion llRotBetween(Axiom.Math.Vector3 start, Axiom.Math.Vector3 end) { return new Axiom.Math.Quaternion(); }
65 public void llWhisper(UInt16 channelID, string text)
66 {
67 Common.SendToDebug("INTERNAL FUNCTION llWhisper(" + channelID + ", \"" + text + "\");");
68 Common.SendToLog("llWhisper Channel " + channelID + ", Text: \"" + text + "\"");
69 }
70 //public void llSay(UInt32 channelID, string text)
71 public void llSay(object channelID, object text)
72 {
73 //TODO: DO SOMETHING USEFUL HERE
74 Common.SendToDebug("INTERNAL FUNCTION llSay(" + (UInt32)channelID + ", \"" + (string)text + "\");");
75 Common.SendToLog("llSay Channel " + (UInt32)channelID + ", Text: \"" + (string)text + "\"");
76 }
77 public void llShout(UInt16 channelID, string text) { return; }
78 public UInt32 llListen(UInt16 channelID, string name, string ID, string msg) { return 0; }
79 public void llListenControl(UInt32 number, UInt32 active) { return; }
80 public void llListenRemove(UInt32 number) { return; }
81 public void llSensor(string name, string id, UInt32 type, float range, float arc) { return; }
82 public void llSensorRepeat(string name, string id, UInt32 type, float range, float arc, float rate) { return; }
83 public void llSensorRemove() { return; }
84 public string llDetectedName(UInt32 number) { return ""; }
85 public string llDetectedKey(UInt32 number) { return ""; }
86 public string llDetectedOwner(UInt32 number) { return ""; }
87 public UInt32 llDetectedType(UInt32 number) { return 0; }
88 public Axiom.Math.Vector3 llDetectedPos(UInt32 number) { return new Axiom.Math.Vector3(); }
89 public Axiom.Math.Vector3 llDetectedVel(UInt32 number) { return new Axiom.Math.Vector3(); }
90 public Axiom.Math.Vector3 llDetectedGrab(UInt32 number) { return new Axiom.Math.Vector3(); }
91 public Axiom.Math.Quaternion llDetectedRot(UInt32 number) { return new Axiom.Math.Quaternion(); }
92 public UInt32 llDetectedGroup(UInt32 number) { return 0; }
93 public UInt32 llDetectedLinkNumber(UInt32 number) { return 0; }
94 public void llDie() { return; }
95 public float llGround(Axiom.Math.Vector3 offset) { return 0; }
96 public float llCloud(Axiom.Math.Vector3 offset) { return 0; }
97 public Axiom.Math.Vector3 llWind(Axiom.Math.Vector3 offset) { return new Axiom.Math.Vector3(); }
98 public void llSetStatus(UInt32 status, UInt32 value) { return; }
99 public UInt32 llGetStatus(UInt32 status) { return 0; }
100 public void llSetScale(Axiom.Math.Vector3 scale) { return; }
101 public Axiom.Math.Vector3 llGetScale() { return new Axiom.Math.Vector3(); }
102 public void llSetColor(Axiom.Math.Vector3 color, UInt32 face) { return; }
103 public float llGetAlpha(UInt32 face) { return 0; }
104 public void llSetAlpha(float alpha, UInt32 face) { return; }
105 public Axiom.Math.Vector3 llGetColor(UInt32 face) { return new Axiom.Math.Vector3(); }
106 public void llSetTexture(string texture, UInt32 face) { return; }
107 public void llScaleTexture(float u, float v, UInt32 face) { return; }
108 public void llOffsetTexture(float u, float v, UInt32 face) { return; }
109 public void llRotateTexture(float rotation, UInt32 face) { return; }
110 public string llGetTexture(UInt32 face) { return ""; }
111 public void llSetPos(Axiom.Math.Vector3 pos) { return; }
112
113
114 public void llGetPos() { }
115 public void llGetLocalPos() { }
116 public void llSetRot() { }
117 public void llGetRot() { }
118 public void llGetLocalRot() { }
119 public void llSetForce() { }
120 public void llGetForce() { }
121 public void llTarget() { }
122 public void llTargetRemove() { }
123 public void llRotTarget() { }
124 public void llRotTargetRemove() { }
125 public void llMoveToTarget() { }
126 public void llStopMoveToTarget() { }
127 public void llApplyImpulse() { }
128 public void llApplyRotationalImpulse() { }
129 public void llSetTorque() { }
130 public void llGetTorque() { }
131 public void llSetForceAndTorque() { }
132 public void llGetVel() { }
133 public void llGetAccel() { }
134 public void llGetOmega() { }
135 public void llGetTimeOfDay() { }
136 public void llGetWallclock() { }
137 public void llGetTime() { }
138 public void llResetTime() { }
139 public void llGetAndResetTime() { }
140 public void llSound() { }
141 public void llPlaySound() { }
142 public void llLoopSound() { }
143 public void llLoopSoundMaster() { }
144 public void llLoopSoundSlave() { }
145 public void llPlaySoundSlave() { }
146 public void llTriggerSound() { }
147 public void llStopSound() { }
148 public void llPreloadSound() { }
149 public void llGetSubString() { }
150 public void llDeleteSubString() { }
151 public void llInsertString() { }
152 public void llToUpper() { }
153 public void llToLower() { }
154 public void llGiveMoney() { }
155 public void llMakeExplosion() { }
156 public void llMakeFountain() { }
157 public void llMakeSmoke() { }
158 public void llMakeFire() { }
159 public void llRezObject() { }
160 public void llLookAt() { }
161 public void llStopLookAt() { }
162 public void llSetTimerEvent() { }
163 public void llSleep() { }
164 public void llGetMass() { }
165 public void llCollisionFilter() { }
166 public void llTakeControls() { }
167 public void llReleaseControls() { }
168 public void llAttachToAvatar() { }
169 public void llDetachFromAvatar() { }
170 public void llTakeCamera() { }
171 public void llReleaseCamera() { }
172 public void llGetOwner() { }
173 public void llInstantMessage() { }
174 public void llEmail() { }
175 public void llGetNextEmail() { }
176 public void llGetKey() { }
177 public void llSetBuoyancy() { }
178 public void llSetHoverHeight() { }
179 public void llStopHover() { }
180 public void llMinEventDelay() { }
181 public void llSoundPreload() { }
182 public void llRotLookAt() { }
183 public void llStringLength() { }
184 public void llStartAnimation() { }
185 public void llStopAnimation() { }
186 public void llPointAt() { }
187 public void llStopPointAt() { }
188 public void llTargetOmega() { }
189 public void llGetStartParameter() { }
190 public void llGodLikeRezObject() { }
191 public void llRequestPermissions() { }
192 public void llGetPermissionsKey() { }
193 public void llGetPermissions() { }
194 public void llGetLinkNumber() { }
195 public void llSetLinkColor() { }
196 public void llCreateLink() { }
197 public void llBreakLink() { }
198 public void llBreakAllLinks() { }
199 public void llGetLinkKey() { }
200 public void llGetLinkName() { }
201 public void llGetInventoryNumber() { }
202 public void llGetInventoryName() { }
203 public void llSetScriptState() { }
204 public void llGetEnergy() { }
205 public void llGiveInventory() { }
206 public void llRemoveInventory() { }
207 public void llSetText() { }
208 public void llWater() { }
209 public void llPassTouches() { }
210 public void llRequestAgentData() { }
211 public void llRequestInventoryData() { }
212 public void llSetDamage() { }
213 public void llTeleportAgentHome() { }
214 public void llModifyLand() { }
215 public void llCollisionSound() { }
216 public void llCollisionSprite() { }
217 public void llGetAnimation() { }
218 public void llResetScript() { }
219 public void llMessageLinked() { }
220 public void llPushObject() { }
221 public void llPassCollisions() { }
222 public void llGetScriptName() { }
223 public void llGetNumberOfSides() { }
224 public void llAxisAngle2Rot() { }
225 public void llRot2Axis() { }
226 public void llRot2Angle() { }
227 public void llAcos() { }
228 public void llAsin() { }
229 public void llAngleBetween() { }
230 public void llGetInventoryKey() { }
231 public void llAllowInventoryDrop() { }
232 public void llGetSunDirection() { }
233 public void llGetTextureOffset() { }
234 public void llGetTextureScale() { }
235 public void llGetTextureRot() { }
236 public void llSubStringIndex() { }
237 public void llGetOwnerKey() { }
238 public void llGetCenterOfMass() { }
239 public void llListSort() { }
240 public void llGetListLength() { }
241 public void llList2Integer() { }
242 public void llList2Float() { }
243 public void llList2String() { }
244 public void llList2Key() { }
245 public void llList2Vector() { }
246 public void llList2Rot() { }
247 public void llList2List() { }
248 public void llDeleteSubList() { }
249 public void llGetListEntryType() { }
250 public void llList2CSV() { }
251 public void llCSV2List() { }
252 public void llListRandomize() { }
253 public void llList2ListStrided() { }
254 public void llGetRegionCorner() { }
255 public void llListInsertList() { }
256 public void llListFindList() { }
257 public void llGetObjectName() { }
258 public void llSetObjectName() { }
259 public void llGetDate() { }
260 public void llEdgeOfWorld() { }
261 public void llGetAgentInfo() { }
262 public void llAdjustSoundVolume() { }
263 public void llSetSoundQueueing() { }
264 public void llSetSoundRadius() { }
265 public void llKey2Name() { }
266 public void llSetTextureAnim() { }
267 public void llTriggerSoundLimited() { }
268 public void llEjectFromLand() { }
269 public void llParseString2List() { }
270 public void llOverMyLand() { }
271 public void llGetLandOwnerAt() { }
272 public void llGetNotecardLine() { }
273 public void llGetAgentSize() { }
274 public void llSameGroup() { }
275 public void llUnSit() { }
276 public void llGroundSlope() { }
277 public void llGroundNormal() { }
278 public void llGroundContour() { }
279 public void llGetAttached() { }
280 public void llGetFreeMemory() { }
281 public void llGetRegionName() { }
282 public void llGetRegionTimeDilation() { }
283 public void llGetRegionFPS() { }
284 public void llParticleSystem() { }
285 public void llGroundRepel() { }
286 public void llGiveInventoryList() { }
287 public void llSetVehicleType() { }
288 public void llSetVehicleFloatParam() { }
289 public void llSetVehicleVectorParam() { }
290 public void llSetVehicleRotationParam() { }
291 public void llSetVehicleFlags() { }
292 public void llRemoveVehicleFlags() { }
293 public void llSitTarget() { }
294 public void llAvatarOnSitTarget() { }
295 public void llAddToLandPassList() { }
296 public void llSetTouchText() { }
297 public void llSetSitText() { }
298 public void llSetCameraEyeOffset() { }
299 public void llSetCameraAtOffset() { }
300 public void llDumpList2String() { }
301 public void llScriptDanger() { }
302 public void llDialog() { }
303 public void llVolumeDetect() { }
304 public void llResetOtherScript() { }
305 public void llGetScriptState() { }
306 public void llRemoteLoadScript() { }
307 public void llSetRemoteScriptAccessPin() { }
308 public void llRemoteLoadScriptPin() { }
309 public void llOpenRemoteDataChannel() { }
310 public void llSendRemoteData() { }
311 public void llRemoteDataReply() { }
312 public void llCloseRemoteDataChannel() { }
313 public void llMD5String() { }
314 public void llSetPrimitiveParams() { }
315 public void llStringToBase64() { }
316 public void llBase64ToString() { }
317 public void llXorBase64Strings() { }
318 public void llRemoteDataSetRegion() { }
319 public void llLog10() { }
320 public void llLog() { }
321 public void llGetAnimationList() { }
322 public void llSetParcelMusicURL() { }
323 public void llGetRootPosition() { }
324 public void llGetRootRotation() { }
325 public void llGetObjectDesc() { }
326 public void llSetObjectDesc() { }
327 public void llGetCreator() { }
328 public void llGetTimestamp() { }
329 public void llSetLinkAlpha() { }
330 public void llGetNumberOfPrims() { }
331 public void llGetNumberOfNotecardLines() { }
332 public void llGetBoundingBox() { }
333 public void llGetGeometricCenter() { }
334 public void llGetPrimitiveParams() { }
335 public void llIntegerToBase64() { }
336 public void llBase64ToInteger() { }
337 public void llGetGMTclock() { }
338 public void llGetSimulatorHostname() { }
339 public void llSetLocalRot() { }
340 public void llParseStringKeepNulls() { }
341 public void llRezAtRoot() { }
342 public void llGetObjectPermMask() { }
343 public void llSetObjectPermMask() { }
344 public void llGetInventoryPermMask() { }
345 public void llSetInventoryPermMask() { }
346 public void llGetInventoryCreator() { }
347 public void llOwnerSay() { }
348 public void llRequestSimulatorData() { }
349 public void llForceMouselook() { }
350 public void llGetObjectMass() { }
351 public void llListReplaceList() { }
352 public void llLoadURL() { }
353 public void llParcelMediaCommandList() { }
354 public void llParcelMediaQuery() { }
355 public void llModPow() { }
356 public void llGetInventoryType() { }
357 public void llSetPayPrice() { }
358 public void llGetCameraPos() { }
359 public void llGetCameraRot() { }
360 public void llSetPrimURL() { }
361 public void llRefreshPrimURL() { }
362 public void llEscapeURL() { }
363 public void llUnescapeURL() { }
364 public void llMapDestination() { }
365 public void llAddToLandBanList() { }
366 public void llRemoveFromLandPassList() { }
367 public void llRemoveFromLandBanList() { }
368 public void llSetCameraParams() { }
369 public void llClearCameraParams() { }
370 public void llListStatistics() { }
371 public void llGetUnixTime() { }
372 public void llGetParcelFlags() { }
373 public void llGetRegionFlags() { }
374 public void llXorBase64StringsCorrect() { }
375 public void llHTTPRequest() { }
376 public void llResetLandBanList() { }
377 public void llResetLandPassList() { }
378 public void llGetParcelPrimCount() { }
379 public void llGetParcelPrimOwners() { }
380 public void llGetObjectPrimCount() { }
381 public void llGetParcelMaxPrims() { }
382 public void llGetParcelDetails() { }
383
384
385
386 }
387}