35: 2011-05-05 (木) 00:53:52 iseki |
36: 2011-05-06 (金) 14:55:42 admin |
- | ** Money Server (Original DTL Currency)[#kcf82c38] | + | ** Original DTL Currency Server [#kcf82c38] |
| | | |
| *** Links [#c33fad55] | | *** Links [#c33fad55] |
| #br | | #br |
| | | |
- | ** Our Modified Version (NSL Version) [#p25d4949] | + | ** DTL/NSL Money Server (Our Modified Version) [#p25d4949] |
- | - Latest Version is 0.7 r4 | + | - Latest Version is 0.7.1 r1 (coming soon!!) |
- | - This Money Server is modified version of DTL Currency Processing for Linux/Unix. As for this, some bug fixes are done. And this can be operated by OpenSim 0.6.7, 0.6.8, 0.6.9, 0.7.0.x and 0.7.1Dev | + | - This Money Server is modified version of DTL Currency Processing for Linux/Unix. As for this, some bug fixes are done and functions are extended. And this can be operated by OpenSim 0.6.7-0.6.9, 0.7.0.x, 0.7.1 and 0.7.2Dev |
| - But, WEB Monitor function (ASP.NET) is removed from original DTL Currency. | | - But, WEB Monitor function (ASP.NET) is removed from original DTL Currency. |
- | - ''Please use this at your own risk!!'' | + | - ''Please use this at Your Own Risk!!'' |
| #br | | #br |
| | | |
| *** Change Log[#z6c98d59] | | *** Change Log[#z6c98d59] |
| + | **** v0.7.1 [#rdb89803] |
| + | - 0.7.1 r1 |
| + | -- Money can be sent to any avatars. |
| + | -- Upload charge and Group Create charge are available. |
| + | -- Update Balance Message is changed. |
| + | -- Minimum patch for source code (In the future, the patch disappears). |
| + | |
| **** v0.7 [#lf039967] | | **** v0.7 [#lf039967] |
| - 0.7_3 -> 0.7_4 | | - 0.7_3 -> 0.7_4 |
| -- PID File is created now (by skidz) | | -- PID File is created now (by skidz) |
| #br | | #br |
| + | |
| *** Forum [#c90988f3] | | *** Forum [#c90988f3] |
| - http://www.nsl.tuis.ac.jp/xoops/modules/d3forum/index.php?forum_id=11 | | - http://www.nsl.tuis.ac.jp/xoops/modules/d3forum/index.php?forum_id=11 |
| | | |
| *** Download [#u2d15064] | | *** Download [#u2d15064] |
| + | - for 0.7.1 |
| + | -- It is testing now. coming soon. |
| - for 0.7 / 0.7.0.1 / 0.7.0.2 | | - for 0.7 / 0.7.0.1 / 0.7.0.2 |
| -- http://www.nsl.tuis.ac.jp/xoops/modules/d3downloads/index.php?page=singlefile&cid=8&lid=15 | | -- http://www.nsl.tuis.ac.jp/xoops/modules/d3downloads/index.php?page=singlefile&cid=8&lid=15 |
| | | |
| **** [Startup] [#oe72f58c] | | **** [Startup] [#oe72f58c] |
- | - PIDFile : Specify PID file | + | - ''PIDFile'' : Specify PID file |
| **** [MySql] [#q34d26f9] | | **** [MySql] [#q34d26f9] |
- | - hostname : MySQL server's FQDN or IP address | + | - ''hostname'' : MySQL server's FQDN or IP address |
- | - database : DB name of MySQL | + | - ''database'' : DB name of MySQL |
- | - username : user name of MySQL | + | - ''username'' : user name of MySQL |
- | - password : password of MySQL user | + | - ''password'' : password of MySQL user |
- | - pooling : MySQL pooling? | + | - ''pooling'' : MySQL pooling? |
- | - port : MySQL communication port | + | - ''port'' : MySQL communication port |
- | - MaxConnection: Max connection number to DB. | + | - ''MaxConnection'' : Max connection number to DB. |
| | | |
| **** [MoneyServer] [#kb5749c2] | | **** [MoneyServer] [#kb5749c2] |
- | - DefaultBalance : Initial money that new avatar has. | + | - ''DefaultBalance'' : Initial money that new avatar has. |
- | - enableForceTransfer : If this is true, llGiveMoney() function works normally even if payer doesn't login to Opensim. default is false | + | - ''BankerAvatar'' : UUID of Banker Avatar. Banker Avatar can buy money from system with no cost. If 00000000-0000-0000-0000-000000000000 is specified, all Avatars are Banker Avatar. |
- | - BankerAvatar: UUID of Banker Avatar. Banker Avatar can buy money from system with no cost. If 00000000-0000-0000-0000-000000000000 is specified, all Avatars are Banker Avatar. | + | - ''enableForceTransfer'' : If this is true, llGiveMoney() function works normally even if payer doesn't login to Opensim. default is false |
| + | - ''MoneyScriptAccessKey'' : Secret key of Helper Script. Specify same key in Scripts/include/config.php or WI(XoopenSim/Modlos) |
| + | - ''MoneyScriptIPaddress'' : IP address of server that Helper Script execute at. Not use 127.0.0.1 |
| + | #br |
| + | |
| + | *** Setting of Helper Script [#yd4f306d] |
| + | |
| + | - If you do not use [[XoopenSim>XoopenSim (E)]] or [[Modlos>Modlos (E)]] (Web Interface), you should setup helper scripts by manual. |
| + | - If you use [[XoopenSim>XoopenSim (E)]] or [[Modlos>Modlos (E)]], this function is setup by automatically. |
| + | - You need ''Web Server (ex. Apache) and PHP5 (include PHP5-XMLRPC, PHP5-CURL)'' |
| + | - Please copy Scripts/* to any Web contents directory, and edit ENV_HELPER_URL, ENV_HELPER_PATH and DB information in include/config.php |
| + | |
| + | - command ex.: |
| + | mkdir (Document Root of WEB)/currency |
| + | cp -R Scripts/* (Document Root of Web)/currency |
| + | cd (Document Root of Web)/currency |
| + | chown -R apache.apache . |
| + | vi include/config.php |
| + | |
| + | - include/cpnfig.php: |
| + | // URL of Helper Script |
| + | if (!defined('ENV_HELPER_URL')) define('ENV_HELPER_URL', 'http://202.26.159.139/currency/helper'); |
| + | // Path of Helper Script |
| + | if (!defined('ENV_HELPER_PATH')) define('ENV_HELPER_PATH', '/home/apache/htdocs/currency/helper/'); |
| + | |
| + | define('OPENSIM_DB_HOST', 'localhost'); // FQDN or IP addess of MySQL DB server |
| + | define('OPENSIM_DB_NAME', 'opensim_db'); // DB name of MySSQL |
| + | define('OPENSIM_DB_USER', 'opensim_user'); // User ID of DB |
| + | define('OPENSIM_DB_PASS', 'opensim_pass'); // Password of DB |
| + | |
| + | define('CURRENCY_SCRIPT_KEY', '123456789'); // Secret key of Helper Script |
| + | define('USER_SERVER_URI', 'http://202.26.159.214:8002'); // URL of User Server. Not use localhost or 127.0.0.1 |
| + | |
| + | - Please execute viewer with "-helperuri [ENV_HELPER_URL/]" option. (ex. -loginuri http://localhost/currency/helper/ ) [''need last '/' ''] |
| + | - Here, ENV_HELPER_URL is ''helper'' directory url that is set in include/config.php. |
| + | - If you use 3rd party viewer (ex. Hippo, Meerkat or Imprudence etc.), you should use ''Grid Manager'' instead of "-helperuri" option. |
| #br | | #br |
| | | |
| [Economy] | | [Economy] |
| SellEnabled = "true" | | SellEnabled = "true" |
- | UserServer = "http://(UserServer's FQDN or IP address):8002/" ;; not use localhost or 127.0.0.1 | + | UserServer = "http://(UserServer's FQDN or IP address):8002/" ;; not use localhost or 127.0.0.1 |
- | CurrencyServer = "https://(MoneyServer's FQDN or IP address):8008/" ;; not use localhost or 127.0.0.1 | + | CurrencyServer = "https://(MoneyServer's FQDN or IP address):8008/" ;; not use localhost or 127.0.0.1 |
| EconomyModule = DTLMoneyModule | | EconomyModule = DTLMoneyModule |
- | #br | |
| | | |
- | *** Support of StandAlone mode for v0.7 [#nf42a9ad] | + | ;; Money Unit fee to upload textures, animations etc |
- | - You can not use Currency Server with SQLite. | + | PriceUpload = 30 |
- | - If you want to execute Currency Server with StandAlone mode, you should use MySQL DB. | + | |
| | | |
- | -- OpenSim.ini | + | ;; Money Unit fee to create groups |
- | [Startup] | + | PriceGroupCreate = 200 |
- | .......................... | + | |
- | ; --- Null stores nothing - effectively disabling persistence: | + | |
- | ;storage_plugin = "OpenSim.Data.Null.dll" | + | |
- | .......................... | + | |
- | ;storage_plugin = "OpenSim.Data.SQLite.dll" | + | |
- | ;storage_plugin = "OpenSim.Data.SQLiteLegacy.dll" | + | |
- | ;storage_connection_string="URI=file:OpenSim.db,version=3"; | + | |
- | .......................... | + | |
- | storage_plugin="OpenSim.Data.MySQL.dll" | + | |
- | storage_connection_string="Data Source=localhost;Database=db_name;User ID=db_id;Password=db_password;" | + | |
| | | |
- | -- StandaloneCommon.ini | + | #br |
- | [DatabaseService] | + | |
- | .......................... | + | |
- | ; SQLite | + | |
- | ;Include-Storage = "config-include/storage/SQLiteStandalone.ini"; | + | |
- | .......................... | + | |
- | ; MySql | + | |
- | ; Uncomment these lines if you want to use mysql storage | + | |
- | ; Change the connection string to your db details | + | |
- | StorageProvider = "OpenSim.Data.MySQL.dll" | + | |
- | ConnectionString = "Data Source=localhost;Database=db_name;User ID=db_id;Password=db_password;" | + | |
| | | |
| + | ** send_money() function at Helper Script [#p51201fb] |
| + | - You can send money to any avatars by ''send_money()'' function in Helper Script. |
| + | - To use this function, you should set same script key at ''include/config.php (CURRENCY_SCRIPT_KEY)'' and ''MoneyServer.ini (MoneyScriptAccessKey)''. |
| + | - If you use WI(XoopenSim/Modlos). Script key is ''Money Script Access key''. |
| + | - Everyone that can execute send_money script can send money to any avatars, so please set access control for this script neatly. |
| | | |
- | -- And you should change ''[GridService]'' section at ''bin/config-include/StandaloneCommon.ini''. | + | - Sample Script |
- | -- Please enable ''StorageProvider = "OpenSim.Data.MySQL.dll:MySqlRegionData"'' line. | + | <?php |
- | [GridService] | + | require_once('include/env_interface.php'); |
- | ;; For in-memory region storage (default) | + | require_once('helper/helpers.php'); |
- | ; StorageProvider = "OpenSim.Data.Null.dll:NullRegionData" | + | |
- | ;;--- For MySql region storage (alternative) | + | |
- | StorageProvider = "OpenSim.Data.MySQL.dll:MySqlRegionData" | + | |
- | | + | |
- | | + | |
- | -- In addition, please chage [PresenceService]section at ''bin/config-include/Standalone.ini'', too. | + | |
- | -- Please add ''StorageProvider = "OpenSim.Data.MySQL.dll:MySqlRegionData"''. | + | |
- | [PresenceService] | + | |
- | LocalServiceModule = "OpenSim.Services.PresenceService.dll:PresenceService" | + | |
- | ;;StorageProvider = "OpenSim.Data.Null.dll" | + | |
- | StorageProvider = "OpenSim.Data.MySQL.dll" | + | |
| | | |
| + | send_money("f68be2b2-8229-4b7b-a21a-3f253441cd2d", 100); |
| + | ?> |
| #br | | #br |
| | | |
- | *** Setup helper script [#yd4f306d] | + | *** Support of StandAlone mode [#nf42a9ad] |
- | - If you do not use [[XoopenSim>XoopenSim (E)]] or [[Modlos>Modlos (E)]] (WEB Interface), you should setup helper scripts by manual. | + | - [[for v0.7.1>./standalone_0.7.1]] |
- | - If you use [[XoopenSim>XoopenSim (E)]] or [[Modlos>Modlos (E)]], this function is setup by automatically. | + | - [[for v0.7>./standalone_0.7]] |
- | - You need ''Web Server (ex. Apache) and PHP5 (include PHP5-XMLRPC, PHP5-CURL)'' | + | |
- | - Please copy Scripts/* to any WEB contents directory, and edit ENV_HELPER_URL, ENV_HELPER_PATH and DB information in include/config.php | + | |
- | | + | |
- | ex.) | + | |
- | mkdir (Document Root of WEB)/currency | + | |
- | cp -R Scripts/* (Document Root of WEB)/currency | + | |
- | cd (Document Root of WEB)/currency | + | |
- | chown -R apache.apache . | + | |
- | vi include/config.php | + | |
- | | + | |
- | - Please execute viewer with "-helperuri [ENV_HELPER_URL/]" option. (ex. -loginuri http://localhost/currency/helper/ ) [''need last '/' ''] | + | |
- | - Here, ENV_HELPER_URL is ''helper'' directory url that is set in include/config.php. | + | |
- | - If you use 3rd party viewer (ex. Hippo, Meerkat or Imprudence etc.), you should use ''Grid Manager'' instead of "-helperuri" option. | + | |
| #br | | #br |
| | | |
| *** Bugs [#x4fae068] | | *** Bugs [#x4fae068] |
- | - %%When object is set to ''sale original'', no money is transferred.%% (collected at v0.7 r4) | + | - 0.7.1 r1 |
- | - Included ''include/opensim.mysql.php helper script of v0.7r4 has bugs''. If you want to use included helper scripts, please download http://www.nsl.tuis.ac.jp/DownLoad/SoftWare/PHP/WI-1.55/opensim.mysql , and rename to opensim.mysql.php and use it. | + | -- Charge message of "Group Creation" displayed ''L$100'' at any time. |
| + | - 0.7 r4 |
| + | -- %%When object is set to ''sale original'', no money is transferred.%% (collected at v0.7 r4) |
| + | -- Included ''include/opensim.mysql.php helper script of v0.7r4 has bugs''. If you want to use included helper scripts, please download http://www.nsl.tuis.ac.jp/DownLoad/SoftWare/PHP/WI-1.55/opensim.mysql , and rename to opensim.mysql.php and use it. |
| #br | | #br |
| | | |
| *** 注意 [#d84771e2] | | *** 注意 [#d84771e2] |
- | - OpenSim.ini 中の UserServer のアドレスは localhost (127.0.0.1) を使用しないこと ( [Network] セクションの ''user_server_url'').これは,このIPアドレスが,Monet Server内でのユーザのアカウント識別に利用されるためである. | + | - OpenSim.ini 中の ''UserServer'', ''CurrencyServer'' のアドレスは localhost (127.0.0.1) を使用しないこと ( [Network] セクションの ''user_server_url'').これは,このIPアドレスが,Monet Server内でのユーザのアカウント識別に利用されるためである. |
- | | + | |
| + | - MoneyServer.ini と include/config.php (またはXoopenSim/Modlos) の Helper Script用のキーは必ず同じものを指定すること. |
| + | |
| - 0.6.9で,[Network] セクションの ''user_server_url'' が無くなったため,代わりに [Economy]セクションで ''UserServer'' を指定するように変更. | | - 0.6.9で,[Network] セクションの ''user_server_url'' が無くなったため,代わりに [Economy]セクションで ''UserServer'' を指定するように変更. |
- | | + | |
- | | + | |
| #br | | #br |
| | | |