Developer Documentation

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(Scripting)
(Recent Git Commits)
 
(27 intermediate revisions by 5 users not shown)
Line 15: Line 15:
 
We have [http://www.ohloh.net/projects/4753?p=OpenSimulator Ohloh page], which takes various statistics of the OpenSimulator code base.
 
We have [http://www.ohloh.net/projects/4753?p=OpenSimulator Ohloh page], which takes various statistics of the OpenSimulator code base.
  
This is also an [[opensim-libs git repository]] which contains the source code to some of the 3rd party libraries built and included in OpenSimulator.
+
 
 +
[[opensim-libs git repository]] contains the source code to some of the 3rd party libraries built and included in OpenSimulator.
 +
 
 +
[https://bitbucket.org/opensimulator/libopenmetaverse libOpenMetaverse] contains the source code of libOpenMetaverse for versions  >= 0.9.1.0
  
 
== Contributing ==
 
== Contributing ==
Line 32: Line 35:
 
==== General ====
 
==== General ====
 
* [[Development Team]] — OpenSimulator is brought to you by...
 
* [[Development Team]] — OpenSimulator is brought to you by...
 +
* [[Organization]] - Guidelines and standards about core developers and how one becomes a member.
 
* [[Release Cycle]] — How to create an OpenSimulator release.
 
* [[Release Cycle]] — How to create an OpenSimulator release.
 
* [[Automated Release Building]]
 
* [[Automated Release Building]]
Line 37: Line 41:
 
* [[Hacking OpenSim for fun and profit]] — A starters guide for programming OpenSimulator.
 
* [[Hacking OpenSim for fun and profit]] — A starters guide for programming OpenSimulator.
 
* [[Coding standards]] — Coding conventions for developers.
 
* [[Coding standards]] — Coding conventions for developers.
 +
* [[Codebase overview]] - Very broad overview of the codebase.
 +
* [http://www.metaverseink.com/blog/opensim/policies-for-patching-opensimulator/ Policies for patching OpenSimulator] — Because coding standards don't tell the whole story.
 
* [[Branches]] — An overview of the repository branches and what they are for.
 
* [[Branches]] — An overview of the repository branches and what they are for.
 
* [[Monodevelop]] — How to use the [[monodevelop]] IDE for editing C# solutions.
 
* [[Monodevelop]] — How to use the [[monodevelop]] IDE for editing C# solutions.
 
* [[Debugging]] - Information about debugging OpenSimulator.
 
* [[Debugging]] - Information about debugging OpenSimulator.
 
* [[Performance]] — Information about performance in OpenSimulator, including studies on where the bottlenecks are.
 
* [[Performance]] — Information about performance in OpenSimulator, including studies on where the bottlenecks are.
* [[Mono]] — The tips for implementing with Mono.
 
 
* [[Glossary]] - A glossary of terms used in OpenSimulator.
 
* [[Glossary]] - A glossary of terms used in OpenSimulator.
  
Line 47: Line 52:
 
* [http://opensimulator.org/mantis Mantis Bug Tracking] — Mantis is the issue tracking tool of OpenSimulator.
 
* [http://opensimulator.org/mantis Mantis Bug Tracking] — Mantis is the issue tracking tool of OpenSimulator.
 
* [http://jenkins.opensimulator.org/ Continuous Integration] — OpenSimulator's Jenkins installation builds the source base after each commit and runs the regression tests.
 
* [http://jenkins.opensimulator.org/ Continuous Integration] — OpenSimulator's Jenkins installation builds the source base after each commit and runs the regression tests.
* [http://forge.opensimulator.org/gf/ OpenSimulator GForge] — Project hosting for OpenSimulator related projects.
 
  
 
==== Testing ====
 
==== Testing ====
Line 61: Line 65:
 
* [[Plugins]] — The types of plugins used in OpenSimulator.
 
* [[Plugins]] — The types of plugins used in OpenSimulator.
 
* [[IRegionModule|Region module basics]] - The basics of how to create a region module, and where example code can be found in the OpenSimulator source tree.
 
* [[IRegionModule|Region module basics]] - The basics of how to create a region module, and where example code can be found in the OpenSimulator source tree.
 +
* [[Hypergrid Implementation]] - details on the internal implementation of the Hypergrid system in OpenSimulator.  For more general details also see the [[Hypergrid]] page.
  
 
==== Services ====
 
==== Services ====
Line 66: Line 71:
 
* [[Services]] - A description of the grid and simulator services used by OpenSimulator.
 
* [[Services]] - A description of the grid and simulator services used by OpenSimulator.
  
==== Client Stacks ====
+
==== Communication ====
 
* [[LLUDP ClientStack]] - Information on the LLUDP client stack used by OpenSimulator to send and receive UDP packets from viewers implementing the Linden Labs virtual environment protocol.
 
* [[LLUDP ClientStack]] - Information on the LLUDP client stack used by OpenSimulator to send and receive UDP packets from viewers implementing the Linden Labs virtual environment protocol.
 
+
* [[Communication Protocols]] - Introduction to the various communication protocols used by OpenSimulator.  This includes viewer to OpenSimulator TCP and UDP protocols (e.g. login, agent update message exchange, asset fetch, etc.), inter-region protocols and grid service protocols.  It also details methods by which arbitary UDP and TCP messages can be sent back and forth between clients/modified viewers and OpenSimulator region modules.
==== Communication Protocols ====
+
* [[Communication Protocols]] - Introduction to the various communication protocols used by OpenSimulator.  This includes viewer to OpenSimulator protocols, inter-region protocols and grid service protocols.
+
 
* [[Agent Domain / Service]] - Details about the GridForge hosted Agent Domain/Service code (legacy doc since this LL inspired work has long been abandoned).
 
* [[Agent Domain / Service]] - Details about the GridForge hosted Agent Domain/Service code (legacy doc since this LL inspired work has long been abandoned).
  
Line 77: Line 80:
 
* [[MonoSqlite]] — How the database model currently works.
 
* [[MonoSqlite]] — How the database model currently works.
 
* [[LSL:PrimitiveParams]] — Notes on converting SL Edit GUI values and LSL PrimitiveParams to OpenSimulator PrimitiveBaseShape fields
 
* [[LSL:PrimitiveParams]] — Notes on converting SL Edit GUI values and LSL PrimitiveParams to OpenSimulator PrimitiveBaseShape fields
 
==== Entity Transfer ====
 
* [[Logout]] - information about user logout.
 
* [[SimulatorLoginProtocol]] - information about user login.
 
* [[Teleports]] - documentation on how user teleports are handled in different scenarios (within region, within simulator, between simulators, etc.).
 
  
 
==== Formats ====
 
==== Formats ====
Line 99: Line 97:
 
* [[Services]] - Contains general information on the default OpenSimulator services (asset, inventory, etc.) and more detailed information of HTTP interfaces for some services.
 
* [[Services]] - Contains general information on the default OpenSimulator services (asset, inventory, etc.) and more detailed information of HTTP interfaces for some services.
 
* [[Known Web Interfaces within OpenSim]] - The set of CAPS, XMLRPC, or REST entry points in the project.
 
* [[Known Web Interfaces within OpenSim]] - The set of CAPS, XMLRPC, or REST entry points in the project.
 +
 +
==== Inventory ====
 +
* [[User Inventory Architecture]] - A general page that aims to detail the user inventory mechanisms in OpenSimulator.
  
 
==== Map ====
 
==== Map ====
Line 123: Line 124:
 
* [[OSSL Script Library/ModSendCommand]] - A mechanism for in-world scripts to use a generic modSendCommand() and the link_message event to communicate with region modules.
 
* [[OSSL Script Library/ModSendCommand]] - A mechanism for in-world scripts to use a generic modSendCommand() and the link_message event to communicate with region modules.
 
* [[OSSL_Script_Library/ModInvoke]] - A mechanism for region modules to make new functions available to in-world scripts without patching the OpenSimulator runtime.
 
* [[OSSL_Script_Library/ModInvoke]] - A mechanism for region modules to make new functions available to in-world scripts without patching the OpenSimulator runtime.
* [[OpenSim.Region.ScriptEngine]] — How the ScriptEngine looks internally.
+
* [[ScriptEngines]] — Information about script engines (chiefly XEngine).
 +
* [[Scripts Performance]] - Factors that affect script performance, and how to measure them
  
 
==== Search ====
 
==== Search ====
Line 133: Line 135:
  
 
==== Statistics ====
 
==== Statistics ====
 +
* [[Stats Manager]] - Information about the main statistics monitor used in OpenSimulator and how to add/remove extra stats from modules.
 
* [[Web Statistics Module]] - The web statistics module documentation and counter wish list.
 
* [[Web Statistics Module]] - The web statistics module documentation and counter wish list.
  
Line 144: Line 147:
 
* [[Userlevel]] — Explanation of permissions granted via "God Mode"/Admin Status.
 
* [[Userlevel]] — Explanation of permissions granted via "God Mode"/Admin Status.
  
== Communication ==
+
== Discussing Documentation ==
A good first point of contact is the [[IRC|#opensim-dev IRC]] channel. The OpenSimulator developers also hold [[office hours]] once a week in-world on Tuesdays at "Wright Plaza" on http://osgrid.org. There is a "Test Hour" on Saturdays, also generally on "Wright Plaza". Both these weekly events are held at 1900UTC in summer time and 2000UTC in winter.
+
A good first point of contact is the [[IRC|#opensim-dev IRC]] channel. The OpenSimulator developers also hold [[office hours]] once a week in-world on Tuesdays.
 
+
 
There is also a [[Mailing Lists|development mailing list]] when development discussion takes place.
 
There is also a [[Mailing Lists|development mailing list]] when development discussion takes place.
  
 
== Recent Git Commits ==
 
== Recent Git Commits ==
<rss>http://opensimulator.org/viewgit?a=rss-log&p=opensim|max=5|title=none</rss>
+
<rss>http://opensimulator.org/viewgit?a=rss-log&p=opensim|max=8|title=none</rss>
 
+
<!--
 
[[Category:Support]]
 
[[Category:Support]]
 
[[Category:Tech Reference]]
 
[[Category:Tech Reference]]
Line 158: Line 160:
 
[[Category:Getting Started]]
 
[[Category:Getting Started]]
 
[[Category:Development]]
 
[[Category:Development]]
 +
-->

Latest revision as of 06:24, 10 April 2019

Contents

[edit] Source Code Repository Access

OpenSimulator uses git as its source code repository. Checkout

git clone git://opensimulator.org/git/opensim

See Source Code Repository for more details.

See Using Git for more Details on installing and using GIT with OpenSimulator.org

You can also browse the source code for OpenSimulator using a web browser.

We have Ohloh page, which takes various statistics of the OpenSimulator code base.


opensim-libs git repository contains the source code to some of the 3rd party libraries built and included in OpenSimulator.

libOpenMetaverse contains the source code of libOpenMetaverse for versions >= 0.9.1.0

[edit] Contributing

[edit] Submitting Patches

Please review Submitting code to OpenSim

[edit] Feature Proposals

Larger changes may require feature proposals depending on whether they introduce or significantly change existing functionality. Please use your judgement to determine whether this is required.

For more details please see the Feature Proposals page.

[edit] Developer Documentation

Please be aware that some of this documentation may be out of date. If this appears to be the case then please ask for more information on the mailing lists or IRC channels (details are on the Main Page). If you can't find what you want here you might want to try looking in the User Documentation.

[edit] General

[edit] Development

  • Mantis Bug Tracking — Mantis is the issue tracking tool of OpenSimulator.
  • Continuous Integration — OpenSimulator's Jenkins installation builds the source base after each commit and runs the regression tests.

[edit] Testing

[edit] Architecture

[edit] Services

  • Connectors — A description of OpenSimulator's connector architecture, used for linking region code with services (asset, inventory, etc.) in both local (standalone) and distributed (grid) configurations.
  • Services - A description of the grid and simulator services used by OpenSimulator.

[edit] Communication

  • LLUDP ClientStack - Information on the LLUDP client stack used by OpenSimulator to send and receive UDP packets from viewers implementing the Linden Labs virtual environment protocol.
  • Communication Protocols - Introduction to the various communication protocols used by OpenSimulator. This includes viewer to OpenSimulator TCP and UDP protocols (e.g. login, agent update message exchange, asset fetch, etc.), inter-region protocols and grid service protocols. It also details methods by which arbitary UDP and TCP messages can be sent back and forth between clients/modified viewers and OpenSimulator region modules.
  • Agent Domain / Service - Details about the GridForge hosted Agent Domain/Service code (legacy doc since this LL inspired work has long been abandoned).

[edit] Database

  • Database Documentation — Information on the database schemas used in OpenSimulator
  • MonoSqlite — How the database model currently works.
  • LSL:PrimitiveParams — Notes on converting SL Edit GUI values and LSL PrimitiveParams to OpenSimulator PrimitiveBaseShape fields

[edit] Formats

  • OpenSim Archives - Opensim Region Archive (OAR) file format.
  • Inventory Archives - OpenSimulator Inventory Archive (IAR) file format
  • Asset Formats - OpenSimulator asset formats. This includes serialized object formats and appearance formats.

[edit] Integration

  • AuthIntegration - How to integrate external authentication systems (such as web frontends) with OpenSimulator's authentication system.
  • ClothingManipulation - How to set clothing on avatars using external ROBUST service calls.
  • UserManipulation - How to create users in OpenSimulator via external calls through ROBUST (only available when running in grid configuration).
  • RemoteAdmin - How to use the remote admin plug-in. Some functions (e.g. user creation) are only available when running in standalone configuration.
  • RegionIntegration - Integrating a region and the things within it (scene objects, etc.) with external sources of data and webpages.
  • RestConsole - Description how to use the REST remote console
  • REST - Information about the REST interface to assets, inventory, etc.
  • Webinterface - Integrating the external face of OpenSimulator with the web.
  • Services - Contains general information on the default OpenSimulator services (asset, inventory, etc.) and more detailed information of HTTP interfaces for some services.
  • Known Web Interfaces within OpenSim - The set of CAPS, XMLRPC, or REST entry points in the project.

[edit] Inventory

[edit] Map

[edit] Permissions

[edit] Physics

[edit] Regions/Scenes

[edit] Scripting

  • Scripting Documentation — How to use scripts and what limitations apply.
  • LSL Status — A list of LSL-functions that are available in OpenSimulator.
  • OSSL — Some information about the OpenSimulator Scripting Language, and how to implement an OSSL function
  • OSSL Script Library/ModSendCommand - A mechanism for in-world scripts to use a generic modSendCommand() and the link_message event to communicate with region modules.
  • OSSL_Script_Library/ModInvoke - A mechanism for region modules to make new functions available to in-world scripts without patching the OpenSimulator runtime.
  • ScriptEngines — Information about script engines (chiefly XEngine).
  • Scripts Performance - Factors that affect script performance, and how to measure them

[edit] Search

[edit] Sound

  • Sound Protocol - Technical information about the sound protocols (e.g. UDP messages between viewer and server).

[edit] Statistics

  • Stats Manager - Information about the main statistics monitor used in OpenSimulator and how to add/remove extra stats from modules.
  • Web Statistics Module - The web statistics module documentation and counter wish list.

[edit] Threading

  • Threading — Information on the way that threads are used in OpenSimulator.

[edit] Users

  • Appearance Troubleshooting - Also contains useful information about avatar behave and the relevant message exchanges between the viewer and the simulator.
  • Attachment Protocols - Information on the attachment protocols used by viewers and OpenSimulator.
  • Name Binding - Some information on how OpenSimulator (and Second Life) binds user UUIDs to names (e.g. 25bf6e60-91c0-4d28-8349-ba254cd4388e -> Jane Doe).
  • Userlevel — Explanation of permissions granted via "God Mode"/Admin Status.

[edit] Discussing Documentation

A good first point of contact is the #opensim-dev IRC channel. The OpenSimulator developers also hold office hours once a week in-world on Tuesdays. There is also a development mailing list when development discussion takes place.

[edit] Recent Git Commits

make Console Promt(..) compatible with rest of code, again (UbitUmarov) (Sat, 21 Sep 2019 08:59:41 -0700)
make Console Promt(..) compatible with rest of code, again UbitUmarov <ajlduarte at sapo dot pt> OpenSim/Framework/Console/ConsoleBase.cs
make Console Output(..) compatible with rest of code, again (UbitUmarov) (Sat, 21 Sep 2019 08:35:38 -0700)
make Console Output(..) compatible with rest of code, again UbitUmarov <ajlduarte at sapo dot pt> OpenSim/Framework/Console/ConsoleBase.cs
add a missing return (UbitUmarov) (Wed, 18 Sep 2019 11:09:48 -0700)
add a missing return UbitUmarov <ajlduarte at sapo dot pt> .../Region/ClientStack/Linden/UDP/LLClientView.cs
fix wrong lludp message usage (UbitUmarov) (Wed, 18 Sep 2019 10:43:45 -0700)
fix wrong lludp message usage UbitUmarov <ajlduarte at sapo dot pt> .../Region/ClientStack/Linden/UDP/LLClientView.cs
avoid a null ref ( this should not be needed) (UbitUmarov) (Tue, 17 Sep 2019 21:27:25 -0700)
avoid a null ref ( this should not be needed) UbitUmarov <ajlduarte at sapo dot pt> OpenSim/Region/Framework/Scenes/ScenePresence.cs
Update the Newtonsoft JSON manipulation DLL to latest version (v12.0.3-beta1). (Robert Adams) (Tue, 17 Sep 2019 19:35:05 -0700)
Update the Newtonsoft JSON manipulation DLL to latest version (v12.0.3-beta1). Robert Adams <misterblue at misterblue dot com> bin/Newtonsoft.Json.dll
Changes fix some CORS problems when making XMLRPC calls from (Robert Adams) (Tue, 17 Sep 2019 19:30:30 -0700)
Changes fix some CORS problems when making XMLRPC calls from browsers (which have gotten very picky over the years). Add "Access-Control-Allow-Origin" to XMLRPC responses. Add "Access-Control-Allow-Methods" and "Access-Control-Allow-Headers" to the HTTP OPTIONS response (used in CORS pre-flight request). Robert Adams <misterblue at misterblue dot com> .../Framework/Servers/HttpServer/BaseHttpServer.cs
add a extra lenght check (UbitUmarov) (Tue, 17 Sep 2019 12:43:55 -0700)
add a extra lenght check UbitUmarov <ajlduarte at sapo dot pt> OpenSim/Framework/AvatarAppearance.cs


Personal tools
General
About This Wiki