FAQ

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (OpenSim:FAQ moved to FAQ)
Line 4: Line 4:
 
=== I can't find any build files or solution files ===
 
=== I can't find any build files or solution files ===
  
* If you're on windows, run prebuild.bat - on linux prebuild.sh
+
* If you're on Windows, run <tt>runprebuild.bat</tt> - on Linux/Mac <tt>runprebuild.sh</tt>
  
 
=== VS2005 wont open the .sln file ===
 
=== VS2005 wont open the .sln file ===
  
* Try running the VS2005 C#. You are probably running VS2005 C++. This is a C# project.
+
* Try running VS2005 C#. You are probably running VS2005 C++. This is a C# project.
  
 
= Running OpenSim =
 
= Running OpenSim =
Line 14: Line 14:
 
=== Running OpenSim.exe from a Cygwin shell has access denied for some dll's ===
 
=== Running OpenSim.exe from a Cygwin shell has access denied for some dll's ===
  
* Do a 'cd bin' followed by 'chmod a+x *' to make all dll files executable.
+
* Do a '<tt>cd bin</tt>' followed by '<tt>chmod a+x *</tt>' to make all dll files executable.
  
 
=== I cannot start my sim ===
 
=== I cannot start my sim ===
Line 26: Line 26:
 
=== Where can I get a new UUID for my sim config? ===
 
=== Where can I get a new UUID for my sim config? ===
  
