Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for Must-Haves for Second Life Scripting
Galaxy Littlepaws
Galaxy Littlepaws

Posted on • Edited on

     

Must-Haves for Second Life Scripting

So, you want to get into scripting for Second Life, one of the most-popular virtual worlds? Need to pizzazz that plywood cube, or create something a little more complex such as a HUD for texturing mesh clothing? Let's discuss what has helped me with scripting with Linden Scripting Language (LSL).

IDE:

For this, I greatly prefer the editor and external editor options that exist in the Firestorm or Alchemy viewers. You can customize the UI, insert things, and get error messages and test immediately. You also have the option to use a pre-processor in both viewers.

If you want to use something like Visual Studio Code, I recommend using one of these extensions:
https://github.com/Minuit-Ferina/vscode-lsl
https://github.com/jyaoma/vscode-lsl

Other popular IDEs include Sublime Text and NP++.

Optimizer:

I recommend using PyOptimizer. You can download it and even use it in your browser here:http://lsl.blacktulip-virtual.com/lsl-pyoptimizer/

It is written in Python 2.7, and supports supports code memory optimization for Mono. There are many reasons to use it, check out their website above for the full details.

Alchemy and Firestorm also include optimizing in their pre-processor.

Wikis, Documentation, and Free Scripts:

There are many places to learn about LSL and how it works.

First, you need the official and most up-to-date documentation that's found on the SL wiki here:https://wiki.secondlife.com/wiki/LSL_Portal

You can also get many free scripts online. I'll link to some of my favorite websites:

You may also be able to find other LSL code or snippets on GitHub or other code-sharing sites.

In-World Groups:

You can also make use of groups in-world. I recommend searching for these inside the viewer, as it is otherwise hard to link to them outside of SL. There are many groups out there, so feel free to search for others as well.

  • Builder's Brewery
  • Script Academy

Ideas:

So, let's get down to business. The best way to learn scripting is to script, so let's look over some ideas. And feel free to put your own spin on things!

  • A painting that looks different depending on which day of the week it is, or perhaps on holidays (texturing, date checking)
  • An object that alerts you when the simulator hosting the region is rebooted
  • A HUD that changes the appearance of furniture in a home, and the listener inside the furniture (texturing, contacting other objects)
  • A pet that you can wear, and interacts with other people on a touch event (anti-spam measures, chat or hover text)

What's Next?

I'll be writing more posts on how to make various things with this language, so stay tuned!

Top comments(3)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
paulpreibisch profile image
Paul Preibisch
Hi everyone! My name is Paul. I am working with VistaProject's Current SCM, the Worlds best Cloud Based Procurement Software! I work with super brilliant co-workers on Laravel every day and love it!
  • Location
    mexico
  • Education
    Simon Fraser University
  • Work
    I am a Software Engineer at CurrentSCM
  • Joined

Thanks so much for this Article Galaxy Littlepaws! My name is Paul, but way back in 2005 - I became known as Fire Centaur in Second Life. I actually created several products in the Marketplace, using prims and LSL. One of my proudest contributions is my Game Buzzermarketplace.secondlife.com/p/Game-...

I'd love to know what you are currently programming in LSL

CollapseExpand
 
galaxylittlepaws profile image
Galaxy Littlepaws
I am a web developer/programmer and I love open source technology, virtual worlds, and self-hosting.
  • Location
    United States
  • Pronouns
    he/him
  • Work
    Web Developer, Programmer
  • Joined

I'm glad you liked my post!

Currently I'm working hard on fixing up a breedable system (I had bought some code in production, but something happened due to relying on the old backend that I've been fixing ever since). I think the next time I do code for a breedable, it will be far more efficiently done due to so many changes that have happened in LSL the past few years, such as LinkSetData. I'll have to write all about it when the time comes.

One big thing I plan on working on is a role-play system for cat avatars, allowing things like hunting, fishing, fighting enemies, and so on. I haven't quite found anything that does that yet and it would be a lot of fun. I think it would be a great exercise in writing games for Second Life, and I will be releasing that code as Open Source.

CollapseExpand
 
v_systems profile image
V_Systems
V Systems (VSYS) is an open-source network that supports the efficient and agile development of decentralized applications. Join our 2025 Hackathon: https://hackathon.v.systems/
  • Location
    Hong Kong
  • Work
    V Systems
  • Joined

Apply your GLSL skills to the V Shader Hackathon, running until 22 May 2025!
Create unique Shader art to win up to $1000 – organized in partnership with Gamedevjs.com

  • Create your original Shader
  • Upload the Javascript to the V Systems blockchain to turn it into an NFT
  • Be one of the 16 winners of prizes ranging $500-$1000

How to join:medium.com/vsystems/13-26-april-cr...

Any questions? Join our community!

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

I am a web developer/programmer and I love open source technology, virtual worlds, and self-hosting.
  • Location
    United States
  • Pronouns
    he/him
  • Work
    Web Developer, Programmer
  • Joined

More fromGalaxy Littlepaws

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp