<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.osgrid.org/index.php?action=history&amp;feed=atom&amp;title=Tutorial04</id>
	<title>Tutorial04 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.osgrid.org/index.php?action=history&amp;feed=atom&amp;title=Tutorial04"/>
	<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=Tutorial04&amp;action=history"/>
	<updated>2026-10-25T10:23:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>http://wiki.osgrid.org/index.php?title=Tutorial04&amp;diff=14&amp;oldid=prev</id>
		<title>Osgridadmin: Created page with &quot;This lesson we&#039;ll be going over some of the common configuration options. Some of these settings are Mono (linux/mac) or .NET (windows) specific.   Let start this class by exp...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=Tutorial04&amp;diff=14&amp;oldid=prev"/>
		<updated>2017-12-25T04:51:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This lesson we&amp;#039;ll be going over some of the common configuration options. Some of these settings are Mono (linux/mac) or .NET (windows) specific.   Let start this class by exp...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This lesson we&amp;#039;ll be going over some of the common configuration options. Some of these settings are Mono (linux/mac) or .NET (windows) specific.  &lt;br /&gt;
Let start this class by explaining that all ini files in the OSgrid download are pre-configured and more or less setup &amp;amp; configured to work with OSgrid, whether your on windows, MAC or Linux. As we have learned in the previous courses, an environment is specific, and OpenSim can thus be tweaked / adjusted with settings that possibly work better for your specific configuration / environment.&lt;br /&gt;
&lt;br /&gt;
  * Goals for this class : &lt;br /&gt;
  * learning to understand how data from ini filed is processed and what you can configure &lt;br /&gt;
  * learn the functions of the various INI files and and use them for fine tuning &amp;amp; configuring your region setup on OSgrid&lt;br /&gt;
  * Understanding OSSL functions &amp;amp; permissions&lt;br /&gt;
&lt;br /&gt;
If you open your INI files with Notepad++ you get readable formatted text on what does what, so lets pick out some highlights that can be of use. We will cover only the files you &amp;quot;need to be in&amp;quot; for the use and goal of this course. There are plenty of other ini files in your installation, but unless you know what you&amp;#039;re doing, we suggest you leave them as they are, changes there are likely you break things / make them give unexpected results. We do encourage you to open them, check what it does, if your interested in getting more &amp;quot;clues&amp;quot; on how things &amp;quot;work&amp;quot; on the inside.  &lt;br /&gt;
In the configuration files, ;; in front of a line means it is a comment, and a ; in front of a line means it&amp;#039;s a selectable value. Values without ; are selected and active currently.  &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;OpenSim.ini&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
async_call_method has multiple methods but below is the two most common that are known to work best for a specific operating system.&lt;br /&gt;
&lt;br /&gt;
 [Startup]&lt;br /&gt;
    ;works well with mono (linux/mac)&lt;br /&gt;
    async_call_method = SmartThreadPool&lt;br /&gt;
&lt;br /&gt;
 [Startup]&lt;br /&gt;
    ;works well with .NET (windows)&lt;br /&gt;
    async_call_method = UnsafeQueueUserWorkItem&lt;br /&gt;
&lt;br /&gt;
The mesher and physics engines can also be configured under [Startup]. Please note you can only use 1 mesher and 1 physics engine.&lt;br /&gt;
&lt;br /&gt;
    ;can be used with BulletSim, ODE or ubODE&lt;br /&gt;
    meshing = Meshmerizer&lt;br /&gt;
    ;use with ubODE&lt;br /&gt;
    meshing = ubODEMeshmerizer&lt;br /&gt;
&lt;br /&gt;
    ;; Default is BulletSim. Uncomment one of the other physics engines below to enable it&lt;br /&gt;
    ; physics = ubODE ;&amp;#039;&amp;#039;&amp;#039;no ubODE lib for Mac osx at this time*&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
    ; physics = OpenDynamicsEngine&lt;br /&gt;
    ; physics = BulletSim&lt;br /&gt;
