Balances return to default?
- このフォーラムに新しいトピックを立てることはできません
- このフォーラムではゲスト投稿が禁止されています
Balances return to default?
msg# 1
tenchi999
投稿数: 4
hello, the balances on the server return to default everytime the router changes it's ip! i've noticed this today when my account had lots of money for uploads and the next day it had 1000 i went on the database to check and it had my uuid with written two times with a different ip address at the end.. how can i fix this? it's happening to everyone on the grid
投票数:44
平均点:4.32
Re: Balances return to default?
msg# 1.1
iseki
投稿数: 1581
Hi
Our money server identofied user by "user name"@"ip address of user server".
This rule is succeeded from original DTL currency server http://forge.opensimulator.org/gf/project/currency/.
It seems for Hypergrid mode.
At present, a only method is rewriting a database directly, sorry.
Our money server identofied user by "user name"@"ip address of user server".
This rule is succeeded from original DTL currency server http://forge.opensimulator.org/gf/project/currency/.
It seems for Hypergrid mode.
At present, a only method is rewriting a database directly, sorry.
投票数:80
平均点:6.25
Re: Balances return to default?
msg# 1.1.1
iseki
投稿数: 1581
引用:
I mistook.
Money server identified user by "user uuid"@"ip address of user server"
iseki wrotes:
Our money server identofied user by "user name"@"ip address of user server".
I mistook.
Money server identified user by "user uuid"@"ip address of user server"
投票数:53
平均点:5.28
Re: Balances return to default?
msg# 1.2
tenchi999
投稿数: 4
it's there any way to make it identify the user just by the uuid? maybe by changing the code? because if i get 1000 credits in one pc and then login from another pc i'll just have my default balance there
投票数:52
平均点:4.42
Re: Balances return to default?
msg# 1.2.1
iseki
投稿数: 1581
Did the user server's IP change?
投票数:57
平均点:5.61
Re: Balances return to default?
msg# 1.3
tenchi999
投稿数: 4
As you said the money server identifies users by "uuid"@"user server ip" that last part changes if i login from another computer. A bit like
"My uuid"@"Machine running the server" and then it adds another entry as "My uuid"@"Machine not running the server"
so whenver i login in Machine not running the server i will have my default balance since it is a new entry
"My uuid"@"Machine running the server" and then it adds another entry as "My uuid"@"Machine not running the server"
so whenver i login in Machine not running the server i will have my default balance since it is a new entry
投票数:59
平均点:5.08
Re: Balances return to default?
msg# 1.3.1
iseki
投稿数: 1581
Sorry, I do not understand your mention.
When User Server's ip does not change, even if you login from any machines, new avatar entry is not created on money server.
Did you set up OpenSim.ini appropriately?
Example. This is my OpenSim.ini
You can not use localhost or 127.0.0.1 at "UserServer".
You must use FQDN or exact IP address at "UserServer".
Please show me your OpenSim.ini and MoneyServer.ini (please delete password etc.)
If possible, also a record in the database.
When User Server's ip does not change, even if you login from any machines, new avatar entry is not created on money server.
Did you set up OpenSim.ini appropriately?
Example. This is my OpenSim.ini
[Economy]
;# {SellEnabled} {} {Enable selling for 0?} {true false} true
; The default economy module only implements just enough to allow free actions (transfer of objects, etc).
; There is no intention to implement anything further in core OpenSimulator.
; This functionality has to be provided by third party modules.
;; Enables selling things for $0. Default is true.
SellEnabled = "true"
UserServer = "http://opensim.tuis.ac.jp:8003"
CurrencyServer = "https://opensim.tuis.ac.jp:8008/"
EconomyModule = "DTLNSLMoneyModule"
;
;SettlementByWeb = true
;SettlementURL = "http://www.opensim.tuis.ac.jp"
;SettlementMessage = ""
;# {PriceUpload} {} {Price for uploading?} {} 0
;; Money Unit fee to upload textures, animations etc. Default is 0.
PriceUpload = 10
;# {PriceGroupCreate} {} {Fee for group creation} {} 0
;; Money Unit fee to create groups. Default is 0.
PriceGroupCreate = 10
You can not use localhost or 127.0.0.1 at "UserServer".
You must use FQDN or exact IP address at "UserServer".
Please show me your OpenSim.ini and MoneyServer.ini (please delete password etc.)
If possible, also a record in the database.
投票数:83
平均点:4.34
Re: Balances return to default?
msg# 1.4
tenchi999
投稿数: 4
I wrote mydomain.com for personal reasons, on the config file there is actually the real domain name
Opensim.ini
[Economy]
SellEnabled = "true"
CurrencyServer = "https://mydomainname.com:8008/"
UserServer = "http://mydomainname.com:8002/"
EconomyModule = DTLNSLMoneyModule
;; Money Unit fee to upload textures, animations etc
PriceUpload = 10
;; Money Unit fee to create groups
PriceGroupCreate = 100
Moneyserver.ini
[Startup]
;
; Place to create a PID file
; PIDFile = "/tmp/money.pid"
[MySql]
;
;Connection parameters of MySQL
hostname = localhost ; Name of MySQL Server
database = moneyserverdb
username = dbuser
password = dbpassword
pooling = false
port = 3306
;
; Max DB connections kept by money server.
MaxConnection = 10
[MoneyServer]
;
; If the user is not found in database,he/she will be created with the default balance.
DefaultBalance = 1000
; Name of this Server
HostName = localhost
;
; If "00000000-0000-0000-0000-000000000000" is specified, all avatars can get money from system.
; If "" is specified, nobody can get money.
BankerAvatar = ""
;
; If you want to use llGiveMoney() function normally even when payer doesn't login to OpenSim,
; please set true to this valiable
EnableForceTransfer = true
;
; send money to avatar by MoneyScript (for Bonus)
;EnableScriptSendMoney = false
;MoneyScriptAccessKey = "123456789" ;; specify same secret key in include/config.php or WI(XoopenSim/Modlos)
;MoneyScriptIPaddress = "202.26.159.139" ;; not use 127.0.0.1
;
; Message that displayed in blue dialog, when balance is updated.
; If "" is specified, blue dialog is not displayed.
; You can use {0} and {1} in message string.
; {0} means amount and {1} means avatar name or object owner name
BalanceMessageLandSale = "Paid the Money UW${0} for Land." ;; for buy the land
BalanceMessageScvLandSale = "" ;; for get the money of the sold land
BalanceMessageSendGift = "Sent Gift UW${0} to {1}." ;; for send gift to other avatar
BalanceMessageReceiveGift = "Received Gift UW${0} from {1}." ;; for receieve gift from other avatar
BalanceMessagePayCharge = "" ;; for upload and group creation charge
BalanceMessageBuyObject = "Bought the Object UW${0} from {1}." ;; for buy the object
BalanceMessageGetMoney = "Got the Money UW${0} from {1}." ;; for get the money from object by llGiveMoney()
BalanceMessageBuyMoney = "Bought the Money UW${0}." ;; for buy the money from system
BalanceMessageReceiveMoney = "Received UW${0} from System." ;; for receive the money from system by send_money() script
BalanceMessageRollBack = "RollBack the Transaction: UW${0} from/to {1}." ;; when roll back ocuurred
;
; for HTTPS
ServerCertFilename = "SineWaveCert.pfx"
ServerCertPassword = "*******"
;
;
The entries
00000000-0000-0000-0000-000000000000@0.0.0.0 16110
0e0dc74d-8871-4218-90a9-49a0c0a1d18b@85.247.164.248 1000
a14b8538-7395-4d38-b4ed-cad10758c0cf@85.247.164.248 2147483556
a14b8538-7395-4d38-b4ed-cad10758c0cf@85.247.175.27 1000
c5c1d714-713a-4439-832d-e8718accd2d9@85.247.252.200 1000
ffaffb88-41ce-4ca1-9e4d-66d18a220f50@85.247.164.248 2147483617
ffaffb88-41ce-4ca1-9e4d-66d18a220f50@85.247.175.27 2147483647
Opensim.ini
[Economy]
SellEnabled = "true"
CurrencyServer = "https://mydomainname.com:8008/"
UserServer = "http://mydomainname.com:8002/"
EconomyModule = DTLNSLMoneyModule
;; Money Unit fee to upload textures, animations etc
PriceUpload = 10
;; Money Unit fee to create groups
PriceGroupCreate = 100
Moneyserver.ini
[Startup]
;
; Place to create a PID file
; PIDFile = "/tmp/money.pid"
[MySql]
;
;Connection parameters of MySQL
hostname = localhost ; Name of MySQL Server
database = moneyserverdb
username = dbuser
password = dbpassword
pooling = false
port = 3306
;
; Max DB connections kept by money server.
MaxConnection = 10
[MoneyServer]
;
; If the user is not found in database,he/she will be created with the default balance.
DefaultBalance = 1000
; Name of this Server
HostName = localhost
;
; If "00000000-0000-0000-0000-000000000000" is specified, all avatars can get money from system.
; If "" is specified, nobody can get money.
BankerAvatar = ""
;
; If you want to use llGiveMoney() function normally even when payer doesn't login to OpenSim,
; please set true to this valiable
EnableForceTransfer = true
;
; send money to avatar by MoneyScript (for Bonus)
;EnableScriptSendMoney = false
;MoneyScriptAccessKey = "123456789" ;; specify same secret key in include/config.php or WI(XoopenSim/Modlos)
;MoneyScriptIPaddress = "202.26.159.139" ;; not use 127.0.0.1
;
; Message that displayed in blue dialog, when balance is updated.
; If "" is specified, blue dialog is not displayed.
; You can use {0} and {1} in message string.
; {0} means amount and {1} means avatar name or object owner name
BalanceMessageLandSale = "Paid the Money UW${0} for Land." ;; for buy the land
BalanceMessageScvLandSale = "" ;; for get the money of the sold land
BalanceMessageSendGift = "Sent Gift UW${0} to {1}." ;; for send gift to other avatar
BalanceMessageReceiveGift = "Received Gift UW${0} from {1}." ;; for receieve gift from other avatar
BalanceMessagePayCharge = "" ;; for upload and group creation charge
BalanceMessageBuyObject = "Bought the Object UW${0} from {1}." ;; for buy the object
BalanceMessageGetMoney = "Got the Money UW${0} from {1}." ;; for get the money from object by llGiveMoney()
BalanceMessageBuyMoney = "Bought the Money UW${0}." ;; for buy the money from system
BalanceMessageReceiveMoney = "Received UW${0} from System." ;; for receive the money from system by send_money() script
BalanceMessageRollBack = "RollBack the Transaction: UW${0} from/to {1}." ;; when roll back ocuurred
;
; for HTTPS
ServerCertFilename = "SineWaveCert.pfx"
ServerCertPassword = "*******"
;
;
The entries
00000000-0000-0000-0000-000000000000@0.0.0.0 16110
0e0dc74d-8871-4218-90a9-49a0c0a1d18b@85.247.164.248 1000
a14b8538-7395-4d38-b4ed-cad10758c0cf@85.247.164.248 2147483556
a14b8538-7395-4d38-b4ed-cad10758c0cf@85.247.175.27 1000
c5c1d714-713a-4439-832d-e8718accd2d9@85.247.252.200 1000
ffaffb88-41ce-4ca1-9e4d-66d18a220f50@85.247.164.248 2147483617
ffaffb88-41ce-4ca1-9e4d-66d18a220f50@85.247.175.27 2147483647
投票数:65
平均点:4.31
Re: Balances return to default?
msg# 1.4.1
iseki
投稿数: 1581
Hi,
I think that there are no problems in OpenSim.ini and MoneyServer.ini
引用:
It seems that there is more than one UserServer 85.247.164.248, 85.247.175.27 and 85.247.252.200
Isn't UserServer(Robust Server) multiplexed?
Are you using the cloud machine?
Please execute "nslookup mydomainname.com" at command line.
If you look at two or more IP addresses, UserServer(Robust Server) is multiplexed.
PS.
For this problem, we will be fixed in the next version.
I think that there are no problems in OpenSim.ini and MoneyServer.ini
引用:
tenchi999 wrotes:
0e0dc74d-8871-4218-90a9-49a0c0a1d18b@85.247.164.248 1000
a14b8538-7395-4d38-b4ed-cad10758c0cf@85.247.164.248 2147483556
a14b8538-7395-4d38-b4ed-cad10758c0cf@85.247.175.27 1000
c5c1d714-713a-4439-832d-e8718accd2d9@85.247.252.200 1000
ffaffb88-41ce-4ca1-9e4d-66d18a220f50@85.247.164.248 2147483617
ffaffb88-41ce-4ca1-9e4d-66d18a220f50@85.247.175.27 2147483647
It seems that there is more than one UserServer 85.247.164.248, 85.247.175.27 and 85.247.252.200
Isn't UserServer(Robust Server) multiplexed?
Are you using the cloud machine?
Please execute "nslookup mydomainname.com" at command line.
If you look at two or more IP addresses, UserServer(Robust Server) is multiplexed.
PS.
For this problem, we will be fixed in the next version.
投票数:59
平均点:4.07
Re: Balances return to default?
msg# 1.4.1.1
iseki
投稿数: 1581
Please use subversion repository
http://www.nsl.tuis.ac.jp/svn/opensim/opensim.currency/trunk
Forget to back up DB.
http://www.nsl.tuis.ac.jp/svn/opensim/opensim.currency/trunk
Forget to back up DB.
投票数:68
平均点:5.29