<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://opensimulator.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://opensimulator.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=BBen</id>
		<title>OpenSimulator - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://opensimulator.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=BBen"/>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/wiki/Special:Contributions/BBen"/>
		<updated>2026-05-11T10:47:06Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.19.9</generator>

	<entry>
		<id>http://opensimulator.org/wiki/RemoteAdmin</id>
		<title>RemoteAdmin</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/wiki/RemoteAdmin"/>
				<updated>2008-07-28T01:41:06Z</updated>
		
		<summary type="html">&lt;p&gt;BBen: /* Example in PHP */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;background-color:#ffa0a0; padding:15px&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Caution ! The RemoteAdmin feature is unsecured at this time. For testing uses only.&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How to Setup the Remote Admin ==&lt;br /&gt;
&lt;br /&gt;
=== Setup OpenSim === &lt;br /&gt;
&lt;br /&gt;
First you should enable the remote admin interface to do so just add the following lines to your OpenSim.ini file:&lt;br /&gt;
&lt;br /&gt;
 [RemoteAdmin]&lt;br /&gt;
 enabled = true&lt;br /&gt;
 access_password = secret&lt;br /&gt;
&lt;br /&gt;
=== Example in Python ===&lt;br /&gt;
 # Author  : DrScofield &lt;br /&gt;
 # Source  : http://xyzzyxyzzy.net/2008/01/23/using-pythons-xmlrpclib-with-opensim/&lt;br /&gt;
 # License : BSD License&lt;br /&gt;
 &lt;br /&gt;
 #!/usr/bin/python  &lt;br /&gt;
 import xmlrpclib  &lt;br /&gt;
   &lt;br /&gt;
 # XML-RPC URL (http_listener_port)  &lt;br /&gt;
 gridServerURL = ‘http://127.0.0.1:9000′  &lt;br /&gt;
    &lt;br /&gt;
 # instantiate server object  &lt;br /&gt;
 gridServer = xmlrpclib.Server(gridServerURL)  &lt;br /&gt;
   &lt;br /&gt;
 # invoke admin_alert: requires password and message  &lt;br /&gt;
 gridServer.admin_broadcast({’password’: ’secret’,   ‘message’: ‘the answer is 42′})&lt;br /&gt;
&lt;br /&gt;
=== RemoteAdmin executable for Windows ===&lt;br /&gt;
&lt;br /&gt;
The RemoteAdmin executable for Windows is a command line tool based on the RemoteAdmin PHP Class.&lt;br /&gt;
&lt;br /&gt;
Downloads and documentation on the [http://lab.newworldgrid.com/index.php/RemoteAdmin_Executable RemoteAdmin Executable webpage]&lt;br /&gt;
&lt;br /&gt;
=== Example in PHP ===&lt;br /&gt;
&lt;br /&gt;
This example needs the RemoteAdmin PHP Class file available [http://code.google.com/p/opensimtools/wiki/RemoteAdminPHPClass here].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
&lt;br /&gt;
// Author  : Olish Newman&lt;br /&gt;
// Source  : http://code.google.com/p/opensimtools/wiki/RemoteAdminPHPClass&lt;br /&gt;
// Licence : BSD License&lt;br /&gt;
&lt;br /&gt;
// Including the RemoteAdmin PHP class. It can be downloaded from the link above.&lt;br /&gt;
include('RemoteAdmin.php');&lt;br /&gt;
&lt;br /&gt;
// Instantiate the class with parameters identical to the Python example above&lt;br /&gt;
$myRemoteAdmin = new RemoteAdmin('127.0.0.1', 9000, 'secret');&lt;br /&gt;
&lt;br /&gt;
// Invoke admin_broadcast&lt;br /&gt;
$parameters = array('message' =&amp;gt; 'the answer is 42');&lt;br /&gt;
$myRemoteAdmin-&amp;gt;SendCommand('admin_broadcast', $parameters);&lt;br /&gt;
&lt;br /&gt;
// Invoke admin_shutdown (example for use without parameters)&lt;br /&gt;
$myRemoteAdmin-&amp;gt;SendCommand('admin_shutdown');&lt;br /&gt;
&lt;br /&gt;
// Invoke admin_create_user (multiple parameters)&lt;br /&gt;
$parameters = array('user_firstname' =&amp;gt; 'Ruth', 'user_lastname' =&amp;gt; 'OpenSim', 'user_password' =&amp;gt; 'MyPassword', 'start_region_x' =&amp;gt; '1000', 'start_region_y' =&amp;gt; '1000');&lt;br /&gt;
$myRemoteAdmin-&amp;gt;SendCommand('admin_create_user', $parameters);&lt;br /&gt;
&lt;br /&gt;
?&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: This script does not appear to work for create user because it tries to pass the start region x and y as a string when the RemoteAdmin needs a string.  The class needs to be edited to pass it as a number or edit the remoteadmin source to convert the string to a unsigned int.&lt;br /&gt;
&lt;br /&gt;
== RemoteAdmin Commands ==&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
   &amp;lt;th&amp;gt;Name&amp;lt;/th&amp;gt;&lt;br /&gt;
   &amp;lt;th&amp;gt;Status&amp;lt;/th&amp;gt;&lt;br /&gt;
   &amp;lt;th&amp;gt;Description&amp;lt;/th&amp;gt; &lt;br /&gt;
   &amp;lt;th&amp;gt;Parameters&amp;lt;/th&amp;gt;  &lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
   &amp;lt;td&amp;gt;[[remoteadmin:admin_create_region | admin_create_region]]&amp;lt;/td&amp;gt;&lt;br /&gt;
   &amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
   &amp;lt;td&amp;gt;Create a new region&amp;lt;/td&amp;gt;&lt;br /&gt;
   &amp;lt;td&amp;gt;region_name, region_master_first, &lt;br /&gt;
region_master_last, region_master_password, listen_ip, external_address&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
	&amp;lt;td&amp;gt;[[remoteadmin:admin_shutdown | admin_shutdown]]&amp;lt;/td&amp;gt;&lt;br /&gt;
	&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
	&amp;lt;td&amp;gt;Shut down the simulator&amp;lt;/td&amp;gt;	&lt;br /&gt;
        &amp;lt;td&amp;gt;''No parameter needed''&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
	&amp;lt;td&amp;gt;[[remoteadmin:admin_broadcast| admin_broadcast]]&amp;lt;/td&amp;gt;&lt;br /&gt;
	&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;	&lt;br /&gt;
	&amp;lt;td&amp;gt;Send a general alert&amp;lt;/td&amp;gt;	&lt;br /&gt;
        &amp;lt;td&amp;gt;message&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
	&amp;lt;td&amp;gt;[[remoteadmin:admin_restart| admin_restart]]&amp;lt;/td&amp;gt;&lt;br /&gt;
	&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;	&lt;br /&gt;
	&amp;lt;td&amp;gt;Restart Region&amp;lt;/td&amp;gt;	&lt;br /&gt;
        &amp;lt;td&amp;gt;regionid&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
	&amp;lt;td&amp;gt;[[remoteadmin:admin_load_heightmap| admin_load_heightmap]]&amp;lt;/td&amp;gt;&lt;br /&gt;
	&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;	&lt;br /&gt;
	&amp;lt;td&amp;gt;Load Height Map...&amp;lt;/td&amp;gt;	&lt;br /&gt;
        &amp;lt;td&amp;gt;filename, regionid&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
	&amp;lt;td&amp;gt;[[remoteadmin:admin_create_user| admin_create_user]]&amp;lt;/td&amp;gt;&lt;br /&gt;
	&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;	&lt;br /&gt;
	&amp;lt;td&amp;gt;Create a new user&amp;lt;/td&amp;gt;	&lt;br /&gt;
        &amp;lt;td&amp;gt;user_firstname, user_lastname, user_password, &lt;br /&gt;
start_region_x, start_region_y&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
	&amp;lt;td&amp;gt;[[remoteadmin:admin_load_xml| admin_load_xml]]&amp;lt;/td&amp;gt;&lt;br /&gt;
	&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
	&amp;lt;td&amp;gt;Execute the Load XML command&amp;lt;/td&amp;gt;	&lt;br /&gt;
        &amp;lt;td&amp;gt;filename&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Credits ==&lt;br /&gt;
Thanks to DrScofield for the Python Script&lt;br /&gt;
Sources : http://xyzzyxyzzy.net/2008/01/23/using-pythons-xmlrpclib-with-opensim/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>BBen</name></author>	</entry>

	<entry>
		<id>http://opensimulator.org/wiki/FAQ</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/wiki/FAQ"/>
				<updated>2008-07-27T21:53:30Z</updated>
		
		<summary type="html">&lt;p&gt;BBen: /* In World Questions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Users]]&lt;br /&gt;
==About OpenSim==&lt;br /&gt;
===What is OpenSim?===&lt;br /&gt;
OpenSim is a platform for operating a virtual world, and supports multiple independent regions connecting to a single centralized grid.  This is somewhat similar to the web, where anyone can run their own web server, tied together through the internet.  It can also be used to create a private grid, analogous to a private intranet.&lt;br /&gt;
&lt;br /&gt;
===What is a region?===&lt;br /&gt;
A region is what you see when you log into OpenSim.  It is the physical place (well, virtually physical) where avatars move and interact.  It is a square patch of land which may contain an island, mountains, a plain, buildings, etc., or just an ocean.&lt;br /&gt;
&lt;br /&gt;
===What is the grid?===&lt;br /&gt;
The grid is the level that organizes the regions and their positions in the world, and handles things that need to exist across regions, such as a user's inventory.  You can think of it as similar to the world map.&lt;br /&gt;
&lt;br /&gt;
===What does ... mean?===&lt;br /&gt;
See [[OpenSim:TechRef]] for definitions of some terms commonly used in OpenSim.&lt;br /&gt;
&lt;br /&gt;
==Configuring OpenSim==&lt;br /&gt;
First, read [[OpenSim Configuration]].&lt;br /&gt;
===Where can I get a new UUID for my sim config?===&lt;br /&gt;
* See [[OpenSim Configuration]]&lt;br /&gt;
&lt;br /&gt;
===Duplicate &amp;quot;Lost And Found&amp;quot; folder?===&lt;br /&gt;
* A grid manager, from the mysql prompt may do:&lt;br /&gt;
&lt;br /&gt;
 select type from inventoryfolders where folderName=&amp;quot;Lost And Found&amp;quot;;&lt;br /&gt;
 delete from inventoryfolders where foldername=&amp;quot;Lost And Found&amp;quot; and type=&amp;quot;3&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Per Justin's r4011 checkin, these two steps should delete &amp;quot;Lost And Found&amp;quot; duplicates of type 3 and leave any of type 13.&lt;br /&gt;
&lt;br /&gt;
===Can I run multiple regions with OpenSim?===&lt;br /&gt;
* See [[OpenSim Configuration]]&lt;br /&gt;
&lt;br /&gt;
===There are a bunch of textures in the library, but they are all 0x0? What's wrong?===&lt;br /&gt;
To enable these extra textures for your use, you must delete your &amp;lt;tt&amp;gt;regionassets.yap&amp;lt;/tt&amp;gt; file, and restart your sim. WARNING: IF YOU DO THIS, YOU WILL LOSE ANY ASSETS (textures, scripts, animations, etc) THAT YOU HAVE UPLOADED!&lt;br /&gt;
&lt;br /&gt;
===What databases can be used with OpenSim?===&lt;br /&gt;
* See [[OpenSim Configuration]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===SVN Support for Prims===&lt;br /&gt;
So far I tested it under Linux and I heard it crashes under XP. So this description is for Linux please feel free to add the windows description.&lt;br /&gt;
First install the apr pages (apt-get install or yum install)&lt;br /&gt;
*apr-util &lt;br /&gt;
*apr-devel &lt;br /&gt;
*apr&lt;br /&gt;
&lt;br /&gt;
Then make symbolic links in your opensim bin directory&lt;br /&gt;
*svn_client-1 -&amp;gt; /usr/lib/libsvn_client-1.so.0&lt;br /&gt;
*libapr.so -&amp;gt; /usr/lib/libapr-1.so.0&lt;br /&gt;
&lt;br /&gt;
Set up an SVN repository with &lt;br /&gt;
 svnadmin create &amp;lt;directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Edit Opensim.ini&lt;br /&gt;
 [SVN]&lt;br /&gt;
 Enabled = true&lt;br /&gt;
 Directory = sandbox01&lt;br /&gt;
 URL = &amp;quot;file:///home/opensim/svn/01&amp;quot;&lt;br /&gt;
 Username = &amp;quot;opensim&amp;quot;&lt;br /&gt;
 Password = &amp;quot;********&amp;quot;&lt;br /&gt;
 ImportOnStartup = false&lt;br /&gt;
 Autosave = true&lt;br /&gt;
 AutoSavePeriod = 15 &lt;br /&gt;
&lt;br /&gt;
===How to set the LandOwner===&lt;br /&gt;
Edit Regions/&amp;lt;regionfile&amp;gt; and set the AvatarName and AvatarUUID. Furthermore edit the SQL Database and set the OwnerUUID in the land table. When you are using SQLite use the sqlite3 tool.&lt;br /&gt;
 sqlite3 Opensim.db&lt;br /&gt;
 update land set OwnerUUID=&amp;quot;AvatarUUID&amp;quot;; &lt;br /&gt;
&lt;br /&gt;
==Running OpenSim==&lt;br /&gt;
&lt;br /&gt;
===I get a bunch of ERROR: There was an error while scanning assembly:... errors on startup, but OpenSim appears to run normally.  Is this a problem?===&lt;br /&gt;
No.  These errors are being put out by the third party plugin scanning code.  As we have it scanning the entire bin/ directory, it picks up dlls which don't have the correct information to be scanned, and so puts out this error.  Don't worry about it :)&lt;br /&gt;
&lt;br /&gt;
For the record, the current set of errors are&lt;br /&gt;
&lt;br /&gt;
ERROR: There was an error while scanning assembly: /home/caseyj/jc/it/v/virtual-worlds/second-life/servers/opensim/src/opensim-svn-minim/bin/PhysX-wrapper.dll (Could not load file or assembly '/home/caseyj/jc/it/v/virtual-worlds/second-life/servers/opensim/src/opensim-svn-minim/bin/PhysX-wrapper.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.)&lt;br /&gt;
&lt;br /&gt;
ERROR: There was an error while scanning assembly: /home/caseyj/jc/it/v/virtual-worlds/second-life/servers/opensim/src/opensim-svn-minim/bin/ode-debug.dll (Could not load file or assembly '/home/caseyj/jc/it/v/virtual-worlds/second-life/servers/opensim/src/opensim-svn-minim/bin/ode-debug.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.)&lt;br /&gt;
&lt;br /&gt;
ERROR: There was an error while scanning assembly: /home/caseyj/jc/it/v/virtual-worlds/second-life/servers/opensim/src/opensim-svn-minim/bin/ode.dll (Could not load file or assembly '/home/caseyj/jc/it/v/virtual-worlds/second-life/servers/opensim/src/opensim-svn-minim/bin/ode.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.)&lt;br /&gt;
&lt;br /&gt;
ERROR: There was an error while scanning assembly: /home/caseyj/jc/it/v/virtual-worlds/second-life/servers/opensim/src/opensim-svn-minim/bin/openjpeg-libsl.dll (Could not load file or assembly '/home/caseyj/jc/it/v/virtual-worlds/second-life/servers/opensim/src/opensim-svn-minim/bin/openjpeg-libsl.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.)&lt;br /&gt;
&lt;br /&gt;
ERROR: There was an error while scanning assembly: /home/caseyj/jc/it/v/virtual-worlds/second-life/servers/opensim/src/opensim-svn-minim/bin/sqlite3.dll (Could not load file or assembly '/home/caseyj/jc/it/v/virtual-worlds/second-life/servers/opensim/src/opensim-svn-minim/bin/sqlite3.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.)&lt;br /&gt;
&lt;br /&gt;
===Errors about modules not found and RegionBanListItem could not be loaded===&lt;br /&gt;
&lt;br /&gt;
This is caused if you upgrade from trunk through svn and copy new files in the same directory.&lt;br /&gt;
To solve these errors during the startup of opensim.exe remove the following files from your bin folder:&lt;br /&gt;
&lt;br /&gt;
OpenSIm.DataStore.MSSQL.dll&lt;br /&gt;
&lt;br /&gt;
OpenSIm.DataStore.MSSQL.dll.mdm&lt;br /&gt;
&lt;br /&gt;
==OpenSim in the Wild==&lt;br /&gt;
===Are there test servers running OpenSim I can connect to?===&lt;br /&gt;
Yes.  Check out our [[Grid List]]! There are often many private servers up for testing. Hang out on the IRC channel (Freenode #opensim), and troll for URI's.&lt;br /&gt;
=== Can I teleport from the Linden Lab Second Life grid to my Sim?===&lt;br /&gt;
No, OpenSim islands cannot connect to the Linden Lab grid.&lt;br /&gt;
&lt;br /&gt;
==MySQL==&lt;br /&gt;
===How do I isolate and delete a users Trash items in a MySQL grid database?===&lt;br /&gt;
&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;NOTE:&amp;lt;/font&amp;gt; BACK UP YOUR DATABASE!&lt;br /&gt;
&lt;br /&gt;
'''1.''' Locate the avatars UUID you wish to find the trash items of, in the '''users''' table&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;font size=&amp;quot;0.9em&amp;quot;&amp;gt;This query will locate a specified users UUID: (replace User/Test with username/lastname)&amp;lt;/font&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;SELECT `UUID` FROM `users` WHERE `username` LIKE 'User' AND `lastname` LIKE 'Test' LIMIT 0 , 30;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''2.''' Use the avatars UUID to search the field_name '''AgentID''' in the '''inventoryFolders''' table, using '''Trash''' as the '''folderName''' to isolate the users Trash '''folderID'''&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;font size=&amp;quot;0.9em&amp;quot;&amp;gt;This query will locate the users Trash folder entry: (replace 00000000-0000-0000-0000-000000000000 with UUID of user)&amp;lt;/font&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;SELECT `folderID` FROM `inventoryfolders` WHERE `agentID` LIKE '00000000-0000-0000-0000-000000000000' AND `folderName` LIKE 'Trash'&lt;br /&gt;
LIMIT 0 , 30;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''3.''' Use the '''folderID''' UUID obtained in the last query to find all of the trash items in the '''inventoryitems''' table, you can then delete them once you have isolated them.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;font size=&amp;quot;0.9em&amp;quot;&amp;gt;This query will locate the trash items of the avatar in question: (replace 00000000-0000-0000-0000-000000000000 with Trash folder UUID obtained in the last query)&amp;lt;/font&amp;gt; &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;SELECT * FROM `inventoryitems` WHERE `parentFolderID` LIKE '00000000-0000-0000-0000-000000000000' LIMIT 0 , 9999;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;NOTE:&amp;lt;/font&amp;gt;''' These steps will not remove the associated assets from the assets table, just the items in the inventory '''inventoryitems''' table.&lt;br /&gt;
&lt;br /&gt;
===How do I isolate and resolve duplicate inventory folder entries in a MySQL grid database?===&lt;br /&gt;
&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;NOTE:&amp;lt;/font&amp;gt; BACK UP YOUR DATABASE!&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''1.''' It's first a good idea to search for the affected avatars UUID in the '''inventoryFolders''' table to see the duplicate entries. When you see this, you'll see the problem of duplicate entries. The key here will be to find out which is being used.&amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
'''2.''' Upload a file inworld and name it something unique. This will isolate the UUID of your root folder that is being used (even though there are dups only one is being used)&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''3.''' Search the '''inventoryitems''' table for your uniquely named item and locate it's '''parentFolderID''' &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;font size=&amp;quot;0.9em&amp;quot;&amp;gt;This query will isolate the '''parentFolderID''' based on your search for the unique item (replace '''unique_name''' with your unique item name)&amp;lt;/font&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;SELECT `parentFolderID` FROM `inventoryitems` WHERE `inventoryName` LIKE 'unique_name' LIMIT 0 , 30;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''4.''' Check the '''inventoryfolders''' table against the '''parentFolderID''' UUID obtained in the last search. That is your root folder that is being used.. you can delete all duplicate entries that do not match that parentFolderID. In the end, you should only have one of each type (Trash, etc)&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;font size=&amp;quot;0.9em&amp;quot;&amp;gt;This query will return all values that are NOT the parentID obtained in the last search. (replace 00000000-0000-0000-0000-000000000000 with the parentID located in step 3)&amp;lt;/font&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;SELECT * FROM `inventoryfolders` WHERE `folderID` NOT LIKE '00000000-0000-0000-0000-000000000000' LIMIT 0 , 30;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==In World Questions==&lt;br /&gt;
=== Does in world scripting work yet? ===&lt;br /&gt;
Not fully implemented, but there is a lot of work going on here.  Please see [[LSL Status]] for the latest info.&lt;br /&gt;
&lt;br /&gt;
===Why do I walk through objects?===&lt;br /&gt;
Basicphysics doesn't support collisions between objects (just between you and the ground).  There is active work on other physics engines for OpenSim, but these are quite experimental at this point, so not considered supported.&lt;br /&gt;
&lt;br /&gt;
===Can I customize my avatar?===&lt;br /&gt;
Yes.  In order to do this:&lt;br /&gt;
* Click the Inventory Button&lt;br /&gt;
* Create -&amp;gt; New Clothes -&amp;gt; Shirt, Pants, etc&lt;br /&gt;
* Create -&amp;gt; New Body Parts -&amp;gt; Hair, Shape, etc&lt;br /&gt;
* Edit those from your inventory&lt;br /&gt;
* Wear them&lt;br /&gt;
&lt;br /&gt;
Your avatar doesn't always face a nice direction for doing this, so you'll need to use the camera operations to see your face for some of the modifications.  This is a known issue, will be fixed in the future. Also, you'll need to rewear you parts once you first join the environment.  Right now default appearance is always &amp;quot;Ruth&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===Why don't my terrain settings and prims don't stay through restarts?===&lt;br /&gt;
You haven't set it up to use a database.  See [[OpenSim_Database_support|OpenSim Database support]] for info on how to set it up to use a database. (SqLite is the easiest of these to set up and should probably be used by anyone unfamiliar with any of the options).&lt;br /&gt;
&lt;br /&gt;
==Grid Mode==&lt;br /&gt;
=== After the shiny new grid is running, what is next? ===&lt;br /&gt;
* Make sure one can stop/restart UGA &amp;amp;S (sims). Check out any ordering issues of stop/restart UGA w/o stop/restart sim(s).&lt;br /&gt;
* Make sure one can add/delete both a region and a user from the database.&lt;br /&gt;
* Make sure it runs overnight and check it each morning by logging into 1 or 2 key sims.&lt;br /&gt;
* '&amp;lt;tt&amp;gt;tail -f userserver.log&amp;lt;/tt&amp;gt;' and watch/understand the login process.&lt;br /&gt;
* Make sure when you logoff your system, you can log back on and get control of the UGAS consoles.&lt;br /&gt;
&lt;br /&gt;
==region size==&lt;br /&gt;
=== region size is fixed 256*256, I found it to change the size larger is diffcult,because there are lots of magic number in codes.&lt;br /&gt;
&lt;br /&gt;
[[Category:Users]]&lt;/div&gt;</summary>
		<author><name>BBen</name></author>	</entry>

	<entry>
		<id>http://opensimulator.org/wiki/Tips</id>
		<title>Tips</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/wiki/Tips"/>
				<updated>2008-07-27T21:49:48Z</updated>
		
		<summary type="html">&lt;p&gt;BBen: /* Making the server remember terrain, prims and other region storage changes after reboot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Users]]&lt;br /&gt;
==Terrain Tidbits==&lt;br /&gt;
===How can I flatten a region?===&lt;br /&gt;
When you have multiple regions, that you need to terraform to a certain height, the quickest way to do it is by selecting a region, and fill the terrain to the specified height:&lt;br /&gt;
 change-region YourRegionName&lt;br /&gt;
 script terrain fill 20&lt;br /&gt;
&lt;br /&gt;
''Note:'' Remember to change to the region you wish to modify if that is the only region wish to make changes to. Without using the change-region command, you may very well end up flattening multiple regions!&lt;br /&gt;
&lt;br /&gt;
As of SVN 4061&lt;br /&gt;
  terrain fill 25&lt;br /&gt;
  &lt;br /&gt;
[[Category:Getting Started]]&lt;br /&gt;
&lt;br /&gt;
=== What programs can I use to create terrains for OpenSim? ===&lt;br /&gt;
If you are after simple terrain files (jpg, gif, etc), you can use Photoshop or any number of freeware programs, like [http://www.gimp.org/ Gimp]. If you want more complex terrains, you will need programs that output to standard 3d raw format (aka r32 or r64). [http://www.bundysoft.com/L3DT/ L3DT] and [http://www.planetside.co.uk/terragen/ Terragen] are two of the top commercial programs for this. (anyone know of a freeware one?), or you could, with some practice, use [http://www.blender.org/ Blender]. The free version of L3DT can make terrains up to 2048x2048 in size, or 8x8 regions.&lt;br /&gt;
You can use `terrain load IMG yourfile.png` to load '''greyscale''' PNG files.  Remember to use something like `terrain rescale 0 25` to make it visible.&lt;br /&gt;
Here is some info on [[Using L3DT]] to make a terrain.&lt;br /&gt;
&lt;br /&gt;
You can also use http://lab.parkstudio.ru/terra/ if you know a bit about heightmaps and how they work.  Just set the custom landscape texture gradient to pure black and pure white and turn off water.&lt;br /&gt;
And here are some [[Free Terrains]] that you can use. Enjoy!&lt;br /&gt;
&lt;br /&gt;
=== Where do I put the files for my terrains? ===&lt;br /&gt;
This one is actually pretty simple, but first the 'hard' answer: anywhere in the PATH will work. Lost? yeah, I was too, so... just drop the file into the &amp;lt;tt&amp;gt;bin&amp;lt;/tt&amp;gt; directory (right where your &amp;lt;tt&amp;gt;OpenSim.exe&amp;lt;/tt&amp;gt; file is).&lt;br /&gt;
&lt;br /&gt;
===How do I change the terrain for a group of sims?===&lt;br /&gt;
First, the file must be in f32 (or f64?) format. This is easy to do with L3DT's export feature. (Use the RAW format and set the options to &amp;lt;tt&amp;gt;Y flipped = true&amp;lt;/tt&amp;gt; and at the bottom, change it to read 'float' instead of 'ushort'). It also needs to be a file that will cover each sim in a 256x256 layer (so, for 2x2 regions, you need a 512x512 file), It is very important that you rename the file extension to .r32 for the import to properly work.&lt;br /&gt;
Then, once you have it saved, on the &amp;lt;tt&amp;gt;OpenSim.exe&amp;lt;/tt&amp;gt; console, type in:&lt;br /&gt;
 script terrain load-tile &amp;lt;filename&amp;gt; &amp;lt;image X&amp;gt; &amp;lt;image y&amp;gt; &amp;lt;bottomleftsim X&amp;gt; &amp;lt;bottomleftsim y&amp;gt;&lt;br /&gt;
For example, I run a square of 4 sims in a 2x2 pattern. I started my sim placement at 0, 0 and ended at 1, 1. my line reads:&lt;br /&gt;
 script terrain load-tile simalpha.r32 512 512 0 0&lt;br /&gt;
Next, before you log in, you may want to go to type in: *(THIS FUNCTION MAY NOT WORK)&lt;br /&gt;
 script terrain multiply 0.4&lt;br /&gt;
This should scale it down from the nearly 300 meters altitude I ran into to something a little more reasonable for the minimap.&lt;br /&gt;
&lt;br /&gt;
===How do I load a terrain file on startup?===&lt;br /&gt;
Edit the file &amp;lt;tt&amp;gt;startup_commands.txt&amp;lt;/tt&amp;gt; in the bin directory and add the above commands &amp;quot;&amp;lt;tt&amp;gt;script terrain load-tile ...&amp;lt;/tt&amp;gt;&amp;quot; and &amp;quot;&amp;lt;tt&amp;gt;script terrain multiply ...&amp;lt;/tt&amp;gt;&amp;quot; one per line.&lt;br /&gt;
&lt;br /&gt;
*** Notice this method is no longer required and should be considered a legacy function, Terrain persistance is now working 100%.&lt;br /&gt;
&lt;br /&gt;
Terrain Tidbits brought to you by Tilde, with a few questions in IRC :) - [[User:Tildeampersand|Tilde]] 10:32, 15 August 2007 (PDT)&lt;br /&gt;
&lt;br /&gt;
===How do I import into OpenSim the terrain shape of my Second Life sim?===&lt;br /&gt;
First, assure you are in the right region if you have more than one, by using: &lt;br /&gt;
&lt;br /&gt;
 change-region &amp;lt;nowiki&amp;gt;&amp;lt;regionname&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then use the command (file extension now determines the format, use .r32 for L3DT terrains)&lt;br /&gt;
&lt;br /&gt;
 script terrain load &amp;lt;filename&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Watch [http://archimedix.wordpress.com/2007/11/26/opensim/ this video] for a step-by-step tutorial.&lt;br /&gt;
&lt;br /&gt;
=== Other useless or useful info depending on who reads it ===&lt;br /&gt;
&lt;br /&gt;
* I found out that each point on the grey scale (0 to 255) equals approximately .23 to .25 meters in terrain height. - [[CharlieO]]&lt;br /&gt;
* Also for those who want to manually edit a png file, you need at minimum 3 different shades of grey. and one has to be drastically different than the other 2 in order to have the height show correctly. - [[CharlieO]]&lt;br /&gt;
 example:&lt;br /&gt;
  1) 0,0,0 &lt;br /&gt;
  2) 223, 233, 233 &lt;br /&gt;
  3) 255, 255, 255&lt;br /&gt;
&lt;br /&gt;
==General Setup Tricks==&lt;br /&gt;
=== Changing viewer start webpage in standalone mode ===&lt;br /&gt;
&lt;br /&gt;
In order to change the page that the viewer starts in /opensim/bin/ there is a http_loginform.html.example page.  Removing the .example will make this page be the start webpage which you can edit etc.  Since the login html code is no longer needed this can be modified at will.&lt;br /&gt;
&lt;br /&gt;
=== Making the server remember terrain, prims and other region storage changes after reboot ===&lt;br /&gt;
In order for the server to remember these things you must select a database to be used in the OpenSim.ini file.  For more info on setting this up see [[OpenSim_Database_support]].  The easiest to set up is SqLite which has a guide on the linked page.&lt;/div&gt;</summary>
		<author><name>BBen</name></author>	</entry>

	<entry>
		<id>http://opensimulator.org/wiki/Tips</id>
		<title>Tips</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/wiki/Tips"/>
				<updated>2008-07-27T21:40:52Z</updated>
		
		<summary type="html">&lt;p&gt;BBen: /* Making the server remember terrain, prims and other region storage changes after reboot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Users]]&lt;br /&gt;
==Terrain Tidbits==&lt;br /&gt;
===How can I flatten a region?===&lt;br /&gt;
When you have multiple regions, that you need to terraform to a certain height, the quickest way to do it is by selecting a region, and fill the terrain to the specified height:&lt;br /&gt;
 change-region YourRegionName&lt;br /&gt;
 script terrain fill 20&lt;br /&gt;
&lt;br /&gt;
''Note:'' Remember to change to the region you wish to modify if that is the only region wish to make changes to. Without using the change-region command, you may very well end up flattening multiple regions!&lt;br /&gt;
&lt;br /&gt;
As of SVN 4061&lt;br /&gt;
  terrain fill 25&lt;br /&gt;
  &lt;br /&gt;
[[Category:Getting Started]]&lt;br /&gt;
&lt;br /&gt;
=== What programs can I use to create terrains for OpenSim? ===&lt;br /&gt;
If you are after simple terrain files (jpg, gif, etc), you can use Photoshop or any number of freeware programs, like [http://www.gimp.org/ Gimp]. If you want more complex terrains, you will need programs that output to standard 3d raw format (aka r32 or r64). [http://www.bundysoft.com/L3DT/ L3DT] and [http://www.planetside.co.uk/terragen/ Terragen] are two of the top commercial programs for this. (anyone know of a freeware one?), or you could, with some practice, use [http://www.blender.org/ Blender]. The free version of L3DT can make terrains up to 2048x2048 in size, or 8x8 regions.&lt;br /&gt;
You can use `terrain load IMG yourfile.png` to load '''greyscale''' PNG files.  Remember to use something like `terrain rescale 0 25` to make it visible.&lt;br /&gt;
Here is some info on [[Using L3DT]] to make a terrain.&lt;br /&gt;
&lt;br /&gt;
You can also use http://lab.parkstudio.ru/terra/ if you know a bit about heightmaps and how they work.  Just set the custom landscape texture gradient to pure black and pure white and turn off water.&lt;br /&gt;
And here are some [[Free Terrains]] that you can use. Enjoy!&lt;br /&gt;
&lt;br /&gt;
=== Where do I put the files for my terrains? ===&lt;br /&gt;
This one is actually pretty simple, but first the 'hard' answer: anywhere in the PATH will work. Lost? yeah, I was too, so... just drop the file into the &amp;lt;tt&amp;gt;bin&amp;lt;/tt&amp;gt; directory (right where your &amp;lt;tt&amp;gt;OpenSim.exe&amp;lt;/tt&amp;gt; file is).&lt;br /&gt;
&lt;br /&gt;
===How do I change the terrain for a group of sims?===&lt;br /&gt;
First, the file must be in f32 (or f64?) format. This is easy to do with L3DT's export feature. (Use the RAW format and set the options to &amp;lt;tt&amp;gt;Y flipped = true&amp;lt;/tt&amp;gt; and at the bottom, change it to read 'float' instead of 'ushort'). It also needs to be a file that will cover each sim in a 256x256 layer (so, for 2x2 regions, you need a 512x512 file), It is very important that you rename the file extension to .r32 for the import to properly work.&lt;br /&gt;
Then, once you have it saved, on the &amp;lt;tt&amp;gt;OpenSim.exe&amp;lt;/tt&amp;gt; console, type in:&lt;br /&gt;
 script terrain load-tile &amp;lt;filename&amp;gt; &amp;lt;image X&amp;gt; &amp;lt;image y&amp;gt; &amp;lt;bottomleftsim X&amp;gt; &amp;lt;bottomleftsim y&amp;gt;&lt;br /&gt;
For example, I run a square of 4 sims in a 2x2 pattern. I started my sim placement at 0, 0 and ended at 1, 1. my line reads:&lt;br /&gt;
 script terrain load-tile simalpha.r32 512 512 0 0&lt;br /&gt;
Next, before you log in, you may want to go to type in: *(THIS FUNCTION MAY NOT WORK)&lt;br /&gt;
 script terrain multiply 0.4&lt;br /&gt;
This should scale it down from the nearly 300 meters altitude I ran into to something a little more reasonable for the minimap.&lt;br /&gt;
&lt;br /&gt;
===How do I load a terrain file on startup?===&lt;br /&gt;
Edit the file &amp;lt;tt&amp;gt;startup_commands.txt&amp;lt;/tt&amp;gt; in the bin directory and add the above commands &amp;quot;&amp;lt;tt&amp;gt;script terrain load-tile ...&amp;lt;/tt&amp;gt;&amp;quot; and &amp;quot;&amp;lt;tt&amp;gt;script terrain multiply ...&amp;lt;/tt&amp;gt;&amp;quot; one per line.&lt;br /&gt;
&lt;br /&gt;
*** Notice this method is no longer required and should be considered a legacy function, Terrain persistance is now working 100%.&lt;br /&gt;
&lt;br /&gt;
Terrain Tidbits brought to you by Tilde, with a few questions in IRC :) - [[User:Tildeampersand|Tilde]] 10:32, 15 August 2007 (PDT)&lt;br /&gt;
&lt;br /&gt;
===How do I import into OpenSim the terrain shape of my Second Life sim?===&lt;br /&gt;
First, assure you are in the right region if you have more than one, by using: &lt;br /&gt;
&lt;br /&gt;
 change-region &amp;lt;nowiki&amp;gt;&amp;lt;regionname&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then use the command (file extension now determines the format, use .r32 for L3DT terrains)&lt;br /&gt;
&lt;br /&gt;
 script terrain load &amp;lt;filename&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Watch [http://archimedix.wordpress.com/2007/11/26/opensim/ this video] for a step-by-step tutorial.&lt;br /&gt;
&lt;br /&gt;
=== Other useless or useful info depending on who reads it ===&lt;br /&gt;
&lt;br /&gt;
* I found out that each point on the grey scale (0 to 255) equals approximately .23 to .25 meters in terrain height. - [[CharlieO]]&lt;br /&gt;
* Also for those who want to manually edit a png file, you need at minimum 3 different shades of grey. and one has to be drastically different than the other 2 in order to have the height show correctly. - [[CharlieO]]&lt;br /&gt;
 example:&lt;br /&gt;
  1) 0,0,0 &lt;br /&gt;
  2) 223, 233, 233 &lt;br /&gt;
  3) 255, 255, 255&lt;br /&gt;
&lt;br /&gt;
==General Setup Tricks==&lt;br /&gt;
=== Changing viewer start webpage in standalone mode ===&lt;br /&gt;
&lt;br /&gt;
In order to change the page that the viewer starts in /opensim/bin/ there is a http_loginform.html.example page.  Removing the .example will make this page be the start webpage which you can edit etc.  Since the login html code is no longer needed this can be modified at will.&lt;br /&gt;
&lt;br /&gt;
=== Making the server remember terrain, prims and other region storage changes after reboot ===&lt;br /&gt;
First off you should copy the OpenSim.ini.example to be your OpenSim.ini file.  This file has all the settings etc that you need to configure the server.   The default has a default of storing to null which does not save anything.  In order for terrain and prims to be remembered you must comment out --- storage_plugin = &amp;quot;OpenSim.Data.Null.dll&amp;quot; --- and uncomment one of the others.  The easiest one requiring no extra setup is uncommenting --- storage_plugin = &amp;quot;OpenSim.Data.SQLite.dll&amp;quot;--- and make sure ---storage_connection_string=&amp;quot;URI=file:OpenSim.db,version=3&amp;quot;;--- is already un-commented as well. which will make storage work using sqlite.  Other database types can be used.  For more info on these see [[OpenSim_Database_support]].&lt;/div&gt;</summary>
		<author><name>BBen</name></author>	</entry>

	<entry>
		<id>http://opensimulator.org/wiki/Tips</id>
		<title>Tips</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/wiki/Tips"/>
				<updated>2008-07-27T21:38:28Z</updated>
		
		<summary type="html">&lt;p&gt;BBen: /* Making the server remember terrain, prims and other region storage changes after reboot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Users]]&lt;br /&gt;
==Terrain Tidbits==&lt;br /&gt;
===How can I flatten a region?===&lt;br /&gt;
When you have multiple regions, that you need to terraform to a certain height, the quickest way to do it is by selecting a region, and fill the terrain to the specified height:&lt;br /&gt;
 change-region YourRegionName&lt;br /&gt;
 script terrain fill 20&lt;br /&gt;
&lt;br /&gt;
''Note:'' Remember to change to the region you wish to modify if that is the only region wish to make changes to. Without using the change-region command, you may very well end up flattening multiple regions!&lt;br /&gt;
&lt;br /&gt;
As of SVN 4061&lt;br /&gt;
  terrain fill 25&lt;br /&gt;
  &lt;br /&gt;
[[Category:Getting Started]]&lt;br /&gt;
&lt;br /&gt;
=== What programs can I use to create terrains for OpenSim? ===&lt;br /&gt;
If you are after simple terrain files (jpg, gif, etc), you can use Photoshop or any number of freeware programs, like [http://www.gimp.org/ Gimp]. If you want more complex terrains, you will need programs that output to standard 3d raw format (aka r32 or r64). [http://www.bundysoft.com/L3DT/ L3DT] and [http://www.planetside.co.uk/terragen/ Terragen] are two of the top commercial programs for this. (anyone know of a freeware one?), or you could, with some practice, use [http://www.blender.org/ Blender]. The free version of L3DT can make terrains up to 2048x2048 in size, or 8x8 regions.&lt;br /&gt;
You can use `terrain load IMG yourfile.png` to load '''greyscale''' PNG files.  Remember to use something like `terrain rescale 0 25` to make it visible.&lt;br /&gt;
Here is some info on [[Using L3DT]] to make a terrain.&lt;br /&gt;
&lt;br /&gt;
You can also use http://lab.parkstudio.ru/terra/ if you know a bit about heightmaps and how they work.  Just set the custom landscape texture gradient to pure black and pure white and turn off water.&lt;br /&gt;
And here are some [[Free Terrains]] that you can use. Enjoy!&lt;br /&gt;
&lt;br /&gt;
=== Where do I put the files for my terrains? ===&lt;br /&gt;
This one is actually pretty simple, but first the 'hard' answer: anywhere in the PATH will work. Lost? yeah, I was too, so... just drop the file into the &amp;lt;tt&amp;gt;bin&amp;lt;/tt&amp;gt; directory (right where your &amp;lt;tt&amp;gt;OpenSim.exe&amp;lt;/tt&amp;gt; file is).&lt;br /&gt;
&lt;br /&gt;
===How do I change the terrain for a group of sims?===&lt;br /&gt;
First, the file must be in f32 (or f64?) format. This is easy to do with L3DT's export feature. (Use the RAW format and set the options to &amp;lt;tt&amp;gt;Y flipped = true&amp;lt;/tt&amp;gt; and at the bottom, change it to read 'float' instead of 'ushort'). It also needs to be a file that will cover each sim in a 256x256 layer (so, for 2x2 regions, you need a 512x512 file), It is very important that you rename the file extension to .r32 for the import to properly work.&lt;br /&gt;
Then, once you have it saved, on the &amp;lt;tt&amp;gt;OpenSim.exe&amp;lt;/tt&amp;gt; console, type in:&lt;br /&gt;
 script terrain load-tile &amp;lt;filename&amp;gt; &amp;lt;image X&amp;gt; &amp;lt;image y&amp;gt; &amp;lt;bottomleftsim X&amp;gt; &amp;lt;bottomleftsim y&amp;gt;&lt;br /&gt;
For example, I run a square of 4 sims in a 2x2 pattern. I started my sim placement at 0, 0 and ended at 1, 1. my line reads:&lt;br /&gt;
 script terrain load-tile simalpha.r32 512 512 0 0&lt;br /&gt;
Next, before you log in, you may want to go to type in: *(THIS FUNCTION MAY NOT WORK)&lt;br /&gt;
 script terrain multiply 0.4&lt;br /&gt;
This should scale it down from the nearly 300 meters altitude I ran into to something a little more reasonable for the minimap.&lt;br /&gt;
&lt;br /&gt;
===How do I load a terrain file on startup?===&lt;br /&gt;
Edit the file &amp;lt;tt&amp;gt;startup_commands.txt&amp;lt;/tt&amp;gt; in the bin directory and add the above commands &amp;quot;&amp;lt;tt&amp;gt;script terrain load-tile ...&amp;lt;/tt&amp;gt;&amp;quot; and &amp;quot;&amp;lt;tt&amp;gt;script terrain multiply ...&amp;lt;/tt&amp;gt;&amp;quot; one per line.&lt;br /&gt;
&lt;br /&gt;
*** Notice this method is no longer required and should be considered a legacy function, Terrain persistance is now working 100%.&lt;br /&gt;
&lt;br /&gt;
Terrain Tidbits brought to you by Tilde, with a few questions in IRC :) - [[User:Tildeampersand|Tilde]] 10:32, 15 August 2007 (PDT)&lt;br /&gt;
&lt;br /&gt;
===How do I import into OpenSim the terrain shape of my Second Life sim?===&lt;br /&gt;
First, assure you are in the right region if you have more than one, by using: &lt;br /&gt;
&lt;br /&gt;
 change-region &amp;lt;nowiki&amp;gt;&amp;lt;regionname&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then use the command (file extension now determines the format, use .r32 for L3DT terrains)&lt;br /&gt;
&lt;br /&gt;
 script terrain load &amp;lt;filename&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Watch [http://archimedix.wordpress.com/2007/11/26/opensim/ this video] for a step-by-step tutorial.&lt;br /&gt;
&lt;br /&gt;
=== Other useless or useful info depending on who reads it ===&lt;br /&gt;
&lt;br /&gt;
* I found out that each point on the grey scale (0 to 255) equals approximately .23 to .25 meters in terrain height. - [[CharlieO]]&lt;br /&gt;
* Also for those who want to manually edit a png file, you need at minimum 3 different shades of grey. and one has to be drastically different than the other 2 in order to have the height show correctly. - [[CharlieO]]&lt;br /&gt;
 example:&lt;br /&gt;
  1) 0,0,0 &lt;br /&gt;
  2) 223, 233, 233 &lt;br /&gt;
  3) 255, 255, 255&lt;br /&gt;
&lt;br /&gt;
==General Setup Tricks==&lt;br /&gt;
=== Changing viewer start webpage in standalone mode ===&lt;br /&gt;
&lt;br /&gt;
In order to change the page that the viewer starts in /opensim/bin/ there is a http_loginform.html.example page.  Removing the .example will make this page be the start webpage which you can edit etc.  Since the login html code is no longer needed this can be modified at will.&lt;br /&gt;
&lt;br /&gt;
=== Making the server remember terrain, prims and other region storage changes after reboot ===&lt;br /&gt;
First off you should copy the OpenSim.ini.example to be your OpenSim.ini file.  This file has all the settings etc that you need to configure the server.   The default has a default of storing to null which does not save anything.  In order for terrain and prims to be remembered you must comment out --- storage_plugin = &amp;quot;OpenSim.Data.Null.dll&amp;quot; --- and uncomment one of the others.  The easiest one requiring no extra setup is uncommenting --- storage_plugin = &amp;quot;OpenSim.Data.SQLite.dll&amp;quot;--- and make sure ---storage_connection_string=&amp;quot;URI=file:OpenSim.db,version=3&amp;quot;;--- is already un-commented as well. which will make storage work using sqlite.&lt;/div&gt;</summary>
		<author><name>BBen</name></author>	</entry>

	<entry>
		<id>http://opensimulator.org/wiki/Tips</id>
		<title>Tips</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/wiki/Tips"/>
				<updated>2008-07-27T21:34:36Z</updated>
		
		<summary type="html">&lt;p&gt;BBen: /* Making the server remember terrain, prims and other region storage changes after reboot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Users]]&lt;br /&gt;
==Terrain Tidbits==&lt;br /&gt;
===How can I flatten a region?===&lt;br /&gt;
When you have multiple regions, that you need to terraform to a certain height, the quickest way to do it is by selecting a region, and fill the terrain to the specified height:&lt;br /&gt;
 change-region YourRegionName&lt;br /&gt;
 script terrain fill 20&lt;br /&gt;
&lt;br /&gt;
''Note:'' Remember to change to the region you wish to modify if that is the only region wish to make changes to. Without using the change-region command, you may very well end up flattening multiple regions!&lt;br /&gt;
&lt;br /&gt;
As of SVN 4061&lt;br /&gt;
  terrain fill 25&lt;br /&gt;
  &lt;br /&gt;
[[Category:Getting Started]]&lt;br /&gt;
&lt;br /&gt;
=== What programs can I use to create terrains for OpenSim? ===&lt;br /&gt;
If you are after simple terrain files (jpg, gif, etc), you can use Photoshop or any number of freeware programs, like [http://www.gimp.org/ Gimp]. If you want more complex terrains, you will need programs that output to standard 3d raw format (aka r32 or r64). [http://www.bundysoft.com/L3DT/ L3DT] and [http://www.planetside.co.uk/terragen/ Terragen] are two of the top commercial programs for this. (anyone know of a freeware one?), or you could, with some practice, use [http://www.blender.org/ Blender]. The free version of L3DT can make terrains up to 2048x2048 in size, or 8x8 regions.&lt;br /&gt;
You can use `terrain load IMG yourfile.png` to load '''greyscale''' PNG files.  Remember to use something like `terrain rescale 0 25` to make it visible.&lt;br /&gt;
Here is some info on [[Using L3DT]] to make a terrain.&lt;br /&gt;
&lt;br /&gt;
You can also use http://lab.parkstudio.ru/terra/ if you know a bit about heightmaps and how they work.  Just set the custom landscape texture gradient to pure black and pure white and turn off water.&lt;br /&gt;
And here are some [[Free Terrains]] that you can use. Enjoy!&lt;br /&gt;
&lt;br /&gt;
=== Where do I put the files for my terrains? ===&lt;br /&gt;
This one is actually pretty simple, but first the 'hard' answer: anywhere in the PATH will work. Lost? yeah, I was too, so... just drop the file into the &amp;lt;tt&amp;gt;bin&amp;lt;/tt&amp;gt; directory (right where your &amp;lt;tt&amp;gt;OpenSim.exe&amp;lt;/tt&amp;gt; file is).&lt;br /&gt;
&lt;br /&gt;
===How do I change the terrain for a group of sims?===&lt;br /&gt;
First, the file must be in f32 (or f64?) format. This is easy to do with L3DT's export feature. (Use the RAW format and set the options to &amp;lt;tt&amp;gt;Y flipped = true&amp;lt;/tt&amp;gt; and at the bottom, change it to read 'float' instead of 'ushort'). It also needs to be a file that will cover each sim in a 256x256 layer (so, for 2x2 regions, you need a 512x512 file), It is very important that you rename the file extension to .r32 for the import to properly work.&lt;br /&gt;
Then, once you have it saved, on the &amp;lt;tt&amp;gt;OpenSim.exe&amp;lt;/tt&amp;gt; console, type in:&lt;br /&gt;
 script terrain load-tile &amp;lt;filename&amp;gt; &amp;lt;image X&amp;gt; &amp;lt;image y&amp;gt; &amp;lt;bottomleftsim X&amp;gt; &amp;lt;bottomleftsim y&amp;gt;&lt;br /&gt;
For example, I run a square of 4 sims in a 2x2 pattern. I started my sim placement at 0, 0 and ended at 1, 1. my line reads:&lt;br /&gt;
 script terrain load-tile simalpha.r32 512 512 0 0&lt;br /&gt;
Next, before you log in, you may want to go to type in: *(THIS FUNCTION MAY NOT WORK)&lt;br /&gt;
 script terrain multiply 0.4&lt;br /&gt;
This should scale it down from the nearly 300 meters altitude I ran into to something a little more reasonable for the minimap.&lt;br /&gt;
&lt;br /&gt;
===How do I load a terrain file on startup?===&lt;br /&gt;
Edit the file &amp;lt;tt&amp;gt;startup_commands.txt&amp;lt;/tt&amp;gt; in the bin directory and add the above commands &amp;quot;&amp;lt;tt&amp;gt;script terrain load-tile ...&amp;lt;/tt&amp;gt;&amp;quot; and &amp;quot;&amp;lt;tt&amp;gt;script terrain multiply ...&amp;lt;/tt&amp;gt;&amp;quot; one per line.&lt;br /&gt;
&lt;br /&gt;
*** Notice this method is no longer required and should be considered a legacy function, Terrain persistance is now working 100%.&lt;br /&gt;
&lt;br /&gt;
Terrain Tidbits brought to you by Tilde, with a few questions in IRC :) - [[User:Tildeampersand|Tilde]] 10:32, 15 August 2007 (PDT)&lt;br /&gt;
&lt;br /&gt;
===How do I import into OpenSim the terrain shape of my Second Life sim?===&lt;br /&gt;
First, assure you are in the right region if you have more than one, by using: &lt;br /&gt;
&lt;br /&gt;
 change-region &amp;lt;nowiki&amp;gt;&amp;lt;regionname&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then use the command (file extension now determines the format, use .r32 for L3DT terrains)&lt;br /&gt;
&lt;br /&gt;
 script terrain load &amp;lt;filename&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Watch [http://archimedix.wordpress.com/2007/11/26/opensim/ this video] for a step-by-step tutorial.&lt;br /&gt;
&lt;br /&gt;
=== Other useless or useful info depending on who reads it ===&lt;br /&gt;
&lt;br /&gt;
* I found out that each point on the grey scale (0 to 255) equals approximately .23 to .25 meters in terrain height. - [[CharlieO]]&lt;br /&gt;
* Also for those who want to manually edit a png file, you need at minimum 3 different shades of grey. and one has to be drastically different than the other 2 in order to have the height show correctly. - [[CharlieO]]&lt;br /&gt;
 example:&lt;br /&gt;
  1) 0,0,0 &lt;br /&gt;
  2) 223, 233, 233 &lt;br /&gt;
  3) 255, 255, 255&lt;br /&gt;
&lt;br /&gt;
==General Setup Tricks==&lt;br /&gt;
=== Changing viewer start webpage in standalone mode ===&lt;br /&gt;
&lt;br /&gt;
In order to change the page that the viewer starts in /opensim/bin/ there is a http_loginform.html.example page.  Removing the .example will make this page be the start webpage which you can edit etc.  Since the login html code is no longer needed this can be modified at will.&lt;br /&gt;
&lt;br /&gt;
=== Making the server remember terrain, prims and other region storage changes after reboot ===&lt;br /&gt;
First off you should copy the OpenSim.ini.example to be your OpenSim.ini file.  This file has all the settings etc that you need to configure the server.   The default has a default of storing to null which does not save anything.  In order for terrain and prims to be remembered you must comment out --- storage_plugin = &amp;quot;OpenSim.Data.Null.dll&amp;quot; --- and uncomment one of the others.  The easiest one requiring no extra setup is uncommenting --- storage_plugin = &amp;quot;OpenSim.Data.SQLite.dll&amp;quot;--- and ---storage_connection_string=&amp;quot;URI=file:OpenSim.db,version=3&amp;quot;;--- which will make storage work using sqlite.&lt;/div&gt;</summary>
		<author><name>BBen</name></author>	</entry>

	<entry>
		<id>http://opensimulator.org/wiki/Tips</id>
		<title>Tips</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/wiki/Tips"/>
				<updated>2008-07-27T21:28:50Z</updated>
		
		<summary type="html">&lt;p&gt;BBen: /* Making the server remember terrain, prims and other region storage changes after reboot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Users]]&lt;br /&gt;
==Terrain Tidbits==&lt;br /&gt;
===How can I flatten a region?===&lt;br /&gt;
When you have multiple regions, that you need to terraform to a certain height, the quickest way to do it is by selecting a region, and fill the terrain to the specified height:&lt;br /&gt;
 change-region YourRegionName&lt;br /&gt;
 script terrain fill 20&lt;br /&gt;
&lt;br /&gt;
''Note:'' Remember to change to the region you wish to modify if that is the only region wish to make changes to. Without using the change-region command, you may very well end up flattening multiple regions!&lt;br /&gt;
&lt;br /&gt;
As of SVN 4061&lt;br /&gt;
  terrain fill 25&lt;br /&gt;
  &lt;br /&gt;
[[Category:Getting Started]]&lt;br /&gt;
&lt;br /&gt;
=== What programs can I use to create terrains for OpenSim? ===&lt;br /&gt;
If you are after simple terrain files (jpg, gif, etc), you can use Photoshop or any number of freeware programs, like [http://www.gimp.org/ Gimp]. If you want more complex terrains, you will need programs that output to standard 3d raw format (aka r32 or r64). [http://www.bundysoft.com/L3DT/ L3DT] and [http://www.planetside.co.uk/terragen/ Terragen] are two of the top commercial programs for this. (anyone know of a freeware one?), or you could, with some practice, use [http://www.blender.org/ Blender]. The free version of L3DT can make terrains up to 2048x2048 in size, or 8x8 regions.&lt;br /&gt;
You can use `terrain load IMG yourfile.png` to load '''greyscale''' PNG files.  Remember to use something like `terrain rescale 0 25` to make it visible.&lt;br /&gt;
Here is some info on [[Using L3DT]] to make a terrain.&lt;br /&gt;
&lt;br /&gt;
You can also use http://lab.parkstudio.ru/terra/ if you know a bit about heightmaps and how they work.  Just set the custom landscape texture gradient to pure black and pure white and turn off water.&lt;br /&gt;
And here are some [[Free Terrains]] that you can use. Enjoy!&lt;br /&gt;
&lt;br /&gt;
=== Where do I put the files for my terrains? ===&lt;br /&gt;
This one is actually pretty simple, but first the 'hard' answer: anywhere in the PATH will work. Lost? yeah, I was too, so... just drop the file into the &amp;lt;tt&amp;gt;bin&amp;lt;/tt&amp;gt; directory (right where your &amp;lt;tt&amp;gt;OpenSim.exe&amp;lt;/tt&amp;gt; file is).&lt;br /&gt;
&lt;br /&gt;
===How do I change the terrain for a group of sims?===&lt;br /&gt;
First, the file must be in f32 (or f64?) format. This is easy to do with L3DT's export feature. (Use the RAW format and set the options to &amp;lt;tt&amp;gt;Y flipped = true&amp;lt;/tt&amp;gt; and at the bottom, change it to read 'float' instead of 'ushort'). It also needs to be a file that will cover each sim in a 256x256 layer (so, for 2x2 regions, you need a 512x512 file), It is very important that you rename the file extension to .r32 for the import to properly work.&lt;br /&gt;
Then, once you have it saved, on the &amp;lt;tt&amp;gt;OpenSim.exe&amp;lt;/tt&amp;gt; console, type in:&lt;br /&gt;
 script terrain load-tile &amp;lt;filename&amp;gt; &amp;lt;image X&amp;gt; &amp;lt;image y&amp;gt; &amp;lt;bottomleftsim X&amp;gt; &amp;lt;bottomleftsim y&amp;gt;&lt;br /&gt;
For example, I run a square of 4 sims in a 2x2 pattern. I started my sim placement at 0, 0 and ended at 1, 1. my line reads:&lt;br /&gt;
 script terrain load-tile simalpha.r32 512 512 0 0&lt;br /&gt;
Next, before you log in, you may want to go to type in: *(THIS FUNCTION MAY NOT WORK)&lt;br /&gt;
 script terrain multiply 0.4&lt;br /&gt;
This should scale it down from the nearly 300 meters altitude I ran into to something a little more reasonable for the minimap.&lt;br /&gt;
&lt;br /&gt;
===How do I load a terrain file on startup?===&lt;br /&gt;
Edit the file &amp;lt;tt&amp;gt;startup_commands.txt&amp;lt;/tt&amp;gt; in the bin directory and add the above commands &amp;quot;&amp;lt;tt&amp;gt;script terrain load-tile ...&amp;lt;/tt&amp;gt;&amp;quot; and &amp;quot;&amp;lt;tt&amp;gt;script terrain multiply ...&amp;lt;/tt&amp;gt;&amp;quot; one per line.&lt;br /&gt;
&lt;br /&gt;
*** Notice this method is no longer required and should be considered a legacy function, Terrain persistance is now working 100%.&lt;br /&gt;
&lt;br /&gt;
Terrain Tidbits brought to you by Tilde, with a few questions in IRC :) - [[User:Tildeampersand|Tilde]] 10:32, 15 August 2007 (PDT)&lt;br /&gt;
&lt;br /&gt;
===How do I import into OpenSim the terrain shape of my Second Life sim?===&lt;br /&gt;
First, assure you are in the right region if you have more than one, by using: &lt;br /&gt;
&lt;br /&gt;
 change-region &amp;lt;nowiki&amp;gt;&amp;lt;regionname&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then use the command (file extension now determines the format, use .r32 for L3DT terrains)&lt;br /&gt;
&lt;br /&gt;
 script terrain load &amp;lt;filename&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Watch [http://archimedix.wordpress.com/2007/11/26/opensim/ this video] for a step-by-step tutorial.&lt;br /&gt;
&lt;br /&gt;
=== Other useless or useful info depending on who reads it ===&lt;br /&gt;
&lt;br /&gt;
* I found out that each point on the grey scale (0 to 255) equals approximately .23 to .25 meters in terrain height. - [[CharlieO]]&lt;br /&gt;
* Also for those who want to manually edit a png file, you need at minimum 3 different shades of grey. and one has to be drastically different than the other 2 in order to have the height show correctly. - [[CharlieO]]&lt;br /&gt;
 example:&lt;br /&gt;
  1) 0,0,0 &lt;br /&gt;
  2) 223, 233, 233 &lt;br /&gt;
  3) 255, 255, 255&lt;br /&gt;
&lt;br /&gt;
==General Setup Tricks==&lt;br /&gt;
=== Changing viewer start webpage in standalone mode ===&lt;br /&gt;
&lt;br /&gt;
In order to change the page that the viewer starts in /opensim/bin/ there is a http_loginform.html.example page.  Removing the .example will make this page be the start webpage which you can edit etc.  Since the login html code is no longer needed this can be modified at will.&lt;br /&gt;
&lt;br /&gt;
=== Making the server remember terrain, prims and other region storage changes after reboot ===&lt;br /&gt;
First off you should copy the OpenSim.ini.example to be your OpenSim.ini file.  This file has all the settings etc that you need to configure the server.   The default has a default of storing to null which does not save anything.  In order for terrain and prims to be remembered you must comment out --- storage_plugin = &amp;quot;OpenSim.Data.Null.dll&amp;quot; --- and uncomment one of the others.  The easiest one requiring no extra setup is --- storage_plugin = &amp;quot;OpenSim.Data.SQLite.dll&amp;quot;--- which un-commenting will make storage work.&lt;/div&gt;</summary>
		<author><name>BBen</name></author>	</entry>

	<entry>
		<id>http://opensimulator.org/wiki/Tips</id>
		<title>Tips</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/wiki/Tips"/>
				<updated>2008-07-27T21:28:29Z</updated>
		
		<summary type="html">&lt;p&gt;BBen: /* Changing viewer start webpage in standalone mode */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Users]]&lt;br /&gt;
