| Mail |
You might also like: WoW Insider, Joystiq, and more

Reader Comments (7)

Posted: Jul 27th 2009 6:29PM (Unverified) said

  • 2 hearts
  • Report
You could also fairly safely use HTTP status code 418 (officially "I'm a teapot" - see RFC 2324: http://tools.ietf.org/html/rfc2324 ) as a kill switch. Unless your server may be replaced with a teapot later, in which case... I have no words, really...

Posted: Jul 27th 2009 6:59PM Joystiq Login Bugs SUCK said

  • 2 hearts
  • Report
I know they made an internet connected toaster... went googling for an internet connected teapot for S&G but couldn't find one. Oh well.

Good advice Tateru, even one as simple as the listen for an llRegionSay(). With scripting being so accessable and so easy to learn for even non-programmers there are many traps like this.

Of course the other trap is lag. Many scripters have little idea on this one and the results can be bad as well.

Posted: Jul 28th 2009 4:30AM (Unverified) said

  • 2 hearts
  • Report
A very good and very important compilation. And even though some sound like a no-brainer, it is surprising how often it gets forgot.

Another advice: there is a possibility that you "mess up" when implementing the kill-switch itself, so implement MORE than one kill switch, and actually test them too! With a third party.

Posted: Jul 29th 2009 11:15AM (Unverified) said

  • 2 hearts
  • Report
Very good advice! Anything special that prompted this post?
"(Thanks a lot for distributing that script so widely, Linden Lab!)" ?

Posted: Jul 29th 2009 11:27AM (Unverified) said

  • 2 hearts
  • Report
Heh. That particular incident happened back in 2006. The server is *still* being DDoSed by the SL grid. What was supposed to be a closed beta-test went *way* too far.
Reply

Posted: Jul 29th 2009 11:30AM (Unverified) said

  • 2 hearts
  • Report
eep!

Posted: Jul 29th 2009 6:55PM (Unverified) said

  • 2 hearts
  • Report
I've been doing similar things with Physical Objects for years now. I make physics-driven funfair rides, and sometimes things go "walkies" - glitching through big chunky solid structures and going off on exciting adventures on their own.

My standard "safety script" approach now is to define each ride's "allowed area" in terms of co-ordinates of an imaginary box, then doing a forced emergency reset (turn Physics off and WarpPos back to the Home position) if it finds itself outside that area. For added sim-politeness, the fast-ish llGetPos polling only happens when the ride is actively in motion (triggered by LinkMessaging).

Featured Stories

Betawatch: May 19 - 25, 2012

Posted on May 25th 2012 8:00PM

Coming soon
Engadget

Engadget

Joystiq

Joystiq

WoW Insider

WoW

TUAW

TUAW