Scripting Documentation/de

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(Configuring scripting)
(How to use scripts in OpenSimulator)
Line 31: Line 31:
 
[[Configuring Scripting|Scripte Konfigurieren]] weitere Informationen finden.
 
[[Configuring Scripting|Scripte Konfigurieren]] weitere Informationen finden.
  
== How to use scripts in OpenSimulator ==
+
== Wie man Skripte in OpenSimulator benutzt ==
If you have never written a script in LSL before, then please have a look at the [http://wiki.secondlife.com/wiki/LSL_Tutorial LSL wiki] to learn the scripting basics.
+
Wenn du noch nie mit LSL gearbeitet hast sei es dir empfohlen das [http://wiki.secondlife.com/wiki/LSL_Portal/de LSL Wiki] zu lesen. Dort bekommst du Basiswissen und alle weiteren Informationen zu LSL.
 
If you do have (some) experience with writing or editing LSL scripts, then the procedure is identical to the procedure on SL.
 
If you do have (some) experience with writing or editing LSL scripts, then the procedure is identical to the procedure on SL.
 
<!-- We've shown the reader where and how to learn how to create/edit scripts. We therefore do not need to give them our own tutorial. -->
 
<!-- We've shown the reader where and how to learn how to create/edit scripts. We therefore do not need to give them our own tutorial. -->
Line 44: Line 44:
 
-->
 
-->
  
Known problems:
+
Bekannte Probleme:
* Error messages about scripting errors are often cryptic, and tend to be long.
+
* Script Fehler sind oft sehr lang und unverständlich.
 
* List memory optimization hacks like this ... myList = llListReplaceList((myList = []) + myList, ["myString"], 2, 2); ... will fail.
 
* List memory optimization hacks like this ... myList = llListReplaceList((myList = []) + myList, ["myString"], 2, 2); ... will fail.
* Linux/Mac users will need to upgrade the default mono to "mono-complete" in order to have a fully functional scripting engine in OpenSimulator. See [http://opensimulator.org/mantis/view.php?id=5007 the bug tracker] for details.
+
* Linux / Mac Server brauchen das Software Packet "mono-complete" um Scripte inworld benutzen zu können. Siehe [http://opensimulator.org/mantis/view.php?id=5007 the bug tracker] für Details.
  
 
== Scripting System Status ==
 
== Scripting System Status ==

Revision as of 14:13, 13 April 2018

Contents

Über Scripte im OpenSimulator

Eine wichtige Zutat in Second Life ist das Skripting. Es ist der Motor, der alles antreibt.

In SL LSL (Linden Scripting Language) ist die Sprache, die Sie verwenden müssen.

Diese Sprache hat ihre Grenzen und wird sehr langsam ausgeführt.

Aber nichtsdestoweniger funktioniert es und es erledigt die Arbeit.

OpenSimulator unterstützt heute LSL (mit zusätzlichen OSSL- und verschiedenen anderen Funktionen) und C # -Skripten. Aber mit Einschränkungen:

Nicht alle Befehle und Ereignisse wurden implementiert.

Weitere Informationen darüber, welche Befehle funktionieren und welche nicht, finden Sie unter Scripting System Status.

Patches zur Implementierung fehlender Funktionen sind sehr willkommen.

Die OpenSimulator-Skript-Engine kompiliert den LSL-Code bis zu .Net-Code, der JIT auf CPU-nativen Code (in Laien ausgedrückt, wenn ein Skript auf OpenSim ausgeführt wird, wird es in etwas übersetzt, das die CPU direkt verstehen kann.).

Dies bedeutet, dass ein LSL-Skript in OpenSimulator schneller ausgeführt werden sollte als in Second Life.

Stabilität und Sicherheit: siehe Script werden in einer Sandbox ausgeführt.

Scripte Konfigurieren

Es gibt viele Einstellungsmöglichkeiten für Scripte. Es können bestimmte OSSL Befehle aktiviert, deaktiviert oder nur für bestimmte Avatars erlaubt werden. Die Ablaufgeschwindigkeit der Scripte kann angepasst werden und noch vieles mehr.

Für die meisten Fälle sollten die Standard Einstellungen reichen. Sollte doch etwas umgestellt werden müssen kannst du unter Scripte Konfigurieren weitere Informationen finden.

Wie man Skripte in OpenSimulator benutzt

Wenn du noch nie mit LSL gearbeitet hast sei es dir empfohlen das LSL Wiki zu lesen. Dort bekommst du Basiswissen und alle weiteren Informationen zu LSL. If you do have (some) experience with writing or editing LSL scripts, then the procedure is identical to the procedure on SL.

Bekannte Probleme:

  • Script Fehler sind oft sehr lang und unverständlich.
  • List memory optimization hacks like this ... myList = llListReplaceList((myList = []) + myList, ["myString"], 2, 2); ... will fail.
  • Linux / Mac Server brauchen das Software Packet "mono-complete" um Scripte inworld benutzen zu können. Siehe the bug tracker für Details.

Scripting System Status

Status Tables / Charts related to LSL and OSSL functions, constants and related material.

LSL/OSSL Status Overview
LSL

OSSL

Additional Resources for Scripting (LSL)

There have been many questions regarding scripts and tools for scripting lately. Presented here are a variety of Links to Resources which will help most people with Scripting LSL.

OpenSimulator Specific Materials:

Suggested Links for LSL wikis:

Note the Tutorials, Examples & Script Libraries

Off-World Local LSL Editing Tools & Syntax Highlighters

Note: most do not support osFunctions

LSL EDITOR (no osFunctions) Windows version available

Now an Open Source project. New release is February 2012 (Ver.2.44.2). A valuable tool and easy install.

LSL Plus (no osFunctions) Windows version availableMacOSX version availableLinux version available

Open source Eclipse plugin. Regular updates. Not quite as quick to get installed as LSLEditor, but very good tool.

Notepad++ (osFunctions supported with add-on UDF) Windows version available

Windows only Editor with enhanced capabilities & supports most languages. Very powerful & feature rich.

KATE (no osFunctions) Windows version availableMacOSX version availableLinux version available

Free and open source text editor, supporting lots of scriptinmg and programming languages out of the box. This includes LSL.

Sublime Text 2 (os*/wl*/mod* functions supported with the bundle below) Windows version availableMacOSX version availableLinux version available

Completions & syntax coloring of LSL/OSSL functions/events/constants & in-world editor look-and-feel theme.
To use OSSL feature, use ".ossl" for your script file extension.
It is currently compatible with LL v3.4.1 and OpenSimulator v0.7.4+ (master r/21068).

More editors are listed at http://wiki.secondlife.com/wiki/LSL_Alternate_Editors


Syntax Highlighting

Miscellaneous:

  • Presentation Board - Simple Presentation Board that slides through inventory textures...
  • GitHub FS2LSL - FS2LSL Online-Offline LSL/OSSL script editor for WEB or Windows (Programming for beginners)

Additional Resources for Scripting (OSSL)

There have been many questions regarding scripts and tools for scripting lately. Presented here are a a few links to Resources which will help most people with OSSL scripting.

How to contribute

The ScriptEngine is being developed by many developers. New developers are always welcome. If you want to contribute, even just a tiny little bit, have a look at the OpenSim.Region.ScriptEngine page. There is a lot of developer activity on IRC (Support), feel free to drop in.


See Also

Personal tools
General
About This Wiki