==Terrain Tidbits==&lt;br /&gt;
===How can I flatten a region?===&lt;br /&gt;
When you have multiple regions, that you need to terraform to a certain height, the quickest way to do it is by selecting a region, and fill the terrain to the specified height:&lt;br /&gt;
 change-region YourRegionName&lt;br /&gt;
 script terrain fill 20&lt;br /&gt;
&lt;br /&gt;
''Note:'' Remember to change to the region you wish to modify if that is the only region wish to make changes to. Without using the change-region command, you may very well end up flattening multiple regions!&lt;br /&gt;
&lt;br /&gt;
As of SVN 4061&lt;br /&gt;
  terrain fill 25&lt;br /&gt;
  &lt;br /&gt;
[[Category:Getting Started]]&lt;br /&gt;
&lt;br /&gt;
=== What programs can I use to create terrains for OpenSim? ===&lt;br /&gt;
If you are after simple terrain files (jpg, gif, etc), you can use Photoshop or any number of freeware programs, like [http://www.gimp.org/ Gimp]. If you want more complex terrains, you will need programs that output to standard 3d raw format (aka r32 or r64). [http://www.bundysoft.com/L3DT/ L3DT] and [http://www.planetside.co.uk/terragen/ Terragen] are two of the top commercial programs for this. (anyone know of a freeware one?), or you could, with some practice, use [http://www.blender.org/ Blender]. The free version of L3DT can make terrains up to 2048x2048 in size, or 8x8 regions.&lt;br /&gt;
You can use `terrain load IMG yourfile.png` to load '''greyscale''' PNG files.  Remember to use something like `terrain rescale 0 25` to make it visible.&lt;br /&gt;
Here is some info on [[Using L3DT]] to make a terrain.&lt;br /&gt;
&lt;br /&gt;
You can also use http://lab.parkstudio.ru/terra/ if you know a bit about heightmaps and how they work.  Just set the custom landscape texture gradient to pure black and pure white and turn off water.&lt;br /&gt;
And here are some [[Free Terrains]] that you can use. Enjoy!&lt;br /&gt;
&lt;br /&gt;
=== Where do I put the files for my terrains? ===&lt;br /&gt;
This one is actually pretty simple, but first the 'hard' answer: anywhere in the PATH will work. Lost? yeah, I was too, so... just drop the file into the &amp;lt;tt&amp;gt;bin&amp;lt;/tt&amp;gt; directory (right where your &amp;lt;tt&amp;gt;OpenSim.exe&amp;lt;/tt&amp;gt; file is).&lt;br /&gt;
&lt;br /&gt;
===How do I change the terrain for a group of sims?===&lt;br /&gt;
First, the file must be in f32 (or f64?) format. This is easy to do with L3DT's export feature. (Use the RAW format and set the options to &amp;lt;tt&amp;gt;Y flipped = true&amp;lt;/tt&amp;gt; and at the bottom, change it to read 'float' instead of 'ushort'). It also needs to be a file that will cover each sim in a 256x256 layer (so, for 2x2 regions, you need a 512x512 file), It is very important that you rename the file extension to .r32 for the import to properly work.&lt;br /&gt;
Then, once you have it saved, on the &amp;lt;tt&amp;gt;OpenSim.exe&amp;lt;/tt&amp;gt; console, type in:&lt;br /&gt;
 script terrain load-tile &amp;lt;filename&amp;gt; &amp;lt;image X&amp;gt; &amp;lt;image y&amp;gt; &amp;lt;bottomleftsim X&amp;gt; &amp;lt;bottomleftsim y&amp;gt;&lt;br /&gt;
For example, I run a square of 4 sims in a 2x2 pattern. I started my sim placement at 0, 0 and ended at 1, 1. my line reads:&lt;br /&gt;
 script terrain load-tile simalpha.r32 512 512 0 0&lt;br /&gt;
Next, before you log in, you may want to go to type in: *(THIS FUNCTION MAY NOT WORK)&lt;br /&gt;
 script terrain multiply 0.4&lt;br /&gt;
This should scale it down from the nearly 300 meters altitude I ran into to something a little more reasonable for the minimap.&lt;br /&gt;
&lt;br /&gt;
===How do I load a terrain file on startup?===&lt;br /&gt;
Edit the file &amp;lt;tt&amp;gt;startup_commands.txt&amp;lt;/tt&amp;gt; in the bin directory and add the above commands &amp;quot;&amp;lt;tt&amp;gt;script terrain load-tile ...&amp;lt;/tt&amp;gt;&amp;quot; and &amp;quot;&amp;lt;tt&amp;gt;script terrain multiply ...&amp;lt;/tt&amp;gt;&amp;quot; one per line.&lt;br /&gt;
&lt;br /&gt;
*** Notice this method is no longer required and should be considered a legacy function, Terrain persistance is now working 100%.&lt;br /&gt;
&lt;br /&gt;
Terrain Tidbits brought to you by Tilde, with a few questions in IRC :) - [[User:Tildeampersand|Tilde]] 10:32, 15 August 2007 (PDT)&lt;br /&gt;
&lt;br /&gt;
===How do I import into OpenSim the terrain shape of my Second Life sim?===&lt;br /&gt;
First, assure you are in the right region if you have more than one, by using: &lt;br /&gt;
&lt;br /&gt;
 change-region &amp;lt;nowiki&amp;gt;&amp;lt;regionname&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then use the command (file extension now determines the format, use .r32 for L3DT terrains)&lt;br /&gt;
