aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-03-16 01:51:16 +0000
committerJustin Clark-Casey (justincc)2012-03-16 01:51:16 +0000
commit34f6f87b6cbea176805b5802804af9be89284f99 (patch)
tree116ae46e46d3498ff390a520f314aed25f7c4a8d
parentIn Top Scripts report, don't show scripts with no or less than 1 microsecond ... (diff)
downloadopensim-SC-34f6f87b6cbea176805b5802804af9be89284f99.zip
opensim-SC-34f6f87b6cbea176805b5802804af9be89284f99.tar.gz
opensim-SC-34f6f87b6cbea176805b5802804af9be89284f99.tar.bz2
opensim-SC-34f6f87b6cbea176805b5802804af9be89284f99.tar.xz
Remove unused bin/ScriptEngines/Default.lsl
It would certainly be nice to change the default script on disk, but this is currently unused and isn't a suitable default. At this location it would also stop an easy manual deletion of script engine compiles and state.
-rw-r--r--bin/ScriptEngines/Default.lsl104
1 files changed, 0 insertions, 104 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
2integer touch_count = 0;
3
4default {
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}