&lt;br /&gt;
Maptiles can be configured under [Map] pretty tiles use more memory.  &lt;br /&gt;
&lt;br /&gt;
  [Map]&lt;br /&gt;
    ;pretty maptiles&lt;br /&gt;
    MapImageModule = &amp;quot;Warp3DImageModule&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save a little ram by using MapImageModule.&lt;br /&gt;
 [Map]	&lt;br /&gt;
    ;normal maptiles, uses less memory&lt;br /&gt;
    MapImageModule = &amp;quot;MapImageModule&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The OSgrid OpenSim.ini files have some conservative throttles configured to help smoother performance on slower connections, These may be increased as show below or disabled entirely if you have a server on large bandwidth.&lt;br /&gt;
&lt;br /&gt;
 [ClientStack.LindenUDP]&lt;br /&gt;
    scene_throttle_max_bps = 2500000&lt;br /&gt;
    client_throttle_max_bps = 187500&lt;br /&gt;
    enable_adaptive_throttles = false&lt;br /&gt;
    TextureSendLimit = 40&lt;br /&gt;
&lt;br /&gt;
The http_listener_port allows you to change the TCP port your simulator uses. Handy if you want to run multiple simulators.&lt;br /&gt;
&lt;br /&gt;
 [Network]&lt;br /&gt;
    ;change the tcp listener port the simulator uses&lt;br /&gt;
    http_listener_port = 9000&lt;br /&gt;
&lt;br /&gt;
Your default chat distances can be changed easily. Some venues or areas need expanded chat distance.&lt;br /&gt;
&lt;br /&gt;
 [Chat]&lt;br /&gt;
    ;change local chat variables&lt;br /&gt;
    whisper_distance = 10&lt;br /&gt;
    say_distance = 20&lt;br /&gt;
    shout_distance = 100&lt;br /&gt;
&lt;br /&gt;
AppDomainLoading can help with better script memory management. Mono (linux/mac) will want to use false only. &lt;br /&gt;
 [XEngine]&lt;br /&gt;
    ;use with mono (linux/mac) and .NET (windows)&lt;br /&gt;
    AppDomainLoading = false&lt;br /&gt;
&lt;br /&gt;
Only .NET works correctly with true. This is also known to fix some issues where scripts stop working on .NET(windows).&lt;br /&gt;
    ;This only works reliably for .NET (windows)&lt;br /&gt;
    AppDomainLoading = true&lt;br /&gt;
&lt;br /&gt;
If you have special need for faster script timing you can configure MinTimerInterval (0.08 is the lowest possible value)&lt;br /&gt;
    ;can help with script timing&lt;br /&gt;
    MinTimerInterval = 0.08&lt;br /&gt;
	&lt;br /&gt;
