flagflag  

Balances return to default?

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 .2 .3 .4 | Posted on 2014/1/5 9:48
tenchi999  Just popping in   Posts: 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
Votes:36 Average:4.72
Previous post - Next post | Parent - Children.1 | Posted on 2014/1/7 20:51
iseki  Home away from home   Posts: 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.
Votes:57 Average:5.26
Previous post - Next post | Parent - No child | Posted on 2014/1/10 9:03
iseki  Home away from home   Posts: 1581
Quote:

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"
Votes:51 Average:5.10
Previous post - Next post | Parent - Children.1 | Posted on 2014/1/13 6:45
tenchi999  Just popping in   Posts: 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
Votes:46 Average:4.35
Previous post - Next post | Parent - No child | Posted on 2014/1/15 22:29
iseki  Home away from home   Posts: 1581
Did the user server's IP change?
Votes:51 Average:5.69
Previous post - Next post | Parent - Children.1 | Posted on 2014/1/16 3:50
tenchi999  Just popping in   Posts: 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
Votes:50 Average:5.00
Previous post - Next post | Parent - No child | Posted on 2014/1/16 9:53 | Last modified
iseki  Home away from home   Posts: 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
[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.
Votes:68 Average:4.71
Previous post - Next post | Parent - Children.1 | Posted on 2014/1/18 8:30
tenchi999  Just popping in   Posts: 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
Votes:55 Average:4.00
Previous post - Next post | Parent - Children.1 | Posted on 2014/1/21 13:14 | Last modified
iseki  Home away from home   Posts: 1581
Hi,

I think that there are no problems in OpenSim.ini and MoneyServer.ini

Quote:
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.
Votes:53 Average:4.15
Previous post - Next post | Parent - No child | Posted on 2014/3/13 20:14
iseki  Home away from home   Posts: 1581
Please use subversion repository
http://www.nsl.tuis.ac.jp/svn/opensim/opensim.currency/trunk

Forget to back up DB.
Votes:60 Average:5.50

  Advanced search


Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2024Next Month
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Today

Who's Online

69 user(s) are online (4 user(s) are browsing Forum)

Members: 0
Guests: 69

more...

Access Counter

Today : 744744744
Yesterday : 1449614496144961449614496
Total : 2357057223570572235705722357057223570572235705722357057223570572
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com