ryantt / dynamicmarket Goto Github PK
View Code? Open in Web Editor NEWDynamic Market for AltisLife 3 and AltisLife 4
Home Page: http://agn.site.nfoservers.com/services/
Dynamic Market for AltisLife 3 and AltisLife 4
Home Page: http://agn.site.nfoservers.com/services/
Hi Ryan,
after i installed everything like you wrote in your "Installation Instruktion.txt" and now every time the Server Start's i get this error:
10:18:06 Error in expression <rray = _queryResult select 0;
if (count _pricearray < 1) then {
diag_log "######>
10:18:06 Error position: <_pricearray < 1) then {
diag_log "######>
10:18:06 Error Undefined variable in expression: _pricearray
10:18:06 File life_server\Functions\DynMarket\fn_HandleDB.sqf, line 38
10:18:07 Error in expression <rray = _queryResult select 0;
if (count _pricearray < 1) then {
diag_log "######>
10:18:07 Error position: <_pricearray < 1) then {
diag_log "######>
10:18:07 Error Undefined variable in expression: _pricearray
10:18:07 File life_server\Functions\DynMarket\fn_HandleDB.sqf, line 38
can you help me fixing it???
Best reguard's
Chris aka GenApophis
Hello,
I get an error at server start:
2015/08/16, 19:56:57 Error in expression <ON_fnc_HandleDB;
};
};
sleep 5;
[] call TON_fnc_sleeper;
2015/08/16, 19:56:57 Error position: <TON_fnc_sleeper;
2015/08/16, 19:56:57 Error Undefined variable in expression: ton_fnc_sleeper
2015/08/16, 19:56:57 File life_server\Functions\DynMarket\fn_config.sqf, line 147
I re checked several times everything looks correct.
Can you help me ?
When I press Y to get into the mobile phone and press market, the info popup shows that says that the prices are being calculated.
But items and prices never actually shows up.
Using altis life 4.4
Prices have been printed into the database
Bonjour à tous, je vient vers vous aujourd'hui car j'ai installer la bourse en 4.4r4 et je vous laisse quel images de tous mes codes,ingame:
fn_config.sqf:
http://pastebin.com/RndNEZUn
Config_vItems.hpp:
http://pastebin.com/4huJmLCH
Rendu In-Game:
http://steamcommunity.com/sharedfiles/filedetails/?id=856764144
Merci d'avance de votre aide
English Version: (i have a bad english)
Hello everyone, I come to you today because I installed the purse in 4.4r4 and I leave you what images of all my codes, in-game:
fn_config.sqf:
http://pastebin.com/RndNEZUn
Config_vItems.hpp:
http://pastebin.com/4huJmLCH
Rendu In-Game:
http://steamcommunity.com/sharedfiles/filedetails/?id=856764144
Thank you in advance for your assistance
hello to you, you followed the files: DynamicMarket4.4 R3 but the purse is born not dynamic.
the lines are saved in the data base, but involved no changes. jet well add the line in
CFGRemoteExec.hpp:
F(TON_fnc_playerLogged,SERVER)
F(TON_fnc_changePrice,SERVER)
F(TON_fnc_getUpdate,SERVER)
-------------FR-------------
bonjour à vous, vous suivis les fichiers : DynamicMarket4.4 R3 , mais la bourse naît pas dynamique.
les lignes sont bien sauvegarder dans la data base, mais en jeu aucune modification. jais bien rajouter les ligne dans :
CFGRemoteExec.hpp :
F(TON_fnc_playerLogged,SERVER)
F(TON_fnc_changePrice,SERVER)
F(TON_fnc_getUpdate,SERVER)
Hey im getting seen by spyglass. Here is the best part its not even turned on
spyGlass_toggle = false; //Spyglass On/Off Toggle --> True = On & False = Off
Im using the DynamicMarket
thank you
14:19:56 Error in expression <box )-1,_itemDisplayIcon];
};
} forEach DYNMARKET_prices;
14:19:56 Error position: <DYNMARKET_prices;
14:19:56 Error Nicht definierte Variable in Ausdruck: dynmarket_prices
14:19:56 File mpmissions__CUR_MP.tanoa\core\DynMarket\fn_LoadIntoListbox.sqf, line 30
can anyone help me?
Since the last update I always get the following error.
15:19:15 Error in expression <Items_CurrentPriceArr;
{
_itemName = _x select 0;
_itemLastPrice = _x select 1;
>
15:19:15 Error position: <select 0;
_itemLastPrice = _x select 1;
>
15:19:15 Error Generic error in expression
15:19:15 File life_server\Functions\DynMarket\fn_calculatePrices.sqf, line 13
21:18:38 Error in expression <ife_fnc_update",playerUID,false] spawn life_fnc_MP;>
21:18:38 Error position: <life_fnc_MP;>
21:18:38 Error Undefined variable in expression: life_fnc_mp
21:18:38 File life_server\Functions\DynMarket\fn_playerLogged.sqf, line 12
21:18:43 Error in expression <ife_fnc_update",playerUID,false] spawn life_fnc_MP;>
21:18:43 Error position: <life_fnc_MP;>
21:18:43 Error Undefined variable in expression: life_fnc_mp
21:18:43 File life_server\Functions\DynMarket\fn_playerLogged.sqf, line 12
21:19:03 "<infiSTAR.de> ***_ADMIN-LOGIN**: Kevin Descartes(_**********************) (infiSTAR.de Nitrado Light 5.0)"
21:19:22 Error in expression <[0],"life_fnc_update",true,false] spawn life_fnc_MP;
sleep 5;
[] spawn TON_fnc_c>
21:19:22 Error position: <life_fnc_MP;
sleep 5;
[] spawn TON_fnc_c>
21:19:22 Error Undefined variable in expression: life_fnc_mp
21:19:22 File life_server\Functions\DynMarket\fn_sleeper.sqf, line 13
21:19:28 Error in expression <py],"life_fnc_update",true,false] spawn life_fnc_MP;>
21:19:28 Error position: <life_fnc_MP;>
21:19:28 Error Undefined variable in expression: life_fnc_mp
21:19:28 File life_server\Functions\DynMarket\fn_calculatePrices.sqf, line 127
21:20:27 Error in expression <[0],"life_fnc_update",true,false] spawn life_fnc_MP;
sleep 5;
[] spawn TON_fnc_c>
21:20:27 Error position: <life_fnc_MP;
sleep 5;
[] spawn TON_fnc_c>
21:20:27 Error Undefined variable in expression: life_fnc_mp
21:20:27 File life_server\Functions\DynMarket\fn_sleeper.sqf, line 13
21:20:33 "### DYNMARKET >> SUCCESSFULLY BACKUP'D CURRENT PRICES TO DATABASE! ###"
21:20:33 Error in expression <py],"life_fnc_update",true,false] spawn life_fnc_MP;>
21:20:33 Error position: <life_fnc_MP;>
21:20:33 Error Undefined variable in expression: life_fnc_mp
21:20:33 File life_server\Functions\DynMarket\fn_calculatePrices.sqf, line 127
Hey, Im having to relog for the prices to update. Is there a way to make them update ingame for the player every time the prices sync?
Hello I have big problems with extDB2 customs.
`;;______________________________________________________________
[DYNMARKET_Price_Set]
;;
SQL1_1 = UPDATE dynmarket SET prices = ? WHERE id=1;
SQL1_INPUTS = 1-AltisLifeRPG_Array
Number of Inputs = 1
;;______________________________________________________________
[DYNMARKET_Price_Get]
;;
SQL1_1 = SELECT prices
FROM dynmarket
WHERE id=1;
OUTPUT = 1-AltisLifeRPG_Array
`> extDB2: Version: 70
extDB2: https://github.com/Torndeco/extDB2
extDB2: Linux Version
Message: All development for extDB2 is done on a Linux Dedicated Server
Message: If you would like to Donate to extDB2 Development
Message: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2SUEFTGABTAM2
Message: Also leave a message if there is any particular feature you would like to see added.
Message: Thanks for all the people that have donated.
Message: Torndeco: 20/02/15extDB2: Found extdb-conf.ini
extDB2: Detected 4 Cores, Setting up 4 Worker Threads[06:51:49 +01:00] [Thread 32651] extDB2: Database Type: MySQL
[06:51:49 +01:00] [Thread 32651] extDB2: Database Session Pool Started
[06:51:49 +01:00] [Thread 32651] extDB2: SQL_RAW_V2: Initialized: ADD_QUOTES True
[06:51:49 +01:00] [Thread 318] extDB2: SQL_RAW_V2: Error StatementException: MySQL: [MySQL]: [Comment]: mysql_stmt_prepare error [mysql_stmt_error]: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DYNMARKET_Price_Get' at line 1 [mysql_stmt_errno]: 1064 [mysql_stmt_sqlstate]: 42000 [statemnt]: DYNMARKET_Price_Get
[06:51:49 +01:00] [Thread 318] extDB2: SQL_RAW_V2: Error StatementException: SQL: DYNMARKET_Price_Get
[06:55:15 +01:00] [Thread 321] extDB2: SQL_RAW_V2: Error StatementException: MySQL: [MySQL]: [Comment]: mysql_stmt_prepare error [mysql_stmt_error]: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DYNMARKET_Price_Set:[["apple",25,0],["peach",50,0],["tbacon",125,0],["donut",130' at line 1 [mysql_stmt_errno]: 1064 [mysql_stmt_sqlstate]: 42000 [statemnt]: DYNMARKET_Price_Set:[["apple",25,0],["peach",50,0],["tbacon",125,0],["donut",130,0],["rabbit_raw",150,0],["rabbit_grilled",170,0],["ornate_raw",190,0],["ornate_grilled",190,0],["mackerel_raw",190,0],["mackerel_grilled",190,0],["tuna_raw",190,0],["tuna_grilled",190,0],["mullet_raw",190,0],["mullet_fried",200,0],["catshark_raw",200,0],["catshark_Fried",200,0],["turtle_soup",200,0],["hen_raw",200,0],["hen_fried",200,0],["rooster_raw",210,0],["sheep_raw",210,0],["sheep_grilled",155,0],["goat_raw",155,0],["goat_grilled",300,0],["redgull",1500,0],["coffee",10,0],["waterBottle",10,0],["pickaxe",350,0],["fuelFull",500,0],["spikeStrip",1200,0],["lockpick",75,0],["goldbar",95000,0],["blastingcharge",35000,0],["boltcutter",7500,0],["defusekit",2500,0],["storagesmall",75000,0],["storagebig",15000,0],["oil_processed",1200,0],["copper_refined",1700,0],["iron_refined",1650,0],["salt_refined",1850,0],["glass",1450,0],["diamond_cut",2530,0],["cement",2350,0],["heroin_processed",5000,0],["marijuana",5250,0],["cocaine_processed",5300,0]]
[06:55:15 +01:00] [Thread 321] extDB2: SQL_RAW_V2: Error StatementException: SQL: DYNMARKET_Price_Set:[["apple",25,0],["peach",50,0],["tbacon",125,0],["donut",130,0],["rabbit_raw",150,0],["rabbit_grilled",170,0],["ornate_raw",190,0],["ornate_grilled",190,0],["mackerel_raw",190,0],["mackerel_grilled",190,0],["tuna_raw",190,0],["tuna_grilled",190,0],["mullet_raw",190,0],["mullet_fried",200,0],["catshark_raw",200,0],["catshark_Fried",200,0],["turtle_soup",200,0],["hen_raw",200,0],["hen_fried",200,0],["rooster_raw",210,0],["sheep_raw",210,0],["sheep_grilled",155,0],["goat_raw",155,0],["goat_grilled",300,0],["redgull",1500,0],["coffee",10,0],["waterBottle",10,0],["pickaxe",350,0],["fuelFull",500,0],["spikeStrip",1200,0],["lockpick",75,0],["goldbar",95000,0],["blastingcharge",35000,0],["boltcutter",7500,0],["defusekit",2500,0],["storagesmall",75000,0],["storagebig",15000,0],["oil_processed",1200,0],["copper_refined",1700,0],["iron_refined",1650,0],["salt_refined",1850,0],["glass",1450,0],["diamond_cut",2530,0],["cement",2350,0],["heroin_processed",5000,0],["marijuana",5250,0],["cocaine_processed",5300,0]]
[06:58:15 +01:00] [Thread 32651] extDB2: Stopping ...
`
Im on Version 3.1.4.8 and get the following after starting the Server
waitUntil{sleep (random 0.3); !DB_Async_Active};
_tickTime = diag_tickT>
0:52:17 Error position: <DB_Async_Active};
_tickTime = diag_tickT>
0:52:17 Error Undefined variable in expression: db_async_active
0:52:17 File life_server\Functions\DynMarket\fn_HandleDB.sqf, line 33
0:52:17 Server: Object 2:4724 not found (message Type_156)
0:52:17 Error in expression <];};
};
extDB2v71
Altis Life 3.1.4.8
Linux DS
2015/03/19, 0:27:56 "Cleanup.sqf gestartet"
2015/03/19, 0:27:56 "########################## DYNAMIC MARKET ##########################"
2015/03/19, 0:27:56 "### >> SUCCESSFULLY LOADED PRICES FROM DATABASE! ###"
2015/03/19, 0:27:56 "####################################################################"
2015/03/19, 0:30:01 Error in expression <ect 1;
switch (_mode) do {
case 0:
{
[[DYNAMICMARKET_boughtItems],"TON_fnc_getU>
2015/03/19, 0:30:01 Error position: <DYNAMICMARKET_boughtItems],"TON_fnc_getU>
2015/03/19, 0:30:01 Error Undefined variable in expression: dynamicmarket_boughtitems
2015/03/19, 0:30:01 File mpmissions\KBS_Altis_Life_dynmarket.Altis\core\DynMarket\fn_update.sqf, line 18
["apple",-1,10,50],What do each of these numbers mean, i cant find what they mean anywhere
Hello i have a problem in my altis life 4.4r3 .
I followed the guide for 4.4r3 version game works prices are also written to the database but have disappeared all written in the menu of the Y button for example mobile phone, saves data.
before the spawn to Kavala from this cannot load error Mipmap
Hey guys,
============= STEP 1 =============
OPEN THE FILE CONFIG.CPP AND ADD THE FOLLOWING CLASS UNDER THE TAG TON
class DynMarket
{
file = "\life_server\Functions\DynMarket";
class calculatePrices {};
class changePrice {}; // ADD THIS
class config {};
class getUpdate {};
class HandleDB {};
class playerLogged {};
class sleeper {};
};
You miss to add the file / class "changePrice" inside the config.cpp
Hi Ryan, im getting this error and i dont know why
11:10:58 Error in expression <box )-1,_itemDisplayIcon];
};
} forEach DYNMARKET_prices;>
11:10:58 Error position: <DYNMARKET_prices;>
11:10:58 Error Undefined variable in expression: dynmarket_prices
11:10:58 File mpmissions__CUR_MP.Altis\core\DynMarket\fn_LoadIntoListbox.sqf, line 32
im running version 4.4r2
Nothing gets written to the database,
No server&client RPT errors.
2015/03/19, 0:31:10 Error in expression <ntSold = _x select 2;
if (_curItemName==_itemName) then {
DYNMARKET_Items_Curren>
2015/03/19, 0:31:10 Error position: <_itemName) then {
DYNMARKET_Items_Curren>
2015/03/19, 0:31:10 Error Undefined variable in expression: _itemname
2015/03/19, 0:31:10 File life_server\Functions\DynMarket\fn_changePrice.sqf, line 22
Hello guys,
Im running Altis Life 4.4R4 and i try to get the DynMarket working.
I solve so many problem (like the EXEC and life_fnc_mp etc...)
but this is a problem i cant solve :
22:50:18 Error in expression <box )-1,_itemDisplayIcon]; }; } forEach DYNMARKET_prices;> 22:50:18 Error position: <DYNMARKET_prices;> 22:50:18 Error Variable indéfinie dans une expression: dynmarket_prices 22:50:18 File mpmissions\__CUR_MP.Altis\core\DynMarket\fn_LoadIntoListbox.sqf, line 30
i dont get it so a bit help would be much appreciated
here is my fn_LoadIntoListbox.sqf :
/*
*/
if (isNil "DYNMARKET_prices") then {[getPlayerUID player] remoteExec ["TON_fnc_playerLogged",-2];hint "Calcul des prix en cours..";sleep 1;};
disableSerialization;
_dialog = findDisplay 7100;
_listbox = _dialog displayCtrl 7055;
_blacklist =
[];
{
_itemName = _x select 0;
_itemDisplayName = M_CONFIG(getText,"VirtualItems",_itemName,"displayname");
_itemDisplayIcon = M_CONFIG(getText,"VirtualItems",_itemName,"icon");
_itemDisplayName = localize _itemDisplayName;
if !(_x select 0 in _blacklist) then {
_listbox lbAdd format ["%1",_itemDisplayName];
_listbox lbSetData [(lbSize _listbox)-1,_x select 0];
_listbox lbSetPicture [(lbSize _listbox )-1,_itemDisplayIcon];
};
} forEach DYNMARKET_prices; // this is the line 30
thanks you
fixed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.