From OpenSimulator

Revision as of 10:56, 22 September 2021 by Acryline (Talk | contribs)

Jump to: navigation, search

Une liste de questions frequemment posées. Svp ajoutez tout ce que vous trouvez de raisonnable.


Qu'est ce que OpenSim?

OpenSimulator est une plateforme qui execute un monde virtuel et supporte la connection de multiples regions se connectant sur une gille centralisee. Ceci est similaire au web, lorsque n'importe qui peut lancer son propre serveur web, relies ensemble au travers d'internet. Il peut aussi etre utilisé pour creer une grille privee tout comme un intranet.

Qu'est ce qu'une region?

Une region est ce que vous voyez quand vous vous connectez dans OpenSimulator. Elle est l'endroit physique ( bon, virtuellement physique ) ou les avatars bougent et interagissent. C'est un monde carré qui peut contenir des iles, montagnes plaines, batiment etc... ou juste un ocean.

Qu'est ce que la grid?

La grid est le niveau qui organise les regions et leur position dans le monde, et supporte des choses qui sont necessaires pour exister entre les regions, comme l'inventaire utilisateur. Vous pouvez imaginer cela comme la carte du monde.

Que veut dire ... ?

Voir Technical Reference Glossary pour les définitions de certains termes utilises fréquemment dans OpenSimulator.

Executer OpenSimulator

Executer OpenSim.exe depuis un shell Cygwin refuse l'acces a certaines dll's

  • Faites un 'cd bin' suivi par 'chmod a+x *' pour rendre tous les fichiers dll executables.

Je ne peux pas demarrer mon sim

Configurer OpenSimulator

D'abord lisez Configuration.

Ou puisje trouver un nouvel UUID pour la config de mon sim ?

Utilisez 'uuidgen' ou generez en un sur uuidgen webpage.

Puisje lancer plusieurs regions avec OpenSim?

Oui. Pour faire cela, ajoutez un autre fichier xml dans bin/Regions. Vous avez besoin de creer un nouvel UUID de sim ( voir au dessus) et changer le 'sim_name', 'internal_ip_port', 'sim_location_x' and 'sim_location_y' (et tout autre chose que vous souhaiter cahnger). Le script share/regions/make.php peut etre utile pour generer des fichiers de region automatiquement. Une fois que les fichiers de la nouvelle region ont ete crées, ajoutez les dans bin/Regions, et redemarrez OpenSimulator.

Notez que sim_location_x et sim_location_y devrait etre dans des regions adjacentes, donc vous serez capable de passer d'une region a l'autre.

Comment activer la sauvegarde des prims?

  • Dans le fichier OpenSim.ini, changez l'entree storage_plugin vers
storage_plugin = OpenSim.DataStore.MonoSqlite.dll


storage_plugin = OpenSim.Framework.Data.MySQL.dll

Vous aurez aussi besoin de fournir des details de connection dans un attribut storage_connection_string voir le fichier OpenSim.ini.example dans le dossier bin du package OpenSimulator pour plus d'informations.

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 can be used with OpenSim?

For running in standalone mode, OpenSimulator provides database plugins for both sqlite and MySQL. There is also an MSSQL plugin, though this has not been thoroughly tested. Sqlite requires no user configuration to set up while MySQL requires some minimal user configuration (see mysql-config).

Running in grid mode is usually done using the MySQL database. Sqlite and MSSQL may work but have not been thoroughly tested.

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 OpenSimulator 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? OpenSimulator 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 OpenSimulator

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 OpenSimulator 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- into your OpenSimulator bin subdir, overwriting the existing one.
  • Recompile & restart OpenSimulator.

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-

Failed generating terrain map: System.DllNotFoundException: ./libopenjpeg-libsl-
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- 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. You can do this by:

svn co svn://opensecondlife.org/libsl/trunk libsl
cd libsl/openjpeg-libsl/

then copy libopenjpeg-libsl- into OpenSimulator bin-folder.

OpenSimulator in the Wild

Are there test servers running OpenSimulator 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 (Freenode #opensim), and troll for URI's.

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

No, OpenSimulator 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.

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.

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)

How do I import into OpenSimulator the terrain shape of my Second Life sim?

Use the command

terrain load

Watch this video for a step-by-step tutorial.

In World Questions

Does in world scripting work yet?

Not fully implemented, but there is a lot of work going on here. Please see LSL 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 customize my avatar?

Yes. In order to do this:

  • Click the Inventory Button
  • Create -> New Clothes -> Shirt, Pants, etc
  • Create -> New Body Parts -> Hair, Shape, etc
  • Edit those from your inventory
  • Wear them

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 "Ruth".

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 OpenSimulator up and running in Grid Mode.

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

When OpenSimulator 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: 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.

After the shiny new grid is running, what is next?

  • Make sure one can stop/restart UGA &S (sims). Check out any ordering issues of stop/restart UGA w/o stop/restart sim(s).
  • Make sure one can add/delete both a region and a user from the database.
  • Make sure it runs overnight and check it each morning by logging into 1 or 2 key sims.
  • 'tail -f userserver.log' and watch/understand the login process.
  • Make sure when you logoff your system, you can log back on and get control of the UGAS consoles.

How to ask for help

Before asking for help...

Asking in IRC

IRC channels are #opensim and #opensim-dev on Freenode. 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.

Retour au Sommaire

Personal tools
About This Wiki