&lt;br /&gt;
 script terrain load &amp;lt;filename&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Watch [http://archimedix.wordpress.com/2007/11/26/opensim/ this video] for a step-by-step tutorial.&lt;br /&gt;
&lt;br /&gt;
=== Other useless or useful info depending on who reads it ===&lt;br /&gt;
&lt;br /&gt;
* I found out that each point on the grey scale (0 to 255) equals approximately .23 to .25 meters in terrain height. - [[CharlieO]]&lt;br /&gt;
* Also for those who want to manually edit a png file, you need at minimum 3 different shades of grey. and one has to be drastically different than the other 2 in order to have the height show correctly. - [[CharlieO]]&lt;br /&gt;
 example:&lt;br /&gt;
  1) 0,0,0 &lt;br /&gt;
  2) 223, 233, 233 &lt;br /&gt;
  3) 255, 255, 255&lt;br /&gt;
&lt;br /&gt;
==General Setup Tricks==&lt;br /&gt;
=== Changing viewer start webpage in standalone mode ===&lt;br /&gt;
&lt;br /&gt;
In order to change the page that the viewer starts in /opensim/bin/ there is a http_loginform.html.example page.  Removing the .example will make this page be the start webpage which you can edit etc.  Since the login html code is no longer needed this can be modified at will.&lt;br /&gt;
&lt;br /&gt;
=== Making the server remember terrain, prims and other region storage changes after reboot ===&lt;br /&gt;
First off you should copy the OpenSim.ini.example to be your OpenSim.ini file.  This file has all the settings etc that you need to configure the server.   The default has a default of storing to null which does not save anything.  In order for terrain and prims to be remembered you must comment out --- storage_plugin = &amp;quot;OpenSim.Data.Null.dll&amp;quot; --- and uncomment one of the others.  The easiest one requiring no extra setup is --- storage_plugin = &amp;quot;OpenSim.Data.SQLite.dll&amp;quot;--- which un-commenting will make work.&lt;/div&gt;</summary>
		<author><name>BBen</name></author>	</entry>

	<entry>
		<id>http://opensimulator.org/wiki/Tips</id>
		<title>Tips</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/wiki/Tips"/>
				<updated>2008-07-21T23:51:37Z</updated>
		
		<summary type="html">&lt;p&gt;BBen: /* Terrain Tidbits */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Users]]&lt;br /&gt;