If you want voice you can apply for a free account with Vivox at http://support.vivox.com/opensim/&lt;br /&gt;
&lt;br /&gt;
 [VivoxVoice]&lt;br /&gt;
  (paste config here that vivox emails you)&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;GridCommon.ini&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the file where you can configure external storage like MySql. We will cover this again next week, when we install it, but it boils down to commenting out 1 line (the SQL lite one) by putting a ; in front of it, enabling 2 others (StorageProvider and ConnectionString), and database name, username and password (the one of your MySQL/Mariadb/PgSql database).&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
 [DatabaseService]&lt;br /&gt;
    ; SQLite (comment out the line below if you&amp;#039;re using MySql or PGSQL)&lt;br /&gt;
    Include-Storage = &amp;quot;config-include/storage/SQLiteStandalone.ini&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
If you have MySql installed and configured:&lt;br /&gt;
&lt;br /&gt;
 [DatabaseService]&lt;br /&gt;
    ; SQLite (comment out the line below if you&amp;#039;re using MySql or PGSQL)&lt;br /&gt;
    ;Include-Storage = &amp;quot;config-include/storage/SQLiteStandalone.ini&amp;quot;;&lt;br /&gt;
    ; MySql&lt;br /&gt;
    ; Uncomment these lines if you want to use mysql storage&lt;br /&gt;
    ; Change the connection string to your db details&lt;br /&gt;
    StorageProvider = &amp;quot;OpenSim.Data.MySQL.dll&amp;quot;&lt;br /&gt;
    ConnectionString = &amp;quot;Data Source=localhost;Database=opensim;User ID=opensim;Password=***;Old Guids=true;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you have PGSQL installed and configured:&lt;br /&gt;
&lt;br /&gt;
 [DatabaseService]&lt;br /&gt;
    ; SQLite (comment out the line below if you&amp;#039;re using MySql or PGSQL)&lt;br /&gt;
    ;Include-Storage = &amp;quot;config-include/storage/SQLiteStandalone.ini&amp;quot;;&lt;br /&gt;
    ; PGSQL&lt;br /&gt;
    ; Uncomment these lines if you want to use PGSQL storage&lt;br /&gt;
    ; Change the connection string to your db details&lt;br /&gt;
    StorageProvider = &amp;quot;OpenSim.Data.PGSQL.dll&amp;quot;&lt;br /&gt;
    ConnectionString = &amp;quot;Server=localhost;Database=opensim;User Id=opensim; password=***;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;osslEnable.ini&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is the file in which you can configure the threat level of scripts, users, and owners. It is a permissions system, which allows the use of potential harmful scripts. And no, your PC will not explode, but for example, a script that can control your avatar, could be used to grief. Certain script functions can be used to potentially crash a region. So the default threat level does not allow this. (It&amp;#039;s configured relatively &amp;quot;safe&amp;quot;, you are server host now, and need to decide on what you allow or not in your regions.).   &lt;br /&gt;
However, you will need both, if you desire to allow  a dance ball to control your movement, and rez a dance partner / dance ball.&lt;br /&gt;
The permissions system knows threat levels (the higher the more risky) and &amp;quot;owners&amp;quot; who you can assign permissions to. These functions can be individually  configured to allow all users(true), parcel owners,  estate owners and even assign a single UUID to allow you/ someone else to do stuff nobody else can / should be able to. If you allow a feature and do not specify who/what you allow, (script engine or person)  you will still get an error on use. &lt;br /&gt;
&lt;br /&gt;
If a script presents a permissions related error, its typically very clear. The threat level does not allow this (fill in whatever&amp;quot; function). You can edit OSSL, check what it is, if you actually want to override, and configure accordingly. (True / false to enable or disable a function, and behind it, who is allowed to use it).  Mind it checks this against the Owner of the script. &lt;br /&gt;
 &lt;br /&gt;
The example below shows some various ways to enable osTeleportAgent. The Allow list can be true or false to enable or disable the ossl function or you may include a specific avatar&amp;#039;s uuid. &lt;br /&gt;
&lt;br /&gt;
  OSFunctionThreatLevel = VeryLow&lt;br /&gt;
&lt;br /&gt;
  ; Each of the OSSL functions can be enabled or disabled individually.&lt;br /&gt;
  ; To disable, set the value to &amp;#039;false&amp;#039;.&lt;br /&gt;
  ; To enable for everyone, set the value to &amp;#039;true&amp;#039;.&lt;br /&gt;
  ; To enable for individuals or groups, set it to a comma separated list. This checks&lt;br /&gt;
  ;    against the owner of the object containing the script.&lt;br /&gt;
  ;    The comma separated entries in the list may be one of:&lt;br /&gt;
  ;           &amp;quot;ESTATE_MANAGER&amp;quot; -- enable for estate manager&lt;br /&gt;
  ;           &amp;quot;ESTATE_OWNER&amp;quot; -- enable for estate owner&lt;br /&gt;
  ;           &amp;quot;PARCEL_OWNER&amp;quot; -- enable for parcel owner&lt;br /&gt;
  ;           &amp;quot;PARCEL_GROUP_MEMBER&amp;quot; -- enable for any member of the parcel group&lt;br /&gt;
  ;           uuid -- enable for specified ID (may be avatar or group ID)&lt;br /&gt;
&lt;br /&gt;
An example of an error message about ossl permissions such as the one below can indicate you may need to enable a specific function.&lt;br /&gt;
&lt;br /&gt;
 System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&amp;gt;  OpenSim.Region.ScriptEngine.Shared.ScriptException: OSSL Runtime Error: osAgentSaveAppearance permission denied. Script creator is not in the list of users allowed to execute this function and prim owner also has no permission.&lt;br /&gt;
&lt;br /&gt;
The OSSL Runtime Error: osAgentSaveAppearance can be resolved several ways to &amp;quot;Allow&amp;quot; this function.&lt;br /&gt;
&lt;br /&gt;
Allow estate manager, estate owner and user with uuid c6527070-01c7-11e6-a837-0800200c9a66&lt;br /&gt;
 Allow_osAgentSaveAppearance = ${XEngine|osslParcelOG}ESTATE_MANAGER,ESTATE_OWNER,c6527070-01c7-11e6-a837-0800200c9a66&lt;br /&gt;
&lt;br /&gt;
Allow all users &lt;br /&gt;
 Allow_osAgentSaveAppearance = true   &lt;br /&gt;
&lt;br /&gt;
Allow only the user with uuid c6527070-01c7-11e6-a837-0800200c9a66&lt;br /&gt;
 Allow_osAgentSaveAppearance = c6527070-01c7-11e6-a837-0800200c9a66&lt;br /&gt;
&lt;br /&gt;
To prevent the function from working at all for anyone&lt;br /&gt;
 Allow_osAgentSaveAppearance = false&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Regions.ini&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The Regions.ini is the first place you check if something is wrong. ( Typically a crash at startup, or dysfunctional simulator that always worked, is due to IP changes, ports already in use, map space coordinates etc, and that is all configured in this file). Remember what typo&amp;#039;s gave you in last class ? Exactly. A crash. Still applies. &lt;br /&gt;
&lt;br /&gt;
The static UUID allows you to load an image / texture to use as the maptile, rather than a generated maptile or textures. Mind that your OpenSim.ini needs to be configured for that as well. MaxPrims above 15000 is possible to set, but pointless. No viewer will display more than 45000 prims simultaneously. Also if you exceeded the MaxPrims on your region a warning can be issued in the viewer (about land), that some prims will be returned. This does not happen. To get rid of such message, increase MaxPrims in the Regions.ini file.  MaxPrims may also be set globally across all regions in a simulator by adding it to [Startup] section of your OpenSim.ini.&lt;br /&gt;
&lt;br /&gt;
 [Region Name]&lt;br /&gt;
 RegionUUID = d41f4e80-01c7-11e6-a837-0800200c9a66&lt;br /&gt;
 Location = 1000,1000&lt;br /&gt;
 SizeX = 1024&lt;br /&gt;
 SizeY = 1024&lt;br /&gt;
 SizeZ = 256&lt;br /&gt;
 InternalAddress = 192.168.1.4&lt;br /&gt;
 InternalPort = 9000&lt;br /&gt;
 AllowAlternatePorts = False&lt;br /&gt;
 ExternalHostName = ddns.name.com / Or External Ip adress&lt;br /&gt;
 MaptileStaticUUID = 00000000-0000-0000-0000-000000000000&lt;br /&gt;
 MaxPrims = 15000&lt;br /&gt;
&lt;br /&gt;
------&lt;br /&gt;
*- &amp;lt; [[Tutorial03|Previous]] : [[Tutorial05|Next]] &amp;gt;&lt;br /&gt;
------&lt;/div&gt;</summary>
		<author><name>Osgridadmin</name></author>
	</entry>
</feed>