diff options
author | Diva Canto | 2012-03-15 20:22:59 -0700 |
---|---|---|
committer | Diva Canto | 2012-03-15 20:22:59 -0700 |
commit | 05bb2e42757078737944d2f3179b0b964ae460c8 (patch) | |
tree | 188e53afb08a96f07996e7d4c0e2dd2db3518096 /bin | |
parent | More on map search: send extra messages to the user regarding the region bein... (diff) | |
parent | Add process working memory to "show stats" memory statistics. (diff) | |
download | opensim-SC-05bb2e42757078737944d2f3179b0b964ae460c8.zip opensim-SC-05bb2e42757078737944d2f3179b0b964ae460c8.tar.gz opensim-SC-05bb2e42757078737944d2f3179b0b964ae460c8.tar.bz2 opensim-SC-05bb2e42757078737944d2f3179b0b964ae460c8.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to '')
-rw-r--r-- | bin/ScriptEngines/Default.lsl | 104 | ||||
-rw-r--r-- | bin/shutdown_commands.txt | 4 | ||||
-rw-r--r-- | bin/startup_commands.txt | 3 | ||||
-rw-r--r-- | bin/startup_commands.txt.example | 4 |
4 files changed, 6 insertions, 109 deletions
diff --git a/bin/ScriptEngines/Default.lsl b/bin/ScriptEngines/Default.lsl deleted file mode 100644 index ade855d..0000000 --- a/bin/ScriptEngines/Default.lsl +++ /dev/null | |||
@@ -1,104 +0,0 @@ | |||
1 | // autogenerated by generate_default_lsl.rb | ||
2 | integer touch_count = 0; | ||
3 | |||
4 | default { | ||
5 | touch_start(integer total_number) { | ||
6 | float angle45 = PI/4.0; // 45 degrees | ||
7 | float angle30 = PI/6.0; // 30 degrees | ||
8 | float sqrt2 = llSqrt(2.0); | ||
9 | if((llFabs(-1.5) != 1.5) || (llFabs(10.4) != 10.4)) { | ||
10 | llShout(0, "Houston, we have a big problem! llFabs() does not work! Need it for other tests!"); | ||
11 | } | ||
12 | llSetText("This is a text by llSetText", <1,0,0>, 1); | ||
13 | llWhisper(0, "llWhispering a few random numbers between 0 and 100: " + llFrand(100) + "," + llFrand(100) + "," + llFrand(100) + "," + llFrand(100)); | ||
14 | llShout(0, "llShouting the unix time: " + llGetUnixTime() + ", and region corner: " + llGetRegionCorner()); | ||
15 | llShout(1, "Shouting a random number between 0 and 100 on the channel#1: " + llFrand(100)); | ||
16 | if (llAbs(-1) != 1) { | ||
17 | llSay(0, "Assert failed: llAbs(-1) != 1"); | ||
18 | } | ||
19 | if (llAbs(10) != 10) { | ||
20 | llSay(0, "Assert failed: llAbs(10) != 10"); | ||
21 | } | ||
22 | if (llFabs((llCos(angle45) - sqrt2/2.0) - 0) > 0.000001) { | ||
23 | llSay(0, "Assert failed: (llCos(angle45) - sqrt2/2.0) differs from 0 by more than 0.000001"); | ||
24 | llSay(0, " --> The actual result: " + (llCos(angle45) - sqrt2/2.0)); | ||
25 | } | ||
26 | if (llFabs((llSin(angle30) - 0.5) - 0) > 0.000001) { | ||
27 | llSay(0, "Assert failed: (llSin(angle30) - 0.5) differs from 0 by more than 0.000001"); | ||
28 | llSay(0, " --> The actual result: " + (llSin(angle30) - 0.5)); | ||
29 | } | ||
30 | if (llFabs((llAtan2(1, 1)*4 - PI) - 0) > 0.000001) { | ||
31 | llSay(0, "Assert failed: (llAtan2(1, 1)*4 - PI) differs from 0 by more than 0.000001"); | ||
32 | llSay(0, " --> The actual result: " + (llAtan2(1, 1)*4 - PI)); | ||
33 | } | ||
34 | if (llFabs((llTan(PI)) - 0) > 0.000001) { | ||
35 | llSay(0, "Assert failed: (llTan(PI)) differs from 0 by more than 0.000001"); | ||
36 | llSay(0, " --> The actual result: " + (llTan(PI))); | ||
37 | } | ||
38 | if (llFloor(2.4) != 2) { | ||
39 | llSay(0, "Assert failed: llFloor(2.4) != 2"); | ||
40 | } | ||
41 | if (llCeil(2.4) != 3) { | ||
42 | llSay(0, "Assert failed: llCeil(2.4) != 3"); | ||
43 | } | ||
44 | if (llRound(2.4) != 2) { | ||
45 | llSay(0, "Assert failed: llRound(2.4) != 2"); | ||
46 | } | ||
47 | if (llFloor(2.5) != 2) { | ||
48 | llSay(0, "Assert failed: llFloor(2.5) != 2"); | ||
49 | } | ||
50 | if (llCeil(2.5) != 3) { | ||
51 | llSay(0, "Assert failed: llCeil(2.5) != 3"); | ||
52 | } | ||
53 | if (llRound(2.5) != 3) { | ||
54 | llSay(0, "Assert failed: llRound(2.5) != 3"); | ||
55 | } | ||
56 | if (llFloor(2.51) != 2) { | ||
57 | llSay(0, "Assert failed: llFloor(2.51) != 2"); | ||
58 | } | ||
59 | if (llCeil(2.51) != 3) { | ||
60 | llSay(0, "Assert failed: llCeil(2.51) != 3"); | ||
61 | } | ||
62 | if (llRound(2.51) != 3) { | ||
63 | llSay(0, "Assert failed: llRound(2.51) != 3"); | ||
64 | } | ||
65 | if (llFloor(3.49) != 3) { | ||
66 | llSay(0, "Assert failed: llFloor(3.49) != 3"); | ||
67 | } | ||
68 | if (llCeil(3.49) != 4) { | ||
69 | llSay(0, "Assert failed: llCeil(3.49) != 4"); | ||
70 | } | ||
71 | if (llRound(3.49) != 3) { | ||
72 | llSay(0, "Assert failed: llRound(3.49) != 3"); | ||
73 | } | ||
74 | if (llFloor(3.5000001) != 3) { | ||
75 | llSay(0, "Assert failed: llFloor(3.5000001) != 3"); | ||
76 | } | ||
77 | if (llCeil(3.5000001) != 4) { | ||
78 | llSay(0, "Assert failed: llCeil(3.5000001) != 4"); | ||
79 | } | ||
80 | if (llRound(3.5000001) != 4) { | ||
81 | llSay(0, "Assert failed: llRound(3.5000001) != 4"); | ||
82 | } | ||
83 | if (llFloor(3.51) != 3) { | ||
84 | llSay(0, "Assert failed: llFloor(3.51) != 3"); | ||
85 | } | ||
86 | if (llCeil(3.51) != 4) { | ||
87 | llSay(0, "Assert failed: llCeil(3.51) != 4"); | ||
88 | } | ||
89 | if (llRound(3.51) != 4) { | ||
90 | llSay(0, "Assert failed: llRound(3.51) != 4"); | ||
91 | } | ||
92 | if ((llFabs(0-llPow(2, 16))) != 65536) { | ||
93 | llSay(0, "Assert failed: (llFabs(0-llPow(2, 16))) != 65536"); | ||
94 | } | ||
95 | if (llMD5String("Hello, Avatar!",0) != "112abd47ceaae1c05a826828650434a6") { | ||
96 | llSay(0, "Assert failed: llMD5String('Hello, Avatar!',0) != '112abd47ceaae1c05a826828650434a6'"); | ||
97 | } | ||
98 | if (llModPow(2, 16, 37) != 9) { | ||
99 | llSay(0, "Assert failed: llModPow(2, 16, 37) != 9"); | ||
100 | } | ||
101 | touch_count++; | ||
102 | llSay(0, "Object was touched. Touch count: " + touch_count); | ||
103 | } | ||
104 | } | ||
diff --git a/bin/shutdown_commands.txt b/bin/shutdown_commands.txt index ec76ec2..4397749 100644 --- a/bin/shutdown_commands.txt +++ b/bin/shutdown_commands.txt | |||
@@ -1 +1,3 @@ | |||
1 | backup | 1 | ; You can place simulator console commands here to execute when the simulator is shut down |
2 | ; e.g. show stats | ||
3 | ; Lines starting with ; are comments | ||
diff --git a/bin/startup_commands.txt b/bin/startup_commands.txt new file mode 100644 index 0000000..1abfa64 --- /dev/null +++ b/bin/startup_commands.txt | |||
@@ -0,0 +1,3 @@ | |||
1 | ; You can place region console commands here to execute once the simulator has finished starting up | ||
2 | ; e.g. show stats | ||
3 | ; Lines start with ; are comments. | ||
diff --git a/bin/startup_commands.txt.example b/bin/startup_commands.txt.example deleted file mode 100644 index 3dba4b3..0000000 --- a/bin/startup_commands.txt.example +++ /dev/null | |||
@@ -1,4 +0,0 @@ | |||
1 | terrain load-tile f32 islandterrain_1024x512.raw 512 1024 1000 1000 | ||
2 | terrain multiply 0.1 | ||
3 | terrain add 5 | ||
4 | |||