diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/ScenePresence.cs | 39 | ||||
-rw-r--r-- | bin/excuses | 463 | ||||
-rw-r--r-- | pCampBot/BotManager.cs | 254 | ||||
-rw-r--r-- | pCampBot/PhysicsBot.cs | 208 | ||||
-rw-r--r-- | pCampBot/PhysicsCamperBotREADME.txt | 21 | ||||
-rw-r--r-- | pCampBot/pCampBot.cs | 80 | ||||
-rw-r--r-- | pCampBot/pCampBot.csproj | 102 | ||||
-rw-r--r-- | pCampBot/prebuild.xml | 63 | ||||
-rw-r--r-- | pCampBot/runprebuild.bat | 2 | ||||
-rw-r--r-- | pCampBot/runprebuild.sh | 4 |
10 files changed, 1230 insertions, 6 deletions
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index 75ccf1a..659a1f5 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs | |||
@@ -1088,17 +1088,33 @@ namespace OpenSim.Region.Environment.Scenes | |||
1088 | (m_movementflag & (uint) AgentManager.ControlFlags.AGENT_CONTROL_UP_POS) != 0) | 1088 | (m_movementflag & (uint) AgentManager.ControlFlags.AGENT_CONTROL_UP_POS) != 0) |
1089 | { | 1089 | { |
1090 | // Client is moving, and colliding and pressing the page up button but isn't flying | 1090 | // Client is moving, and colliding and pressing the page up button but isn't flying |
1091 | SetMovementAnimation(Animations.AnimsLLUUID["JUMP"], 1); | 1091 | try |
1092 | { | ||
1093 | SetMovementAnimation(Animations.AnimsLLUUID["JUMP"], 1); | ||
1094 | } | ||
1095 | catch (KeyNotFoundException) | ||
1096 | { } | ||
1092 | } | 1097 | } |
1093 | else if (m_setAlwaysRun) | 1098 | else if (m_setAlwaysRun) |
1094 | { | 1099 | { |
1095 | // We are running | 1100 | // We are running |
1096 | SetMovementAnimation(Animations.AnimsLLUUID["RUN"], 1); | 1101 | try |
1102 | { | ||
1103 | SetMovementAnimation(Animations.AnimsLLUUID["RUN"], 1); | ||
1104 | } | ||
1105 | catch (KeyNotFoundException) | ||
1106 | { } | ||
1097 | } | 1107 | } |
1098 | else | 1108 | else |
1099 | { | 1109 | { |
1100 | // We're moving, but we're not doing anything else.. so play the stand animation | 1110 | // We're moving, but we're not doing anything else.. so play the stand animation |
1101 | SetMovementAnimation(Animations.AnimsLLUUID["WALK"], 1); | 1111 | try |
1112 | { | ||
1113 | SetMovementAnimation(Animations.AnimsLLUUID["WALK"], 1); | ||
1114 | } | ||
1115 | catch (KeyNotFoundException) | ||
1116 | { } | ||
1117 | |||
1102 | } | 1118 | } |
1103 | } | 1119 | } |
1104 | else | 1120 | else |
@@ -1130,7 +1146,13 @@ namespace OpenSim.Region.Environment.Scenes | |||
1130 | else | 1146 | else |
1131 | { | 1147 | { |
1132 | // We're not moving.. and we're not doing anything.. so play the stand animation | 1148 | // We're not moving.. and we're not doing anything.. so play the stand animation |
1133 | SetMovementAnimation(Animations.AnimsLLUUID["STAND"], 1); | 1149 | try |
1150 | { | ||
1151 | |||
1152 | SetMovementAnimation(Animations.AnimsLLUUID["STAND"], 1); | ||
1153 | } | ||
1154 | catch (KeyNotFoundException) | ||
1155 | { } | ||
1134 | } | 1156 | } |
1135 | } | 1157 | } |
1136 | } | 1158 | } |
@@ -1181,8 +1203,13 @@ namespace OpenSim.Region.Environment.Scenes | |||
1181 | direc.z *= 3; | 1203 | direc.z *= 3; |
1182 | //System.Console.WriteLine("Jump"); | 1204 | //System.Console.WriteLine("Jump"); |
1183 | // PreJump and jump happen too quickly. Many times prejump gets ignored. | 1205 | // PreJump and jump happen too quickly. Many times prejump gets ignored. |
1184 | SetMovementAnimation(Animations.AnimsLLUUID["PREJUMP"], 1); | 1206 | try |
1185 | SetMovementAnimation(Animations.AnimsLLUUID["JUMP"], 1); | 1207 | { |
1208 | SetMovementAnimation(Animations.AnimsLLUUID["PREJUMP"], 1); | ||
1209 | SetMovementAnimation(Animations.AnimsLLUUID["JUMP"], 1); | ||
1210 | } | ||
1211 | catch (KeyNotFoundException) | ||
1212 | { } | ||
1186 | } | 1213 | } |
1187 | } | 1214 | } |
1188 | } | 1215 | } |
diff --git a/bin/excuses b/bin/excuses new file mode 100644 index 0000000..30023bf --- /dev/null +++ b/bin/excuses | |||
@@ -0,0 +1,463 @@ | |||
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | ||
2 | <HTML><HEAD> | ||
3 | <META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD> | ||
4 | <BODY><PRE>clock speed | ||
5 | solar flares | ||
6 | electromagnetic radiation from satellite debris | ||
7 | static from nylon underwear | ||
8 | static from plastic slide rules | ||
9 | global warming | ||
10 | poor power conditioning | ||
11 | static buildup | ||
12 | doppler effect | ||
13 | hardware stress fractures | ||
14 | magnetic interference from money/credit cards | ||
15 | dry joints on cable plug | ||
16 | we're waiting for [the phone company] to fix that line | ||
17 | sounds like a Windows problem, try calling Microsoft support | ||
18 | temporary routing anomaly | ||
19 | somebody was calculating pi on the server | ||
20 | fat electrons in the lines | ||
21 | excess surge protection | ||
22 | floating point processor overflow | ||
23 | divide-by-zero error | ||
24 | POSIX compliance problem | ||
25 | monitor resolution too high | ||
26 | improperly oriented keyboard | ||
27 | network packets travelling uphill (use a carrier pigeon) | ||
28 | Decreasing electron flux | ||
29 | first Saturday after first full moon in Winter | ||
30 | radiosity depletion | ||
31 | CPU radiator broken | ||
32 | It works the way the Wang did, what's the problem | ||
33 | positron router malfunction | ||
34 | cellular telephone interference | ||
35 | techtonic stress | ||
36 | piezo-electric interference | ||
37 | (l)user error | ||
38 | working as designed | ||
39 | dynamic software linking table corrupted | ||
40 | heavy gravity fluctuation, move computer to floor rapidly | ||
41 | secretary plugged hairdryer into UPS | ||
42 | terrorist activities | ||
43 | not enough memory, go get system upgrade | ||
44 | interrupt configuration error | ||
45 | spaghetti cable cause packet failure | ||
46 | boss forgot system password | ||
47 | bank holiday - system operating credits not recharged | ||
48 | virus attack, luser responsible | ||
49 | waste water tank overflowed onto computer | ||
50 | Complete Transient Lockout | ||
51 | bad ether in the cables | ||
52 | Bogon emissions | ||
53 | Change in Earth's rotational speed | ||
54 | Cosmic ray particles crashed through the hard disk platter | ||
55 | Smell from unhygienic janitorial staff wrecked the tape heads | ||
56 | Little hamster in running wheel had coronary; waiting for replacement to be Fedexed from Wyoming | ||
57 | Evil dogs hypnotised the night shift | ||
58 | Plumber mistook routing panel for decorative wall fixture | ||
59 | Electricians made popcorn in the power supply | ||
60 | Groundskeepers stole the root password | ||
61 | high pressure system failure | ||
62 | failed trials, system needs redesigned | ||
63 | system has been recalled | ||
64 | not approved by the FCC | ||
65 | need to wrap system in aluminum foil to fix problem | ||
66 | not properly grounded, please bury computer | ||
67 | CPU needs recalibration | ||
68 | system needs to be rebooted | ||
69 | bit bucket overflow | ||
70 | descramble code needed from software company | ||
71 | only available on a need to know basis | ||
72 | knot in cables caused data stream to become twisted and kinked | ||
73 | nesting roaches shorted out the ether cable | ||
74 | The file system is full of it | ||
75 | Satan did it | ||
76 | Daemons did it | ||
77 | You're out of memory | ||
78 | There isn't any problem | ||
79 | Unoptimized hard drive | ||
80 | Typo in the code | ||
81 | Yes, yes, its called a design limitation | ||
82 | Look, buddy: Windows 3.1 IS A General Protection Fault. | ||
83 | That's a great computer you have there; have you considered how it would work as a BSD machine? | ||
84 | Please excuse me, I have to circuit an AC line through my head to get this database working. | ||
85 | Yeah, yo mama dresses you funny and you need a mouse to delete files. | ||
86 | Support staff hung over, send aspirin and come back LATER. | ||
87 | Someone is standing on the ethernet cable, causing a kink in the cable | ||
88 | Windows 95 undocumented "feature" | ||
89 | Runt packets | ||
90 | Password is too complex to decrypt | ||
91 | Boss' kid fucked up the machine | ||
92 | Electromagnetic energy loss | ||
93 | Budget cuts | ||
94 | Mouse chewed through power cable | ||
95 | Stale file handle (next time use Tupperware(tm)!) | ||
96 | Feature not yet implemented | ||
97 | Internet outage | ||
98 | Pentium FDIV bug | ||
99 | Vendor no longer supports the product | ||
100 | Small animal kamikaze attack on power supplies | ||
101 | The vendor put the bug there. | ||
102 | SIMM crosstalk. | ||
103 | IRQ dropout | ||
104 | Collapsed Backbone | ||
105 | Power company testing new voltage spike (creation) equipment | ||
106 | operators on strike due to broken coffee machine | ||
107 | backup tape overwritten with copy of system manager's favourite CD | ||
108 | UPS interrupted the server's power | ||
109 | The electrician didn't know what the yellow cable was so he yanked the ethernet out. | ||
110 | The keyboard isn't plugged in | ||
111 | The air conditioning water supply pipe ruptured over the machine room | ||
112 | The electricity substation in the car park blew up. | ||
113 | The rolling stones concert down the road caused a brown out | ||
114 | The salesman drove over the CPU board. | ||
115 | The monitor is plugged into the serial port | ||
116 | Root nameservers are out of sync | ||
117 | electro-magnetic pulses from French above ground nuke testing. | ||
118 | your keyboard's space bar is generating spurious keycodes. | ||
119 | the real ttys became pseudo ttys and vice-versa. | ||
120 | the printer thinks its a router. | ||
121 | the router thinks its a printer. | ||
122 | evil hackers from Serbia. | ||
123 | we just switched to FDDI. | ||
124 | halon system went off and killed the operators. | ||
125 | because Bill Gates is a Jehovah's witness and so nothing can work on St. Swithin's day. | ||
126 | user to computer ratio too high. | ||
127 | user to computer ration too low. | ||
128 | we just switched to Sprint. | ||
129 | it has Intel Inside | ||
130 | Sticky bits on disk. | ||
131 | Power Company having EMP problems with their reactor | ||
132 | The ring needs another token | ||
133 | new management | ||
134 | telnet: Unable to connect to remote host: Connection refused | ||
135 | SCSI Chain overterminated | ||
136 | It's not plugged in. | ||
137 | because of network lag due to too many people playing deathmatch | ||
138 | You put the disk in upside down. | ||
139 | Daemons loose in system. | ||
140 | User was distributing pornography on server; system seized by FBI. | ||
141 | BNC (brain not connected) | ||
142 | UBNC (user brain not connected) | ||
143 | LBNC (luser brain not connected) | ||
144 | disks spinning backwards - toggle the hemisphere jumper. | ||
145 | new guy cross-connected phone lines with ac power bus. | ||
146 | had to use hammer to free stuck disk drive heads. | ||
147 | Too few computrons available. | ||
148 | Flat tire on station wagon with tapes. ("Never underestimate the bandwidth of a station wagon full of tapes hurling down the highway" Andrew S. Tannenbaum) | ||
149 | Communications satellite used by the military for star wars. | ||
150 | Party-bug in the Aloha protocol. | ||
151 | Insert coin for new game | ||
152 | Dew on the telephone lines. | ||
153 | Arcserve crashed the server again. | ||
154 | Some one needed the powerstrip, so they pulled the switch plug. | ||
155 | My pony-tail hit the on/off switch on the power strip. | ||
156 | Big to little endian conversion error | ||
157 | You can tune a file system, but you can't tune a fish (from most tunefs man pages) | ||
158 | Dumb terminal | ||
159 | Zombie processes haunting the computer | ||
160 | Incorrect time synchronization | ||
161 | Defunct processes | ||
162 | Stubborn processes | ||
163 | non-redundant fan failure | ||
164 | monitor VLF leakage | ||
165 | bugs in the RAID | ||
166 | no "any" key on keyboard | ||
167 | root rot | ||
168 | Backbone Scoliosis | ||
169 | /pub/lunch | ||
170 | excessive collisions & not enough packet ambulances | ||
171 | le0: no carrier: transceiver cable problem? | ||
172 | broadcast packets on wrong frequency | ||
173 | popper unable to process jumbo kernel | ||
174 | NOTICE: alloc: /dev/null: filesystem full | ||
175 | pseudo-user on a pseudo-terminal | ||
176 | Recursive traversal of loopback mount points | ||
177 | Backbone adjustment | ||
178 | OS swapped to disk | ||
179 | vapors from evaporating sticky-note adhesives | ||
180 | sticktion | ||
181 | short leg on process table | ||
182 | multicasts on broken packets | ||
183 | ether leak | ||
184 | Atilla the Hub | ||
185 | endothermal recalibration | ||
186 | filesystem not big enough for Jumbo Kernel Patch | ||
187 | loop found in loop in redundant loopback | ||
188 | system consumed all the paper for paging | ||
189 | permission denied | ||
190 | Reformatting Page. Wait... | ||
191 | ..disk or the processor is on fire. | ||
192 | SCSI's too wide. | ||
193 | Proprietary Information. | ||
194 | Just type 'mv * /dev/null'. | ||
195 | runaway cat on system. | ||
196 | Did you pay the new Support Fee? | ||
197 | We only support a 1200 bps connection. | ||
198 | We only support a 28000 bps connection. | ||
199 | Me no internet, only janitor, me just wax floors. | ||
200 | I'm sorry a pentium won't do, you need an SGI to connect with us. | ||
201 | Post-it Note Sludge leaked into the monitor. | ||
202 | the curls in your keyboard cord are losing electricity. | ||
203 | The monitor needs another box of pixels. | ||
204 | RPC_PMAP_FAILURE | ||
205 | kernel panic: write-only-memory (/dev/wom0) capacity exceeded. | ||
206 | Write-only-memory subsystem too slow for this machine. Contact your local dealer. | ||
207 | Just pick up the phone and give modem connect sounds. "Well you said we should get more lines so we don't have voice lines." | ||
208 | Quantum dynamics are affecting the transistors | ||
209 | Police are examining all internet packets in the search for a narco-net-trafficker | ||
210 | We are currently trying a new concept of using a live mouse. Unfortunately, one has yet to survive being hooked up to the computer.....please bear with us. | ||
211 | Your mail is being routed through Germany ... and they're censoring us. | ||
212 | Only people with names beginning with 'A' are getting mail this week (a la Microsoft) | ||
213 | We didn't pay the Internet bill and it's been cut off. | ||
214 | Lightning strikes. | ||
215 | Of course it doesn't work. We've performed a software upgrade. | ||
216 | Change your language to Finnish. | ||
217 | Fluorescent lights are generating negative ions. If turning them off doesn't work, take them out and put tin foil on the ends. | ||
218 | High nuclear activity in your area. | ||
219 | What office are you in? Oh, that one. Did you know that your building was built over the universities first nuclear research site? And wow, aren't you the lucky one, your office is right over where the core is buried! | ||
220 | The MGs ran out of gas. | ||
221 | The UPS doesn't have a battery backup. | ||
222 | Recursivity. Call back if it happens again. | ||
223 | Someone thought The Big Red Button was a light switch. | ||
224 | The mainframe needs to rest. It's getting old, you know. | ||
225 | I'm not sure. Try calling the Internet's head office -- it's in the book. | ||
226 | The lines are all busy (busied out, that is -- why let them in to begin with?). | ||
227 | Jan 9 16:41:27 huber su: 'su root' succeeded for .... on /dev/pts/1 | ||
228 | It's those computer people in X {city of world}. They keep stuffing things up. | ||
229 | A star wars satellite accidently blew up the WAN. | ||
230 | Fatal error right in front of screen | ||
231 | That function is not currently supported, but Bill Gates assures us it will be featured in the next upgrade. | ||
232 | wrong polarity of neutron flow | ||
233 | Lusers learning curve appears to be fractal | ||
234 | We had to turn off that service to comply with the CDA Bill. | ||
235 | Ionization from the air-conditioning | ||
236 | TCP/IP UDP alarm threshold is set too low. | ||
237 | Someone is broadcasting pygmy packets and the router doesn't know how to deal with them. | ||
238 | The new frame relay network hasn't bedded down the software loop transmitter yet. | ||
239 | Fanout dropping voltage too much, try cutting some of those little traces | ||
240 | Plate voltage too low on demodulator tube | ||
241 | You did wha... oh _dear_.... | ||
242 | CPU needs bearings repacked | ||
243 | Too many little pins on CPU confusing it, bend back and forth until 10-20% are neatly removed. Do _not_ leave metal bits visible! | ||
244 | _Rosin_ core solder? But... | ||
245 | Software uses US measurements, but the OS is in metric... | ||
246 | The computer fleetly, mouse and all. | ||
247 | Your cat tried to eat the mouse. | ||
248 | The Borg tried to assimilate your system. Resistance is futile. | ||
249 | It must have been the lightning storm we had (yesterday) (last week) (last month) | ||
250 | Due to Federal Budget problems we have been forced to cut back on the number of users able to access the system at one time. (namely none allowed....) | ||
251 | Too much radiation coming from the soil. | ||
252 | Unfortunately we have run out of bits/bytes/whatever. Don't worry, the next supply will be coming next week. | ||
253 | Program load too heavy for processor to lift. | ||
254 | Processes running slowly due to weak power supply | ||
255 | Our ISP is having {switching,routing,SMDS,frame relay} problems | ||
256 | We've run out of licenses | ||
257 | Interference from lunar radiation | ||
258 | Standing room only on the bus. | ||
259 | You need to install an RTFM interface. | ||
260 | That would be because the software doesn't work. | ||
261 | That's easy to fix, but I can't be bothered. | ||
262 | Someone's tie is caught in the printer, and if anything else gets printed, he'll be in it too. | ||
263 | We're upgrading /dev/null | ||
264 | The Usenet news is out of date | ||
265 | Our POP server was kidnapped by a weasel. | ||
266 | It's stuck in the Web. | ||
267 | Your modem doesn't speak English. | ||
268 | The mouse escaped. | ||
269 | All of the packets are empty. | ||
270 | The UPS is on strike. | ||
271 | Neutrino overload on the nameserver | ||
272 | Melting hard drives | ||
273 | Someone has messed up the kernel pointers | ||
274 | The kernel license has expired | ||
275 | Netscape has crashed | ||
276 | The cord jumped over and hit the power switch. | ||
277 | It was OK before you touched it. | ||
278 | Bit rot | ||
279 | U.S. Postal Service | ||
280 | Your Flux Capacitor has gone bad. | ||
281 | The Dilithium Crystals need to be rotated. | ||
282 | The static electricity routing is acting up... | ||
283 | Traceroute says that there is a routing problem in the backbone. It's not our problem. | ||
284 | The co-locator cannot verify the frame-relay gateway to the ISDN server. | ||
285 | High altitude condensation from U.S.A.F prototype aircraft has contaminated the primary subnet mask. Turn off your computer for 9 days to avoid damaging it. | ||
286 | Lawn mower blade in your fan need sharpening | ||
287 | Electrons on a bender | ||
288 | Telecommunications is upgrading. | ||
289 | Telecommunications is downgrading. | ||
290 | Telecommunications is downshifting. | ||
291 | Hard drive sleeping. Let it wake up on it's own... | ||
292 | Interference between the keyboard and the chair. | ||
293 | The CPU has shifted, and become decentralized. | ||
294 | Due to the CDA, we no longer have a root account. | ||
295 | We ran out of dial tone and we're and waiting for the phone company to deliver another bottle. | ||
296 | You must've hit the wrong any key. | ||
297 | PCMCIA slave driver | ||
298 | The Token fell out of the ring. Call us when you find it. | ||
299 | The hardware bus needs a new token. | ||
300 | Too many interrupts | ||
301 | Not enough interrupts | ||
302 | The data on your hard drive is out of balance. | ||
303 | Digital Manipulator exceeding velocity parameters | ||
304 | appears to be a Slow/Narrow SCSI-0 Interface problem | ||
305 | microelectronic Riemannian curved-space fault in write-only file system | ||
306 | fractal radiation jamming the backbone | ||
307 | routing problems on the neural net | ||
308 | IRQ-problems with the Un-Interruptible-Power-Supply | ||
309 | CPU-angle has to be adjusted because of vibrations coming from the nearby road | ||
310 | emissions from GSM-phones | ||
311 | CD-ROM server needs recalibration | ||
312 | firewall needs cooling | ||
313 | asynchronous inode failure | ||
314 | transient bus protocol violation | ||
315 | incompatible bit-registration operators | ||
316 | your process is not ISO 9000 compliant | ||
317 | You need to upgrade your VESA local bus to a MasterCard local bus. | ||
318 | The recent proliferation of Nuclear Testing | ||
319 | Elves on strike. (Why do they call EMAG Elf Magic) | ||
320 | Internet exceeded Luser level, please wait until a luser logs off before attempting to log back on. | ||
321 | Your EMAIL is now being delivered by the USPS. | ||
322 | Your computer hasn't been returning all the bits it gets from the Internet. | ||
323 | You've been infected by the Telescoping Hubble virus. | ||
324 | Scheduled global CPU outage | ||
325 | Your Pentium has a heating problem - try cooling it with ice cold water.(Do not turn off your computer, you do not want to cool down the Pentium Chip while he isn't working, do you?) | ||
326 | Your processor has processed too many instructions. Turn it off immediately, do not type any commands!! | ||
327 | Your packets were eaten by the terminator | ||
328 | Your processor does not develop enough heat. | ||
329 | We need a licensed electrician to replace the light bulbs in the computer room. | ||
330 | The POP server is out of Coke | ||
331 | Fiber optics caused gas main leak | ||
332 | Server depressed, needs Prozac | ||
333 | quantum decoherence | ||
334 | those damn raccoons! | ||
335 | suboptimal routing experience | ||
336 | A plumber is needed, the network drain is clogged | ||
337 | 50% of the manual is in .pdf readme files | ||
338 | the AA battery in the wallclock sends magnetic interference | ||
339 | the xy axis in the trackball is coordinated with the summer solstice | ||
340 | the butane lighter causes the pincushioning | ||
341 | old inkjet cartridges emanate barium-based fumes | ||
342 | manager in the cable duct | ||
343 | We'll fix that in the next (upgrade, update, patch release, service pack). | ||
344 | HTTPD Error 666 : BOFH was here | ||
345 | HTTPD Error 4004 : very old Intel cpu - insufficient processing power | ||
346 | The ATM board has run out of 10 pound notes. We are having a whip round to refill it, care to contribute ? | ||
347 | Network failure - call NBC | ||
348 | Having to manually track the satellite. | ||
349 | Your/our computer(s) had suffered a memory leak, and we are waiting for them to be topped up. | ||
350 | The rubber band broke | ||
351 | We're on Token Ring, and it looks like the token got loose. | ||
352 | Stray Alpha Particles from memory packaging caused Hard Memory Error on Server. | ||
353 | paradigm shift...without a clutch | ||
354 | PEBKAC (Problem Exists Between Keyboard And Chair) | ||
355 | The cables are not the same length. | ||
356 | Second-system effect. | ||
357 | Chewing gum on /dev/sd3c | ||
358 | Boredom in the Kernel. | ||
359 | the daemons! the daemons! the terrible daemons! | ||
360 | I'd love to help you -- it's just that the Boss won't let me near the computer. | ||
361 | struck by the Good Times virus | ||
362 | YOU HAVE AN I/O ERROR -> Incompetent Operator error | ||
363 | Your parity check is overdrawn and you're out of cache. | ||
364 | Communist revolutionaries taking over the server room and demanding all the computers in the building or they shoot the sysadmin. Poor misguided fools. | ||
365 | Plasma conduit breach | ||
366 | Out of cards on drive D: | ||
367 | Sand fleas eating the Internet cables | ||
368 | parallel processors running perpendicular today | ||
369 | ATM cell has no roaming feature turned on, notebooks can't connect | ||
370 | Webmasters kidnapped by evil cult. | ||
371 | Failure to adjust for daylight savings time. | ||
372 | Virus transmitted from computer to sysadmins. | ||
373 | Virus due to computers having unsafe sex. | ||
374 | Incorrectly configured static routes on the corerouters. | ||
375 | Forced to support NT servers; sysadmins quit. | ||
376 | Suspicious pointer corrupted virtual machine | ||
377 | It's the InterNIC's fault. | ||
378 | Root name servers corrupted. | ||
379 | Budget cuts forced us to sell all the power cords for the servers. | ||
380 | Someone hooked the twisted pair wires into the answering machine. | ||
381 | Operators killed by year 2000 bug bite. | ||
382 | We've picked COBOL as the language of choice. | ||
383 | Operators killed when huge stack of backup tapes fell over. | ||
384 | Robotic tape changer mistook operator's tie for a backup tape. | ||
385 | Someone was smoking in the computer room and set off the halon systems. | ||
386 | Your processor has taken a ride to Heaven's Gate on the UFO behind Hale-Bopp's comet. | ||
387 | it's an ID-10-T error | ||
388 | Dyslexics retyping hosts file on servers | ||
389 | The Internet is being scanned for viruses. | ||
390 | Your computer's union contract is set to expire at midnight. | ||
391 | Bad user karma. | ||
392 | /dev/clue was linked to /dev/null | ||
393 | Increased sunspot activity. | ||
394 | We already sent around a notice about that. | ||
395 | It's union rules. There's nothing we can do about it. Sorry. | ||
396 | Interference from the Van Allen Belt. | ||
397 | Jupiter is aligned with Mars. | ||
398 | Redundant ACLs. | ||
399 | Mail server hit by UniSpammer. | ||
400 | T-1's congested due to porn traffic to the news server. | ||
401 | Data for intranet got routed through the extranet and landed on the internet. | ||
402 | We are a 100% Microsoft Shop. | ||
403 | We are Microsoft. What you are experiencing is not a problem; it is an undocumented feature. | ||
404 | Sales staff sold a product we don't offer. | ||
405 | Secretary sent chain letter to all 5000 employees. | ||
406 | Sysadmin didn't hear pager go off due to loud music from bar-room speakers. | ||
407 | Sysadmin accidentally destroyed pager with a large hammer. | ||
408 | Sysadmins unavailable because they are in a meeting talking about why they are unavailable so much. | ||
409 | Bad cafeteria food landed all the sysadmins in the hospital. | ||
410 | Route flapping at the NAP. | ||
411 | Computers under water due to SYN flooding. | ||
412 | The vulcan-death-grip ping has been applied. | ||
413 | Electrical conduits in machine room are melting. | ||
414 | Traffic jam on the Information Superhighway. | ||
415 | Radial Telemetry Infiltration | ||
416 | Cow-tippers tipped a cow onto the server. | ||
417 | tachyon emissions overloading the system | ||
418 | Maintenance window broken | ||
419 | We're out of slots on the server | ||
420 | Computer room being moved. Our systems are down for the weekend. | ||
421 | Sysadmins busy fighting SPAM. | ||
422 | Repeated reboots of the system failed to solve problem | ||
423 | Feature was not beta tested | ||
424 | Domain controller not responding | ||
425 | Someone else stole your IP address, call the Internet detectives! | ||
426 | It's not RFC-822 compliant. | ||
427 | operation failed because: there is no message for this error (#1014) | ||
428 | stop bit received | ||
429 | internet is needed to catch the etherbunny | ||
430 | network down, IP packets delivered via UPS | ||
431 | Firmware update in the coffee machine | ||
432 | Temporal anomaly | ||
433 | Mouse has out-of-cheese-error | ||
434 | Borg implants are failing | ||
435 | Borg nanites have infested the server | ||
436 | error: one bad user found in front of screen | ||
437 | Please state the nature of the technical emergency | ||
438 | Internet shut down due to maintenance | ||
439 | Daemon escaped from pentagram | ||
440 | crop circles in the corn shell | ||
441 | sticky bit has come loose | ||
442 | Hot Java has gone cold | ||
443 | Cache miss - please take better aim next time | ||
444 | Hash table has woodworm | ||
445 | Trojan horse ran out of hay | ||
446 | Zombie processes detected, machine is haunted. | ||
447 | overflow error in /dev/null | ||
448 | Browser's cookie is corrupted -- someone's been nibbling on it. | ||
449 | Mailer-daemon is busy burning your message in hell. | ||
450 | According to Microsoft, it's by design | ||
451 | vi needs to be upgraded to vii | ||
452 | greenpeace free'd the mallocs | ||
453 | Terrorists crashed an airplane into the server room, have to remove /bin/laden. (rm -rf /bin/laden) | ||
454 | astropneumatic oscillations in the water-cooling | ||
455 | Somebody ran the operating system through a spelling checker. | ||
456 | Rhythmic variations in the voltage reaching the power supply. | ||
457 | Keyboard Actuator Failure. Order and Replace. | ||
458 | Packet held up at customs. | ||
459 | Propagation delay. | ||
460 | High line impedance. | ||
461 | Someone set us up the bomb. | ||
462 | Power surges on the Underground. | ||
463 | </PRE></BODY></HTML> | ||
diff --git a/pCampBot/BotManager.cs b/pCampBot/BotManager.cs new file mode 100644 index 0000000..a9cd643 --- /dev/null +++ b/pCampBot/BotManager.cs | |||
@@ -0,0 +1,254 @@ | |||
1 | /* | ||
2 | * Copyright (c) Contributors, http://opensimulator.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 | |||
29 | using System; | ||
30 | using System.Collections.Generic; | ||
31 | using System.Text; | ||
32 | using System.IO; | ||
33 | using libsecondlife; | ||
34 | using libsecondlife.Packets; | ||
35 | using Nini.Config; | ||
36 | using System.Threading; | ||
37 | using OpenSim.Framework; | ||
38 | using OpenSim.Framework.Console; | ||
39 | |||
40 | namespace pCampBot | ||
41 | { | ||
42 | /// <summary> | ||
43 | /// Thread/Bot manager for the application | ||
44 | /// </summary> | ||
45 | public class BotManager : conscmd_callback | ||
46 | { | ||
47 | protected LogBase m_log; | ||
48 | protected List<PhysicsBot> m_lBot; | ||
49 | protected Thread[] m_td; | ||
50 | protected string m_logFilename = "botlog.log"; | ||
51 | protected bool m_verbose = true; | ||
52 | protected Random somthing = new Random(System.Environment.TickCount); | ||
53 | protected int numbots = 0; | ||
54 | protected IConfig Previous_config; | ||
55 | |||
56 | /// <summary> | ||
57 | /// Constructor Creates Mainlog.Instance to take commands and provide the place to write data | ||
58 | /// </summary> | ||
59 | public BotManager() | ||
60 | { | ||
61 | |||
62 | m_log = CreateLog(); | ||
63 | MainLog.Instance = m_log; | ||
64 | m_lBot = new List<PhysicsBot>(); | ||
65 | |||
66 | } | ||
67 | |||
68 | /// <summary> | ||
69 | /// Startup number of bots specified in the starting arguments | ||
70 | /// </summary> | ||
71 | /// <param name="botcount">How many bots to start up</param> | ||
72 | /// <param name="cs">The configuration for the bots to use</param> | ||
73 | public void dobotStartup(int botcount, IConfig cs) | ||
74 | { | ||
75 | Previous_config = cs; | ||
76 | m_td = new Thread[botcount]; | ||
77 | for (int i = 0; i < botcount; i++) | ||
78 | { | ||
79 | startupBot(i, cs); | ||
80 | |||
81 | |||
82 | } | ||
83 | |||
84 | } | ||
85 | /// <summary> | ||
86 | /// Add additional bots (and threads) to our bot pool | ||
87 | /// </summary> | ||
88 | /// <param name="botcount">How Many of them to add</param> | ||
89 | public void addbots(int botcount) | ||
90 | { | ||
91 | int len = m_td.Length; | ||
92 | Thread[] m_td2 = new Thread[len + botcount]; | ||
93 | int i; | ||
94 | for (i = 0; i < len; i++) | ||
95 | { | ||
96 | m_td2[i] = m_td[i]; | ||
97 | } | ||
98 | m_td = m_td2; | ||
99 | int newlen = len + botcount; | ||
100 | for (i = i; i < newlen; i++) | ||
101 | { | ||
102 | startupBot(i, Previous_config); | ||
103 | } | ||
104 | |||
105 | } | ||
106 | |||
107 | /// <summary> | ||
108 | /// This starts up the bot and stores the thread for the bot in the thread array | ||
109 | /// </summary> | ||
110 | /// <param name="pos">The position in the thread array to stick the bot's thread</param> | ||
111 | /// <param name="cs">Configuration of the bot</param> | ||
112 | public void startupBot(int pos, IConfig cs) | ||
113 | { | ||
114 | PhysicsBot pb = new PhysicsBot(cs); | ||
115 | |||
116 | pb.OnConnected += handlebotEvent; | ||
117 | pb.OnDisconnected += handlebotEvent; | ||
118 | if (cs.GetString("firstname", "random") == "random") pb.firstname = CreateRandomName(); | ||
119 | if (cs.GetString("lastname", "random") == "random") pb.lastname = CreateRandomName(); | ||
120 | |||
121 | m_td[pos] = new Thread(pb.startup); | ||
122 | m_td[pos].Start(); | ||
123 | m_lBot.Add(pb); | ||
124 | |||
125 | } | ||
126 | |||
127 | /// <summary> | ||
128 | /// Creates a random name for the bot | ||
129 | /// </summary> | ||
130 | /// <returns></returns> | ||
131 | private string CreateRandomName() | ||
132 | { | ||
133 | string returnstring = ""; | ||
134 | string chars = "abcdefghijklmnopqrstuvwxyz0123456789"; | ||
135 | |||
136 | for (int i = 0; i < 7; i++) | ||
137 | { | ||
138 | returnstring += chars.Substring(somthing.Next(chars.Length),1); | ||
139 | } | ||
140 | return returnstring; | ||
141 | |||
142 | } | ||
143 | |||
144 | /// <summary> | ||
145 | /// High level connnected/disconnected events so we can keep track of our threads by proxy | ||
146 | /// </summary> | ||
147 | /// <param name="callbot"></param> | ||
148 | /// <param name="eventt"></param> | ||
149 | public void handlebotEvent(PhysicsBot callbot, EventType eventt) | ||
150 | { | ||
151 | switch (eventt) | ||
152 | { | ||
153 | case EventType.CONNECTED: | ||
154 | MainLog.Instance.Verbose(" " + callbot.firstname + " " + callbot.lastname, "Connected"); | ||
155 | numbots++; | ||
156 | break; | ||
157 | case EventType.DISCONNECTED: | ||
158 | MainLog.Instance.Verbose(" " + callbot.firstname + " " + callbot.lastname, "Disconnected"); | ||
159 | m_td[m_lBot.IndexOf(callbot)].Abort(); | ||
160 | numbots--; | ||
161 | if (numbots >1) | ||
162 | Environment.Exit(0); | ||
163 | break; | ||
164 | |||
165 | } | ||
166 | } | ||
167 | /// <summary> | ||
168 | /// Shutting down all bots | ||
169 | /// </summary> | ||
170 | public void doBotShutdown() | ||
171 | { | ||
172 | foreach (PhysicsBot pb in m_lBot) | ||
173 | { | ||
174 | pb.shutdown(); | ||
175 | } | ||
176 | |||
177 | |||
178 | |||
179 | } | ||
180 | |||
181 | /// <summary> | ||
182 | /// Standard Creatlog routine | ||
183 | /// </summary> | ||
184 | /// <returns></returns> | ||
185 | protected LogBase CreateLog() | ||
186 | { | ||
187 | if (!Directory.Exists(Util.logDir())) | ||
188 | { | ||
189 | Directory.CreateDirectory(Util.logDir()); | ||
190 | } | ||
191 | |||
192 | return new LogBase((Path.Combine(Util.logDir(), m_logFilename)), "Region", this, m_verbose); | ||
193 | } | ||
194 | |||
195 | /// <summary> | ||
196 | /// I don't think the bots use this.. | ||
197 | /// </summary> | ||
198 | /// <param name="commandParams"></param> | ||
199 | /// <param name="pos"></param> | ||
200 | /// <returns></returns> | ||
201 | private string CombineParams(string[] commandParams, int pos) | ||
202 | { | ||
203 | string result = String.Empty; | ||
204 | for (int i = pos; i < commandParams.Length; i++) | ||
205 | { | ||
206 | result += commandParams[i] + " "; | ||
207 | } | ||
208 | result = result.TrimEnd(' '); | ||
209 | return result; | ||
210 | } | ||
211 | |||
212 | /// <summary> | ||
213 | /// Command runnint tool.. Currently use it to add bots, shutdown and (dangerous)Forcequit | ||
214 | /// </summary> | ||
215 | /// <param name="command"></param> | ||
216 | /// <param name="cmdparams"></param> | ||
217 | public void RunCmd(string command, string[] cmdparams) | ||
218 | { | ||
219 | switch (command) | ||
220 | { | ||
221 | case "shutdown": | ||
222 | MainLog.Instance.Warn("BOTMANAGER", "Shutting down bots"); | ||
223 | doBotShutdown(); | ||
224 | break; | ||
225 | case "quit": | ||
226 | MainLog.Instance.Warn("DANGER", "This should only be used to quit the program if you've already used the shutdown command and the program hasn't quit"); | ||
227 | Environment.Exit(0); | ||
228 | break; | ||
229 | case "addbots": | ||
230 | int newbots = 0; | ||
231 | Helpers.TryParse(cmdparams[0], out newbots); | ||
232 | |||
233 | if (newbots > 0) | ||
234 | addbots(newbots); | ||
235 | break; | ||
236 | case "help": | ||
237 | MainLog.Instance.Notice("HELP", "\nshutdown - graceful shutdown\naddbots <n> - adds n bots to the test\nquit - forcequits, dangerous if you have not already run shutdown"); | ||
238 | break; | ||
239 | |||
240 | |||
241 | } | ||
242 | } | ||
243 | |||
244 | /// <summary> | ||
245 | /// Required method to implement the conscmd_callback interface | ||
246 | /// </summary> | ||
247 | /// <param name="ShowWhat"></param> | ||
248 | public void Show(string ShowWhat) | ||
249 | { | ||
250 | |||
251 | } | ||
252 | } | ||
253 | |||
254 | } | ||
diff --git a/pCampBot/PhysicsBot.cs b/pCampBot/PhysicsBot.cs new file mode 100644 index 0000000..53a774a --- /dev/null +++ b/pCampBot/PhysicsBot.cs | |||
@@ -0,0 +1,208 @@ | |||
1 | /* | ||
2 | * Copyright (c) Contributors, http://opensimulator.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 | |||
29 | using System; | ||
30 | using System.Collections.Generic; | ||
31 | using System.IO; | ||
32 | using System.Text; | ||
33 | using libsecondlife; | ||
34 | using libsecondlife.Packets; | ||
35 | using Nini.Config; | ||
36 | using System.Threading; | ||
37 | using OpenSim.Framework; | ||
38 | using OpenSim.Framework.Console; | ||
39 | using Timer=System.Timers.Timer; | ||
40 | |||
41 | |||
42 | |||
43 | namespace pCampBot | ||
44 | { | ||
45 | public class PhysicsBot | ||
46 | { | ||
47 | public delegate void AnEvent(PhysicsBot callbot, EventType someevent); // event delegate for bot events | ||
48 | public IConfig startupConfig; // bot config, passed from BotManager | ||
49 | |||
50 | public string firstname; | ||
51 | public string lastname; | ||
52 | public string password; | ||
53 | public string loginURI; | ||
54 | |||
55 | public event AnEvent OnConnected; | ||
56 | public event AnEvent OnDisconnected; | ||
57 | |||
58 | protected Timer m_action; // Action Timer | ||
59 | |||
60 | protected Random somthing = new Random(System.Environment.TickCount);// We do stuff randomly here | ||
61 | |||
62 | //New instance of a SecondLife client | ||
63 | public SecondLife client = new SecondLife(); | ||
64 | |||
65 | protected string[] talkarray; | ||
66 | /// <summary> | ||
67 | /// | ||
68 | /// </summary> | ||
69 | /// <param name="bsconfig">nini config for the bot</param> | ||
70 | public PhysicsBot(IConfig bsconfig) | ||
71 | { | ||
72 | startupConfig = bsconfig; | ||
73 | readconfig(); | ||
74 | talkarray = readexcuses(); | ||
75 | } | ||
76 | |||
77 | //We do our actions here. This is where one would | ||
78 | //add additional steps and/or things the bot should do | ||
79 | |||
80 | void m_action_Elapsed(object sender, System.Timers.ElapsedEventArgs e) | ||
81 | { | ||
82 | //client.Throttle.Task = 500000f; | ||
83 | //client.Throttle.Set(); | ||
84 | |||
85 | client.Self.Movement.AlwaysRun = true; | ||
86 | LLVector3 pos = client.Self.SimPosition; | ||
87 | LLVector3 newpos = new LLVector3(somthing.Next(255),somthing.Next(255),somthing.Next(255)); | ||
88 | |||
89 | |||
90 | client.Self.Movement.TurnToward(newpos); | ||
91 | for (int i = 0; i < 2000; i++) | ||
92 | { | ||
93 | client.Self.Movement.AtPos = true; | ||
94 | } | ||
95 | client.Self.Jump(); | ||
96 | string randomf = talkarray[somthing.Next(talkarray.Length)]; | ||
97 | if (talkarray.Length > 1 && randomf.Length > 1) | ||
98 | client.Self.Chat("Can't do it, " + randomf, 0, ChatType.Normal); | ||
99 | |||
100 | Thread.Sleep(somthing.Next(1,20)); | ||
101 | |||
102 | } | ||
103 | |||
104 | /// <summary> | ||
105 | /// Read the Nini config and initialize | ||
106 | /// </summary> | ||
107 | public void readconfig() | ||
108 | { | ||
109 | firstname = startupConfig.GetString("firstname", "random"); | ||
110 | lastname = startupConfig.GetString("lastname", "random"); | ||
111 | password = startupConfig.GetString("password", "12345"); | ||
112 | loginURI = startupConfig.GetString("loginuri", "http://10.1.1.5:9000"); | ||
113 | |||
114 | |||
115 | |||
116 | } | ||
117 | |||
118 | /// <summary> | ||
119 | /// Tells LibSecondLife to logout and disconnect. Raises the disconnect events once it finishes. | ||
120 | /// </summary> | ||
121 | public void shutdown() | ||
122 | { | ||
123 | client.Network.Logout(); | ||
124 | } | ||
125 | /// <summary> | ||
126 | /// This is the bot startup loop. | ||
127 | /// </summary> | ||
128 | public void startup() | ||
129 | { | ||
130 | |||
131 | client.Settings.LOGIN_SERVER = loginURI; | ||
132 | client.Network.OnConnected += new NetworkManager.ConnectedCallback(this.Network_OnConnected); | ||
133 | client.Network.OnSimConnected += new NetworkManager.SimConnectedCallback(this.Network_OnConnected); | ||
134 | client.Network.OnDisconnected += new NetworkManager.DisconnectedCallback(this.Network_OnDisconnected); | ||
135 | if (client.Network.Login(firstname, lastname, password, "pCampBot", "Your name")) | ||
136 | { | ||
137 | |||
138 | if (OnConnected != null) | ||
139 | { | ||
140 | m_action = new Timer(somthing.Next(1000, 10000)); | ||
141 | m_action.Elapsed += new System.Timers.ElapsedEventHandler(m_action_Elapsed); | ||
142 | m_action.Start(); | ||
143 | OnConnected(this, EventType.CONNECTED); | ||
144 | client.Self.Jump(); | ||
145 | |||
146 | } | ||
147 | } | ||
148 | else | ||
149 | { | ||
150 | |||
151 | MainLog.Instance.Error(firstname + " " + lastname,"Can't Log in: " + client.Network.LoginMessage); | ||
152 | if (OnDisconnected != null) | ||
153 | { | ||
154 | OnDisconnected(this, EventType.DISCONNECTED); | ||
155 | } | ||
156 | } | ||
157 | |||
158 | } | ||
159 | |||
160 | public void Network_OnConnected(object sender) | ||
161 | { | ||
162 | if (OnConnected != null) | ||
163 | { | ||
164 | OnConnected(this, EventType.CONNECTED); | ||
165 | } | ||
166 | |||
167 | } | ||
168 | public void Simulator_Connected(object sender) | ||
169 | { | ||
170 | |||
171 | |||
172 | } | ||
173 | |||
174 | public void Network_OnDisconnected(NetworkManager.DisconnectType reason, string message) | ||
175 | { | ||
176 | if (OnDisconnected != null) | ||
177 | { | ||
178 | OnDisconnected(this,EventType.DISCONNECTED); | ||
179 | } | ||
180 | |||
181 | |||
182 | } | ||
183 | public string[] readexcuses() | ||
184 | { | ||
185 | |||
186 | |||
187 | |||
188 | string allexcuses = ""; | ||
189 | |||
190 | |||
191 | string file = Path.Combine(Util.configDir(), "excuses"); | ||
192 | if (File.Exists(file)) | ||
193 | { | ||
194 | StreamReader csr = File.OpenText(file); | ||
195 | allexcuses = csr.ReadToEnd(); | ||
196 | csr.Close(); | ||
197 | } | ||
198 | |||
199 | |||
200 | return allexcuses.Split(Environment.NewLine.ToCharArray()); | ||
201 | |||
202 | } | ||
203 | |||
204 | |||
205 | } | ||
206 | |||
207 | |||
208 | } | ||
diff --git a/pCampBot/PhysicsCamperBotREADME.txt b/pCampBot/PhysicsCamperBotREADME.txt new file mode 100644 index 0000000..988f589 --- /dev/null +++ b/pCampBot/PhysicsCamperBotREADME.txt | |||
@@ -0,0 +1,21 @@ | |||
1 | This is the PhysicsCamperbot libslBot tester. | ||
2 | |||
3 | This is designed to be run in standalone mode with authorize accounts turned off as a way to stress test the simulator. | ||
4 | It creates <N> clients that log in, randomly jump/walk around, and say excuses from the BOFH | ||
5 | |||
6 | **Warning:** Using this bot on a public grid could get you banned perminantly, so just say No! to greifing! | ||
7 | |||
8 | -----Setup ----- | ||
9 | Run the prebuilds for it IN THIS FOLDER and then open the created solution and compile it. It will end up in the regular opensim bin folder. | ||
10 | |||
11 | -----Running the bot---- | ||
12 | |||
13 | windows: pCampBot.exe -botcount <N> -loginuri <URI> | ||
14 | *nix: mono pCampBot.exe -botcount <N> -loginuri <URI> | ||
15 | |||
16 | The names it produces are random by default, however, you can specify either a firstname or a lastname in the command line also. | ||
17 | ex: pCampBot.exe -botcount <N> -loginuri <URI> -lastname <lastname> | ||
18 | |||
19 | If you specify both a firstname *and* a lastname, you'll likely run into trouble unless you're only running a single bot. In that case, there's also a password option. | ||
20 | |||
21 | pCampBot.exe -botcount 1 -loginuri http://somegrid.com:8002 -firstname SomeDude -lastname SomeDude -password GobbleDeGook | ||
diff --git a/pCampBot/pCampBot.cs b/pCampBot/pCampBot.cs new file mode 100644 index 0000000..983eaf0 --- /dev/null +++ b/pCampBot/pCampBot.cs | |||
@@ -0,0 +1,80 @@ | |||
1 | /* | ||
2 | * Copyright (c) Contributors, http://opensimulator.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 | |||
29 | using System; | ||
30 | using System.Collections.Generic; | ||
31 | using System.Text; | ||
32 | using libsecondlife; | ||
33 | using libsecondlife.Packets; | ||
34 | using Nini.Config; | ||
35 | using System.Threading; | ||
36 | using OpenSim.Framework.Console; | ||
37 | |||
38 | |||
39 | namespace pCampBot | ||
40 | { | ||
41 | /// <summary> | ||
42 | /// Event Types from the BOT. Add new events here | ||
43 | /// </summary> | ||
44 | public enum EventType:int | ||
45 | { | ||
46 | NONE = 0, | ||
47 | CONNECTED = 1, | ||
48 | DISCONNECTED = 2 | ||
49 | } | ||
50 | public class pCampBot | ||
51 | { | ||
52 | |||
53 | |||
54 | [STAThread] | ||
55 | public static void Main(string[] args) | ||
56 | { | ||
57 | //Set up our nifty config.. thanks to nini | ||
58 | ArgvConfigSource cs = new ArgvConfigSource(args); | ||
59 | |||
60 | cs.AddSwitch("Startup", "botcount"); | ||
61 | cs.AddSwitch("Startup", "loginuri"); | ||
62 | cs.AddSwitch("Startup", "firstname"); | ||
63 | cs.AddSwitch("Startup", "lastname"); | ||
64 | cs.AddSwitch("Startup", "password"); | ||
65 | |||
66 | |||
67 | IConfig ol = cs.Configs["Startup"]; | ||
68 | int botcount = ol.GetInt("botcount", 1); | ||
69 | BotManager bm = new BotManager(); | ||
70 | |||
71 | //startup specified number of bots. 1 is the default | ||
72 | bm.dobotStartup(botcount, ol); | ||
73 | while (true) | ||
74 | { | ||
75 | MainLog.Instance.MainLogPrompt(); | ||
76 | } | ||
77 | |||
78 | } | ||
79 | } | ||
80 | } | ||
diff --git a/pCampBot/pCampBot.csproj b/pCampBot/pCampBot.csproj new file mode 100644 index 0000000..04b044c --- /dev/null +++ b/pCampBot/pCampBot.csproj | |||
@@ -0,0 +1,102 @@ | |||
1 | <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
2 | <PropertyGroup> | ||
3 | <ProjectType>Local</ProjectType> | ||
4 | <ProductVersion>8.0.50727</ProductVersion> | ||
5 | <SchemaVersion>2.0</SchemaVersion> | ||
6 | <ProjectGuid>{7F3A2F5C-0000-0000-0000-000000000000}</ProjectGuid> | ||
7 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
8 | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
9 | <ApplicationIcon></ApplicationIcon> | ||
10 | <AssemblyKeyContainerName> | ||
11 | </AssemblyKeyContainerName> | ||
12 | <AssemblyName>pCampBot</AssemblyName> | ||
13 | <DefaultClientScript>JScript</DefaultClientScript> | ||
14 | <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout> | ||
15 | <DefaultTargetSchema>IE50</DefaultTargetSchema> | ||
16 | <DelaySign>false</DelaySign> | ||
17 | <OutputType>Exe</OutputType> | ||
18 | <AppDesignerFolder></AppDesignerFolder> | ||
19 | <RootNamespace>pCampBot</RootNamespace> | ||
20 | <StartupObject></StartupObject> | ||
21 | <FileUpgradeFlags> | ||
22 | </FileUpgradeFlags> | ||
23 | </PropertyGroup> | ||
24 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
25 | <AllowUnsafeBlocks>False</AllowUnsafeBlocks> | ||
26 | <BaseAddress>285212672</BaseAddress> | ||
27 | <CheckForOverflowUnderflow>False</CheckForOverflowUnderflow> | ||
28 | <ConfigurationOverrideFile> | ||
29 | </ConfigurationOverrideFile> | ||
30 | <DefineConstants>TRACE;DEBUG</DefineConstants> | ||
31 | <DocumentationFile></DocumentationFile> | ||
32 | <DebugSymbols>True</DebugSymbols> | ||
33 | <FileAlignment>4096</FileAlignment> | ||
34 | <Optimize>False</Optimize> | ||
35 | <OutputPath>..\bin\</OutputPath> | ||
36 | <RegisterForComInterop>False</RegisterForComInterop> | ||
37 | <RemoveIntegerChecks>False</RemoveIntegerChecks> | ||
38 | <TreatWarningsAsErrors>False</TreatWarningsAsErrors> | ||
39 | <WarningLevel>4</WarningLevel> | ||
40 | <NoWarn></NoWarn> | ||
41 | </PropertyGroup> | ||
42 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
43 | <AllowUnsafeBlocks>False</AllowUnsafeBlocks> | ||
44 | <BaseAddress>285212672</BaseAddress> | ||
45 | <CheckForOverflowUnderflow>False</CheckForOverflowUnderflow> | ||
46 | <ConfigurationOverrideFile> | ||
47 | </ConfigurationOverrideFile> | ||
48 | <DefineConstants>TRACE</DefineConstants> | ||
49 | <DocumentationFile></DocumentationFile> | ||
50 | <DebugSymbols>False</DebugSymbols> | ||
51 | <FileAlignment>4096</FileAlignment> | ||
52 | <Optimize>True</Optimize> | ||
53 | <OutputPath>..\bin\</OutputPath> | ||
54 | <RegisterForComInterop>False</RegisterForComInterop> | ||
55 | <RemoveIntegerChecks>False</RemoveIntegerChecks> | ||
56 | <TreatWarningsAsErrors>False</TreatWarningsAsErrors> | ||
57 | <WarningLevel>4</WarningLevel> | ||
58 | <NoWarn></NoWarn> | ||
59 | </PropertyGroup> | ||
60 | <ItemGroup> | ||
61 | <Reference Include="libsecondlife.dll" > | ||
62 | <HintPath>..\bin\libsecondlife.dll</HintPath> | ||
63 | <Private>False</Private> | ||
64 | </Reference> | ||
65 | <Reference Include="Nini.dll" > | ||
66 | <HintPath>..\bin\Nini.dll</HintPath> | ||
67 | <Private>False</Private> | ||
68 | </Reference> | ||
69 | <Reference Include="OpenSim.Framework.Console.dll" > | ||
70 | <HintPath>..\bin\OpenSim.Framework.Console.dll</HintPath> | ||
71 | <Private>False</Private> | ||
72 | </Reference> | ||
73 | <Reference Include="OpenSim.Framework.dll" > | ||
74 | <HintPath>..\bin\OpenSim.Framework.dll</HintPath> | ||
75 | <Private>False</Private> | ||
76 | </Reference> | ||
77 | <Reference Include="System" > | ||
78 | <HintPath>System.dll</HintPath> | ||
79 | <Private>False</Private> | ||
80 | </Reference> | ||
81 | </ItemGroup> | ||
82 | <ItemGroup> | ||
83 | </ItemGroup> | ||
84 | <ItemGroup> | ||
85 | <Compile Include="BotManager.cs"> | ||
86 | <SubType>Code</SubType> | ||
87 | </Compile> | ||
88 | <Compile Include="pCampBot.cs"> | ||
89 | <SubType>Code</SubType> | ||
90 | </Compile> | ||
91 | <Compile Include="PhysicsBot.cs"> | ||
92 | <SubType>Code</SubType> | ||
93 | </Compile> | ||
94 | </ItemGroup> | ||
95 | <Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" /> | ||
96 | <PropertyGroup> | ||
97 | <PreBuildEvent> | ||
98 | </PreBuildEvent> | ||
99 | <PostBuildEvent> | ||
100 | </PostBuildEvent> | ||
101 | </PropertyGroup> | ||
102 | </Project> | ||
diff --git a/pCampBot/prebuild.xml b/pCampBot/prebuild.xml new file mode 100644 index 0000000..25219fd --- /dev/null +++ b/pCampBot/prebuild.xml | |||
@@ -0,0 +1,63 @@ | |||
1 | <?xml version="1.0" encoding="utf-8" ?> | ||
2 | <Prebuild xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd" version="1.7"> | ||
3 | <Solution name="pCampBot" activeConfig="Debug" path="./" version="0.4.0-svn"> | ||
4 | <Configuration name="Debug"> | ||
5 | <Options> | ||
6 | <CompilerDefines>TRACE;DEBUG</CompilerDefines> | ||
7 | <OptimizeCode>false</OptimizeCode> | ||
8 | <CheckUnderflowOverflow>false</CheckUnderflowOverflow> | ||
9 | <AllowUnsafe>false</AllowUnsafe> | ||
10 | <WarningLevel>4</WarningLevel> | ||
11 | <WarningsAsErrors>false</WarningsAsErrors> | ||
12 | <SuppressWarnings></SuppressWarnings> | ||
13 | <OutputPath>../bin</OutputPath> | ||
14 | <DebugInformation>true</DebugInformation> | ||
15 | <IncrementalBuild>true</IncrementalBuild> | ||
16 | <NoStdLib>false</NoStdLib> | ||
17 | </Options> | ||
18 | </Configuration> | ||
19 | <Configuration name="Release"> | ||
20 | <Options> | ||
21 | <CompilerDefines>TRACE</CompilerDefines> | ||
22 | <OptimizeCode>true</OptimizeCode> | ||
23 | <CheckUnderflowOverflow>false</CheckUnderflowOverflow> | ||
24 | <AllowUnsafe>false</AllowUnsafe> | ||
25 | <WarningLevel>4</WarningLevel> | ||
26 | <WarningsAsErrors>false</WarningsAsErrors> | ||
27 | <SuppressWarnings></SuppressWarnings> | ||
28 | <OutputPath>../bin</OutputPath> | ||
29 | <DebugInformation>false</DebugInformation> | ||
30 | <IncrementalBuild>true</IncrementalBuild> | ||
31 | <NoStdLib>false</NoStdLib> | ||
32 | </Options> | ||
33 | </Configuration> | ||
34 | |||
35 | <!-- Core OpenSim Projects --> | ||
36 | |||
37 | <Project name="pCampBot" path="./" type="Exe"> | ||
38 | <Configuration name="Debug"> | ||
39 | <Options> | ||
40 | <OutputPath>../bin/</OutputPath> | ||
41 | </Options> | ||
42 | </Configuration> | ||
43 | <Configuration name="Release"> | ||
44 | <Options> | ||
45 | <OutputPath>../bin/</OutputPath> | ||
46 | </Options> | ||
47 | </Configuration> | ||
48 | |||
49 | <ReferencePath>../bin/</ReferencePath> | ||
50 | <Reference name="System" localCopy="false"/> | ||
51 | <Reference name="libsecondlife.dll"/> | ||
52 | <Reference name="OpenSim.Framework.dll"/> | ||
53 | <Reference name="OpenSim.Framework.Console.dll"/> | ||
54 | <Reference name="Nini.dll" /> | ||
55 | |||
56 | |||
57 | <Files> | ||
58 | <Match pattern="*.cs" recurse="true"/> | ||
59 | </Files> | ||
60 | </Project> | ||
61 | |||
62 | </Solution> | ||
63 | </Prebuild> | ||
diff --git a/pCampBot/runprebuild.bat b/pCampBot/runprebuild.bat new file mode 100644 index 0000000..05dfe16 --- /dev/null +++ b/pCampBot/runprebuild.bat | |||
@@ -0,0 +1,2 @@ | |||
1 | ..\bin\Prebuild.exe /target nant | ||
2 | ..\bin\Prebuild.exe /target vs2005 \ No newline at end of file | ||
diff --git a/pCampBot/runprebuild.sh b/pCampBot/runprebuild.sh new file mode 100644 index 0000000..23fbfef --- /dev/null +++ b/pCampBot/runprebuild.sh | |||
@@ -0,0 +1,4 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | mono ../bin/Prebuild.exe /target nant | ||
4 | mono ../bin/Prebuild.exe /target vs2005 | ||