A very quick but fun tutorial this time: Lets build a trivia game for opensim.
First you will need to download a script and some notecards.
Walking a virtual path between virtual worlds
Here’s a little tutorial for ya! Lets build a club lighting system with a menu so you can change color, intensity, radius, falloff, glow, transparency, etc, etc, with just a few open source scripts.
Let’s start with a cup of coffee, and putting on some nice music….:-)
1. Download the next zip file.
2. Un-pack the zip file to a convenient place on your PC.
You will find 4 scripts and a texture in it.:
3. Now create 4 new scripts in your inventory, and name them as above. Open each script on your PC with a text editor (Notepad, notepad ++) and copy&paste each script in to the ones in your inventory.
Oddy tip#873226: Create a new folder inside your Scripts folder, name it Light Scripts, and put all your light/lamp/glow etc scripts in there. I have a couple of folders in my scripts folder, named Texture scripts (for all scripts that handle textures), Sound scripts (For that ambient sound script), Door scripts, NPC scripts, etc.
4. Upload the beam.png texture.
I’m NOT going to show you how to build the most awesome light equipment there is to build, this is a mini-tutorial after all.
So rezz a simple cylinder, color it black, and set shine to ‘high’. This is the ‘Lamp’.
Hold down the SHIFT key on your keyboard, and drag the cylinder a bit upwards. A new black cylinder should appear. This will be a light beam! \o/ YAY!!
Now you have to change some things on this new prim.
- X=2.0, Y=2, and Z=20.0 meters.
- Hollow = 95 (or 99 if your viewer supports it.)
- Taper X=-0.750 Y=-0.750
and flip the texture on the vertical plane.
Now align the lamp prim and lightbeam prim so it looks like something in the picture.
With the light beam selected, hold down the SHIFT-key, and select the black lamp prim.
Hit CTRL-L to link the light beam and lamp prims together.
Rezz 2 other cylinders. These prims will be the buttons to control the lamp.
This is a very basic lighting set, you can go creative with the prims. Be sure that, when you link things up, always select the prim you want use a the center of the spinning motion last.
Also, do not link the buttons to the lamp.
Adding the scripts:
First we will add the scripts to the buttons.
Choose one of the button prims that you want to use for starting or stopping the light. Rename it to “Spin Button” or something much cooler.
Open the content tab of this prim and drag the “Light System Spin control script from your inventory to the content tab.
Open the script and look for the following lines (first two lines actually)
string title = “Spin Light 1″; // Title
integer channel = -100; // Main channel
The string title is what will be shown above the button. You can change this to your liking.
Integer channel is the channel (-100 in this case) on which the button communicates with the light beam. Change this to an unique channel. Remember this channel as you need to change the channel in the “Light System Spin script”.
Save the script.
Edit the other button. Rename it to “Light Button”. (or something cooler)
Add the “Light System script-switch” script to it. Open the script.
This time the lines you can (and should edit) are:
integer switchChannel = -101; // switch channel
You will find this line somewhere around line 68.
Again, change the channel to an unique channel number. In this case -101.
The next line you can edit, is a bit further down the script: Line 242
llSetText(“Light ring”, <1.0, 1.0, 1.0>, 1.0);
You can change the Light Ring part to something more useful.
Save the script.
Phew! We have done a lot work already. I’m not sure, but I think making these things in RL is less work! Let’s take a brake and do the harlem shake!
Ok, that was fun, but now back to the scripts.
Here is a little story about the channels we are using. In the spin button, we are using an unique channel, in my case -100. This means that every light that has the spin script in it, with the same unique channel (-100 in this case) will listen to the spin button. Lets say that I have 10 lamps with the spin script on channel -100, all the 10 lamps will start or stop spinning with the touch on the button. Same goes for the light script that listens to another unique channel (-101 in my case).
You can create multiple sets of lights using more buttons with new channels (-102, -18781, etc.)
(tip: make a notecard with names and channels for all your lights. In this case it would look something like this: name- Prim Button 1, Channel: -100, name- Prim Button 2, Channel -102, name- Light Button 1, Channel -101, name- Prim Button 2, CHannel -103, etc.)
Cool story he?
Anyway, back to the scripts!
let’s add the 2 main scripts now.
First select the light beam.
Open the edit window and tick the “Edit Linked” box.
Select the light beam prim, and open the content tab.
Drag the “Light System script-light” from your inventory to the content tab of the light beam.
Open the script and look for (around line number 48):
integer switchChannel = -104; // switch channel
Change the switchChannel number to the channel you choose in the “Light System script-switch” script. (in my case -101, remember the notecard?)
Save the script.
And the last thing we need to do is to add the “Light System Spin script”.
Should be easy by now!
If your edit window is still open, un-tick the “Edit Linked” box. If your edit window is closed, right-click on the light beam, and open the edit window.
Drag the “Light System Spin script” from your inventory to the content tab, and open it.
There are 2 things you can change (at the beginning of the script):
integer channel = -105; // Main channel
float speed = 2.5; // Rotation Speed
The channel is the same channel you used in the prim button script (NOTECARD!! In my case -100)
Float speed is the speed of the rotation, play with this. The higher the number, the faster it spins.
Save the script.
And we are ready to test this stuff! Touch the “Light button”. You should see a menu. Play with it!
Touch the spin button, check if you light is spinning!
A very quick tutorial on how to make a thunderstorm with lightning, rain and sound.
First you want to download a *zip file.
By popular demand: How to build a walking talking Stickman!!
I had a Walking Talking Stickman walking and talking on a place in SL. I loved the guy, I LOL’d every time I saw the little guy walking around and telling how bad his life was.
I was talking to a friend who had a stickman for him self the other day, and we decided that it would be fun to have one on OSgrid.
Just a couple of snapshots!
Ok, I thought it would be fun to build a simple club, with open source lightning system (which I will share in a later post), a simple dance floor, etc…
So, I started rezzing prims, import some stuff I earlier made, and then things went wrong……
I think this simple club will become a prim eating monster…so far I have 600-and-a-bit prims used on I guess half the build I’m planning to build…
Anyway, here are some pics of a work in progress…enjoy!
More pics soon…
So, I’m back to building stuff. I’m rebuilding the Guitar museum I had on SL and later, on OSgrid. I’m also building little mall and a sandbox (that might get deleted in favor of a role-play area if I get the Myriad system worked out.)
“But Oddy, you left OpenSim because it was copy-bot heaven. Please explain???”
Mostly true; I left the mainstream grids (although I visit them when I need that on texture I had on Opensim, but got lost from my computer after an upgrade from win7 to win8), and kept building stuff on SOAS, just for fun.
But being a part of a community, like OSgrid and SL, is something I like, so I wandered the virtual paths and looked for a safe haven where I could be a part of a community.
A little tweet from a friend with a link to this new, walled grid sparkled my interest. This grid is in a Beta stage, not open for the public yet, but I thought “why the hell not” and registered.
Too my surprise, I got an e-mail from one of the founders, “If I had time someday for a guided tour?”
Huh? A grid admin takes time to take my little avatar hand, and shows me how stuff works on their grid? Awesome!
After a quick tour around the initial landing area of this grid, I felt all warm and welcome to this grid. The founders have a cool landing place, with ‘Embassies’, ‘Travelers Treasures’, a spinning globe (you can actually spin it yourself by hand), and more goodies…
This new world is a walled garden, will have currency, has some sort of copybot protection (don’t ask me about technical stuff now, but there are some extra things in place to prevent copy botting.) Since this world is Aurora based, you can have various sizes of regions (I’m a cheap person, I took the smallest size:-) )
So, I ordered a low prim region, and it was available to me in no time. I started to explore the abilities of an Aurora based world, because I have not an huge amount of experience with Aurora, and it looks like I can do what I did on Opensim. That’s a plus.
99% of the scripts I use work, I can upload meshes, turn my inv into a anarchistic chaos, wear an AO, upload XML’s from Linda Kellie, etc, etc…
As mentioned before, this world is not open for the public yet, but soon some folks will be able to register an avatar. You have to be backed up by someone from in-world, a kind of trusted friend thing. So, if you are a friend of me, and are interested in this new world, let me know in a comment…:-)
Maybe we can arrange something!
Oh, the name of this world: CreatedWorlds….Website: http://createdworlds.com/beta/
Some snapshots of what I’m building on CreatedWorlds:
Before I start my rant: English is NOT my native language!…
Here we go:
OK..I Logged out from Osgrid, took my regions down, except one I host for a friend.
I’m a bit disappointed in the OSgrid admins and developers. I understand that there are only a couple of guys, like 3 or 4 or 5 or so, that actually do things on OSgrid on grid level. (moderate, develop, host events and stuff) and I thank each and every one of you for that.
However!! (here we go!)
I put a lot effort in creating stuff for OSgrid; A guitar museum, clothing, I test scripts to see if they work on OSgrid, weird avatars, OARS, etc…I’ve spend many hours (on a daily basis) on making all that stuff for OSgrid. I visited parties, live gigs, OSG festivals, like OSG1B, OSG2B, Halloween thingies, etc…
And I’m not the only who does that. We, users of OSgrid, make OSgrid.
I think that the users of OSgrid deserve more than a test grid the devs claims it to be. Fact is that most users of the grid use it as a free or cheap SL.
That’s a fact Admin/dev folks! We, the users, see this grid as a free SL!.
You can deny it with every vain in your body, but OSgrid = free SL for most folks!
And most folks want what SL gives them. Not everything, but the at least the basics: Where can I find freebies, where can I party, where can I get that High quality outfit, where can I get up to date info?
OSgrid fails to give that information. Sure, I can get a freebie avie at LBSA, but I might get griefed there, cause admins are sleeping in RL (admins do need to sleep once in a while, I know)
I came to the conclusion that OSgrid is a grid for techy-geeks, and not for the social types like me. I don’t want to empty trash via a website! I just wanna click ‘empty trash’! I wanna put things on an event list! I have no need to be up-to-date with the latest version of OpenSim Software, cause usually the 3 month older version works better for me! I don’t want to rely on other software, like twitter, or facebook, to hear about in-world events. I want to see that stuff on my splash screen, with SLURLS in it!
I want community games where I can win real stuff, like other grids do….
I want a newbie place where I can learn about OSgrid…or how to move around, chat, etc..(Hey we have that! Warin build something that is very well build…..I think LL would want that build for an orientation island)
OSgrid is for the geeky guys, and there are not enough geeky guys to run the grid as we speak. As mentioned before: The OSgrid guys do what they can….But that is not enough to run such a big grid.
I hope this blogpost inspires geeky guys to be an active part of OSgrid in some sort of way…webdevs, opensim geeks, php-nerds, etc….
Go safe OSgrid!!!
Until OSgrid is saved; Oddy signs out….Logging in on other worlds….
It’s almost that time of the year again! OSgrid’s 5th Birthday (OSG5B) is coming up!
This year the nice people of OSgrid, have made a couple of regions for other nice people, like me , can display the things they do. Also, there will be some live performances and DJ’s spinning some tunes.
The OSG5B celebrations will take place between July 20th (Friday) to July 24th (Tuesday), so mark those dates in your agenda!
Make sure you are using a mesh viewer to see some nice mesh builds!
My mesh factory.
You can find this text based game on the freebie area.
A snappy snapshot of one of the OSG5B regions.
See you there guys!!
The download link: http://18.104.22.168/TheMall-final-v2.zip
I have found a lot of websites that are very useful, important, fun, etc about to OpenSim. I thought I shared some of them:
Opensimulator home page – http://opensimulator.org/wiki/Main_Page
Imprudence – http://blog.kokuaviewer.org/
Dolphin – http://dolphinviewer.eregion.de/
Phoenix/Firestorm – http://www.phoenixviewer.com/
Teapot – https://bitbucket.org/ArminW/teapot/downloads
Zen – https://bitbucket.org/Zena_Juran/zen-viewer/wiki/Home
Nirans – https://bitbucket.org/NiranV/nirans-viewer/wiki/Home
Bailiwick – http://spinmass.com/Software/Bailiwick.aspx - Bailiwick is a channel editor for the .raw files used by Second Life sim owners to configure their sims.
Terrain Sculptor – http://spinmass.com/Software/TerrainSculptor.aspx - Terrain Sculptor is an application which maps the terrain of sims in Second Life or OpenSim grids and generates sculpty textures for them.
L3DT – http://www.bundysoft.com/L3DT/downloads/standard.php - Free application (the standard version that is) for creating terrain maps for your region. (Small tutorial here: http://opensimulator.org/wiki/Using_L3DT )
Scratch for Opensim – http://blog.greenbushlabs.com/?p=797
Free LSL scripts.com: http://www.free-lsl-scripts.com/ - 1164 open source lsl Scripts.
OSgrid script forum: http://forums.osgrid.org/viewtopic.php?f=5&t=2233&sid=e490bc95f2f9529e8b532d4c94cc1b27
Squirtsplace http://www.squirtsplace.com/funstuff/funwav.html -Funny sound files *tip* use the Meerkat viewer to upload larger sound files. (Some sounds are sexually orientated)
Frogstar http://www.frogstar.com/content/muppets-0 -Muppets sounds!!
AudioSparx. http://www.audiosparx.com/sa/links/sound-effects.cfm – Sound Effects. (There are like 100.000 soundclips there)
CGSpeed http://sites.google.com/a/cgspeed.com/cgspeed/motion-capture/ 3dsmax-friendly-release-of-cmu-motion-database – 2548 Animations.
DaveDub.co.uk http://davedub.co.uk/bvhacker/ – bvh Editing tool. Transform the *.bvh files you get from the link above, into OSGrid usable *.bhv files.
Qavimator – http://qavimator.org/
Blender – http://www.blender.org/ - free 3D editing tool.
Daz3D – http://www.daz3d.com/shop/free-3d-models-and-content/?p=2 Some free tools, some very useful.
30,000 free 3D models – http://archive3d.net/
Pre-configured OpenSim installations. (read more here)
Soas – http://simonastick.com/
Diva Distro – https://github.com/diva/d2/downloads
New world studio – http://www.newworldstudio.org/site/en/downloads
Here is a quick and easy way to create a light system for your home, garden, office,
darkroom, dungeon, etc.
Let’s start with downloading some scripts:
A prim glow and light script. This script turns on the glow and light function of a prim.
It’s controlled by a controller script.
This is a controller script. With this script you can turn a lamp on or off by touching a linked prim (A light switch).
Another controller script. This script sees if its night on estate level. (‘Force midnight’ won’t turn on the lights)
Now, lets rezz a couple of prims!
- Rezz a cylinder with the following dimensions:
* X and Y both 0.15 meters, Z = 0.35 meters. Set the texure to blank, color = black.
* Hold down the shift key, and drag the cylinder up a bit. This makes a copy of the cylinder. Set both X and Y to 1.25 meters and Z = 0.2 meters. Set the color to white and transparency to 50%
* Select the first, black cylinder again, and copy it. Set Z to 0.1 meters. Copy this small black prim one more time.
* Position the 4 prims like in the picture below:
Now the script part:
- Select the transparent prim, this will be the prim that glows and lights up.
Open the content tab, and create a new script in it by clicking the ‘New Script’ button.
Open the ‘Glow and Light’ with your favorite text editor, and copy it.
Open the newly created script in the prim, and paste the copied script in to it, overwriting the standard script.
- Select the largest black prim. This will be your root prim.
Create a new script in this prim, and copy the ‘Controller_touch script’ in to it.
Create another script and copy the ‘Controller_Night script’ in this new script.
[Note: you can use one of these controller scripts if you like, so only a the touch controller, or only the night controller]
This was the scripting part, lets link some prims now!
Select the transparent prim.
Hold down the Shift key and touch the 2 smaller black prims.
Finally touch the big black prim. The largest, black prim should light up yellow, the other prims blue.
Hit the ‘Link’ button in the edit window to link the prims.
And your done!
Now this isn’t a really big lighting system he? To make a bigger system, with multiple lamps, you could do the following:
Shift-drag a lamp. (You have two lamps now.)
Select one lamp, and remove the controller script(s) in it.
Copy this lamp (without controller script(s) in it) as many times you like.
Shift-click on all the lamps to select them all (Oddy tip: Select the one with the controller script(s) as last, so it becomes the root prim of your system), and hit the ‘Link’ button in the edit window.
You could make a light switch of some sort, and put one (or both) controller script in it. Again, make sure this is the last prim you select when linking things up.