flagflag  If you want to see English page, please click "English" Button at Left.

Balances return to default?

  • このフォーラムに新しいトピックを立てることはできません
  • このフォーラムではゲスト投稿が禁止されています
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 .2 .3 .4 | 投稿日時 2014-1-5 9:48
tenchi999  Just popping in   投稿数: 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
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2014-1-7 20:51
iseki  Home away from home   投稿数: 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.
投票数:80 平均点:6.25
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2014-1-10 9:03
iseki  Home away from home   投稿数: 1581
引用:

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
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2014-1-13 6:45
tenchi999  Just popping in   投稿数: 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
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2014-1-15 22:29
iseki  Home away from home   投稿数: 1581
Did the user server's IP change?
投票数:57 平均点:5.61
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2014-1-16 3:50
tenchi999  Just popping in   投稿数: 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
投票数:59 平均点:5.08
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2014-1-16 9:53 | 最終変更
iseki  Home away from home   投稿数: 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.
投票数:83 平均点:4.34
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2014-1-18 8:30
tenchi999  Just popping in   投稿数: 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
投票数:65 平均点:4.31
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2014-1-21 13:14 | 最終変更
iseki  Home away from home   投稿数: 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.
投票数:59 平均点:4.07
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2014-3-13 20:14
iseki  Home away from home   投稿数: 1581
Please use subversion repository
http://www.nsl.tuis.ac.jp/svn/opensim/opensim.currency/trunk

Forget to back up DB.
投票数:68 平均点:5.29

  条件検索へ


サイト内 検索

ログイン

ユーザー名:

パスワード:


パスワード紛失
新規登録

サブ メニュー

ミニカレンダー

前月2024年 11月翌月
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
<今日>

オンライン状況

26 人のユーザが現在オンラインです。 (2 人のユーザが Forum を参照しています。)

登録ユーザ: 0
ゲスト: 26

もっと...

アクセスカウンタ

今日 : 2456245624562456
昨日 : 3755375537553755
総計 : 2449792924497929244979292449792924497929244979292449792924497929
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com