==Terrain Tidbits==&lt;br /&gt;
===How can I flatten a region?===&lt;br /&gt;
When you have multiple regions, that you need to terraform to a certain height, the quickest way to do it is by selecting a region, and fill the terrain to the specified height:&lt;br /&gt;
 change-region YourRegionName&lt;br /&gt;
 script terrain fill 20&lt;br /&gt;
&lt;br /&gt;
''Note:'' Remember to change to the region you wish to modify if that is the only region wish to make changes to. Without using the change-region command, you may very well end up flattening multiple regions!&lt;br /&gt;
&lt;br /&gt;
As of SVN 4061&lt;br /&gt;
  terrain fill 25&lt;br /&gt;
  &lt;br /&gt;
[[Category:Getting Started]]&lt;br /&gt;
&lt;br /&gt;
=== What programs can I use to create terrains for OpenSim? ===&lt;br /&gt;
If you are after simple terrain files (jpg, gif, etc), you can use Photoshop or any number of freeware programs, like [http://www.gimp.org/ Gimp]. If you want more complex terrains, you will need programs that output to standard 3d raw format (aka r32 or r64). [http://www.bundysoft.com/L3DT/ L3DT] and [http://www.planetside.co.uk/terragen/ Terragen] are two of the top commercial programs for this. (anyone know of a freeware one?), or you could, with some practice, use [http://www.blender.org/ Blender]. The free version of L3DT can make terrains up to 2048x2048 in size, or 8x8 regions.&lt;br /&gt;
You can use `terrain load IMG yourfile.png` to load '''greyscale''' PNG files.  Remember to use something like `terrain rescale 0 25` to make it visible.&lt;br /&gt;
Here is some info on [[Using L3DT]] to make a terrain.&lt;br /&gt;
&lt;br /&gt;
You can also use http://lab.parkstudio.ru/terra/ if you know a bit about heightmaps and how they work.  Just set the custom landscape texture gradient to pure black and pure white and turn off water.&lt;br /&gt;
And here are some [[Free Terrains]] that you can use. Enjoy!&lt;br /&gt;
&lt;br /&gt;
=== Where do I put the files for my terrains? ===&lt;br /&gt;
This one is actually pretty simple, but first the 'hard' answer: anywhere in the PATH will work. Lost? yeah, I was too, so... just drop the file into the &amp;lt;tt&amp;gt;bin&amp;lt;/tt&amp;gt; directory (right where your &amp;lt;tt&amp;gt;OpenSim.exe&amp;lt;/tt&amp;gt; file is).&lt;br /&gt;
&lt;br /&gt;
===How do I change the terrain for a group of sims?===&lt;br /&gt;
First, the file must be in f32 (or f64?) format. This is easy to do with L3DT's export feature. (Use the RAW format and set the options to &amp;lt;tt&amp;gt;Y flipped = true&amp;lt;/tt&amp;gt; and at the bottom, change it to read 'float' instead of 'ushort'). It also needs to be a file that will cover each sim in a 256x256 layer (so, for 2x2 regions, you need a 512x512 file), It is very important that you rename the file extension to .r32 for the import to properly work.&lt;br /&gt;
Then, once you have it saved, on the &amp;lt;tt&amp;gt;OpenSim.exe&amp;lt;/tt&amp;gt; console, type in:&lt;br /&gt;
 script terrain load-tile &amp;lt;filename&amp;gt; &amp;lt;image X&amp;gt; &amp;lt;image y&amp;gt; &amp;lt;bottomleftsim X&amp;gt; &amp;lt;bottomleftsim y&amp;gt;&lt;br /&gt;
For example, I run a square of 4 sims in a 2x2 pattern. I started my sim placement at 0, 0 and ended at 1, 1. my line reads:&lt;br /&gt;
 script terrain load-tile simalpha.r32 512 512 0 0&lt;br /&gt;
Next, before you log in, you may want to go to type in: *(THIS FUNCTION MAY NOT WORK)&lt;br /&gt;
 script terrain multiply 0.4&lt;br /&gt;
This should scale it down from the nearly 300 meters altitude I ran into to something a little more reasonable for the minimap.&lt;br /&gt;
&lt;br /&gt;
===How do I load a terrain file on startup?===&lt;br /&gt;
Edit the file &amp;lt;tt&amp;gt;startup_commands.txt&amp;lt;/tt&amp;gt; in the bin directory and add the above commands &amp;quot;&amp;lt;tt&amp;gt;script terrain load-tile ...&amp;lt;/tt&amp;gt;&amp;quot; and &amp;quot;&amp;lt;tt&amp;gt;script terrain multiply ...&amp;lt;/tt&amp;gt;&amp;quot; one per line.&lt;br /&gt;
&lt;br /&gt;
*** Notice this method is no longer required and should be considered a legacy function, Terrain persistance is now working 100%.&lt;br /&gt;
&lt;br /&gt;
Terrain Tidbits brought to you by Tilde, with a few questions in IRC :) - [[User:Tildeampersand|Tilde]] 10:32, 15 August 2007 (PDT)&lt;br /&gt;
&lt;br /&gt;
===How do I import into OpenSim the terrain shape of my Second Life sim?===&lt;br /&gt;
First, assure you are in the right region if you have more than one, by using: &lt;br /&gt;
&lt;br /&gt;
 change-region &amp;lt;nowiki&amp;gt;&amp;lt;regionname&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then use the command (file extension now determines the format, use .r32 for L3DT terrains)&lt;br /&gt;
