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

Setup issues

  • このフォーラムに新しいトピックを立てることはできません
  • このフォーラムではゲスト投稿が禁止されています

不満 Setup issues

msg# 1
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 .2 .3 .4 .5 .6 .7 .8 .9 .10 .11 .12 .13 .14 .15 .16 .17 .18 .19 .20 .21 .22 .23 .24 | 投稿日時 2011-3-3 1:42
Draven190  Not too shy to talk   投稿数: 24
Hello

I am currently trying to use the currency server with opensim 0.7.2. So the process i go through is.

My operating system is Ubuntu 10.10 64 Server. The Opensim is running in standalone mode and runs without any issue at all. Can someone please help me with what i'm doing wrong and perhaps a tutorial on how to do it properly

cd /home/director/opensim
(works fine this is where everything is stored)

svn co http://www.nsl.tuis.ac.jp/svn/opensim/opensim.currency/trunk opensim.currency
(works fine i get a complete package)


patch -p1 < opensim.currency/opensim_currency_latest.patch
(fails with below output

atching file OpenSim/Framework/IMoneyModule.cs
Hunk #1 FAILED at 29.
Hunk #2 FAILED at 45.
2 out of 2 hunks FAILED -- saving rejects to file OpenSim/Framework/IMoneyModule.cs.rej
patching file OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
Hunk #1 FAILED at 1674.
1 out of 1 hunk FAILED -- saving rejects to file OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs.rej
patching file OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs
Hunk #1 FAILED at 104.
Hunk #2 FAILED at 241.
Hunk #3 FAILED at 767.
3 out of 3 hunks FAILED -- saving rejects to file OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs.rej
patching file OpenSim/Region/ScriptEngine/XEngine/EventManager.cs
Hunk #1 FAILED at 73.
Hunk #2 FAILED at 83.
Hunk #3 FAILED at 93.
Hunk #4 FAILED at 227.
4 out of 4 hunks FAILED -- saving rejects to file OpenSim/Region/ScriptEngine/XEngine/EventManager.cs.rej

I am a little confused as to the reason for this)


./runprebuild.sh && nant clean && nant

