FrontPage
Introduction
This module provides two major areas of functionality to the simulator.
- it adds a range of new commands to the console
- it provides a scripting "engine", which grants users the ability to execute MRM addins.
Scripting interface
Creating an object containing a MRM Addin script is much like creating any other scripted object, the only difference is that the "script" does not contain any code to be executed, it merely declares what pre-loaded addin should be attached to the prim, and the engine will take care of the rest.
e.g. instead of:
default
{
state_entry()
{
llSay(0, "Hello world");
}
}
simly type:
//MRM:Addin HelloWorld?.addin
This is very similar to the way MRM is entered, except that no code is entered, the script only contains this single line, and any other text in the script is simply ignored.
The above example, assumes that the administrator has installed the HelloWorld?.addin, if the addin hasn't been installed, an error message will be displayed in the debugging console of the viewer, stating:
Primitive: Could not load MRM Addin. HelloWorld?.addin
Command interface
The module provides a number of new commands on the region console for managing the addin registry. MRMAddin relies on the Mono.Addins engine already used by OpenSim? (Hence the name of the module).
Almost all of the commands available on the mono commandline tool mautil has been implemented. All MRMAddin commands start with the keyword mrmaddin.
mrmaddin help
List all the major command groups, reg, rep and addin
mrmaddin reg
A collection of commands, all related to managing the addin registry
mrmaddin reg update
Rescan the local filesystem for addins, and update the registry with the result
mrmaddin reg rebuild
Occasionally the
mrmaddin rep
A collection of commands related to managing repositories
mrmaddin addin
A collection of commands related to managing individual addins
Edit this page (last edited 2009-07-08 20:36:15) [Show diff]
| Associated Item | Comment |
|---|---|
| No Associated Items Found | |
Comments
| Topic | Topic Starter | Messages | Last post ![]() |
|---|---|---|---|
| There are no threads. | |||


