Skip to content
Teriks edited this page Aug 24, 2019 · 1 revision

LibLSLCC Integration

This distribution of OpenSim integrates the LibLSLCC OpenSim LSL Compiler as an optional compiler that can be used instead of the default compiler inside XEngine.

See:

https://github.com/Teriks/LibLSLCC

Or:

https://gitlab.com/Teriks/LibLSLCC

Settings that determine the compiler Assembly (dll) and class have been added under the [XEngine] configuration section in OpenSim.ini.example.

See 'OpenSim.ini.example' in the 'bin' folder where the OpenSim executable resides.

The included OpenSim.ini.example has the default compiler assembly set to the "LibLSLCCCompiler.dll" so that LibLSLCC is used as the default compiler.

Basic Changes:
(New Project: LibLSLCCCompiler)

The location for the new compiler project in the source tree is:

  • "/OpenSim/Region/ScriptEngine/Shared/LibLSLCCCompiler"

XEngine has been changed so that it can dynamically load a compiler Assembly and Compiler class specified by your OpenSim.ini.

The New compiler compiles to the assembly:

  • OpenSim.Region.ScriptEngine.Shared.LibLSLCCCompiler.dll

And the Old compiler compiles to the assembly:

  • OpenSim.Region.ScriptEngine.Shared.CodeTools.dll

Both compiler assemblies contain a class named Compiler that implements

  • OpenSim.Region.ScriptEngine.Interfaces.ICompiler.

You can configure OpenSim.ini to use either one of these implementations under the [XEngine] configuration section.

Clone this wiki locally