Hypergate script with region restart fix

The Hyperica hyperport gets a decent amount of traffic, and has a few scripts running on it. Plus, I recently rearranged the grid, and my hosting company updated our software.

Let’s just say that region restarts are common place.

And my gate scripts kept breaking.

It’s turns out, this wasn’t a coincidence. Fred Beckhusen tracked down the problem, and it was in the llDetectVolume command. This script command allows a gate to be phantom, allowing avatars to walk through it, but still detect it as a collision.

And it gets reset the wrong way when a region is restarted.

Beckhusen posted a fix to the problem, which I incorporated into my script.

I’ve also set it up so that it automatically changes the size of the font based on the length of the name of the destination. It’s adjusted to fit well with the gate frames I have. If you have differently-shaped frames, you may need to fiddle with that.

You can download the new script here: MetaMarias Hypergate Panel Script v1.0

Now, I have a lot of gates up on Hyperica. And, like anyone else running a hyperport, I find that updating all these scripts is a never-ending challenge.

Fortunately, Beckhusen saved the day here, as well, pointing me to his script in the Phaze Demesnes free LSL script library that allows me to update all the scripts in all the gates all at once, from a single controller. Whoo hoo!

It was remarkably easy to use. I put the client script in my gate prim. And the control script in a controller box. Then I put a gate script in the gate prim. When I dropped an updated version of that same script — with the same name — in the controller box, is was automatically sent to the gate prim.

Or, at least, in worked in my lab!

Newly updated gates on Hyperica.

Newly updated gates on Hyperica.

Assembling the gate

To put a working gate together, you need four things — the script above, a swirly water animation, a flat panel for the gate, and a frame to go around the whole thing.

To create the gate, rez a box, change the texture to plain white, and change the following settings, leaving the rest to their default values:

  • Size X: 3
  • Size Y: 4
  • Size Z: 0.005
  • Rotation X: 90
  • Taper Y: 1
  • Top Shear Y: 0.25

Click on “Select Face” and put this water texture on just the bottom panel:

CC0 portal 16-cell animation

Adjust the scale on the bottom panel:

  • Horizontal scale: 0.25
  • Vertical scale: 0.25

For the white section on top, adjust the texture scale to the following:

  • Horizontal scale: 1
  • Vertical scale: 0.25

Then build a frame around the whole thing using any materials you’ve got on hand, like this:

The gate is just the flat panel and can be slid into a gate frame.

The gate is just the flat panel and can be slid into a gate frame.

The reason I switched away from my old round gates to this style of gate is because I can have the text label generated by the same script that operates the gate, and because it’s easier to walk into when it has a flat bottom. You can just as easily make the gate frame a full circle, of course.

Also, I prefer to use text labels instead of hover text because hover text is hard to see — and it doesn’t work at all with the Oculus Rift.

Related Posts


Maria Korolov

Maria Korolov is editor and publisher of Hypergrid Business. She has been a journalist for more than twenty years and has worked for the Chicago Tribune, Reuters, and Computerworld and has reported from over a dozen countries, including Russia and China. Follow me on Twitter @MariaKorolov.

5 Responses

  1. geir.noklebye@dayturn.com' Geir Nøklebye says:

    Thanks Maria for the update and for the hint on the updater script.
    I’ll see if it is possible to change the scripts to update notecards, as I more than often have a need to update notecards that exist all around. Could be in product vendors, information boards etc, etc. Maybe such scripts already exist?

    • Geir —

      Off the top of my head, I’d pull down info from a website and create the notecards – which you can do in OSSL. Yeay, OpenSim for the win!


      There’s a limit to how many characters you can pull down from the web — I think I hit 16,000 last time I checked, so I couldn’t use it (there was a lot of other stuff on that page — styles, etc…) but if you have your own web server and can post a simple text thing online, you can just load it. Then all you do is update that webpage, and tell your scripts to update themselves. And this would be a cross-grid thing, too — you don’t have to worry about everything being in a single region.

      But, at that point, you might as well try using web-on-a-prim, anyway. Except I’ve noticed that folks that don’t have their media turned on won’t see it…

      • geir.noklebye@dayturn.com' Geir Nøklebye says:

        Interesting idea to pull the latest off a master source. I’ll have to pursue that idea. Thanks!

        The simplest would just be a notecard linking to a page, but often people refuse to open links from inside the viewer…

  2. elainemolt@gmail.com' Elaine Molt says:

    im still in sl, will this gate work there on my sim thanks bunches 🙂