sometimes it might be desirable to have ones standard regions and a testing region available at the same time - but alas, you only have one computer for that. What to do?
You can run your standard regions running your standard configuration as before. Additionally you do:
Create a new - separate - database for your testregion (if you didn't already). You don't need a new MySQL-Server, just a new database in it. Put the access data in the include-config/GridCommon.ini:
- Code: Alles auswählen
StorageProvider = "OpenSim.Data.MySQL.dll"
ConnectionString = "Data Source=localhost;Database=testsim;User ID=testuser;Password=TestPassword;Old Guids=true;"
(those aren't my actual data^^)
Edit: You can use the exact same data for the DB-connection as in your other instances of the simulator.
For the test-server you do some tweaks to the configuration files:
In the file OpenSim.ini you change the value for http_listener_port to a number not in use on your computer (i.e. 9001):
- Code: Alles auswählen
[Network]
...
;# {http_listener_port} {} {TCP Port for this simulator to listen on? (This must be unique to the simulator!)} {} 9000
;; Simulator HTTP port. This is not the region port, but the port the
;; entire simulator listens on. This port uses the TCP protocol, while
;; the region ports use UDP.
http_listener_port = 9001
In the file Regions/Regions.ini you set InternalPort to a number not used by any of your standard regions (i.e. 9065):
- Code: Alles auswählen
[TestRegion]
RegionUUID = "01234567-89ab-cdef-0123-456789abcdef"
Location = "XXXX,YYYY"
InternalAddress = "0.0.0.0"
InternalPort = 9065[/b]
AllowAlternatePorts = False
ExternalHostName = "mycomp.no-ip.biz" ;DYNDNS adress here
Be sure to have portforwarding enabled for those ports in your router config.
Now you can start your testsimulator with (on a Linux console):
- Code: Alles auswählen
export LANG=C
mono OpenSim.exe -console=basic
After doing all that I now have two different simulators running on my box, serving several regions. I can TP from one standard region to the testregion by entering metrotest.hypergrid.org:8002:TestRegion in the map. TPs out to the Metropolis grid are working just fine too.
Have a lot of fun testing your regions