-
Notifications
You must be signed in to change notification settings - Fork 5
Home
Welcome to the mobdat wiki!
Mobdat comes with example configuration files that are ready to be executed. To run the demo, follow the next steps.
We are assuming Ubuntu, but other Linux-based OS will behave similarly. Just one library for now, but leaving this step here for future requirements.
- sudo apt-get install python-pymongo
- Download OpenSimulator source, mobdat, and scisim-addons, and unpack them.
- Copy the content of scisim-addons to the folder addon-modules in the OpenSimulator source folder.
- Compile OpenSimulator by running ./prebuild.sh (or .bat if Windows), and xbuild (or compile.bat, in Windows)
- In OpenSim source folder, move to the bin directory, and copy OpenSim.ini.example to OpenSim.ini.
- Place three files in bin/config
5.1 Dispatcher.ini, located in scisim-addons/dispatcher/Dispatcher/Dispatcher.ini.example
5.2 JsonStore.ini, located after these instructions
5.3 XEngineOverride.ini, located after these instructions - Create a file in the folder bin/Regions called Region.ini. The content of Region.ini is written after these instructions.
- Default database is SQLite. If you experience crashes with OpenSim and SQLite, configure another DB in bin/config-include/StandAloneCommon.ini
- Copy mobdat/networks/fullnet/assets.iar and mobdat/networks/fullnet/fullnet.oar to the bin folder
- In bin, run mono OpenSim.exe
- In the OpenSim console, type "create user <first_name> <last_name>", replace first and last name with whatever name you wish. Follow instructions to complete user creation
- Type in opensim console:
load oar fullnet.oar
- Type in opensim console:
load iar -m <first_name> <last_name> Objects assets.iar
- Download a viewer (Firestorm and Singularity are favorites) and login with the first/last name and password. Pay attention to the grid option when typing login information. You want to login to localhost. Most viewers have localhost grid option available, if not, you need to go to preferences and add the grid: 127.0.0.1:9000
XEngineOverride.ini
[XEngine]
AllowLightShareFunctions = True
AllowMODFunctions = True
AllowOSFunctions = True
AllowedCompilers = "lsl,cs"
AppDomainLoading = False
CompileWithDebugInformation = False
DisableUndergroundMovement = False
Enabled = True
MaxScriptEventQueue = 300
OSFunctionThreatLevel = "Severe"
ScriptDelayFactor = 0.0
ScriptDistanceLimitFactor = 50.0
ScriptStopStrategy = "co-op"
SensorMaxRange = 256.0
SensorMaxResults = 24
JsonStore.ini
[JsonStore]
EnableObjectStore = True
Enabled = True
MaxStringSpace = 0
Region.ini
[Fullnet]
RegionUUID = d68ae2a1-441b-433d-83ad-df60d7624562
Location = 1000,1000
InternalAddress = 0.0.0.0
InternalPort = 9000
AllowAlternatePorts = False
ExternalHostName = 127.0.0.1
NonphysicalPrimMax = 256
PhysicalPrimMax = 10
ClampPrimSize = False
MaxPrims = 150000
MaxAgents = 500
SizeX = 1536
SizeY = 1536
From the previous steps, OpenSimulator should now be running. To configure mobdat, follow the next steps:
- Go to scisim-addons/script/python and run
sudo python setup.py install
. That install the RemoteControl tools for OpenSimulator on your python path. - The script simauth.py should have been installed in your path, and can invoked anywhere. Invoke simauth:
simauth.py --av_name "<first_name> <last_name>" --endpoint http://127.0.0.1:9000/Dispatcher/
, replacing first and last name from one chosen in the previous section. - Copy and paste the 3 export commands generated from last step to the terminal. Those variables are the capability keys that give access to the simulator.
- CD into mobdat and run
./scripts/builder --config networks/fullnet/settings.js networks/fullnet/cardata.js
- Still in mobdat, run
netconvert networks/fullnet/fullnet.netccfg
- Now run
./scripts/mobdat --config networks/fullnet/settings.js networks/fullnet/cardata.js
- The initialization takes about 10 minutes. After its over, a mobdat console will appear. Type
start
to start execution.