Use 'uuidgen' or generate one on the [http://www.famkruithof.net/uuid/uuidgen uuidgen webpage].
+
Use '<tt>uuidgen</tt>' or generate one on the [http://www.famkruithof.net/uuid/uuidgen uuidgen webpage].
  
 
=== Can I run multiple regions with OpenSim? ===
 
=== Can I run multiple regions with OpenSim? ===
  
Yes.  To do this add another xml file to bin/Regions. You need to create a new 'sim_UUID' (see above) and change the 'sim_name', 'internal_ip_port', 'sim_location_x' and 'sim_location_y' (and anything else you wish to change). Restart OpenSim.
+
Yes.  To do this add another xml file to <tt>bin/Regions</tt>. You need to create a new 'sim_UUID' (see above) and change the 'sim_name', 'internal_ip_port', 'sim_location_x' and 'sim_location_y' (and anything else you wish to change). <tt>share/regions/make.php</tt> may be useful for generating region files automatically.  Once the new region files have been added to <tt>bin/Regions</tt>, restart OpenSim.
  
sim_location_x and sim_location_y should be in adjacent regions, then you will be able to run back and forth between regions.
+
sim_location_x and sim_location_y should be in adjacent regions, so you will be able to run back and forth between regions.
  
 
* See [[OpenSim: Configuration]].
 
* See [[OpenSim: Configuration]].
Line 38: Line 38:
 
=== How do I enable prim storage? ===
 
=== How do I enable prim storage? ===
  
* In the OpenSim.ini file, change the storage_plugin so it points to OpenSim.DataStore.MonoSqlite.dll (storage_plugin =  OpenSim.DataStore.MonoSqlite.dll).
+
* In the <tt>OpenSim.ini</tt> file, change the <tt>storage_plugin</tt> so it points to <tt>OpenSim.DataStore.MonoSqlite.dll</tt> (<tt>storage_plugin =  OpenSim.DataStore.MonoSqlite.dll</tt>).
  
Note: you can specify the same database for all region.xml files, as information in the database is stored with the region.
+
Note: you can specify the same database for all <tt>region.xml</tt> files, as information in the database is stored with the region.
  
 
Currently, sqlite is the only database provider that works for prim storage, this will change in the future.
 
Currently, sqlite is the only database provider that works for prim storage, this will change in the future.
  
 
=== There are a bunch of textures in the library, but they are all 0x0? What's wrong? ===
 
=== There are a bunch of textures in the library, but they are all 0x0? What's wrong? ===
To enable these extra textures for your use, you must delete your regionassets.yap file, and restart your sim. WARNING: IF YOU DO THIS, YOU WILL LOSE ANY ASSETS (textures, scripts, animations, etc) THAT YOU HAVE UPLOADED!
+
To enable these extra textures for your use, you must delete your <tt>regionassets.yap</tt> file, and restart your sim. WARNING: IF YOU DO THIS, YOU WILL LOSE ANY ASSETS (textures, scripts, animations, etc) THAT YOU HAVE UPLOADED!
  
 
=== What databases are supported in OpenSim? ===
 
=== What databases are supported in OpenSim? ===
Line 64: Line 64:
 
=== I get a timeout during region handshake ===
 
=== I get a timeout during region handshake ===
  
* Do you have the correct IP in your Regions\* config file?
+
* Do you have the correct IP in your Regions\* config files?
 
* Do you have multiple interfaces on the server running OpenSim? OpenSim will not bind outgoing UDP packets to a specific IP, its default IP to reach you will be what the Region answers UDP with. If you have configured the region for another IP you will get a timeout during connect.
 
* Do you have multiple interfaces on the server running OpenSim? OpenSim will not bind outgoing UDP packets to a specific IP, its default IP to reach you will be what the Region answers UDP with. If you have configured the region for another IP you will get a timeout during connect.
  
Line 71: Line 71:
 
* See [[OpenSim: Connecting]].
 
* See [[OpenSim: Connecting]].
  
=== I connect but cannot move ===
+
=== I can connect but cannot move ===
  
 
If the client connects but the avatar can only spin in place and not move, then the sim is not correctly configured. It completed the initial login function, but packets are not being exchanged between the client and the sim, probably due to a network configuration error on the sim.
 
If the client connects but the avatar can only spin in place and not move, then the sim is not correctly configured. It completed the initial login function, but packets are not being exchanged between the client and the sim, probably due to a network configuration error on the sim.
Line 84: Line 84:
 
* This may happen when running OpenSim on a Linux server, both in grid or standalone mode.
 
* This may happen when running OpenSim on a Linux server, both in grid or standalone mode.
 
* Symptoms: when opening the worldmap window in the SL-viewer, the sims are not displayed grahically in the worldmap, the server console shows some error related to openjpeg, the current session freezes...
 
* Symptoms: when opening the worldmap window in the SL-viewer, the sims are not displayed grahically in the worldmap, the server console shows some error related to openjpeg, the current session freezes...
* Reason: your svn source trunk has not the correct (or whatever...) libopenjpeg-libsl library.
+
* Reason: your svn source trunk does not have the correct (or whatever...) <tt>libopenjpeg-libsl</tt> library.
* Solution: get the newest code from libsecondlife (svn co svn://opensecondlife.org/libsl/trunk), 'make' manually in the subdir openjpeg-libsl, and copy the resulting libopenjpeg-libsl-2.1.2.0.so into your OpenSim .../bin subdir, overwriting the existing one.
+
* Solution: get the newest code from libsecondlife (<tt>svn co svn://opensecondlife.org/libsl/trunk</tt>), '<tt>make</tt>' manually in the subdir <tt>openjpeg-libsl</tt>, and copy the resulting <tt>libopenjpeg-libsl-2.1.2.0.so</tt> into your OpenSim <tt>bin</tt> subdir, overwriting the existing one.
 
* Recompile & restart OpenSim.
 
* Recompile & restart OpenSim.
  
Line 118: Line 118:
 
= Terrain Tidbits =
 
= Terrain Tidbits =
 
=== What programs can I use to create terrains for OpenSim? ===
 
=== What programs can I use to create terrains for OpenSim? ===
If you are after simple terrain files (jpg, gif, etc), you can use Photoshop or any number of freeware programs, like Gimp. If you want more complex terrains, you will need programs that output to standard 3d raw format (aka r32 or r64). L3DT and Terragen are two of the top commercial programs for this. (anyone know of a freeware one?), or you could, with some practice, use Blender. The free version of L3DT can make terrains up to 2048x2048 in size, or 8x8 regions.
+
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.
  
 
=== Where do I put the files for my terrains? ===
 
=== Where do I put the files for my terrains? ===
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 /bin directory (right where your opensim.exe file is).
+
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 <tt>bin</tt> directory (right where your <tt>OpenSim.exe</tt> file is).
  
 
=== How do I change the terrain for a group of sims? ===
 
=== How do I change the terrain for a group of sims? ===
First, the file must be in f32 (or f64?) format. This is done easliy with L3DT's export feature. (use the RAW format and set the oprions to Y flipped = true 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).
+
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 <tt>Y flipped = true</tt> 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).
  
Then, once you have it saved, on the OpenSim.exe console, type in:
+
Then, once you have it saved, on the <tt>OpenSim.exe</tt> console, type in:
  
 
  terrain load-tile f32 <filename> <image X> <image y> <bottomleftsim X> <bottomleftsim y>
 
  terrain load-tile f32 <filename> <image X> <image y> <bottomleftsim X> <bottomleftsim y>
Line 141: Line 141:
  
 
=== How do I load a terrain file on startup? ===
 
=== How do I load a terrain file on startup? ===
Edit the file startup_commands.txt in the bin directory and add the above commands "terrain load-tile ..." and "terrain multiply ..." one per line.
+
Edit the file <tt>startup_commands.txt</tt> in the bin directory and add the above commands "<tt>terrain load-tile ...</tt>" and "<tt>terrain multiply ...</tt>" one per line.
  
 
Terrain Tidbits brought to you by Tilde, with a few questions in IRC :) - [[User:Tildeampersand|Tilde]] 10:32, 15 August 2007 (PDT)
 
Terrain Tidbits brought to you by Tilde, with a few questions in IRC :) - [[User:Tildeampersand|Tilde]] 10:32, 15 August 2007 (PDT)
Line 170: Line 170:
 
=== I start the OpenSim.Grid.UserServer.exe and it gives an error ===
 
=== I start the OpenSim.Grid.UserServer.exe and it gives an error ===
  
If this error is access denied for username@localhost, the mysql database is not set up.
+
If this error is access denied for <tt>username@localhost</tt>, the mysql database is not set up.
  
 
It will print some text and wait for input - either an enter to accept a default value, or another value you can supply.
 
It will print some text and wait for input - either an enter to accept a default value, or another value you can supply.
Line 178: Line 178:
 
=== I want to run my own Local Grid but one or more servers fail to start ===
 
=== I want to run my own Local Grid but one or more servers fail to start ===
  
* Be sure that you're able to start OpenSim.exe alone, in Standalone mode, and to be able to login.
+
* Be sure that you're able to start <tt>OpenSim.exe</tt> alone, in Standalone mode, and to be able to login.
 
* Start the servers in the correct UGAS order and answer the questions as recommended (see [[OpenSim: Configuration]]).
 
* Start the servers in the correct UGAS order and answer the questions as recommended (see [[OpenSim: Configuration]]).
 
* Set all the external URI's to the correct IP: 127.0.0.1 if running on your local machine, or aaa.bbb.ccc.ddd if running on a remote server.
 
* Set all the external URI's to the correct IP: 127.0.0.1 if running on your local machine, or aaa.bbb.ccc.ddd if running on a remote server.
* Check again all the *.xml configuration files for any wrong settings or typing errors...!
+
* Check again all the <tt>*.xml</tt> configuration files for any wrong settings or typing errors...!
 
* Don't forget to connect with your SL-viewer to port 8002 (Grid User-Server) instead of 9000 (Standalone OpenSim-Server).
 
* Don't forget to connect with your SL-viewer to port 8002 (Grid User-Server) instead of 9000 (Standalone OpenSim-Server).
* Delete all *.xml and *.yap files in the bin directory if you want to run a full reconfiguration again.
+
* Delete all <tt>*.xml</tt> and <tt>*.yap</tt> files in the <tt>bin</tt> directory if you want to run a full reconfiguration again.
  
  
Line 200: Line 200:
 
=== Asking in IRC ===
 
=== Asking in IRC ===
  
IRC channels are #opensim-help, #opensim and #opensim-dev on EFNet. Approach them in that order :) Please be courteous and remember that the developers and anyone else assisting you are volunteers there.
+
IRC channels are <tt>#opensim-help</tt>, <tt>#opensim</tt> and <tt>#opensim-dev</tt> on EFNet. Approach them in that order :) Please be courteous and remember that the developers and anyone else assisting you are volunteers there.
  
 
* Don't ask to ask, just ask.
 
* Don't ask to ask, just ask.

Revision as of 15:21, 11 September 2007

A list of frequently asked questions. Please add anything you think is reasonable here.

Contents

Building OpenSim

I can't find any build files or solution files

  • If you're on Windows, run runprebuild.bat - on Linux/Mac runprebuild.sh

VS2005 wont open the .sln file

  • Try running VS2005 C#. You are probably running VS2005 C++. This is a C# project.

Running OpenSim

Running OpenSim.exe from a Cygwin shell has access denied for some dll's

  • Do a 'cd bin' followed by 'chmod a+x *' to make all dll files executable.

I cannot start my sim

Configuring OpenSim

First, read OpenSim: Configuration.

Where can I get a new UUID for my sim config?

Use 'uuidgen' or generate one on the uuidgen webpage.

Can I run multiple regions with OpenSim?

Yes. To do this add another xml file to bin/Regions. You need to create a new 'sim_UUID' (see above) and change the 'sim_name', 'internal_ip_port', 'sim_location_x' and 'sim_location_y' (and anything else you wish to change). share/regions/make.php may be useful for generating region files automatically. Once the new region files have been added to bin/Regions, restart OpenSim.

sim_location_x and sim_location_y should be in adjacent regions, so you will be able to run back and forth between regions.

How do I enable prim storage?

  • In the OpenSim.ini file, change the storage_plugin so it points to OpenSim.DataStore.MonoSqlite.dll (storage_plugin = OpenSim.DataStore.MonoSqlite.dll).

Note: you can specify the same database for all region.xml files, as information in the database is stored with the region.

Currently, sqlite is the only database provider that works for prim storage, this will change in the future.

There are a bunch of textures in the library, but they are all 0x0? What's wrong?

To enable these extra textures for your use, you must delete your regionassets.yap file, and restart your sim. WARNING: IF YOU DO THIS, YOU WILL LOSE ANY ASSETS (textures, scripts, animations, etc) THAT YOU HAVE UPLOADED!

What databases are supported in OpenSim?

Right now the only database supported is sqlite. This is being done first to ensure all our persistent data is SQL friendly for storage, and because sqlite requires no user interaction to setup. The architexture for OpenSim specifically allows for different data store backends, and others will be created in the near future.

Can I export all my prims, for safe keeping?

Yes. From the console type

save_xml yourbackupfile

You can later load those prims with

load_xml yourbackupfile

This is also a good way to dump and clone prims from one OpenSim server to another.

Something Has Gone Wrong!

I get a timeout during region handshake

  • Do you have the correct IP in your Regions\* config files?
  • Do you have multiple interfaces on the server running OpenSim? OpenSim will not bind outgoing UDP packets to a specific IP, its default IP to reach you will be what the Region answers UDP with. If you have configured the region for another IP you will get a timeout during connect.

I cannot connect to my OpenSim

I can connect but cannot move

If the client connects but the avatar can only spin in place and not move, then the sim is not correctly configured. It completed the initial login function, but packets are not being exchanged between the client and the sim, probably due to a network configuration error on the sim.

From time to time my Avatar seems to get stuck

Right now there is a bottle neck when syncing prims off to the database. This will cause small (5 - 10 second) apparent hangs of the Avatar, but it will recover fine once the data is synced. It is a known issue based on legacy architecture of some of the data storage code. We hope this will be removed soon.

I have problems with viewing the worldmap

  • This may happen when running OpenSim on a Linux server, both in grid or standalone mode.
  • Symptoms: when opening the worldmap window in the SL-viewer, the sims are not displayed grahically in the worldmap, the server console shows some error related to openjpeg, the current session freezes...
  • Reason: your svn source trunk does not have the correct (or whatever...) libopenjpeg-libsl library.
  • Solution: get the newest code from libsecondlife (svn co svn://opensecondlife.org/libsl/trunk), 'make' manually in the subdir openjpeg-libsl, and copy the resulting libopenjpeg-libsl-2.1.2.0.so into your OpenSim bin subdir, overwriting the existing one.
  • Recompile & restart OpenSim.

Exceptions on the Console

This is a list of Exceptions that you may see on the console, what they mean, and if they are a problem.

System.DllNotFoundException: ./libopenjpeg-libsl-2.1.2.0.so

Failed generating terrain map: System.DllNotFoundException: ./libopenjpeg-libsl-2.1.2.0.so
at (wrapper managed-to-native) OpenJPEGNet.OpenJPEG:LibslAllocDecoded OpenJPEGNet.OpenJPEG/LibslImage&)
at OpenJPEGNet.OpenJPEG.Encode (System.Byte[] decoded, Int32 width, Int32 height, Int32 components, Boolean lossless) [0x00000]
at OpenJPEGNet.OpenJPEG.EncodeFromImage (System.Drawing.Bitmap bitmap, Boolean lossless) [0x00000]
at OpenSim.Region.Terrain.TerrainEngine.ExportJpegImage (System.String gradientmap) [0x00000]

You are on Linux, and the native lib libopenjpeg-libsl-2.1.2.0.so is not compatible with your system for one of the following reasons:

  • You have an old processor (libopenjpeg has been compiled with optimizations)
  • You are running in 64bit mode (none of the native libs are built for 64bit)

You can rebuild your own libopenjpeg from source, or run in a compatible environment.

OpenSim in the Wild

Are there test servers running OpenSim I can connect to?

Yes. Check out http://www.deepgrid.com, http://osgrid.org

There are also often many private servers up for testing. Hang out on the IRC channel (efnet #opensim), and troll for URI's.

Can I teleport from the Linden Lab Second Life grid to my Sim?

No, OpenSim islands cannot connect to the Linden Lab grid.

Terrain Tidbits

What programs can I use to create terrains for OpenSim?

If you are after simple terrain files (jpg, gif, etc), you can use Photoshop or any number of freeware programs, like Gimp. If you want more complex terrains, you will need programs that output to standard 3d raw format (aka r32 or r64). L3DT and Terragen are two of the top commercial programs for this. (anyone know of a freeware one?), or you could, with some practice, use Blender. The free version of L3DT can make terrains up to 2048x2048 in size, or 8x8 regions.

Where do I put the files for my terrains?

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 bin directory (right where your OpenSim.exe file is).

How do I change the terrain for a group of sims?

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 Y flipped = true 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).

Then, once you have it saved, on the OpenSim.exe console, type in:

terrain load-tile f32 <filename> <image X> <image y> <bottomleftsim X> <bottomleftsim y>

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:

terrain load-tile f32 simalpha.raw 512 512 0 0

Next, before you log in, you may want to go to type in:

terrain multiply 0.4

This should scale it down from the nearly 300 meters altitude I ran into to something a little more reasonable for the minimap.

How do I load a terrain file on startup?

Edit the file startup_commands.txt in the bin directory and add the above commands "terrain load-tile ..." and "terrain multiply ..." one per line.

Terrain Tidbits brought to you by Tilde, with a few questions in IRC :) - Tilde 10:32, 15 August 2007 (PDT)

