juandayz Posted June 8, 2017 Report Share Posted June 8, 2017 edit.. i mean the issue comes from player_humanityMorph.sqf sometimes this file drop this error "ERROR: Cannot Sync Character "playername" has nil characterID" then the hive drops the error about sync coins.. when you add or remove money with a nil character.. anyway i be able to save as well the money. Link to comment Share on other sites More sharing options...
D9IDbKA Posted June 12, 2017 Report Share Posted June 12, 2017 I'm using this mod, I left coins only for players. I've got question about prices in shops. I think something is wrong with them or with my setup. for example in militaryArmed.hpp I have HMMWV_M998A2_SOV_DES_EP1_DZE and LandRover_Special_CZ_EP1_DZE buy - 100000 sell - 50000 In game I have: buy - 1 coin sell - 5 coins Link to comment Share on other sites More sharing options...
salival Posted June 13, 2017 Author Report Share Posted June 13, 2017 14 hours ago, D9IDbKA said: I'm using this mod, I left coins only for players. I've got question about prices in shops. I think something is wrong with them or with my setup. for example in militaryArmed.hpp I have HMMWV_M998A2_SOV_DES_EP1_DZE and LandRover_Special_CZ_EP1_DZE buy - 100000 sell - 50000 In game I have: buy - 1 coin sell - 5 coins @D9IDbKAproblem has been solved, he had not applied the CfgTrader changes that I supply with ZSC (https://github.com/oiad/ZSC/blob/master/description.ext#L85) it was using the default epoch prices Link to comment Share on other sites More sharing options...
RazorFPS Posted June 16, 2017 Report Share Posted June 16, 2017 On 2017-3-30 at 1:21 PM, S4M said: what am I doing wrong? imagen.1 imagen.2 what did you do to fix this.iam having the same problem.thankyou Link to comment Share on other sites More sharing options...
S4M Posted June 16, 2017 Report Share Posted June 16, 2017 @RazorFPS I think i remember it was trader configs, look there and in your rpt. Link to comment Share on other sites More sharing options...
ChrisRedfield Posted June 16, 2017 Report Share Posted June 16, 2017 So i installed it on my Server and i can deposit and withdraw Money from the Traders just fine, but aslong as i dont speak to another trader i keep the Bank Teller scrollwheel option and can use it anywhere on the Map. Also when i dont stand right in front of him when trading i get the message "Land_MBG_Warehouse not available for trading". Can anyone help me with this ? Thanks in advance ! Link to comment Share on other sites More sharing options...
juandayz Posted June 17, 2017 Report Share Posted June 17, 2017 @RazorFPS some quick checks. Spoiler you put the dayz_code folder provided by salival in your mission root? you put the scripts folder provided by salival in your mssion root? you replace the files in dayz_server.pbo ? server_handleSafeGear.sqf // server_updateObject.sqf // server_monitor.sqf you replace your description.ext in mission root by the one provided here? do you have exactly this line in init.sqf : call compile preprocessFileLineNumbers "scripts\traders\server_traders.sqf"; in your configvariables.sqf do you have this value? DZE_ConfigTrader = true; @ChrisRedfield Spoiler are you using the fn_selfaction.sqf provided by this mod? your bunch of code about it in fn_selfactions looks like this? Spoiler // All Traders if (_isMan && {!(isPlayer _cursorTarget)} && {_typeOfCursorTarget in serverTraders} && {!_isPZombie}) then { if (s_player_parts_crtl < 0) then { _humanity = player getVariable ["humanity",0]; _traderMenu = call compile format["menu_%1;",_typeOfCursorTarget]; _low_high = localize "STR_EPOCH_ACTIONS_HUMANITY_LOW"; _humanity_logic = false; if ((_traderMenu select 2) == "friendly") then { _humanity_logic = (_humanity < -5000); }; if ((_traderMenu select 2) == "hostile") then { _low_high = localize "STR_EPOCH_ACTIONS_HUMANITY_HIGH"; _humanity_logic = (_humanity > -5000); }; if ((_traderMenu select 2) == "hero") then { _humanity_logic = (_humanity < 5000); }; if (_humanity_logic) then { _cancel = player addAction [format[localize "STR_EPOCH_ACTIONS_HUMANITY",_low_high], "\z\addons\dayz_code\actions\trade_cancel.sqf",["na"], 0, true, false]; s_player_parts set [count s_player_parts,_cancel]; } else { // Static Menu { _buy = player addAction [format["Trade %1 %2 for %3 %4",(_x select 3),(_x select 5),(_x select 2),(_x select 6)], "\z\addons\dayz_code\actions\trade_items_wo_db.sqf",[(_x select 0),(_x select 1),(_x select 2),(_x select 3),(_x select 4),(_x select 5),(_x select 6)], (_x select 7), true, true]; s_player_parts set [count s_player_parts,_buy]; } count (_traderMenu select 1); if (DZE_ConfigTrader) then { _buyV = player addAction [localize "STR_EPOCH_PLAYER_289", "\z\addons\dayz_code\actions\AdvancedTrading\init.sqf",(_traderMenu select 0), 999, true, false]; s_player_parts set [count s_player_parts,_buyV]; } else { // Database menu _buy = player addAction [localize "STR_EPOCH_PLAYER_289", "\z\addons\dayz_code\actions\show_dialog.sqf",(_traderMenu select 0), 999, true, false]; s_player_parts set [count s_player_parts,_buy]; }; }; s_player_parts_crtl = 1; }; } else { {player removeAction _x} count s_player_parts;s_player_parts = []; s_player_parts_crtl = -1; }; Link to comment Share on other sites More sharing options...
ChrisRedfield Posted June 17, 2017 Report Share Posted June 17, 2017 11 hours ago, juandayz said: @RazorFPS some quick checks. Reveal hidden contents you put the dayz_code folder provided by salival in your mission root? you put the scripts folder provided by salival in your mssion root? you replace the files in dayz_server.pbo ? server_handleSafeGear.sqf // server_updateObject.sqf // server_monitor.sqf you replace your description.ext in mission root by the one provided here? do you have exactly this line in init.sqf : call compile preprocessFileLineNumbers "scripts\traders\server_traders.sqf"; in your configvariables.sqf do you have this value? DZE_ConfigTrader = true; @ChrisRedfield Reveal hidden contents are you using the fn_selfaction.sqf provided by this mod? your bunch of code about it in fn_selfactions looks like this? Reveal hidden contents // All Traders if (_isMan && {!(isPlayer _cursorTarget)} && {_typeOfCursorTarget in serverTraders} && {!_isPZombie}) then { if (s_player_parts_crtl < 0) then { _humanity = player getVariable ["humanity",0]; _traderMenu = call compile format["menu_%1;",_typeOfCursorTarget]; _low_high = localize "STR_EPOCH_ACTIONS_HUMANITY_LOW"; _humanity_logic = false; if ((_traderMenu select 2) == "friendly") then { _humanity_logic = (_humanity < -5000); }; if ((_traderMenu select 2) == "hostile") then { _low_high = localize "STR_EPOCH_ACTIONS_HUMANITY_HIGH"; _humanity_logic = (_humanity > -5000); }; if ((_traderMenu select 2) == "hero") then { _humanity_logic = (_humanity < 5000); }; if (_humanity_logic) then { _cancel = player addAction [format[localize "STR_EPOCH_ACTIONS_HUMANITY",_low_high], "\z\addons\dayz_code\actions\trade_cancel.sqf",["na"], 0, true, false]; s_player_parts set [count s_player_parts,_cancel]; } else { // Static Menu { _buy = player addAction [format["Trade %1 %2 for %3 %4",(_x select 3),(_x select 5),(_x select 2),(_x select 6)], "\z\addons\dayz_code\actions\trade_items_wo_db.sqf",[(_x select 0),(_x select 1),(_x select 2),(_x select 3),(_x select 4),(_x select 5),(_x select 6)], (_x select 7), true, true]; s_player_parts set [count s_player_parts,_buy]; } count (_traderMenu select 1); if (DZE_ConfigTrader) then { _buyV = player addAction [localize "STR_EPOCH_PLAYER_289", "\z\addons\dayz_code\actions\AdvancedTrading\init.sqf",(_traderMenu select 0), 999, true, false]; s_player_parts set [count s_player_parts,_buyV]; } else { // Database menu _buy = player addAction [localize "STR_EPOCH_PLAYER_289", "\z\addons\dayz_code\actions\show_dialog.sqf",(_traderMenu select 0), 999, true, false]; s_player_parts set [count s_player_parts,_buy]; }; }; s_player_parts_crtl = 1; }; } else { {player removeAction _x} count s_player_parts;s_player_parts = []; s_player_parts_crtl = -1; }; Hey, i´ve got this in my fn_selfaction.sqf, without the top half under //Custom below, i cant interact with the Bank Trader, dunno if this lines are causing Problems. Spoiler // Custom below if (_isMan && {!_isAlive} && {!(_cursorTarget isKindOf "Animal")} && {player distance _cursorTarget < 5}) then { if (s_player_checkWallet < 0) then { s_player_checkWallet = player addAction ["Check Wallet","scripts\zsc\checkWallet.sqf",_cursorTarget,0,false,true]; }; } else { player removeAction s_player_checkWallet; s_player_checkWallet = -1; }; if (_typeOfCursorTarget in DZE_MoneyStorageClasses && {!locked _cursorTarget} && {!(_typeOfCursorTarget in DZE_LockedStorage)} && {player distance _cursorTarget < 5}) then { if (s_bank_dialog < 0) then { s_bank_dialog = player addAction ["Access bank","scripts\zsc\bankDialog.sqf",_cursorTarget,1,true,true]; }; } else { player removeAction s_bank_dialog; s_bank_dialog = -1; }; if (_isAlive && {_typeOfCursorTarget in AllPlayers} && {isPlayer _cursorTarget}) then { if (s_givemoney_dialog < 0) then { s_givemoney_dialog = player addAction [format ["Trade %1 with %2",CurrencyName,name _cursorTarget],"scripts\zsc\givePlayer.sqf",_cursorTarget,3,true,true]; }; } else { player removeAction s_givemoney_dialog; s_givemoney_dialog = -1; }; if (_isMan && {!(isPlayer _cursorTarget)} && {_typeOfCursorTarget in ZSC_bankTraders} && {!_isPZombie}) then { if (s_bank_dialog1 < 0) then { s_bank_dialog1 = player addAction ["Bank Teller","scripts\zsc\atmDialog.sqf",_cursorTarget,3,true,true]; }; } else { player removeAction s_bank_dialog1; s_bank_dialog1 = -1; }; if (_typeOfCursorTarget in ZSC_bankObjects && {player distance _cursorTarget < 5}) then { if (s_bank_dialog2 < 0) then { s_bank_dialog2 = player addAction ["Bank ATM","scripts\zsc\atmDialog.sqf",_cursorTarget,3,true,true]; }; } else { player removeAction s_bank_dialog2; s_bank_dialog2 = -1; }; // All Traders if (_isMan && {!(isPlayer _cursorTarget)} && {_typeOfCursorTarget in serverTraders} && {!_isPZombie}) then { if (s_player_parts_crtl < 0) then { _humanity = player getVariable ["humanity",0]; _traderMenu = call compile format["menu_%1;",_typeOfCursorTarget]; _low_high = localize "STR_EPOCH_ACTIONS_HUMANITY_LOW"; _humanity_logic = false; if ((_traderMenu select 2) == "friendly") then { _humanity_logic = (_humanity < -5000); }; if ((_traderMenu select 2) == "hostile") then { _low_high = localize "STR_EPOCH_ACTIONS_HUMANITY_HIGH"; _humanity_logic = (_humanity > -5000); }; if ((_traderMenu select 2) == "hero") then { _humanity_logic = (_humanity < 5000); }; if (_humanity_logic) then { _cancel = player addAction [format[localize "STR_EPOCH_ACTIONS_HUMANITY",_low_high], "\z\addons\dayz_code\actions\trade_cancel.sqf",["na"], 0, true, false]; s_player_parts set [count s_player_parts,_cancel]; } else { // Static Menu { _buy = player addAction [format["Trade %1 %2 for %3 %4",(_x select 3),(_x select 5),(_x select 2),(_x select 6)], "\z\addons\dayz_code\actions\trade_items_wo_db.sqf",[(_x select 0),(_x select 1),(_x select 2),(_x select 3),(_x select 4),(_x select 5),(_x select 6)], (_x select 7), true, true]; s_player_parts set [count s_player_parts,_buy]; } count (_traderMenu select 1); if (DZE_ConfigTrader) then { _buyV = player addAction [localize "STR_EPOCH_PLAYER_289", "\z\addons\dayz_code\actions\AdvancedTrading\init.sqf",(_traderMenu select 0), 999, true, false]; s_player_parts set [count s_player_parts,_buyV]; } else { // Database menu _buy = player addAction [localize "STR_EPOCH_PLAYER_289", "\z\addons\dayz_code\actions\show_dialog.sqf",(_traderMenu select 0), 999, true, false]; s_player_parts set [count s_player_parts,_buy]; }; }; s_player_parts_crtl = 1; }; } else { {player removeAction _x} count s_player_parts;s_player_parts = []; s_player_parts_crtl = -1; }; Link to comment Share on other sites More sharing options...
azzdayz Posted June 20, 2017 Report Share Posted June 20, 2017 Hey everyone I just want to ask in the past players were told to leave servers before restarts or they could loss gear and stuff. Is this still the case and if they stay logged on till server restarts is it possible the bank could be wiped to 0 as well? I ask because I have had some players report their banks setting to 0 and I am just trying to troubleshoot a little. Link to comment Share on other sites More sharing options...
juandayz Posted June 20, 2017 Report Share Posted June 20, 2017 @ChrisRedfield well your fn_selfactions seems be fine.. are the same as provided by the mod. the only thing is this redundancy if (_typeOfCursorTarget in DZE_MoneyStorageClasses && {!locked _cursorTarget} && {!(_typeOfCursorTarget in DZE_LockedStorage)} && {player distance _cursorTarget < 5}) then { in the lines in red youre cheking if is not a loked target and if the storage is not defined in variables.sqf as loked: DZE_LockedStorage = ["VaultStorageLocked","LockboxStorageLocked"]; is the same in other way. But i think this works for the others guys. but anyway your issue sounds like youre missing one of player removeAction s_bank_dialog2; s_bank_dialog2 = -1; in somewhere. Link to comment Share on other sites More sharing options...
salival Posted June 20, 2017 Author Report Share Posted June 20, 2017 50 minutes ago, azzdayz said: Hey everyone I just want to ask in the past players were told to leave servers before restarts or they could loss gear and stuff. Is this still the case and if they stay logged on till server restarts is it possible the bank could be wiped to 0 as well? I ask because I have had some players report their banks setting to 0 and I am just trying to troubleshoot a little. I havent seen/heard of this for quite some time, during testing I was quite often storing/withdrawing coins then instantly alt-f4'ing with no issues, coins persisted on restart/in database. any server/client RPT errors? any HiveExt.log errors? 5 minutes ago, juandayz said: @ChrisRedfield well your fn_selfactions seems be fine.. are the same as provided by the mod. the only thing is this redundancy if (_typeOfCursorTarget in DZE_MoneyStorageClasses && {!locked _cursorTarget} && {!(_typeOfCursorTarget in DZE_LockedStorage)} && {player distance _cursorTarget < 5}) then { in the lines in red youre cheking if is not a loked target and if the storage is not defined in variables.sqf as loked: DZE_LockedStorage = ["VaultStorageLocked","LockboxStorageLocked"]; is the same in other way. But i think this works for the others guys. but anyway your issue sounds like youre missing one of player removeAction s_bank_dialog2; s_bank_dialog2 = -1; in somewhere. Those 2 lines in red are needed together, It's been a while since I did that but you did need them both (I forget why) but they are not redundant here juandayz 1 Link to comment Share on other sites More sharing options...
azzdayz Posted June 20, 2017 Report Share Posted June 20, 2017 (edited) 22 hours ago, salival said: I havent seen/heard of this for quite some time, during testing I was quite often storing/withdrawing coins then instantly alt-f4'ing with no issues, coins persisted on restart/in database. any server/client RPT errors? any HiveExt.log errors? Those 2 lines in red are needed together, It's been a while since I did that but you did need them both (I forget why) but they are not redundant here No RTP error to my knowledge, I am going to try and reproduce the issue tonight. I know one day I logged in my test server and my bank was cleared and I had one player today say his bank was cleared so I thought I should get any input before I look into it further. This player literally stays on the server until it shuts down. I just figured that might be why it happened to him and I was stopping and starting the test server so I figured it was just a glitch when it did it to me, but I'll let you know if anything comes of it. I mainly just wanted some input on if it was a known issue and it sounds like it is not so if I can't reproduce it then I am not going to worry about it to much. Thanks UPDATE - Turned out the database was bugged for just that player. Nothing was working right for him. I cleared everything in the database evolving that player and no issues since. :) Edited June 21, 2017 by azzdayz UPDATE Link to comment Share on other sites More sharing options...
juandayz Posted June 20, 2017 Report Share Posted June 20, 2017 Quote Those 2 lines in red are needed together, It's been a while since I did that but you did need them both (I forget why) but they are not redundant here i think are redundants same as here see: if (_typeOfCursorTarget in DZE_MoneyStorageClasses && {!locked _cursorTarget} && {(_typeOfCursorTarget in DZE_UnLockedStorage)} && {player distance _cursorTarget < 5}) then { but, dont have doubts that the way you write it works.. anyway maybe you put it cuz you defined in the variables.sqf DZE_MoneyStorageClasses = DZE_LockableStorage; and in default variables the two locked ids are defined: DZE_LockableStorage = ["VaultStorage","VaultStorageLocked","LockboxStorageLocked","LockboxStorage"]; Link to comment Share on other sites More sharing options...
JasonTM Posted June 25, 2017 Report Share Posted June 25, 2017 @salival I submitted a pull request with Namalsk files. salival 1 Link to comment Share on other sites More sharing options...
harcosgoogle Posted July 9, 2017 Report Share Posted July 9, 2017 How to add start bankcoin? PVCDZ_plr_Login = [_charID,_inventory,_backpack,_survival,_isNew,dayz_versionNo,_model,_isHiveOk,_newPlayer,_isInfected,_group,_CharacterCoins,_playerCoins,_BankCoins]; if (_newPlayer) then {_bankCoins = 5000;}; @salival Link to comment Share on other sites More sharing options...
salival Posted July 9, 2017 Author Report Share Posted July 9, 2017 9 minutes ago, harcosgoogle said: How to add start bankcoin? PVCDZ_plr_Login = [_charID,_inventory,_backpack,_survival,_isNew,dayz_versionNo,_model,_isHiveOk,_newPlayer,_isInfected,_group,_CharacterCoins,_playerCoins,_BankCoins]; if (_newPlayer) then {_bankCoins = 5000;}; @salival Reading the readme.md properly would be a start. The if newplayer line goes before the PVCDZ_plr_Login line if (_newPlayer) then {_bankCoins = 5000;}; PVCDZ_plr_Login = [_charID,_inventory,_backpack,_survival,_isNew,dayz_versionNo,_model,_isHiveOk,_newPlayer,_isInfected,_group,_CharacterCoins,_playerCoins,_BankCoins]; harcosgoogle 1 Link to comment Share on other sites More sharing options...
dyna1one Posted July 16, 2017 Report Share Posted July 16, 2017 Having issues with "Waiting for Server to start authenication" And then it counts to 120 before it times out since I've installed this to my OverPoch server, would love it if someone could help me out! Nothing special in server logs at all, but an error in the client. pastebin.com/6eA2Zvxr Link to comment Share on other sites More sharing options...
JasonTM Posted July 16, 2017 Report Share Posted July 16, 2017 3 hours ago, dyna1one said: Having issues with "Waiting for Server to start authenication" And then it counts to 120 before it times out since I've installed this to my OverPoch server, would love it if someone could help me out! Nothing special in server logs at all, but an error in the client. pastebin.com/6eA2Zvxr I see you left a comment on my youtube install guide. If you followed those instructions exactly then there should be no problems. I think you might have missed a step somewhere. Link to comment Share on other sites More sharing options...
dyna1one Posted July 16, 2017 Report Share Posted July 16, 2017 10 minutes ago, JasonTM said: I see you left a comment on my youtube install guide. If you followed those instructions exactly then there should be no problems. I think you might have missed a step somewhere. Went over all of em again, can't seem to find the issue.. Link to comment Share on other sites More sharing options...
JasonTM Posted July 16, 2017 Report Share Posted July 16, 2017 I sent you a PM with my email address. Send me your server and mission PBOs. salival 1 Link to comment Share on other sites More sharing options...
ReDBaroN Posted July 17, 2017 Report Share Posted July 17, 2017 @salivalIs it possible to put a -1 "worth" to disable something from being bought or sold? In the same way as with the briefcase system... Link to comment Share on other sites More sharing options...
Blestda86ta Posted July 17, 2017 Report Share Posted July 17, 2017 I put in the line for giving new players coins in their bank at the start but when new players join they aren't getting coins? I have it setup exactly how it says and no errors in the rpt if (_newPlayer) then {_bankCoins = 500000;}; PVCDZ_plr_Login = [_charID,_inventory,_backpack,_survival,_isNew,dayz_versionNo,_model,_isHiveOk,_newPlayer,_isInfected,_group,_CharacterCoins,_playerCoins,_BankCoins]; (owner _playerObj) publicVariableClient "PVCDZ_plr_Login"; Link to comment Share on other sites More sharing options...
salival Posted July 17, 2017 Author Report Share Posted July 17, 2017 43 minutes ago, Blestda86ta said: I put in the line for giving new players coins in their bank at the start but when new players join they aren't getting coins? I have it setup exactly how it says and no errors in the rpt if (_newPlayer) then {_bankCoins = 500000;}; PVCDZ_plr_Login = [_charID,_inventory,_backpack,_survival,_isNew,dayz_versionNo,_model,_isHiveOk,_newPlayer,_isInfected,_group,_CharacterCoins,_playerCoins,_BankCoins]; (owner _playerObj) publicVariableClient "PVCDZ_plr_Login"; I don't know why that's not working all of a sudden, the only one I can get working is character coins. It's being sent in the plr_Login line correctly as seen here: _characterCoins = 30000; _playerCoins = 40000; _bankCoins = 50000; 7:04:58 "infiSTAR.de Log: salival (myuid) | New Player: ["2",[],[],[0,0,0],true,"DayZ Epoch 1.0.6.1","Survivor2_DZ",true,true,0,[],30000,40000,50000]" I will investigate this more Blestda86ta 1 Link to comment Share on other sites More sharing options...
salival Posted July 17, 2017 Author Report Share Posted July 17, 2017 1 hour ago, ReDBaroN said: @salivalIs it possible to put a -1 "worth" to disable something from being bought or sold? In the same way as with the briefcase system... Yes, it does work correctly class GNT_C185U_DZ { type = "trade_any_vehicle"; buy[] = {-1,"worth"}; sell[] = {2000,"worth"}; }; I can sell that but I can't buy it ReDBaroN 1 Link to comment Share on other sites More sharing options...
salival Posted July 18, 2017 Author Report Share Posted July 18, 2017 So I looked into @Blestda86taproblem that he was having after he sent me his mission file and dayz_server, it works fine on my test server. It wouldn't work on my normal test server with my files because i'm not running global banking so i'm not running the newer player_humanityMorph that I include with ZSC global banking. Link to comment Share on other sites More sharing options...
Recommended Posts