llGiveMoney()
- You cannot open a new topic into this forum
- Guests cannot post into this forum
llGiveMoney()
msg# 1
iseki
Posts: 1581
I corrected the problem of llGiveMoney().
But llGiveMoney() works only when the payer is logging in.
I can correct llGiveMoney() works always. But the problem of security will be caused in it.
Corrected Currency 0.7_1 is here
http://www.nsl.tuis.ac.jp/xoops/modules/d3downloads/index.php?page=singlefile&cid=8&lid=15
Thanks.
But llGiveMoney() works only when the payer is logging in.
I can correct llGiveMoney() works always. But the problem of security will be caused in it.
Corrected Currency 0.7_1 is here
http://www.nsl.tuis.ac.jp/xoops/modules/d3downloads/index.php?page=singlefile&cid=8&lid=15
Thanks.
Votes:113
Average:3.72
Re: llGiveMoney()
msg# 1.1
chrisby
Posts: 23
Hi Iseki,
I would very much like the source to make llgivemoney work without the user logged in as i want to run it on a private grid that only my familly use
many thanks
chrisby
I would very much like the source to make llgivemoney work without the user logged in as i want to run it on a private grid that only my familly use
many thanks
chrisby
Votes:103
Average:3.11
Re: llGiveMoney()
msg# 1.1.1
iseki
Posts: 1581
Hi chrisby
OK. Please wait for a while.
OK. Please wait for a while.
Votes:79
Average:5.44
Re: llGiveMoney()
msg# 1.1.1.1
chrisby
Posts: 23
i have also found a bug :(
if i make a cube and then set it for sale, then someone buys it NO money changes between accounts, nothing is logged in the money server console at all but the item is transfered to the person who bought it
i havent looked into this as yet but thought i would report it here, i will also report any thing i find which might help resolve this bug
Many Thanks and keep up the good work :)
anything i can do to help then please message me :)
if i make a cube and then set it for sale, then someone buys it NO money changes between accounts, nothing is logged in the money server console at all but the item is transfered to the person who bought it
i havent looked into this as yet but thought i would report it here, i will also report any thing i find which might help resolve this bug
Many Thanks and keep up the good work :)
anything i can do to help then please message me :)
Votes:87
Average:4.37
Re: llGiveMoney()
msg# 1.1.1.1.1
iseki
Posts: 1581
Hi chrisby
Quote:
Sorry, I can not understand this situation well. :(
On my OpenSim, Money Server works well when object is bought and sold.
Can money be exchanged by between avatars?
Quote:
chrisby wrotes:
if i make a cube and then set it for sale, then someone buys it NO money changes between accounts, nothing is logged in the money server console at all but the item is transfered to the person who bought it
Sorry, I can not understand this situation well. :(
On my OpenSim, Money Server works well when object is bought and sold.
Can money be exchanged by between avatars?
Votes:77
Average:4.16
Re: llGiveMoney()
msg# 1.2
master
Posts: 138
I also would like a copy of the source to make llgivemoney work without the user logged in.
Mostly for study.
As far as the other problem, I have not seen a problem with money not swapped, P 2 P or purchase.
I will try new test's though.
tnx
Mostly for study.
As far as the other problem, I have not seen a problem with money not swapped, P 2 P or purchase.
I will try new test's though.
tnx
Votes:100
Average:3.60
Re: llGiveMoney()
msg# 1.2.1
chrisby
Posts: 23
Please bare with me as my servers are down for maintainance , when tyhey are back up i will perform more tests
Votes:105
Average:3.43
Re: llGiveMoney()
msg# 1.2.1.1
chrisby
Posts: 23
i re checked using a completely clean system and db
make a cube inworld
set it for sale original for 10
use a different av to buy it
the object transfers but no money transfers
however if it is set to sell a copy then it works fine
make a cube inworld
set it for sale original for 10
use a different av to buy it
the object transfers but no money transfers
however if it is set to sell a copy then it works fine
Votes:138
Average:5.94
Re: llGiveMoney()
msg# 1.2.1.1.1
chrisby
Posts: 23
this was with the latest svn of opensim and money server and happens on standalone and grid mode
Votes:94
Average:4.04
Re: llGiveMoney()
msg# 1.2.1.1.1.1
admin
Posts: 245
Quote:
I checked r/13632 of git and 0.7.0.1, but did not check latest OpenSim.
I corrected opensim currency server for 0.7.0.1 and for r/13632 just now.
Which do you need currency server for 0.7.0.1 or for latest version?
chrisby wrotes:
this was with the latest svn of opensim and money server and happens on standalone and grid mode
I checked r/13632 of git and 0.7.0.1, but did not check latest OpenSim.
I corrected opensim currency server for 0.7.0.1 and for r/13632 just now.
Which do you need currency server for 0.7.0.1 or for latest version?
Votes:88
Average:3.64
Re: llGiveMoney()
msg# 1.2.1.1.1.1.1
admin
Posts: 245
Hi chrisby
1. If you need currency server for v0.7.0.1, see fllow.
You need not compile OpenSim again.
Please execute ./build.sh in opensim.currency-0.7_2 directory.
And add enableForceTransfer=true line to [MoneyServer] section in MoneyServer.ini
Please see opensim.currency-0.7_2/config/MoneyServer.ini
After edit MoneyServer.ini. please restart OpenSim.Grid.MoneyServer.exe and OpenSim.exe
Then, llGiveMoney() function works normally even if payer doesn't login to Opensim,
Download: http://www.nsl.tuis.ac.jp/xoops/modules/d3downloads/index.php?page=singlefile&cid=8&lid=15
ex)
cd (Top Directory of OpenSim)
tar zxfv (Download Directory)/opensim.currency-0.7_2.tar.gz
cd opensim.currency-0.7_2
./buid.sh
cd ../bin
vi MoneyServer.ini
2. If you need currency server for latest version, please wait for a few days.
1. If you need currency server for v0.7.0.1, see fllow.
You need not compile OpenSim again.
Please execute ./build.sh in opensim.currency-0.7_2 directory.
And add enableForceTransfer=true line to [MoneyServer] section in MoneyServer.ini
Please see opensim.currency-0.7_2/config/MoneyServer.ini
After edit MoneyServer.ini. please restart OpenSim.Grid.MoneyServer.exe and OpenSim.exe
Then, llGiveMoney() function works normally even if payer doesn't login to Opensim,
Download: http://www.nsl.tuis.ac.jp/xoops/modules/d3downloads/index.php?page=singlefile&cid=8&lid=15
ex)
cd (Top Directory of OpenSim)
tar zxfv (Download Directory)/opensim.currency-0.7_2.tar.gz
cd opensim.currency-0.7_2
./buid.sh
cd ../bin
vi MoneyServer.ini
2. If you need currency server for latest version, please wait for a few days.
Votes:124
Average:3.39
Re: llGiveMoney()
msg# 1.2.1.1.2
admin
Posts: 245
Quote:
You are right!!
If we set object to sale original, no money exchamged at OpenSim v0.7.0.1
Well, it seems to take time for this solution......
chrisby wrotes:
i re checked using a completely clean system and db
make a cube inworld
set it for sale original for 10
use a different av to buy it
the object transfers but no money transfers
however if it is set to sell a copy then it works fine
You are right!!
If we set object to sale original, no money exchamged at OpenSim v0.7.0.1
Well, it seems to take time for this solution......
Votes:91
Average:6.15
Re: llGiveMoney()
msg# 1.2.1.1.1.1.1.1
chrisby
Posts: 23
there is a typo in your instructions :) it should say
./build.sh
:)
./build.sh
:)
Votes:83
Average:5.54
Re: llGiveMoney()
msg# 1.2.1.1.1.1.1.1.1
chrisby
Posts: 23
just trying to be helpfull :)
I love your work :)
MMany Thanks
I love your work :)
MMany Thanks
Votes:67
Average:5.37
Re: llGiveMoney()
msg# 1.2.1.1.1.1.1.1.1.1
chrisby
Posts: 23
i juyst tried your fix that makes llgivemoney work when av is not logged in and it doesnt work
in opensim console it says user not found :(
in opensim console it says user not found :(
Votes:90
Average:3.78
Re: llGiveMoney()
msg# 1.2.1.1.1.1.1.1.1.1.1
admin
Posts: 245
Quote:
Please teach me full message, and which the message is OpenSim or Money Server?
chrisby wrotes:
i juyst tried your fix that makes llgivemoney work when av is not logged in and it doesnt work
in opensim console it says user not found :(
Please teach me full message, and which the message is OpenSim or Money Server?
Votes:93
Average:4.30
Re: llGiveMoney()
msg# 1.2.1.1.1.1.1.1.1.1.2
admin
Posts: 245
Quote:
Possibly does this av means avatar that receives money?
i juyst tried your fix that makes llgivemoney work when av is not logged in and it doesnt work
Possibly does this av means avatar that receives money?
Votes:82
Average:3.54
Re: llGiveMoney()
msg# 1.2.1.1.1.1.1.1.1.1.1.1
chrisby
Posts: 23
i tried to sell a copy of a cube for 10
the owner of the cube was not online
in opensim.exe console says user(uuid) not found
moneyserver.exe console says nothing
the owner of the cube was not online
in opensim.exe console says user(uuid) not found
moneyserver.exe console says nothing
Votes:75
Average:4.67
Re: llGiveMoney()
msg# 1.2.1.1.1.1.1.1.1.1.1.1.1
chrisby
Posts: 23
opensim console says
[MONEY]: Client 02f5b247-82c6-4ad5-9df0-da6055771e5d not found
[MONEY]: Client 02f5b247-82c6-4ad5-9df0-da6055771e5d not found
Votes:86
Average:5.00
Re: llGiveMoney()
msg# 1.2.1.1.1.1.1.1.1.1.1.1.1.1
admin
Posts: 245
It seems that OpenSim.Forge.Currency.dll is old or OpenSim.exe does not restart.
1. Do you restart OpenSim.exe ?
2. Please check source code of opensim.currency-0.7_2/OpenSim.Forge.Currency/MoneyServer.cs
Is it the same as the under?
3. Please compile again.
OpenSim's bin directory and opensim.currency-0.7_2 directory must be at same directory.
# rm bin/OpenSim.Forge.Currency.dll
# rm bin/OpenSim.Grid.MoneyServer.exe
# cd opensim.currency-0.7_2
# ./build.sh
1. Do you restart OpenSim.exe ?
2. Please check source code of opensim.currency-0.7_2/OpenSim.Forge.Currency/MoneyServer.cs
Is it the same as the under?
247 bool ret;
248 if (LocateClientObject(fromID)!=null)
249 {
250 ret = TransferMoney(fromID, toID, amount, 2, 0, 0, description);
251 }
252 else
253 {
254 ret = ForceTransferMoney(fromID, toID, amount, 2, 0, 0, description);
255 }
256
257 return ret;
3. Please compile again.
OpenSim's bin directory and opensim.currency-0.7_2 directory must be at same directory.
# rm bin/OpenSim.Forge.Currency.dll
# rm bin/OpenSim.Grid.MoneyServer.exe
# cd opensim.currency-0.7_2
# ./build.sh
Votes:70
Average:5.00
Re: llGiveMoney()
msg# 1.2.1.1.1.1.1.1.1.1.1.1.1.1.1
chrisby
Posts: 23
i confirmed that the code is present and then followed your instructions directly
now i just see loading in my viewer with nothing on any consoles
very strange
now i just see loading in my viewer with nothing on any consoles
very strange
Votes:74
Average:5.00
Re: llGiveMoney()
msg# 1.2.1.1.1.1.1.2
chrisby
Posts: 23
Quote:these are the instructions i followed however i have just noticed that the forge currency dll did not get re written due to a build failure
it says [csc] /opt/newopensim/trunk/opensim.currency-0.7_2/OpenSim.Forge.Currency/MoneyModule.cs(303,16): error CS0246: The type or namespace name `EconomyData' could not be found. Are you missing a using directive or an assembly reference?
when trying to compile a new forge currency dll
admin wrotes:
Hi chrisby
1. If you need currency server for v0.7.0.1, see fllow.
You need not compile OpenSim again.
Please execute ./build.sh in opensim.currency-0.7_2 directory.
And add enableForceTransfer=true line to [MoneyServer] section in MoneyServer.ini
Please see opensim.currency-0.7_2/config/MoneyServer.ini
After edit MoneyServer.ini. please restart OpenSim.Grid.MoneyServer.exe and OpenSim.exe
Then, llGiveMoney() function works normally even if payer doesn't login to Opensim,
Download: http://www.nsl.tuis.ac.jp/xoops/modules/d3downloads/index.php?page=singlefile&cid=8&lid=15
ex)
cd (Top Directory of OpenSim)
tar zxfv (Download Directory)/opensim.currency-0.7_2.tar.gz
cd opensim.currency-0.7_2
./buid.sh
cd ../bin
vi MoneyServer.ini
2. If you need currency server for latest version, please wait for a few days.
it says [csc] /opt/newopensim/trunk/opensim.currency-0.7_2/OpenSim.Forge.Currency/MoneyModule.cs(303,16): error CS0246: The type or namespace name `EconomyData' could not be found. Are you missing a using directive or an assembly reference?
when trying to compile a new forge currency dll
Votes:151
Average:5.50
Re: llGiveMoney()
msg# 1.2.1.1.1.1.1.2.1
chrisby
Posts: 23
ok firstly let me apologize
it works very well now
my system for some reasone didnt want to compile the tar version but works very very well with the svn version
just so you know i am using it on the latest code from opensim svn system so it seems to be ok with opensim head
manythanks for your hard work and patience :)
Chris
it works very well now
my system for some reasone didnt want to compile the tar version but works very very well with the svn version
just so you know i am using it on the latest code from opensim svn system so it seems to be ok with opensim head
manythanks for your hard work and patience :)
Chris
Votes:85
Average:5.29
Re: llGiveMoney()
msg# 1.2.1.1.1.1.1.2.1.1
iseki
Posts: 1581
Ok. Very well. :)
Next job is problem of "sale original" :)
Thanks
Next job is problem of "sale original" :)
Thanks
Votes:76
Average:4.61
Re: llGiveMoney()
msg# 1.2.1.1.1.1.1.2.1.1.1
chrisby
Posts: 23
Hi Iseki,
I hope that you are well :)
I have found another bug
if the owner of an object with a script that uses llGivemoney tries to use it he cant , he is totally ignored however others can use it without problem
Anything I can do to help , Please ask :)
Chris
I hope that you are well :)
I have found another bug
if the owner of an object with a script that uses llGivemoney tries to use it he cant , he is totally ignored however others can use it without problem
Anything I can do to help , Please ask :)
Chris
Votes:68
Average:5.44
Re: Re: llGiveMoney()
msg# 1.2.1.1.1.1.1.2.1.1.1.1
master
Posts: 138
Have the same problem here. You cant pay your selph (thats normal) but if there were some kinda raffle or something it woun't let a host that is the owner start it.
Also i see the same problem of selling a one of a kind item. All other sales work ok though.
Other wise seems quite stable at this point.
Test on Win and linux.
tnx
Also i see the same problem of selling a one of a kind item. All other sales work ok though.
Other wise seems quite stable at this point.
Test on Win and linux.
tnx
Votes:77
Average:4.16
Re: Re: llGiveMoney()
msg# 1.2.1.1.1.1.1.2.1.1.1.1.1
iseki
Posts: 1581
Yes, I inserted "if (sender==receiver) return true;" in top of (Force)TransferMony() function.
Because anything doesn't change consequentially.
Sorry, I can not understand this problem well. Please teach me the concrete situation of problems.
---
PS.
24-26 Aug. is summer vacation. I'll go to the hot spring with my family. :)
Therefore, I cannot answer for those days.
Because anything doesn't change consequentially.
Sorry, I can not understand this problem well. Please teach me the concrete situation of problems.
---
PS.
24-26 Aug. is summer vacation. I'll go to the hot spring with my family. :)
Therefore, I cannot answer for those days.
Votes:121
Average:3.31
Re: Re: llGiveMoney()
msg# 1.2.1.1.1.1.1.2.1.1.1.1.1.1
chrisby
Posts: 23
the owner of an object with an llgivemoney script in it is ignored
Votes:96
Average:5.00
Re: Re: llGiveMoney()
msg# 1.2.1.1.1.1.1.2.1.1.1.1.1.1.1
iseki
Posts: 1581
Does it mean that it needs to occur of event?
I do not understand...... :(
If you need self money transfer, edit OpenSim.Forge.Currency/MoneyModule.cs and delete if (sender==receiver) return true; from TransferMoney() and ForceTransferMoney(). And execute ./build again.
Thanks
I do not understand...... :(
If you need self money transfer, edit OpenSim.Forge.Currency/MoneyModule.cs and delete if (sender==receiver) return true; from TransferMoney() and ForceTransferMoney(). And execute ./build again.
Thanks
Votes:142
Average:3.24
Re: Re: llGiveMoney()
msg# 1.2.1.1.1.1.1.2.1.1.1.1.1.1.1.1
chrisby
Posts: 23
llgivemoney events are not triggered for OWNER of script
Votes:97
Average:4.54
Re: llGiveMoney()
msg# 1.3
master
Posts: 138
Well a simple example is when a 'Sploder' type function is need. This is used alot in clubs.
You the OWNER of the 'sploder' cannot pay into it, to set the prize. It ignores them when they pay into the pot. (No event is triggered).
This also makes for problems when making a new game of some sort as the Owner cant trigger it.
Usualy it would trigger no matter who payed and then later see that is was the owner and not process the actual money transfer to the owner. (cant pay your selph because its a loop and not the problem) as it should.
A test might be make a script that makes a light flash for a few seconds when it's payed. Then you can see that for the owner the light will never flash but to anyone else it will work.
tnx
You the OWNER of the 'sploder' cannot pay into it, to set the prize. It ignores them when they pay into the pot. (No event is triggered).
This also makes for problems when making a new game of some sort as the Owner cant trigger it.
Usualy it would trigger no matter who payed and then later see that is was the owner and not process the actual money transfer to the owner. (cant pay your selph because its a loop and not the problem) as it should.
A test might be make a script that makes a light flash for a few seconds when it's payed. Then you can see that for the owner the light will never flash but to anyone else it will work.
tnx
Votes:108
Average:4.07
Re: llGiveMoney()
msg# 1.4
master
Posts: 138
Another test is with a simple vendor. The owner test's the vendor by paying it to make sure the item is dispensed.
The owner will see no change money wise and that's correct But it should still give them the object.
If someone else pays the vendor it works ok.
The owner will see no change money wise and that's correct But it should still give them the object.
If someone else pays the vendor it works ok.
Votes:105
Average:4.00
Re: llGiveMoney()
msg# 1.4.1
chrisby
Posts: 23
Thanks Iseki,
I have solved this now :)
Hope You Are Well :)
Chris
I have solved this now :)
Hope You Are Well :)
Chris
Votes:82
Average:5.00
Re: llGiveMoney()
msg# 1.5
Previous post
-
Next post
|
Parent
-
No child
|
Posted on 2010/9/26 16:39
master
Posts: 138
Mmmm Iseki and chisby .. you 2 should get together.
hes got good patches and i got some security stuff to add in (x-ten(128) enc Php). I have been combining his and yours and my own and find it quite stable. I think of the 3 (what i use) may make the next gen of a basic currency system.
End of the day, it works and soild as rock!
Btw.. i think i know what the mysql issue is when it runs outta connections.. still working on that :)
Anyway not for me to say for others but between you both.. it just works now :)
tnx
hes got good patches and i got some security stuff to add in (x-ten(128) enc Php). I have been combining his and yours and my own and find it quite stable. I think of the 3 (what i use) may make the next gen of a basic currency system.
End of the day, it works and soild as rock!
Btw.. i think i know what the mysql issue is when it runs outta connections.. still working on that :)
Anyway not for me to say for others but between you both.. it just works now :)
tnx
Votes:74
Average:5.00