In World Questions

Does in world scripting work yet?

Not yet, but there is a lot of work going on here. Please see LlFunction_implementation_status for the latest info.

Why do I walk through objects?

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.

Can I edit my avatar?

Yes, but you need to create a Shape, Hair, Shirt, and Pants first via the Inventory button. There are no defaults created for each user at this point.

Grid Mode

Note: Grid Mode isn't officially supported yet. As such, you are pretty much on your own if you are trying to get OpenSim up and running in Grid Mode.

I start the sim and it doesn't connect to any grid

When OpenSim is first started, it needs configuration.

I start the OpenSim.Grid.UserServer.exe and it gives an error

If this error is access denied for username@localhost, the mysql database is not set up.

It will print some text and wait for input - either an enter to accept a default value, or another value you can supply.

I want to run my own Local Grid but one or more servers fail to start

  • Be sure that you're able to start OpenSim.exe alone, in Standalone mode, and to be able to login.
  • Start the servers in the correct UGAS order and answer the questions as recommended (see OpenSim: Configuration).
  • Set all the external URI's to the correct IP: 127.0.0.1 if running on your local machine, or aaa.bbb.ccc.ddd if running on a remote server.
  • Check again all the *.xml configuration files for any wrong settings or typing errors...!
  • Don't forget to connect with your SL-viewer to port 8002 (Grid User-Server) instead of 9000 (Standalone OpenSim-Server).
  • Delete all *.xml and *.yap files in the bin directory if you want to run a full reconfiguration again.


How to ask for help

Before asking for help...

Asking in IRC

IRC channels are #opensim-help, #opensim and #opensim-dev on EFNet. Approach them in that order :) Please be courteous and remember that the developers and anyone else assisting you are volunteers there.

  • Don't ask to ask, just ask.
  • Phrase your question in the form of a question.
  • Be specific.
  • Explain the problem.
  • Describe how to reproduce the problem.
  • If you need to paste configuration files or error messages, please paste to pastebin then send the link in the IRC channel.

After you get help

  • If no-one can help you, please submit a bug.
  • If someone does help you, please document the problem and fix on the wiki on this page.
Personal tools
General
About This Wiki