jOpenSimWorld

Grid Status: Online
Total Regions: 23
Visitors (30 Days): 7
Total Residents: 485
Online Now: 0
Hypergriders online: 0

New ini System for OpenSimulator 0.8.1

9 years 9 months ago - 9 years 9 months ago #2243 by foto50
OpenSim 0.8.1 was released beginning this week and some might have figured out, that the way, OpenSim.ini and Robust.ini are structured has changed a bit.

Here are some hints how this new configuration system can be used:

Both, Robust.ini and OpenSim.ini have a new section [Const] at the beginning, where we can define constants. This is a good place to place the url to your Joomla installation:
[Const]

...

	; jOpenSim URL
	jOpensimURL = "http://url-to-your-joomla";

We now can use this constant throughout the ini files where required.

E.g. in Robust.ini:
[LoginService]

	SearchURL = "${Const|jOpensimURL}/index.php?option=com_opensim&view=inworldsearch&task=viewersearch&tmpl=component&"

[GridInfoService]
	...
	welcome = ${Const|jOpensimURL}/index.php?option=com_opensim

	; in case you use jOpenSimMoney:
	economy = ${Const|jOpensimURL}/components/com_opensim/

In OpenSim.ini:
[Startup]
	; in case you are using jOpenSimMoney, this is important to disable the dummy module from core OpenSim to avoid conflicts:
	economymodule =  jOpenSimMoneyModule

[Messaging]
	OfflineMessageModule = OfflineMessageModule
	OfflineMessageURL = ${Const|jOpensimURL}/components/com_opensim/interface.php
	MuteListModule = MuteListModule
	MuteListURL = ${Const|jOpensimURL}/components/com_opensim/interface.php

[DataSnapshot]
	; not required but recommended if you want regions to turn out at search results:
	index_sims = true
	; also not required but will also return objects marked for showing in search:
	data_exposure = all

	...

	data_services="${Const|jOpensimURL}/components/com_opensim/registersearch.php"

[Search]
	SearchURL = ${Const|jOpensimURL}/components/com_opensim/interface.php
	; there is a basic search module in core now, which will return results for people simultaneously to jOpenSimSearch
	; if in people search, all results turn up twice, you can set this to false
	searchPeople = true

[Economy]
	; in case you are using jOpenSimMoney:
	EconomyModule = jOpenSimMoneyModule
	CurrencyURL = "${Const|jOpensimURL}/components/com_opensim/currency.php"

[Groups]
	Enabled = true
	Module = GroupsModule
	ServicesConnectorModule = XmlRpcGroupsServicesConnector
	GroupsServerURI = "${Const|jOpensimURL}/components/com_opensim/interface.php"
	MessagingEnabled = true
	MessagingModule = GroupsMessagingModule
	NoticesEnabled = true
	...

GridCommon.ini:
[Profile]
	ProfileURL = ${Const|jOpensimURL}/components/com_opensim/interface.php
	Module = "jOpenSimProfile"

Like this, if the URL of your Joomla is changing (e.g. from dev place to production place), you only need to change the url once in Robust.ini and OpenSim.ini in the section [Const] and wont miss one further down :)

Greetz
FoTo50

Please Log in or Create an account to join the conversation.

9 years 6 months ago - 9 years 6 months ago #2286 by foto50
During working on the new version of jOpenSim for Joomla3.x I found some issue that needs to be taken in consideration for this "new" ini system:

For jOpenSimMoney, there are optional values to change the payment popup text if required. In the Addon Help an example is given:
	PayPopupMsgSender = "You paid jO${0} to {1}"
	PayPopupMsgReceiver = "You received jO${0} from {1}"

But due to the new constant system, the simulator will crash during startup, if there is a $-sign in this value! So for the moment, you only can use this without $.

I am working on a new version of jOpenSimMoney that will take the currency symbol automatically.

[UPDATE]
I already created a new version of jOpenSimMoney which will be compatible with jOpenSim 0.2.9.x and the soon coming 0.3.x, but only with 0.3.x the currency issue will be solved

Please Log in or Create an account to join the conversation.

Time to create page: 0.086 seconds

Search

Donate jOpenSim

Please consider supporting our efforts.

Amount

Our Regions

Region: Loc X: Loc Y:
Agora 1000 998
BareBad… 997 997
Bohemas 996 998
BoraBor… 1002 999
Crystal… 1001 1000
DeepTho… 1005 998
FoToSan… 999 995
jCity 1001 997
jOpenWe… 1000 999
JuniorT… 1002 1001
Kanadah… 1002 1000
LindaKe… 1000 997
LittleC… 996 997
MonteSc… 1001 1001
Naos 999 999
Pangaea 1005 1003
RiverSi… 999 1000
Sakani 999 998
Snambin 1001 998
Tartola 997 998
ViewerH… 1002 998
WaterWo… 1001 999
WilderK… 1000 1000

jOpenSimWorld

Grid Status: Online
Total Regions: 23
Visitors (30 Days): 7
Total Residents: 485
Online Now: 0
Hypergriders online: 0