&lt;br /&gt;
 script terrain load &amp;lt;filename&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Watch [http://archimedix.wordpress.com/2007/11/26/opensim/ this video] for a step-by-step tutorial.&lt;br /&gt;
&lt;br /&gt;
=== Other useless or useful info depending on who reads it ===&lt;br /&gt;
&lt;br /&gt;
* I found out that each point on the grey scale (0 to 255) equals approximately .23 to .25 meters in terrain height. - [[CharlieO]]&lt;br /&gt;
* Also for those who want to manually edit a png file, you need at minimum 3 different shades of grey. and one has to be drastically different than the other 2 in order to have the height show correctly. - [[CharlieO]]&lt;br /&gt;
 example:&lt;br /&gt;
  1) 0,0,0 &lt;br /&gt;
  2) 223, 233, 233 &lt;br /&gt;
  3) 255, 255, 255&lt;br /&gt;
&lt;br /&gt;
==General Setup Tricks==&lt;br /&gt;
=== Changing viewer start webpage in standalone mode ===&lt;br /&gt;
&lt;br /&gt;
In order to change the page that the viewer starts in /opensim/bin/ there is a http_loginform.html.example page.  Removing the .example will make this page be the start webpage which you can edit etc.  Since the login html code is no longer needed this can be modified at will.&lt;/div&gt;</summary>
		<author><name>BBen</name></author>	</entry>

	</feed>