👩‍💻 Scripting changes coming soon

News from the Second Life Team – January 2024 Edition

 

Happy New Year! We’re off to a great start to the year at the Lab and happy to share more Second Life updates with you. You’ll find news on scripting additions, PBR Materials, Project Viewers, and an update on the Second Life Mobile Private Alpha program. Enjoy!

A handful of new, useful scripting features will be getting released in the coming weeks:

llComputeHash

LSL’s old llMD5 function has a significant flaw: it always adds a “:” character to the input string. This makes it useless for most hashing purposes. Enter: llComputeHash! This new function can generate a hash of an input string using any of the following hashing algorithms: md5, md5_sha1, sha1, sha224, sha256, sha384, and sha512.

 
default {
touch_start(integer count) {
string message = your-test-message-here;
 
list algorithms = [md5, md5_sha1, sha1, sha224, sha256, sha384, sha512];
 
integer algorithmCount = llGetListLength(algorithms);
llOwnerSay(message=’ + message + );
 
integer i = 0;
for (i = 0; i < algorithmCount; ++i) {
string algorithm = llList2String(algorithms, i);
string hash = llComputeHash(message, algorithm);
llOwnerSay(algorithm + = + hash);
}
}

llGetNotecardLineSync

You know how it takes an incredible amount of time for your furniture to boot up after resetting its scripts? Argh! Yeah, it’s annoying, and likely due to your sofa/throne/maypole reading configuration from one or more notecards in its inventory.

The new llGetNotecardLineSync function makes loading data from notecards in object inventory much faster by providing a synchronous access method with the caveat that the notecard must be in the region’s asset cache.

 
string NOTECARD_NAME = notecard;
key gLineCountId;
 
default {
state_entry() {
// Request number of notecard lines.
gLineCountId = llGetNumberOfNotecardLines(NOTECARD_NAME);
}
 
dataserver(key id, string data) {
if (id != gLineCountId) { return; }
 
integer count = (integer)data;
integer i;
for (i = 0; i < count; ++i) {
string line = llGetNotecardLineSync(NOTECARD_NAME, i);
if (line == EOF) {
llOwnerSay(—EOF—);
}
else if (line == NAK) {
llOwnerSay(—NAK—);
}
else {
llOwnerSay(line);
}
}
}

BTW, if you’re interested in knowing more about the scripts that power a huge amount of Second Life’s furniture, vehicles and more check out the open source AVsitter project. 🪑

llGetCameraAspect, llGetCameraFOV, and llWorldPosToHUD

Several functions have been added to help content creators position HUDs:

  • llGetCameraAspect – Returns the aspect ratio of the wearer’s screen as a float (width/height)
  • llGetCameraFOV – Returns a float value for the current camera’s field of view
  • llWorldPosToHUD – Returns HUD position of an in-world object
 
integer gHasPerms = FALSE;
 
function printCameraInfo() {
float aspect = llGetCameraAspect();
float fov = llGetCameraFOV();
llOwnerSay(aspect = + (string)aspect + FOV = + (string)fov);
}
 
default {
on_rez(integer a) {
llResetScript();
}
 
state_entry() {
llRequestPermissions(llGetOwner(), PERMISSION_TRACK_CAMERA);
}
 
run_time_permissions(integer perms) {
if (perms & PERMISSION_TRACK_CAMERA) {
gHasPerms = TRUE;
printCameraInfo();
}
}
 
touch_start(integer count)
{
if (gHasPerms) {
printCameraInfo();
} else {
llRequestPermissions(llGetOwner(), PERMISSION_TRACK_CAMERA);
}
}

Scripting roadmap

Status of these upcoming changes and more are visible on Second Life’s new public road visible at feedback.secondlife.com. If you have ideas or feedback on the scripting system check out the Scripting Features and Scripting Bugs boards.

🧪 Project Viewers

😀 Emoji

This viewer is also in RC and is based on a contribution by Kitty Barnett, and adds the ability to insert emojis in text chat.

Maintenance W

This Viewer brings many fixes (see list here), including a fix to a long standing issue with voice failing after quickly restarting your viewer

Maintenance X

This Viewer brings many usability improvements, including:

  • Saving you some clicks by allowing the deletion of folders containing worn items. 
  • In case you only wish to detach, Alt+Shift+R will now detach selected attachments so you can remove those less fashionable items at rapid speed.
  • The time format has been changed to show the more superior SLT instead of PDT.
  • The group join fee will be shown when leaving a group so you can be extra sure you want to leave it.
  • Shift+Alt+N will now open the Notifications floater 
  • Group notices can now be accessed directly from the People floaters Groups tab. Hover that mouse cursor over the group name for access.
  • Group notices will now default as being sorted by date with the newest first 

Maintenance Y

With this Viewer, you can now preview your outfit photos when hovering your cursor over outfits in the Outfit floater. You can also now remove locations from history via the context menu located in the Places floaters Visited tab.

image4.png

See the list of additional fixes here.

Default Viewer

🎨 GLTF PBR Materials

At the end of November, we announced in this blog post that PBR became available grid wide! The PBR Materials project brings increased realism and enables bringing GLTF content into Second Life with expected results. Now you can create scenes with real reflections which mimic how our eyes have learned to identify that a surface is metal, plastic, or some other material. Whether you create objects in Second Life or simply enjoy seeing and wearing them, PBR Materials will provide a big step up in the appearance of the Second Life world.

Individually faceted disco ball reflections
image1.png

As of January 8th, 2024, the PBR Materials Maintenance 1 viewer became the default viewer for Second Life. See Release Notes here. There are 17 new Materials available in the Library so you can start building with PBR today!

📱 Mobile Update

On December 12th, we announced our Mobile Private Alpha, bringing the richness of the Second Life virtual world to your Android or iOS mobile device. Qualifying Premium Plus members can apply now for the Private Alpha. If you are Premium Plus, you can learn more at this link.

Check out this video if you haven’t already!

We’ve had an incredible amount of interest, so if you’ve applied but haven’t been added yet, you’re still on our list. Future testers will be added and notified as the Private Alpha continues to expand. Thanks again for your patience as we process the ongoing demand and we look forward to your participation!

Have A Great Weekend From All Of Us At Zoha Islands/Fruit Islands

Happy New Year

Join the Excitement of Fun and Educational Community Events in Second Life!

 

American Cancer Society.jpg

Happy New Year, Second Life Residents! If you’re eager to kick off 2024 with a burst of excitement, here are some fun and educational community-driven activities and events lined up throughout the year. Enroll in building classes, attend lively festivals, and immerse yourself in educational conferences throughout the coming year. 

Relay For Life – Unveiling the Power of Unity

desination-preview-image-american-cancer-society

American Cancer Society

The official home of the American Cancer Society in Second Life. Since 2005, cancer patients, caregivers, and volunteers have been able to receive services and support from the ACS in SL without having to leave the virtual world. Visit the island to learn more or to make a donation to fund the world’s largest and most successful cancer research program. More info at relayforlife.com/secondlife

Go on a journey of compassion and support as Relay For Life of Second Life events kick off this year. Mark your calendars as registrations open this month. SL Living Expo, Fantasy Faire, and other event dates have already been announced. Don’t miss out on any details – follow the American Cancer Society Google calendar for all the info! 

Burn2 – Festival of Community, Art, and Fire

desination-preview-image-burn2

Burn2

Experience BURN2, the festival of community, art, and fire that brings the culture and cool of Burning Man to the metaverse. Learn more at www.burn2.org

Experience the virtual rendition of Burning Man in Second Life with Burn2! With captivating events every quarter, their first event, Winter Burn, starts on January 26th. Explore the details on their website and get more info about their weekly meetings and events in their Google calendar. It’s a virtual festival you won’t want to miss!

VWBPE – Unleashing Educational Innovations

VWBPE-Official-Logo.png
The Virtual Worlds Best Practice in Education (VWBPE) is a community-based open conference that provides opportunities for participants in all virtual worlds to share current teaching, learning, and research practices in 3D virtual environments. This year’s theme is “Mythic Origins” and it runs from March 14-16, 2024. Join the event for three days of lectures, workshops, discussions, games, and fun! It’s a must-attend event for anyone passionate about the intersection of virtual environments and education. Learn more on their website at vwbpe.org.

VWEC – Igniting Educational Conversations

Continue to elevate your educational journey with the Virtual Worlds Education Consortium (VWEC) Eduverse! If you’re passionate about fostering collaboration among educators and navigating the virtual landscape, this is the destination for you. You can learn more about VWEC from the Spotlight interview of three of their coordinators. Additionally, you can check their website and their Google Calendar to attend their daily events and fireside chats.

Virtual Ability – Empowering Lives in Virtual Worlds

Virtual Ability, a non-profit corporation founded in 2007, is dedicated to enabling individuals with a wide range of disabilities to flourish in online virtual worlds. They have two major events throughout the year, keep an eye on their website for more information coming soon: 

  1. Mental Health Symposium (May): In recognition of Mental Health Awareness Month, Virtual Ability hosts the annual Mental Health Symposium. This event serves as a platform to share crucial information about mental health and disabilities with the broader population. The cross-disability community within Virtual Ability includes members dealing with various mental health issues. The symposium not only offers a chance for community members to learn from experts they might not encounter otherwise but also opens the doors for the general public to attend a professional conference at no cost.
  2. International Disability Rights Affirmation Conference (October/November): Taking place around October/November each year, this conference is a testament to Virtual Ability’s commitment to advocating for disability rights globally. Join this empowering event that brings together voices from the disability community to discuss, affirm, and advance the rights of individuals with disabilities.

Builder’s Brewery – Crafting Dreams Since 2008

For all aspiring builders out there, Builder’s Brewery is your go-to destination. Established in 2008, it stands as one of Second Life’s oldest hubs for learning. Dive into free training classes covering everything from building to scripting, textures, mesh, animations, and more. Check their schedule of classes on their Google Calendar.

 

Find even more educational destinations and exciting events in the Education, Help & How To, and Featured Events categories on the Destination Guide throughout the year!

But wait, there’s more! Along with these community-driven activities, we here at Linden Lab also have a lot in store for 2024 – including the Valentine Shop & Hop which is about to open on February 1st, and of course our 21st birthday celebrations in June! 

Get ready for a year filled with excitement, creativity, and unforgettable experiences in Second Life. Don’t miss out on the action – stay connected: follow our Featured News blog, sign up for our weekly email newsletter, and connect with us on social media.

Let the adventure begin, happy 2024!

Happy New Year From All Of The Staff At Zoha Islands/Fruit Islands Stay Tuned For Estate Updates and Upgrades.

The Cornfield — Experience the Experience Keys

The Cornfield entrance_001

“For many years, the Cornfield was a region of mythological status, where once naughty avatars were sent to think about what they had done. Rumor had it that “The Cornfield” was a vast star-lit field of corn and was cut off from communication with the rest of the world. Over the years, rumors spread across the grid of this infamous region that everyone at one time had heard about, but hardly anyone had ever seen. It was thought to be nothing but a tale…that is until now…

Present day…

A group of young explorers set out one day to explore. They teleported to the farthest reaches of the grid, when suddenly their screens went blank and their shoes went where they should never humanly ever go. All of a sudden, their screens flashed bright, and they found themselves dazed and confused inside an old creepy barn.

The barn seemed abandoned. Creaks and strange noises startled them. They could not find a way out back to humanity. They saw some baskets laying on the floor, so they picked them up, and dared to venture outside. The air was thick, and everything to be seen was enveloped in a strange, eerie mist. A huge cornfield spread out wide in front of them. The corn rustled as if something was out there…something not quite human.

As darkness approached, the strange noises grew louder, and the rustling increased. They looked at each other, faces pale in the moonlight. One of them grabbed a plank for she knew something bad was about to happen. They looked at each other once more, knowing what had to be done, and one by one, they entered the Cornfield…”

The Cornfield landing zone_003Since the Cornfield was developed using Experience Keys technology, I decided to go visit the sim. I’m not too much into horror films or anything else, but I was curious. When you tp in you actually land at a Portal Park, where you can enter several interactive games including The Cornfield. Also at the Portal Park is the entrance to the Tea Party, Linden Realms, The Wilderness, Grid Hunt, Gnome Village and Social Area.

The Cornfield entrance_003 resizedI walked down the entrance to The Cornfield. There were spooky sounds and rustling noises, a cawing crow. The lighting is eerie. The Cornfield entrance_002 resizedAs I arrived at the barn, which houses the entrance to the Cornfield, I kept looking around for the item giver to click, so I could attach the hud. I am so used to having to click and get the items I completely forgot it was using experience keys! It asked me once if I gave blanket permissions for attaching these items and after one click on yes, the rest just happened automatically upon porting through the door to the Cornfield.

The Cornfield entry walkway_004 resizedWhen you walk through the barn, you see the door to the cornfield. All you do is walk through the door and it automatically teleports you (because you’ve already given it blanket permissions through experience keys) to the cornfield itself. Again, because of experience keys, you land on the ground and a HUD attaches to your screen, and a collector basket to your back and a weapon in your hand — a board.

The Cornfield entrance_006 resized
The Cornfield entrance_012 resized

The Cornfield entrance_008 resizedThere are several notecards that you would be wise to collect once you TP through the door that offer you tips on the game. I personally didn’t remove or turn off my ao; I don’t like walking around like a duck. I’m not sure how taking off your ao helps in the game, but I didn’t do it so I wouldn’t know. I do, however, recommend that you take their advice and turn off “double click tp” in your preferences. I always have the setting so that “double click” in a parcel will move me to that spot via teleport (which sometimes thwarts me when store owners or land owners have their settings set to landing point only, which means that double clicking will only teleport you to the landing point, resulting in great frustration on my part when trying to get to a specific spot. I like to cam around, pick a spot to go and double click to TP there. But that’s another post for another day). In this game, when you swing your weapon, you use a mouse click to swing it, so if you have it set so double click on land teleports you to that point, when you won’t be able to kill griefers because it will constantly try to teleport you. So a word to the wise — turn that off for this game.
Here’s how you do that:

* Go to the top toolbar and select “Me”, “Preferences”, “Move and View”, and set “Single click on land” and “Double click on land” to “No action”.

It also asks you to use the region’s windlight settings and not “cheat” by having your settings on daylight. In addition, it recommends using mouselook, basically like most combat sims do. It’s easier in some ways in mouselook, and harder in other ways. Part of the game play is to collect as many corn as you can, while beating off griefers (not real SL griefers; these are what they call the bad guy in this game and they are apparitions controlled by the scripting in the game; not by someone behind an avatar (at least I don’t think so).

The Cornfield entrance_010 resizedThe point of the game is you are to collect as much corn as you can and turn them in to the bin in the barn for points. The more points you get, you can use these points to purchase better weapons and better armor in the store. With better weapons you can kill more griefers. With better armor, you can better resist a griefer. If a griefer kills you, you lose the corn you’ve collected (not the corn in the bin; just what is registered in your hud) and teleported to the graveyard at the beginning of the game.

This is where the difference between mouselook and regular view come into play. In mouselook, you get a real immserive first person view of the game. In regular view, you can more easily see griefers that come up behind you.

While the gameplay is relatively simple, in reality it is more difficult than it looks. It’s a lot of fun, although a bit spooky for me. I think that the more you play the better you will get at it, and obviously the better your weapons and armor, the easier it will be to fight off the greifers.

Here is some of the information from the game:

Cornfield HUD Key resized

HUD:
The HUD will show you all the current game information:
• Amount of Corn Bucks collected.
• Amount of Corn collected. Maximum is 20 pieces of Corn. After that, you have to empty your basket at the Corn Bins.
• Amount of Health you have, according to how much damage you have taken, and how much armor you are wearing.
• Weapons – Select from a choice of weapons that you have purchased from the Company Store.
• Help – Get a help notecard.
• Plus/Minus – Minimize/Maximize HUD.

And here is the instructions that are handed out:

GAMEPLAY:

– Use your arrow keys to move around.

– Left click to shoot your weapon.

– Go around the Cornfield, and collect Corn, and Corn Bucks.

– Walk over the Corn, Corn Bucks, or Moonshine to collect them.

– The HUD will show how much you have collected, and will tell you when your basket is full.

– Moonshine gives you extra Health, up to the value of the armor you are wearing.

– Once your basket is full, go back to the barn, and click on the Corn Bins to turn your Corn into Corn Bucks.

– If you are in Mouselook, press “ESC” to return to normal view to click on the Corn Bins.

– Your name, the amount of Corn collected, and Corn Bucks earned will be displayed on the Leader Board inside the barn.

– The Leader Board shows the current top 5 players.

– Take the Portal to the Company Store to buy prizes, powerups, armor, and better weapons with your Corn Bucks.

– Check back often in the Company Sore for new prizes.

– You can left click with your mouse to use your weapon, and temporarily stop the Griefers from getting you.

– If you hit a Griefer enough, you can kill it. It may even drop a Corn Buck.

– The HUD will show how much Health you have.

– The more armor you buy, the higher your health capacity will be. (The total amount of health bars you can heal up to).

– There are hiding places around the Cornfield. So if you are being chased, you can run to them, and click on them to hide.

– If you hit a Griefer a lot, they can die. If they get you, you will die, and appear in the Graveyard.

– When you die, you loose the Corn you have collected. That Corn will now be on the ground in the spot where you had died, and it can
be collected by yourself, or any other player.

– At night, a Moonshine Still rezzes randomly in the Cornfield. Sit on this to restore to full health.

The Cornfield is worth visiting…if you have the nerve! And the experience keys make it amazingly easy. Once you give permissions, you do not have to give it again. When I visited a second time, I didn’t even have to click once. Experience keys remembers your choice. Should you decide to do so, you can revoke permissions.

I remain respectfully yours,
~ Suzanne Piers
Zoha Islands Social Media Manager

Content Creators Wanted: Experience Keys Beta

Linden Lab is looking for creators to beta test a new way of interacting with items in Second LIfe without having to constantly give permissions.

The Tools and Technology blog posted about this early in July, so if you’re a creator and you want to get in on the beta testing of Experience Keys, sign up right away!

This is taken directly from the Tools and Technology Blog:

“We’re ready to start a limited beta test of an exciting new tool for creators: Experience Keys. These are new LSL functions and calls that make it possible to bypass the multiple permissions dialogs that you encounter with scripted objects today. Experience Keys will make it possible for users to create more immersive experiences inworld, because those interacting with the experience will be able to grant all the permissions necessary to participate just once, instead of having the experience interrupted by multiple permissions requests. To learn more, check out this brief video.

(Ed. note: I always enjoy Torley vids!)

“We used this technology when creating the Linden Realms game, and we’re now ready to start putting this tool in the talented hands of creators in the Second Life community. Experience Keys is a powerful tool, and we need to be sure we test and roll out the feature carefully, so the first step will be a limited beta, then the viewer and server releases shortly after.

“If you’d like to participate, send an email to slexp_beta@lindenlab.com with “Experience Key Beta” as the subject along with:

• Your experience name.

• What genre does it fit in?

• Give us a brief description of your experience.

• How would your customers benefit from Experience Keys?”

From the end user perspective, it looks like a fabulous way to improve user experiences without all the clicking, but also has the potential to be harmful if someone uses those permissions to do evil things. I hope that our awesome content creators use this opportunity to make Experience Keys into an amazing tool!

I remain respectfully yours,
~ Suzanne Piers
ZoHa Islands Social Media Manager