(this file does not exist and i can't seem to find it anywhere am i going blind??)

cd opensim.currency

(i can enter this directory)


./build.sh


This produces the below>>>

http://nant.sourceforge.net

Buildfile: file:///home/director/OpenSim/opensim.currency/OpenSim.Data.MySQL.MySQLMoneyDataWrapper/OpenSim.Data.MySQL.MySQLMoneyDataWrapper.build
Target framework: Mono 2.0 Profile
Target(s) specified: build

[echo] Project Directory is /home/director/OpenSim/opensim.currency/OpenSim.Data.MySQL.MySQLMoneyDataWrapper

build:

[csc] Compiling 4 files to '/home/director/OpenSim/opensim.currency/OpenSim.Data.MySQL.MySQLMoneyDataWrapper/OpenSim.Data.MySQL.MySQLMoneyDataWrapper.dll'.

BUILD SUCCEEDED

Total time: 2.2 seconds.

NAnt 0.85 (Build 0.85.2478.0; release; 14/10/2006)
Copyright (C) 2001-2006 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///home/director/OpenSim/opensim.currency/OpenSim.Forge.Currency/OpenSim.Forge.Currency.build
Target framework: Mono 2.0 Profile
Target(s) specified: build

[echo] Project Directory is /home/director/OpenSim/opensim.currency/OpenSim.Forge.Currency

build:

[csc] Compiling 1 files to '/home/director/OpenSim/opensim.currency/OpenSim.Forge.Currency/OpenSim.Forge.Currency.dll'.
[csc] /home/director/OpenSim/opensim.currency/OpenSim.Forge.Currency/MoneyModule.cs(87,30): error CS0246: The type or namespace name `PostObjectPaid' could not be found. Are you missing a using directive or an assembly reference?
[csc] Compilation failed: 1 error(s), 0 warnings

BUILD FAILED - 0 non-fatal error(s), 1 warning(s)

/home/director/OpenSim/opensim.currency/OpenSim.Forge.Currency/OpenSim.Forge.Currency.build(8,4):
External Program Failed: /usr/lib/mono/2.0/gmcs.exe (return code was 1)

Total time: 2.6 seconds.

NAnt 0.85 (Build 0.85.2478.0; release; 14/10/2006)
Copyright (C) 2001-2006 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///home/director/OpenSim/opensim.currency/OpenSim.Grid.MoneyServer/OpenSim.Grid.MoneyServer.build
Target framework: Mono 2.0 Profile
Target(s) specified: build

[echo] Project Directory is /home/director/OpenSim/opensim.currency/OpenSim.Grid.MoneyServer

build:

[csc] Compiling 6 files to '/home/director/OpenSim/opensim.currency/OpenSim.Grid.MoneyServer/OpenSim.Grid.MoneyServer.exe'.
[csc] /home/director/OpenSim/opensim.currency/OpenSim.Grid.MoneyServer/MoneyXmlRpcModule.cs(67,32): warning CS0414: The private field `OpenSim.Grid.MoneyServer.MoneyXmlRpcModule.m_opensimVersion' is assigned but its value is never used
[csc] Compilation succeeded - 1 warning(s)

BUILD SUCCEEDED - 0 non-fatal error(s), 1 warning(s)

Total time: 3.5 seconds.



cd ../bin
vi MoneyServer.ini (modify [MySql] section)
(edited fine)

Thanks Very much
投票数:163 平均点:5.21

なし Re: Setup issues

msg# 1.1
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-3-3 10:58 | 最終変更
iseki  Home away from home   投稿数: 1581
Hello Draven190

If you use OpenSim 0.7.0.2 (0.7.2 is not released yet), please use below version.
http://www.nsl.tuis.ac.jp/xoops/modules/d3downloads/index.php?page=singlefile&cid=8&lid=15

svn version is for latest dev version (0.7.1Dev)

Thanks.
投票数:116 平均点:4.22

なし Re: Setup issues

msg# 1.2
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-3-3 18:44
Draven190  Not too shy to talk   投稿数: 24
Hello

Thanks for taking the time to reply. I have just downloaded the one that you have advised and it still causes all of the problems that happened before.

./runprebuild.sh << doesn't exist at all and the patch file causes

atching file OpenSim/Framework/IMoneyModule.cs
Hunk #1 FAILED at 29.
Hunk #2 FAILED at 45.
2 out of 2 hunks FAILED -- saving rejects to file OpenSim/Framework/IMoneyModule.cs.rej
patching file OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
Hunk #1 FAILED at 1674.
1 out of 1 hunk FAILED -- saving rejects to file OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs.rej
patching file OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs
Hunk #1 FAILED at 104.
Hunk #2 FAILED at 241.
Hunk #3 FAILED at 767.
3 out of 3 hunks FAILED -- saving rejects to file OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs.rej
patching file OpenSim/Region/ScriptEngine/XEngine/EventManager.cs
Hunk #1 FAILED at 73.
Hunk #2 FAILED at 83.
Hunk #3 FAILED at 93.
Hunk #4 FAILED at 227.
4 out of 4 hunks FAILED -- saving rejects to file OpenSim/Region/ScriptEngine/XEngine/EventManager.cs.rej
投票数:128 平均点:4.77

なし Re: Setup issues

msg# 1.2.1
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-3-3 21:43 | 最終変更
iseki  Home away from home   投稿数: 1581
Hi

Do you use OpenSim binary file? Please download source file.

Please try below commands.
# wget http://dist.opensimulator.org/opensim-0.7.0.2-source.tar.gz
# tar zxvf opensim-0.7.0.2-source.tar.gz 
# cd opensim-0.7.0.2-source 
# wget http://www.nsl.tuis.ac.jp/DownLoad/SoftWare/OpenSim/opensim.currency-0.7_4.tar.gz
   (You can download it from http://www.nsl.tuis.ac.jp/xoops/modules/d3downloads/index.php?page=singlefile&cid=8&lid=15, too.) 
# tar zxfv opensim.currency-0.7_4.tar.gz

# patch -p1 < opensim.currency-0.7_4/opensim_currency_0.7.patch 
patching file OpenSim/Framework/IMoneyModule.cs
patching file OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
Hunk #1 succeeded at 1614 (offset 7 lines).
patching file OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs
patching file OpenSim/Region/ScriptEngine/XEngine/EventManager.cs

# ./runprebuild.sh       (or bash ./runprebuild.sh)
# nant
# cd opensim.currency-0.7_4
# ./build.sh      (or bash ./build.sh)

Thanks.
投票数:193 平均点:5.65

なし Re: Setup issues

msg# 1.3
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-3-3 23:42
Draven190  Not too shy to talk   投稿数: 24
Thanks very much for your assistance. I managed to compile fine with your instructions. The only issue i have now is when running OpenSim it comes up with

APPLICATION EXCEPTION DETECTED: System.UnhandledExceptionEventArgs

Exception: Nini.Ini.IniException: Expected closing quote (") - Line: 865, Position: 55.
at Nini.Ini.IniReader.ReadKeyValue () [0x00000] in <filename unknown>:0
at Nini.Ini.IniReader.ReadKey () [0x00000] in <filename unknown>:0
at Nini.Ini.IniReader.ReadNext () [0x00000] in <filename unknown>:0
at Nini.Ini.IniReader.ReadNext () [0x00000] in <filename unknown>:0
at Nini.Ini.IniReader.Read () [0x00000] in <filename unknown>:0
at Nini.Ini.IniDocument.LoadReader (Nini.Ini.IniReader reader) [0x00000] in <filename unknown>:0

Application is terminating: True

It worked perfectly before.. I'm not very good at stuff like this.
投票数:154 平均点:3.90

なし Re: Setup issues

msg# 1.4
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-3-4 0:16
Draven190  Not too shy to talk   投稿数: 24
I fixed that one because of a faulty txt file

Now i'm getting

No Connector defined in section Friends, or failed to load, cannot continue
15:14:57 - [APPLICATION]:
APPLICATION EXCEPTION DETECTED: System.UnhandledExceptionEventArgs

Exception: System.Exception: Connector load error
at OpenSim.Region.CoreModules.Avatar.Friends.FriendsModule.Initialise (IConfigSource config) [0x00000] in <filename unknown>:0
at OpenSim.ApplicationPlugins.RegionModulesController.RegionModulesControllerPlugin.Initialise (OpenSim.OpenSimBase openSim) [0x00000] in <filename unknown>:0
at OpenSim.ApplicationPluginInitialiser.Initialise (IPlugin plugin) [0x00000] in <filename unknown>:0
at OpenSim.Framework.PluginLoader`1[OpenSim.IApplicationPlugin].Load () [0x00000] in <filename unknown>:0
at OpenSim.Framework.PluginLoader`1[OpenSim.IApplicationPlugin].Load (System.String extpoint) [0x00000] in <filename unknown>:0
at OpenSim.OpenSimBase.LoadPlugins () [0x00000] in <filename unknown>:0
at OpenSim.OpenSimBase.StartupSpecific () [0x00000] in <filename unknown>:0
at OpenSim.OpenSim.StartupSpecific () [0x00000] in <filename unknown>:0
at OpenSim.Framework.Servers.BaseOpenSimServer.Startup () [0x00000] in <filename unknown>:0
at OpenSim.Application.Main (System.String[] args) [0x00000] in <filename unknown>:0

Application is terminating: True
投票数:105 平均点:4.57

なし Re: Setup issues

msg# 1.4.1
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-3-4 0:54 | 最終変更
iseki  Home away from home   投稿数: 1581
Hi

You must copy StandaloneCommon.ini and CenomeCache.ini
# cd opensim-0.7.0.2-source
# cd config-include/
# cp StandaloneCommon.ini.example StandaloneCommon.ini
# cp CenomeCache.ini.example CenomeCache.ini

And if you execute OpenSim on stand alone mode, I recommend that you use MySQL DB in OpenSim.ini.
Because Money Server use MySQL DB.

Thanks
投票数:121 平均点:4.79

なし Re: Setup issues

msg# 1.5
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-3-4 19:59
Draven190  Not too shy to talk   投稿数: 24
Hello

Many thanks for all your help. I've managed to login now and have $OS 1000 in my account. The only thing i'm yet to get working is when I click the button

OS$ I get Cannot Buy now: Despite our best efforts, something unexpected has gone wrong..

I have setup my Account to be able to get money from the server.. am i missing something.

I also don't quite understand how llGiveMoney() works i'm assuming you have to add it into a script?

Thanks again for your continued help. This is all very new too me and i'm slowly getting the hang of it.
投票数:123 平均点:3.17

なし Re: Setup issues

msg# 1.5.1
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-3-4 23:26 | 最終変更
iseki  Home away from home   投稿数: 1581
Hi

If you want to use Banker Avatar (buy currency), you should use Grid Mode of OpenSim.
In Stand Alone mode, "buy currency" is not work, sorry.
Because, PHP script can not get session ID from DB in Stand Alone mode.


llGiveMoney() is used like the following examples.
When someone touches this object, he get money from creator of this object.

default
{
    state_entry()
    {
        llSay(0, "Script running");
        llRequestPermissions(llGetOwner(), PERMISSION_DEBIT ); 
    }
    
     touch_start(integer num)
     {
         llSay(0, "Give Money");
         llGiveMoney(llDetectedKey(0), 100);
     }
}
投票数:197 平均点:3.55

なし Re: Setup issues

msg# 1.6
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-3-5 0:10
Draven190  Not too shy to talk   投稿数: 24
Hi

I see thanks very much. I shall convert my server to Grid mode. I guess it would be good to understand how to do that.

Thanks again very much for your assistance there is no way I would have been able to do this without your help.
投票数:79 平均点:4.81

なし Re: Setup issues

msg# 1.5.1.1
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-3-5 0:10
iseki  Home away from home   投稿数: 1581
Hi

引用:

If you want to use Banker Avatar (buy currency), you should use Grid Mode of OpenSim.
In Stand Alone mode, "buy currency" is not work, sorry.
Because, PHP script can not get session ID from DB in Stand Alone mode.

I reviewed the configuration file and the PHP script again.
So, I found the method of working Banker in Stand Alone mode. :)

1. Download opensim.mysql.php from http://www.nsl.tuis.ac.jp/DownLoad/SoftWare/PHP/WI-1.55/opensim.mysql
wget http://www.nsl.tuis.ac.jp/DownLoad/SoftWare/PHP/WI-1.55/opensim.mysql

2. Replace include/opensim.mysql.php
cp opensim.mysql "Helper Directory"/include/opensim.mysql.php

3. Edit bin/OpenSim.ini. Comment out setting of SQLite3, and enable setting of MySQL at [Startup] section.
ex.) storage_plugin="OpenSim.Data.MySQL.dll"
storage_connection_string="Data Source=localhost;Database=opensim;User ID=opensim_user;Password=opensim_pass;"

4. Edit bin/config-include/StandaloneCommon.ini. Comment out setting of SQLite3, and enable setting of MySQL at [DatabaseService] section.
It sets it as above 3

5. Edit bin/config-include/Standalone.ini. Replaced "OpenSim.Data.Null.dll" by "OpenSim.Data.MySQL.dll" at [PresenceService] section.
投票数:98 平均点:3.88

なし Re: Setup issues

msg# 1.7
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-3-5 1:14
Draven190  Not too shy to talk   投稿数: 24
Hi

I have made all the changes but i'm still getting the Cannot Buy Now error
I was already using Mysql as a backend.

I'm not sure why i have used the Helper URI as an internal and an external IP address and it just responds with the same error i am able to goto the helperuri in my browser window. It is accessable but only brings up a white screen as expected.

Is there anything i have missed

Thanks
投票数:118 平均点:3.56

なし Re: Setup issues

msg# 1.8
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-3-5 1:52
Draven190  Not too shy to talk   投稿数: 24
Out of interest

What would

define('USER_SERVER_URI', be set at ???

I believe the Server_URI is just for GRID mode is that correct?
投票数:90 平均点:5.89

なし Re: Setup issues

msg# 1.8.1
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-3-5 2:28 | 最終変更
admin  Webmaster   投稿数: 245
引用:

Draven190 wrotes:
I'm not sure why i have used the Helper URI as an internal and an external IP address and it just responds with the same error i am able to goto the helperuri in my browser window. It is accessable but only brings up a white screen as expected.

Web browser can not display Helper URI. This is normal operation.

Please confirm below.
Download opensim.mysql has not .php extension.
But copy destination is opensim.mysql.php


引用:
define('USER_SERVER_URI', be set at ???

If you use Stand Alone mode, it is "http://OpenSim Server's IP:9000/"
If you use Grid mode, it is "http://ROBUST Server's IP:8002/"
Do not use 127.0.0.1 for IP.
投票数:80 平均点:3.75

なし Re: Setup issues

msg# 1.9
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-3-5 3:13
Draven190  Not too shy to talk   投稿数: 24
I can confirm that

i have copied it renamed it opensim.mysql.php it is readable by apache. (repeated the whole process twice)

i'm currently using it internally

includes/config.php


if (!defined('ENV_HELPER_URL')) define('ENV_HELPER_URL', 'http://**internalIP**/currency/helper');
if (!defined('ENV_HELPER_PATH')) define('ENV_HELPER_PATH', '/var/www/currency/helper');


$GLOBALS['xmlrpc_internalencoding'] = 'UTF-8';


//////////////////////////////////////////////////////////////////////////////////i
//
// Valiables for OpenSim
//

define('OPENSIM_DB_HOST', '*SQL SERVER IP*');
define('OPENSIM_DB_NAME', '***');
define('OPENSIM_DB_USER', '***');
define('OPENSIM_DB_PASS', '*******');

define('USE_CURRENCY_SERVER', 1);
define('CURRENCY_SCRIPT_KEY', '123456789');
define('USER_SERVER_URI', 'http://**internalIP**:9000/');
//
define('SYSURL', ENV_HELPER_URL);
define('USE_UTC_TIME', 1);

if (USE_UTC_TIME) date_default_timezone_set('UTC');




//////////////////////////////////////////////////////////////////////////////////
// Currency DB
define('CURRENCY_DB_HOST', OPENSIM_DB_HOST);
define('CURRENCY_DB_NAME', OPENSIM_DB_NAME);
define('CURRENCY_DB_USER', OPENSIM_DB_USER);
define('CURRENCY_DB_PASS', OPENSIM_DB_PASS);
define('CURRENCY_MONEY_TBL', 'balances');
define('CURRENCY_TRANSACTION_TBL', 'transactions');


//
if (!defined('ENV_READED_CONFIG')) define('ENV_READED_CONFIG', 'YES');

?>

I'm executing Imprudence with

"C:\Program Files (x86)\Imprudence\imprudence.exe" --helperuri http://**internal IP**/currency/helper/

All other settings are as they should be..

The only other non standard thing is i have Wifi webbased account software for OpenSim installed.. Would this have any effect
投票数:85 平均点:5.88

なし Re: Setup issues

msg# 1.9.1
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-3-5 7:44
admin  Webmaster   投稿数: 245
Hi

If you use imprudence viewer, "-helperuri" option doesnot work.
You should use "Grid Manager" instead of "-helperuri option".

Please set "Helper URI" of Grid Manager of imprudence viewer.

Thanks.
投票数:86 平均点:3.84

なし Re: Setup issues

msg# 1.10
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-3-5 21:18
Draven190  Not too shy to talk   投稿数: 24
Hi

I have sent that optino in the gridmanager section also but i'm still having the issue.

Thanks
投票数:90 平均点:3.89

なし Re: Setup issues

msg# 1.10.1
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-3-5 22:41 | 最終変更
iseki  Home away from home   投稿数: 1581
Ummmm....

Please try to set "00000000-0000-0000-0000-000000000000" to BankerAvatar at [MoneyServer] section in MoneyServer.ini
In this case, does "buy currency" work?


Other methods for debug.
1. Please check Apache log
2. Enable error_log() function at end of helper/currency.php
3. Adding error_log() function to helper/helpers.php or helper/curency.php for check
get_currency_quote() in helper/currency.php is first step operation by "buy currency"
buy_currency() in helper/currency.php is second step operation by "buy currency"
add_money() in helper/helpers.php is adding money function to Banker Avatar
etc. etc...

You should edit php.ini for enable error_log() function.
Please set "log_errors = On" and "error_log = error log file name (full path)" in php.ini

I have no other idea, sorry. :(
投票数:100 平均点:3.80

なし Re: Setup issues

msg# 1.11
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-3-6 22:20
Draven190  Not too shy to talk   投稿数: 24
I have enabled the log function and i get the following error when clicking the buy currency button

PHP Fatal error: Call to undefined function xmlrpc_server_create() in /var/www/currency/helper/currency.php on line 62

Does that make any sense to you

that line is actually the first line in Currency.php

$xmlrpc_server = xmlrpc_server_create();

Am i perhaps missing some dependencies? or is my apache configured incorrectly?

Thanks for all of your help
投票数:64 平均点:4.06

なし Re: Setup issues

msg# 1.12
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-3-6 23:47
Draven190  Not too shy to talk   投稿数: 24
After some googling i noticed that i was missing a dependecy.

php5-xmlrpc

Installed that and restarted the server.


It is working now.

Apologies for all the hassle i have caused up to now and arigatou for all the help. (i'm currently trying to learn Japanese.)
投票数:96 平均点:5.10

なし Re: Setup issues

msg# 1.13
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-3-6 23:52
Draven190  Not too shy to talk   投稿数: 24
Right well i said its working

I can now get to the screen where it says Buy currency from the currency exchange for approx US$20 I click to purchase i still get an error.

Its a step forward.
投票数:85 平均点:4.82

なし Re: Setup issues

msg# 1.14
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-3-7 1:48
Draven190  Not too shy to talk   投稿数: 24
Hello

Now i'm getting the

Now its a little more complicated something is wrong in both helpers.php and currency.php i have taken your advice and put error_log() but it hasn't helped my narrow down the issue.

I get my error message in both currency.php and helper.php

does it matter where i put the error_log()

I redownloaded the files all over again and deleted the old ones. But it is still doing it..

I'm rather confused..
投票数:95 平均点:5.26

なし Re: Setup issues

msg# 1.12.1
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-3-7 7:57 | 最終変更
iseki  Home away from home   投稿数: 1581
Hi

引用:

php5-xmlrpc

Installed that and restarted the server.

Do you install php5-curl ?
php5-curl is needed, too.
投票数:96 平均点:4.27

なし Re: Setup issues

msg# 1.14.1
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-3-7 8:16 | 最終変更
iseki  Home away from home   投稿数: 1581
引用:
I can now get to the screen where it says Buy currency from the currency exchange for approx US$20 I click to purchase i still get an error.

This indicates "get_currency_quote() is work well".
What error message do you have, when click click to purchase?

引用:
does it matter where i put the error_log()

If message of error_log() is in error message file, you can know that the program works normally there.
If error_log is appropriately inserted, the flow of the program can be confirmed.
And you can know the error.

If you have error message, please send message to me.

Thanks.
投票数:84 平均点:5.24

なし Re: Setup issues

msg# 1.15
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-3-7 18:45
Draven190  Not too shy to talk   投稿数: 24
I enabled this error log and got the below

error_log("currency.php: ".$request_xml);

currency.php: <?xml version="1.0"?><methodCall><methodName>getCurrencyQuote</methodName><params><param><value><struct><member><name>agentId</name><value><string>5d7deecc-8cce-4c59-a548-8ae16975f5b2</string></value></member><member><name>secureSessionId</name><value><string>3dfbf2d0-f0dd-44e3-b63b-58dcb8cf8156</string></value></member><member><name>currencyBuy</name><value><int>2000</int></value></member></struct></value></param></params></methodCall>

I'm very new to PHP so i'm not 100% sure how to use error_log()

The only thing I have noticed is that i don't have a table called

wi_economy_money

In mysql..

Should i create this table could that be the issue? what fields should it have?

Thanks
投票数:79 平均点:5.06

なし Re: Setup issues

msg# 1.16
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-3-7 19:08
Draven190  Not too shy to talk   投稿数: 24
My currency mysql looks like the below


assets
auth
Avatars
balances << This one it believe belongs to currency
estate_groups
estate_managers
estate_map
estate_settings
estate_users
estateban
GridUser
inventoryfolders
inventoryitems
land
landaccesslist
migrations
Presence
primitems
prims
primshapes
regionban
regionsettings
regionwindlight
terrain
transactions << as does this one
UserAccounts
userinfo

Is that right should there be more such as wi_economy_money??

Thanks
投票数:84 平均点:4.17

なし Re: Setup issues

msg# 1.17
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-3-7 21:39
Draven190  Not too shy to talk   投稿数: 24
Using lots of error_log()'s i have fond it gets to this point in the code

error_log("response: ".$response_xml);
header("Content-type: text/xml");
echo $response_xml;
return "";
}
$ret = false;
error_log("ret: ".$ret);
$cost = convert_to_real($amount);
error_log("cost: ".$cost);
error_log("amount: ".$amount);
$transactionPermit = process_transaction($agentid, $cost, $ipAddress);

error_log("transaction: ".$transactionPermit);
if ($transactionPermit) { <<< seems to stop about here..
$res = add_money($agentid, $amount, $sessionid);
if ($res["success"]) $ret = true;
}
error_log("success: ".$res);
投票数:65 平均点:4.31

なし Re: Setup issues

msg# 1.18
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-3-7 21:43
Draven190  Not too shy to talk   投稿数: 24
This is what my logs look like based on those

[Mon Mar 07 12:41:12 2011] [error] [client 10.0.10.250] xmlrpc: Resource id #9
[Mon Mar 07 12:41:12 2011] [error] [client 10.0.10.250] req: Array
[Mon Mar 07 12:41:12 2011] [error] [client 10.0.10.250] agentid: 5d7deecc-8cce-4c59-a548-8ae16975f5b2
[Mon Mar 07 12:41:12 2011] [error] [client 10.0.10.250] sessionid: 66838941-9306-4c47-a3da-0c8187f2bf95
[Mon Mar 07 12:41:12 2011] [error] [client 10.0.10.250] amount: 2000
[Mon Mar 07 12:41:15 2011] [error] [client 10.0.10.250] xmlrpc: Resource id #9
[Mon Mar 07 12:41:15 2011] [error] [client 10.0.10.250] reqbuy: Array
[Mon Mar 07 12:41:15 2011] [error] [client 10.0.10.250] agentidbuy: 5d7deecc-8cce-4c59-a548-8ae16975f5b2
[Mon Mar 07 12:41:15 2011] [error] [client 10.0.10.250] sessionidbuy: 66838941-9306-4c47-a3da-0c8187f2bf95
[Mon Mar 07 12:41:15 2011] [error] [client 10.0.10.250] amountbuy: 2000
[Mon Mar 07 12:41:15 2011] [error] [client 10.0.10.250] confirm: 123456789
[Mon Mar 07 12:41:15 2011] [error] [client 10.0.10.250] ipAddress: 10.0.10.250
[Mon Mar 07 12:41:15 2011] [error] [client 10.0.10.250] ret:
[Mon Mar 07 12:41:15 2011] [error] [client 10.0.10.250] cost: 2000
[Mon Mar 07 12:41:15 2011] [error] [client 10.0.10.250] amount: 2000
[Mon Mar 07 12:41:15 2011] [error] [client 10.0.10.250] transaction: 1

I'm not sure if this helps at all. but other error_log's underneath transaction do not provide any erors this is why i think the code stops here..
投票数:131 平均点:3.97

なし Re: Setup issues

msg# 1.16.1
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-3-7 21:49
iseki  Home away from home   投稿数: 1581
Hi

wi_economy_money table is not used in our currency system.
wi_economy_money table is for OpenSimWi Redux, when you do not use Money Server.
We rewrite currency.php of OpenSimWi Redux for DTL currency server.


引用:
currency.php: <?xml version="1.0"?><methodCall><methodName>getCurrencyQuote</methodName><params><param><value><struct><member><name>agentId</name><value><string>5d7deecc-8cce-4c59-a548-8ae16975f5b2</string></value></member><member><name>secureSessionId</name><value><string>3dfbf2d0-f0dd-44e3-b63b-58dcb8cf8156</string></value></member><member><name>currencyBuy</name><value><int>2000</int></value></member></struct></value></param></params></methodCall>

Is below message is displayed after the above-mentioned message?

引用:
currency.php: <?xml version="1.0"?><methodCall><methodName>buyCurrency</methodName><params><param><value><struct><member><name>agentId</name><value><string>629fb44d-6c1e-440c-adc5-53b3674f7522</string></value></member><member><name>secureSessionId</name><value><string>8350e253-0e84-44d5-b4b0-48be33b30be7</string></value></member><member><name>currencyBuy</name><value><int>2000</int></value></member><member><name>estimatedCost</name><value><int>0</int></value></member><member><name>confirm</name><value><string>123456789</string></value></member></struct></value></param></params></methodCall>

This message is sent to currency.php when you click "Purchase" at "Buy Currency" window.
投票数:86 平均点:4.65

なし Re: Setup issues

msg# 1.17.1
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-3-7 21:58
iseki  Home away from home   投稿数: 1581
引用:

if ($transactionPermit) { <<< seems to stop about here..
$res = add_money($agentid, $amount, $sessionid);
if ($res["success"]) $ret = true;
}

You are right!!
Error occurred at add_money() function.

add_money() function is at helpers.php
Please try to insert error_log() in add_money() function
投票数:82 平均点:6.46

なし Re: Setup issues

msg# 1.17.1.1
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-3-7 22:06 | 最終変更
iseki  Home away from home   投稿数: 1581
Example

function  add_money($agentID, $amount, $secureID=null) 
{
        if (!isGUID($agentID)) return false;

        //
        if (!USE_CURRENCY_SERVER) {
                env_set_money_transaction(null, $agentID, $amount, 5010, 0, "Add Money", 0, 0, "");
                $res["success"] = true;
                return $res;
        }

error_log("111111111111111111111111");
        //
        // XML RPC to Region Server
        //
        if (!isGUID($secureID, true)) return false;

error_log("222222222222222222222222");
        $results = opensim_get_server_info($agentID);
        if (!$results) return false;
        $serverip  = $results["serverIP"];
        $httpport  = $results["serverHttpPort"];
        $serveruri = $results["serverURI"];

error_log("333333333333333333333333: serverip = ".$serverip." port = ".$httpport." uri = ".$serveruri);

        $results = opensim_get_avatar_session($agentID);
        if (!$results) return false;
error_log("444444444444444444444444");
        $sessionID = $results["sessionID"];
error_log("555555555555555555555555: ID = ".$sessionID);
        if ($secureID==null) $secureID = $results["secureID"];
        
        $req      = array('bankerID'=>$agentID, 'bankerSessionID'=>$sessionID, 'bankerSecureSessionID'=>$secureID, 'amount'=>$amount);
        $params   = array($req);
        $request  = xmlrpc_encode_request('AddBankerMoney', $params);
        $response = do_call($serverip, $httpport, $serveruri, $request);


//
ob_start();  
print_r($response);         
$rt = ob_get_contents();
ob_end_clean();                       
error_log("666666666666666666666666: responce = ".$rt);

        return $response;
}
投票数:95 平均点:4.32

なし Re: Setup issues

msg# 1.19
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-3-7 22:08
Draven190  Not too shy to talk   投稿数: 24
I have asked a friend who is really good with PHP to have a look he has advised me that that actual problem is here in helpers.php

$results = opensim_get_server_info($agentID);

It outputs the agentID but doesn't seem to progress any further than that.
投票数:87 平均点:5.29

なし Re: Setup issues

msg# 1.20
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-3-7 22:14
Draven190  Not too shy to talk   投稿数: 24
This is the add money section of the helpers.php

function add_money($agentID, $amount, $secureID=null)
{
if (!isGUID($agentID)) return false;
error_log(4);
//
if (!USE_CURRENCY_SERVER) {
env_set_money_transaction(null, $agentID, $amount, 5010, 0, "Add Money", 0, 0, "");
$res["success"] = true;
error_log(1);
return $res;
}

//
// XML RPC to Region Server
//
if (!isGUID($secureID, true)) return false;
error_log($agentID);
try{
$results = opensim_get_server_info($agentID);
}catch(Exception $e){
error_log(print_r($e,1));
}
if (!$results) return false;
$serverip = $results["serverIP"];
$httpport = $results["serverHttpPort"];
$serveruri = $results["serverURI"];

$results = opensim_get_avatar_session($agentID);
error_log(3);
if (!$results) return false;
$sessionID = $results["sessionID"];
if ($secureID==null) $secureID = $results["secureID"];

$req = array('bankerID'=>$agentID, 'bankerSessionID'=>$sessionID, 'bankerSecureSessionID'=>$secureID, 'amount'=>$amount);
$params = array($req);
$request = xmlrpc_encode_request('AddBankerMoney', $params);
$response = do_call($serverip, $httpport, $serveruri, $request);

return $response;
}

It outputs 4 to the error log but no other numbers and it does provide the $agentID for the results
投票数:107 平均点:4.30

なし Re: Setup issues

msg# 1.17.1.1.1
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-3-7 22:22
iseki  Home away from home   投稿数: 1581
at my system

[07-Mar-2011 22:18:17] 111111111111111111111111
[07-Mar-2011 22:18:17] 222222222222222222222222
[07-Mar-2011 22:18:17] 333333333333333333333333: serverip = 202.26.159.214 port = 9000 uri = http://202.26.159.214:9000
[07-Mar-2011 22:18:17] 444444444444444444444444
[07-Mar-2011 22:18:17] 555555555555555555555555: ID = e962e229-f017-4639-b781-0940179d60ab
[07-Mar-2011 22:18:17] 666666666666666666666666: responce = Array
(
    [success] => 1
)
投票数:98 平均点:7.45

なし Re: Setup issues

msg# 1.21
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-3-7 22:28
Draven190  Not too shy to talk   投稿数: 24
I copied your example and replaced mine with it

[Mon Mar 07 13:27:46 2011] [error] [client 10.0.10.250] 111111111111111111111111
[Mon Mar 07 13:27:46 2011] [error] [client 10.0.10.250] 222222222222222222222222

Thanks what i get.

just doesn't make it to 33333
投票数:105 平均点:6.48

なし Re: Setup issues

msg# 1.21.1
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-3-7 22:39
iseki  Home away from home   投稿数: 1581
Error occurred at opensim_get_server_info() in includeopensim.mysql.php

Does below SQL command work at your MySQL?

SELECT serverIP,serverHttpPort,serverURI,regionSecret FROM GridUser INNER JOIN regions ON regions.uuid=GridUser.LastRegionID WHERE GridUser.UserID='5d7deecc-8cce-4c59-a548-8ae16975f5b2';
投票数:97 平均点:4.64

なし Re: Setup issues

msg# 1.21.1.1
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-3-7 22:51
iseki  Home away from home   投稿数: 1581
引用:

iseki wrotes:
Error occurred at opensim_get_server_info() in includeopensim.mysql.php

Does below SQL command work at your MySQL?

SELECT serverIP,serverHttpPort,serverURI,regionSecret FROM GridUser INNER JOIN regions ON regions.uuid=GridUser.LastRegionID WHERE GridUser.UserID='5d7deecc-8cce-4c59-a548-8ae16975f5b2';

Please execute SQL command, when avatar logged in.
投票数:98 平均点:3.16

なし Re: Setup issues

msg# 1.22
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-3-7 23:08
Draven190  Not too shy to talk   投稿数: 24
when i run that command

ERROR 1146 (42S02): Table 'opensim.regions' doesn't exist

?? that is very odd..
投票数:83 平均点:4.10

なし Re: Setup issues

msg# 1.23
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-3-7 23:14
Draven190  Not too shy to talk   投稿数: 24
Is this because i'm running in standalone mode.
投票数:88 平均点:4.43

なし Re: Setup issues

msg# 1.23.1
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-3-7 23:29
iseki  Home away from home   投稿数: 1581
引用:

Draven190 wrotes:
Is this because i'm running in standalone mode.

Ohhh...

You should change ''[GridService]'' section at ''bin/config-include/StandaloneCommon.ini''.
Please enable ''StorageProvider = "OpenSim.Data.MySQL.dll:MySqlRegionData"'' line.
 [GridService]
 ;; For in-memory region storage (default)
 ; StorageProvider = "OpenSim.Data.Null.dll:NullRegionData"
 ;;--- For MySql region storage (alternative)
 StorageProvider = "OpenSim.Data.MySQL.dll:MySqlRegionData"

Please refer http://www.nsl.tuis.ac.jp/xoops/modules/xpwiki/?OpenSim%2FWEB%20Interface%20%28E%29%2FCommon%20Simple%20Settings#v6a1253e
投票数:82 平均点:5.73

なし Re: Setup issues

msg# 1.24
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-3-7 23:42
Draven190  Not too shy to talk   投稿数: 24
I have made that change

[Mon Mar 07 14:38:46 2011] [error] [client 194.74.64.4] 111111111111111111111111
[Mon Mar 07 14:38:46 2011] [error] [client 194.74.64.4] 222222222222222222222222
[Mon Mar 07 14:38:46 2011] [error] [client 194.74.64.4] 333333333333333333333333: serverip = ******** port = 9000 uri = http://***********:9000
[Mon Mar 07 14:38:46 2011] [error] [client 194.74.64.4] 444444444444444444444444
[Mon Mar 07 14:38:46 2011] [error] [client 194.74.64.4] 555555555555555555555555: ID = fdde8358-10f0-4d01-99f1-1632fdd7ac29
[Mon Mar 07 14:38:47 2011] [error] [client 194.74.64.4] 666666666666666666666666: responce = Array\n(\n [success] => 1\n)\n
[Mon Mar 07 14:38:47 2011] [error] [client 194.74.64.4] success: Array


that is finally it it works and i can buy currency from the server.... That was long and complicated but i'm glad its done. I learned alot about php in the process so that is great. Hopefully i will be able to keep on programming in it.

Thank you very much for all your help apologies for keep pestering you regarding this.
投票数:87 平均点:4.14

なし Re: Setup issues

msg# 1.24.1
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-3-8 0:49 | 最終変更
iseki  Home away from home   投稿数: 1581
Hi

引用:

that is finally it it works and i can buy currency from the server.... That was long and complicated but i'm glad its done. I learned alot about php in the process so that is great. Hopefully i will be able to keep on programming in it.

Congratulations

Thank you for your reports.
I will add this information to wiki of Money Server.

Thanks.
投票数:98 平均点:6.12

  条件検索へ


サイト内 検索

ログイン

ユーザー名:

パスワード:


パスワード紛失
新規登録

サブ メニュー

ミニカレンダー

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

オンライン状況

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

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

もっと...

アクセスカウンタ

今日 : 2491249124912491
昨日 : 1412914129141291412914129
総計 : 2344810123448101234481012344810123448101234481012344810123448101
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com