Jump to content

[Alpha Release] Single Currency 3.0 & Storage DEFAULT HIVE ( No global banking).


Recommended Posts

same here

 

check your server_monitor.sqf make sure your using _inventory or _intentory not both

 

also check  this and take a good look at what step C) says ;fix this and it should work

 

  

B )  IN compiles/server_updateObject.sqf

 

Change 

        _inventory = [

            getWeaponCargo _object,

            getMagazineCargo _object,

            getBackpackCargo _object

        ];

into

        _inventory = [

            getWeaponCargo _object,

            getMagazineCargo _object,

            getBackpackCargo _object

            /*ZSC*/

            , _object getVariable["bankMoney",0]

            /*ZSC*/

        ];

C ) In your server_monitor.sqf ( NOTE: the " _intentory' variable can be called "_inventory" at your files, so change my code to that, if it's the case).

 

Add

/*ZSC*/

if( count (_intentory) > 3)then{

        _object setVariable ["bankMoney", _intentory select 3, true];

    }else{

     _object setVariable ["bankMoney", 0, true];

    };

/*ZSC*/

ABOVE

if (_type in DZE_LockedStorage) then {

// Fill variables with loot

_object setVariable ["WeaponCargo", (_intentory select 0),true];

_object setVariable ["MagazineCargo", (_intentory select 1),true];

_object setVariable ["BackpackCargo", (_intentory select 2),true];

} else {

D) in compiles/server_playerSync.sqf

 

Link to comment
Share on other sites

 

I would like to know if there is a way to know if our cursorTarget (when is a player) has selected the option "Don't display name", or "Display name" (you know when you login).

This way we could change this line in fn_selfActions.sqf:

s_givemoney_dialog = player addAction [format["Give Money to %1", (name _cursorTarget)], "ZSC\actions\give_player_dialog.sqf",_cursorTarget, 3, true, true, "", ""];

and keep the name of the target "secret" as he wanted it to be.

 

its possible , you can use the global variable DZE_display_name , but im not sure how to write it because of the true or false part of it , would be pretty simple other wise ,

 

you could also as a temp fix change the code to remove the name part and just make it show some text give money to player

Link to comment
Share on other sites

I cant figure this out can anybody please help?

Ive searched and none of the things i've found have fixed this.

 

 

 

Im getting a problem where vehicles that are bought at traders and spawned by the database revert to the original spawn location after server restart.

Iv'e heard that this is most likely a error in server_monitor.sqf but I dont want to replace my server_monitor.sqf to vanilla to test because i have many custom mods that rely on it but i posted my server_monitor.sqf below.

I believe this has something to do with zupa single currency 3.0 but im up to try anything that might fix this.
 
Code Snippet Of Spammed Error : http://pastebin.com/wVyEr9VN

My server_monitor.sqf http://pastebin.com/c9zhysnq

 

 

Heres a list of the following mods I have installed that need edits to the server_monitor and the links to the addons:

JAEM Evac Choppers V1.4 : 

DZMS 1.1FIN : 

DZAI VERSION "2.0.0 (Final + Epoch 1.0.4.2a temp hotfix)" Found on opendayz.net

Paint Vehicles : 

Zupa Single Currency 3.0 Stoarge : 

Custom Build Vectors Legacy Installation Version 3 (Without P4L and fast build) : 

Door Management 3.0 Non P4L (Fix For Plot Management Variant) : 

Plot Management 2.1 Object Counter Maintain Version (Non Single Currency Variant) : 

 

 

 

 

Any Help Is Appreciated,

Thanks

Link to comment
Share on other sites

So my players have been reporting mission coins in their safes after restart, so I though I would investigate and what I found was not good. When I build a vault and look at my database, it is there with an empty inv []. When I put my coins in.. say 1000 it goes on the database, nice and simple... but then I lock it... and it SOMETIMES goes away AKA the coins go to 0... Weird right. However when I unlock it it always comes back, but you can see the problem if the player has his vault locked on restart it will read 0 and thus it will become zero. I have no clue on why sometimes this happens but that is bad. I will take a look at the code, but I was wondering if someone already has a fix for this.

Link to comment
Share on other sites

Hey everyone, For some reason i can't use the search feature for this forum so i apologize if this has been asked before.

Im a budding new server over and im having a few RTP errors client side that im struggling to solve,

below is my Client RPT, this is a vanilla server with no scripts running just Zupas Single Currency. Hopefully you guys will be able to help me out.

"DayZ Epoch: PRELOAD Functions\init [[L 1-1-A:1 REMOTE],any]"
"DayZ Epoch: MPframework inited"
"DEBUG: loadscreen guard started."
"Res3tting B!S effects..."
"\z\addons\dayz_code\system\REsec.sqf:Monitoring Remote Exe..."
"z\addons\dayz_code\system\antihack.sqf: Plants libs tests done!"
"PLOGIN: Retrying Authentication... (76561198088315951)"
"PLAYER RESULT: true"
"PLOGIN: Login loop completed!"
Error in expression <yer_fuelauto2 = -1;
player removeAction s_givemoney_dialog;
s_givemoney_dialog =>
  Error position: <s_givemoney_dialog;
s_givemoney_dialog =>
  Error Undefined variable in expression: s_givemoney_dialog
File mpmissions\__CUR_MP.Chernarus\Custom\Fixes\fn_selfActions.sqf, line 849
Error in expression <;

if (_index < 0) exitWith {};

while {count TraderItemList < 1} do { sleep 1; >
  Error position: <count TraderItemList < 1} do { sleep 1; >
  Error count: Type Number, expected Array,Config entry
File mpmissions\__CUR_MP.Chernarus\Custom\ZSC\gold\player_traderMenu.sqf, line 184
Error in expression <;

if (_index < 0) exitWith {};

while {count TraderItemList < 1} do { sleep 1; >
  Error position: <count TraderItemList < 1} do { sleep 1; >
  Error count: Type Number, expected Array,Config entry
File mpmissions\__CUR_MP.Chernarus\Custom\ZSC\gold\player_traderMenu.sqf, line 184
Error: Bone leftshoulder doesn't exist in some skeleton 
Error: Bone rightshoulder doesn't exist in some skeleton 
Error: Bone rightshoulder doesn't exist in some skeleton 
Error: Bone leftshoulder doesn't exist in some skeleton 
Error: Bone rightshoulder doesn't exist in some skeleton 
Error: Bone leftshoulder doesn't exist in some skeleton 
Error: Bone rightshoulder doesn't exist in some skeleton 
Error: Bone leftshoulder doesn't exist in some skeleton 
Error: Bone rightshoulder doesn't exist in some skeleton 
Error: Bone leftshoulder doesn't exist in some skeleton 
Error: Bone rightshoulder doesn't exist in some skeleton 
Error: Bone leftshoulder doesn't exist in some skeleton 
Error: Bone leftshoulder doesn't exist in some skeleton 
Error: Bone rightshoulder doesn't exist in some skeleton 
Error: Bone leftshoulder doesn't exist in some skeleton 
Error: Bone rightshoulder doesn't exist in some skeleton 
"DayZ Epoch: PRELOAD Functions\init [[<No group>:0 (FunctionsManager)],any]"
"DayZ Epoch: MPframework inited"
Error in expression <;
_recompile = (count _this) > 0;


if (BIS_fnc_init && !_recompile) exitwith {t>
  Error position: <BIS_fnc_init && !_recompile) exitwith {t>
  Error Undefined variable in expression: bis_fnc_init
File ca\Modules\Functions\init.sqf, line 28
 

Other files u may need to look at

https://drive.google.com/open?id=0B0j1Eexkv-hONy1yTmQxMlNIak0&authuser=0

 Thanks for any help you peeps can offer.

Dave

Link to comment
Share on other sites

 

check your server_monitor.sqf make sure your using _inventory or _intentory not both

 

also check  this and take a good look at what step C) says ;fix this and it should work

 

  

B )  IN compiles/server_updateObject.sqf

 

Change 

        _inventory = [

            getWeaponCargo _object,

            getMagazineCargo _object,

            getBackpackCargo _object

        ];

into

        _inventory = [

            getWeaponCargo _object,

            getMagazineCargo _object,

            getBackpackCargo _object

            /*ZSC*/

            , _object getVariable["bankMoney",0]

            /*ZSC*/

        ];

C ) In your server_monitor.sqf ( NOTE: the " _intentory' variable can be called "_inventory" at your files, so change my code to that, if it's the case).

 

Add

/*ZSC*/

if( count (_intentory) > 3)then{

        _object setVariable ["bankMoney", _intentory select 3, true];

    }else{

     _object setVariable ["bankMoney", 0, true];

    };

/*ZSC*/

ABOVE

if (_type in DZE_LockedStorage) then {

// Fill variables with loot

_object setVariable ["WeaponCargo", (_intentory select 0),true];

_object setVariable ["MagazineCargo", (_intentory select 1),true];

_object setVariable ["BackpackCargo", (_intentory select 2),true];

} else {

D) in compiles/server_playerSync.sqf

 

 

Ok That fixed one error was getting but created a new one in RPT lol .. 

Now getting this .. any help appreciated :D  

 

20:55:29 Error in expression <and\custom\system\server_monitor.sqf"
_ ["_nul","_result","_pos","_wsDone","_dir>
20:55:29   Error position: <["_nul","_result","_pos","_wsDone","_dir>
20:55:29   Error Missing ;
20:55:29 File mpmissions\__cur_mp.sauerland\custom\system\server_monitor.sqf, line 1
20:55:30 Warning: z\addons\dayz_communityassets\models\compass.p3d:0 Error while trying to generate ST for points: 863, 853, 852
20:55:31 No speaker given for Mario Gluck
20:55:31 Error in expression <rland\custom\system\server_monitor.sqf"
_ ["_nul","_result","_pos","_wsDone","_d>
20:55:31   Error position: <_ ["_nul","_result","_pos","_wsDone","_d>
20:55:31   Error Undefined variable in expression: _
20:55:31 File mpmissions\__cur_mp.sauerland\custom\system\server_monitor.sqf, line 1

 

 

This is Line 1 

_ ["_nul","_result","_pos","_wsDone","_dir","_isOK","_countr","_objWpnTypes","_objWpnQty","_dam","_selection","_totalvehicles","_object","_idKey","_type","_ownerID","_worldspace","_inventory","_hitPoints","_fuel","_damage","_key","_vehLimit","_hiveResponse","_objectCount","_codeCount","_data","_status","_val","_traderid","_retrader","_traderData","_id","_lockable","_debugMarkerPosition","_vehicle_0","_bQty","_vQty","_BuildingQueue","_objectQueue","_superkey","_shutdown","_res","_hiveLoaded","_ownerPUID"];
Link to comment
Share on other sites

its possible , you can use the global variable DZE_display_name , but im not sure how to write it because of the true or false part of it , would be pretty simple other wise ,

 

you could also as a temp fix change the code to remove the name part and just make it show some text give money to player

 

Thank you very much ! I changed this:

s_givemoney_dialog = player addAction [format["Give Money to %1", (name _cursorTarget)], "ZSC\actions\give_player_dialog.sqf",_cursorTarget, 3, true, true, "", ""];
into this:
_targetName = if ((_cursorTarget getVariable["DZE_display_name",false]) || (DZE_ForceNameTagsInTrader && isInTraderCity)) then { name _cursorTarget; } else { "Player"; };
s_givemoney_dialog = player addAction [format["Give Money to %1", _targetName], "ZSC\actions\give_player_dialog.sqf",_cursorTarget, 3, true, true, "", ""];

And it works like a charm :)

Link to comment
Share on other sites

 

Ok That fixed one error was getting but created a new one in RPT lol .. 

Now getting this .. any help appreciated :D  

 

20:55:29 Error in expression <and\custom\system\server_monitor.sqf"
_ ["_nul","_result","_pos","_wsDone","_dir>
20:55:29   Error position: <["_nul","_result","_pos","_wsDone","_dir>
20:55:29   Error Missing ;
20:55:29 File mpmissions\__cur_mp.sauerland\custom\system\server_monitor.sqf, line 1
20:55:30 Warning: z\addons\dayz_communityassets\models\compass.p3d:0 Error while trying to generate ST for points: 863, 853, 852
20:55:31 No speaker given for Mario Gluck
20:55:31 Error in expression <rland\custom\system\server_monitor.sqf"
_ ["_nul","_result","_pos","_wsDone","_d>
20:55:31   Error position: <_ ["_nul","_result","_pos","_wsDone","_d>
20:55:31   Error Undefined variable in expression: _
20:55:31 File mpmissions\__cur_mp.sauerland\custom\system\server_monitor.sqf, line 1

 

 

This is Line 1 

_ ["_nul","_result","_pos","_wsDone","_dir","_isOK","_countr","_objWpnTypes","_objWpnQty","_dam","_selection","_totalvehicles","_object","_idKey","_type","_ownerID","_worldspace","_inventory","_hitPoints","_fuel","_damage","_key","_vehLimit","_hiveResponse","_objectCount","_codeCount","_data","_status","_val","_traderid","_retrader","_traderData","_id","_lockable","_debugMarkerPosition","_vehicle_0","_bQty","_vQty","_BuildingQueue","_objectQueue","_superkey","_shutdown","_res","_hiveLoaded","_ownerPUID"];

 

I think this is related to plot for life .. maybe a issue between the two mods ??

Link to comment
Share on other sites

Alright, finally got my server to work after installing all this/.... But only traders work. I have no icon on the right, and I cannot seem to access any storage with money (just like old system ).

 

From what I can see, it says that Money is a non existing variable...

disableSerialization;
while {true} do
{
	1000 cutRsc ["ZSC_Money_Display","PLAIN"];
	_wpui = uiNameSpace getVariable "ZSC_Money_Display"; // Thx to ASREMIX
    _vitals = _wpui displayCtrl 4900;
	Money = player getVariable["cashMoney",0];
	_vitals ctrlSetStructuredText parseText format ["	<t size='0.9'> %1 </t><img size='0.9' align='right' image='ZSC\gui\Money.paa'/>",	[Money] call BIS_fnc_numberText];
	_vitals ctrlCommit 0;
    sleep 1.5;
};


Here is the relevant part of my RPT file:

4:08:35 "[Random_Weed_Farm]: waiting for BIS_fnc_findSafePos"
 4:08:35 "[Random_Weed_Farm]: Function loaded ... Server Building 2 Weed Farm(s)"
 4:08:35 "[Random_Weed_Farm]: Found Location for a farm (009040) [924.591,11260.4] with 2 plants"
 4:08:35 "[Random_Weed_Farm]: Found Location for a farm (068001) [6874.61,15221.5] with 2 plants"
 4:08:35 "[Random_Weed_Farm]: Weed Farm(s) Done ... Broadcasting locations for clients"
 4:08:35 "HIVE: Starting"
 4:08:35 "HIVE: trying to get objects"
 4:08:35 "HIVE: found 3185 objects"
 4:08:35 "HIVE: Commence Object Streaming..."
 4:08:35 "HIVE: got 1497 Epoch Objects and 1688 Vehicles"
 4:08:39 AH6X_DZ: FLIR_turret - unknown animation source FLIR_turret
 4:08:39 AH6X_DZ: FLIR_gun - unknown animation source FLIR_gun
 4:08:40 UH1Y_DZ: ObsTurret - unknown animation source ObsTurret
 4:08:40 UH1Y_DZ: ObsGun - unknown animation source ObsGun
 4:08:40 UH1Y_DZE: ObsTurret - unknown animation source ObsTurret
 4:08:40 UH1Y_DZE: ObsGun - unknown animation source ObsGun
 4:08:41 Warning Message: Error: creating magazine SkinBase with scope=private
 4:08:42 Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.
mbg_buildings_3
 4:08:42 Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.
mbg_buildings_3
 4:08:42 Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.
mbg_buildings_3
 4:08:43 class HitPoints::HitLF2Wheel not found in policecar
 4:08:43 class HitPoints::HitRF2Wheel not found in policecar
 4:08:43 class HitPoints::HitLMWheel not found in policecar
 4:08:43 class HitPoints::HitRMWheel not found in policecar
 4:08:43 "HIVE: Vehicle Spawn limit reached!"
 4:08:43 "HIVE: Spawning # of Debris: 50"
 4:08:43 "HIVE: Spawning # of Ammo Boxes: 3"
 4:08:43 "HIVE: Spawning # of Veins: 50"
 4:08:43 "Total Number of spawn locations 5"
 4:08:44 "infiSTAR.de - Player-Log: [WGco-owner] FragZ {Dev}(76561198152806210) - 0h 00min | ******ADMIN******"
 4:08:44 "infiSTAR.de - Player-Log: *J*A*W*S*(76561198098327802) - 0h 00min"
 4:08:44 "infiSTAR.de - Player-Log: Purple Hero(76561198072071440) - 0h 00min"
 4:08:44 "infiSTAR.de - Player-Log: [WAR]Wreck-you(76561198169192704) - 0h 00min"
 4:08:44 "infiSTAR.de - Player-Log: BadLands(76561198139223787) - 0h 00min"
 4:08:48 "infiSTAR.de PlayerConnected: ["76561198152806210","[WGco-owner] FragZ {Dev}"]"
 4:08:49 "DEBUG VEIN: Too many objects at [6436.55,6558.88]"
 4:08:49 "EPOCH EVENTS INIT"
 4:08:49 "WAI: AI Config File Loaded"
 4:08:49 "WAI: AI Monitor Started"
 4:08:49 "WAI: Initialising static missions"
 4:08:49 "WAI: Initialising missions"
 4:08:50 "WAI: Spawned a group of 12 AI (Bandit) at [13624.9,3200.71,-8.39233e-005]"
 4:08:50 "WAI: Spawned a group of 6 AI (Bandit) at [9610.84,11279.6,0]"
 4:08:50 "WAI: Spawned a group of 7 AI (Bandit) at [4481.76,10249.8,0]"
 4:08:50 "WAI: Static mission loaded"
 4:08:56 "TIME SYNC: Local Time set to [2013,8,3,11,8]"
 4:08:56 Server: Object info 2:44 not found during Changing Owner
 4:08:56 Server: Object info 2:1 not found during Changing Owner
 4:09:35 "infiSTAR.de PlayerConnected: ["76561198139223787","BadLands"]"
 4:09:47 "infiSTAR.de PlayerConnected: ["","__SERVER__"]"
 4:09:47 "infiSTAR.de PlayerConnected: ["76561198072071440","Purple Hero"]"
 4:09:49 "infiSTAR.de Log: [WGco-owner] FragZ {Dev}(76561198152806210) -    Entered SafeZone @114040"
 4:09:49 "infiSTAR.de fnc_AdminFirstReq: [1234,B 1-1-C:1 ([WGco-owner] FragZ {Dev}) REMOTE,"76561198152806210"]"
 4:09:49 "infiSTAR.de fnc_AdminReqProceed: [1234,B 1-1-C:1 ([WGco-owner] FragZ {Dev}) REMOTE,"76561198152806210"]"
 4:09:49 "infiSTAR.de ******ADMIN-LOGIN******: [WGco-owner] FragZ {Dev}(76561198152806210)"
 4:09:50 Error in expression <='right' image='ZSC\gui\Money.paa'/>",	[Money] call BIS_fnc_numberText];
_vitals>
 4:09:50   Error position: <Money] call BIS_fnc_numberText];
_vitals>
 4:09:50   Error Undefined variable in expression: money
 4:09:50 File mpmissions\dayz_epoch_11.Chernarus\ZSC\compiles\playerHud.sqf, line 8
 4:09:52 Error in expression <='right' image='ZSC\gui\Money.paa'/>",	[Money] call BIS_fnc_numberText];
_vitals>
 4:09:52   Error position: <Money] call BIS_fnc_numberText];
_vitals>
 4:09:52   Error Undefined variable in expression: money
 4:09:52 File mpmissions\dayz_epoch_11.Chernarus\ZSC\compiles\playerHud.sqf, line 8
 4:09:53 Error in expression <='right' image='ZSC\gui\Money.paa'/>",	[Money] call BIS_fnc_numberText];
_vitals>
 4:09:53   Error position: <Money] call BIS_fnc_numberText];
_vitals>
 4:09:53   Error Undefined variable in expression: money
 4:09:53 File mpmissions\dayz_epoch_11.Chernarus\ZSC\compiles\playerHud.sqf, line 8
 4:09:55 Error in expression <='right' image='ZSC\gui\Money.paa'/>",	[Money] call BIS_fnc_numberText];
_vitals>
 4:09:55   Error position: <Money] call BIS_fnc_numberText];
_vitals>
 4:09:55   Error Undefined variable in expression: money
 4:09:55 File mpmissions\dayz_epoch_11.Chernarus\ZSC\compiles\playerHud.sqf, line 8
 4:09:56 "infiSTAR.de PlayerConnected: ["76561198169192704","[WAR]Wreck-you"]"
 4:09:56 Error in expression <='right' image='ZSC\gui\Money.paa'/>",	[Money] call BIS_fnc_numberText];
_vitals>
 4:09:56   Error position: <Money] call BIS_fnc_numberText];
_vitals>
 4:09:56   Error Undefined variable in expression: money
 4:09:56 File mpmissions\dayz_epoch_11.Chernarus\ZSC\compiles\playerHud.sqf, line 8
 4:09:58 "infiSTAR.de Log: BadLands(76561198139223787) -    Left SafeZone @114038"
 4:09:58 Error in expression <='right' image='ZSC\gui\Money.paa'/>",	[Money] call BIS_fnc_numberText];
_vitals>
 4:09:58   Error position: <Money] call BIS_fnc_numberText];
_vitals>
 4:09:58   Error Undefined variable in expression: money
 4:09:58 File mpmissions\dayz_epoch_11.Chernarus\ZSC\compiles\playerHud.sqf, line 8
 4:09:59 "infiSTAR.de PlayerConnected: ["76561198084003393","Beargloves"]"
 4:09:59 "infiSTAR.de - Player-Log: Beargloves(76561198084003393) - 0h 00min"
 4:09:59 Error in expression <='right' image='ZSC\gui\Money.paa'/>",	[Money] call BIS_fnc_numberText];
_vitals>
 4:09:59   Error position: <Money] call BIS_fnc_numberText];
_vitals>
 4:09:59   Error Undefined variable in expression: money
 4:09:59 File mpmissions\dayz_epoch_11.Chernarus\ZSC\compiles\playerHud.sqf, line 8
 4:10:00 "infiSTAR.de Log: Purple Hero(76561198072071440) -    Left SafeZone @065083"
 4:10:01 Error in expression <='right' image='ZSC\gui\Money.paa'/>",	[Money] call BIS_fnc_numberText];
_vitals>
 4:10:01   Error position: <Money] call BIS_fnc_numberText];
_vitals>
 4:10:01   Error Undefined variable in expression: money
 4:10:01 File mpmissions\dayz_epoch_11.Chernarus\ZSC\compiles\playerHud.sqf, line 8
 4:10:02 Error in expression <='right' image='ZSC\gui\Money.paa'/>",	[Money] call BIS_fnc_numberText];
_vitals>
 4:10:02   Error position: <Money] call BIS_fnc_numberText];
_vitals>
 4:10:02   Error Undefined variable in expression: money
 4:10:02 File mpmissions\dayz_epoch_11.Chernarus\ZSC\compiles\playerHud.sqf, line 8
 4:10:04 Error in expression <='right' image='ZSC\gui\Money.paa'/>",	[Money] call BIS_fnc_numberText];
_vitals>
 4:10:04   Error position: <Money] call BIS_fnc_numberText];
_vitals>
 4:10:04   Error Undefined variable in expression: money
 4:10:04 File mpmissions\dayz_epoch_11.Chernarus\ZSC\compiles\playerHud.sqf, line 8
 4:10:05 Error in expression <='right' image='ZSC\gui\Money.paa'/>",	[Money] call BIS_fnc_numberText];
_vitals>
 4:10:05   Error position: <Money] call BIS_fnc_numberText];
_vitals>
 4:10:05   Error Undefined variable in expression: money
 4:10:05 File mpmissions\dayz_epoch_11.Chernarus\ZSC\compiles\playerHud.sqf, line 8
 4:10:07 Error in expression <='right' image='ZSC\gui\Money.paa'/>",	[Money] call BIS_fnc_numberText];
_vitals>
 4:10:07   Error position: <Money] call BIS_fnc_numberText];
_vitals>
 4:10:07   Error Undefined variable in expression: money
 4:10:07 File mpmissions\dayz_epoch_11.Chernarus\ZSC\compiles\playerHud.sqf, line 8
 4:10:07 "infiSTAR.de PlayerConnected: ["76561198098327802","*J*A*W*S*"]"
 4:10:08 Error in expression <='right' image='ZSC\gui\Money.paa'/>",	[Money] call BIS_fnc_numberText];
_vitals>
 4:10:08   Error position: <Money] call BIS_fnc_numberText];
_vitals>
 4:10:08   Error Undefined variable in expression: money
 4:10:08 File mpmissions\dayz_epoch_11.Chernarus\ZSC\compiles\playerHud.sqf, line 8
 4:10:10 "infiSTAR.de Log: BadLands(76561198139223787) -    Entered SafeZone @115038"
 4:10:10 Error in expression <='right' image='ZSC\gui\Money.paa'/>",	[Money] call BIS_fnc_numberText];
_vitals>
 4:10:10   Error position: <Money] call BIS_fnc_numberText];
_vitals>
 4:10:10   Error Undefined variable in expression: money
 4:10:10 File mpmissions\dayz_epoch_11.Chernarus\ZSC\compiles\playerHud.sqf, line 8

Link to comment
Share on other sites

I am still having the issue of the currency not saving on players after log and in containers after a restart. I have installed this mod about 10 times now, same issues. I have followed each step perfectly. There are apparently other steps such as setting commands in the compiles.sqf for player sync and gearset and such. I have done those also. No luck. Can someone do a video install for this? On a server that already has P4L? The directions leave a lot of steps out, assuming that a person knows what to do when overwriting vs. updating files when you have other scripts.  PLEASE!!! I love this script and desperately want it on my server. Will donate to whomever can help!

 

Thanks,

Link to comment
Share on other sites

It wont let me deposit money in storage of any type.

Also, I have some errors in my Client RPT file.


if( ((_bank + _amount ) >  _maxCap)) then{		
cutText [format["You c>
  Error position: <_maxCap)) then{		
cutText [format["You c>
  Error Variable indéfinie dans une expression: _maxcap
File mpmissions\__CUR_MP.Chernarus\ZSC\gold\ZSCinit.sqf, line 100
Error in expression < DOWN"];
};

/***************************/

if (_index < 0) exitWith {};

while {count TraderItemList < 1} do { sleep 1; >
  Error position: <count TraderItemList < 1} do { sleep 1; >
  Error count: Type Nombre, Tableau,Config entry attendu
File mpmissions\__CUR_MP.Chernarus\ZSC\gold\player_traderMenu.sqf, line 184
Error in expression < = alive _agent;
_targetPos = getPosATL _target;



_agent moveTo _targetPos;
_a>
  Error position: <_target;



_agent moveTo _targetPos;
_a>
  Error Variable indéfinie dans une expression: _target
Error in expression <hen {
_losCheck = 0;
_cantSee = [_agent,_target] call dayz_losCheck;

Link to comment
Share on other sites

It wont let me deposit money in storage of any type.

Also, I have some errors in my Client RPT file.

if( ((_bank + _amount ) >  _maxCap)) then{		
cutText [format["You c>
  Error position: <_maxCap)) then{		
cutText [format["You c>
  Error Variable indéfinie dans une expression: _maxcap
File mpmissions\__CUR_MP.Chernarus\ZSC\gold\ZSCinit.sqf, line 100
Error in expression < DOWN"];
};

/***************************/

if (_index < 0) exitWith {};

while {count TraderItemList < 1} do { sleep 1; >
  Error position: <count TraderItemList < 1} do { sleep 1; >
  Error count: Type Nombre, Tableau,Config entry attendu
File mpmissions\__CUR_MP.Chernarus\ZSC\gold\player_traderMenu.sqf, line 184
Error in expression < = alive _agent;
_targetPos = getPosATL _target;



_agent moveTo _targetPos;
_a>
  Error position: <_target;



_agent moveTo _targetPos;
_a>
  Error Variable indéfinie dans une expression: _target
Error in expression <hen {
_losCheck = 0;
_cantSee = [_agent,_target] call dayz_losCheck;

I see one thing that will cause errors.. not related to Zuppa at all 

Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.

mbg_buildings_3

 

you need to edit your misson.sqm and add "mbg_buildings_3", at the top of your list of addons

Link to comment
Share on other sites

Still cannot deposit money anywhere (in storage units).


I REALLY NEED HELP!


Errors in the client RPT:



 

if( ((_bank + _amount ) >  _maxCap)) then{		
cutText [format["You c>
  Error position: <_maxCap)) then{		
cutText [format["You c>
  Error Undefined variable in expression: _maxcap
File mpmissions\__CUR_MP.Chernarus\ZSC\gold\ZSCinit.sqf, line 102
Error in expression < DOWN"];
};

if( ((_bank + _amount ) >  _maxCap)) then{		
cutText [format["You c>
  Error position: <_maxCap)) then{		
cutText [format["You c>
  Error Undefined variable in expression: _maxcap
File mpmissions\__CUR_MP.Chernarus\ZSC\gold\ZSCinit.sqf, line 102

I just reinstalled vanilla ZSC folder and it works now.

Link to comment
Share on other sites

Hey guys this is driving me nuts lol ive gone through all the pages and I still cant fix this:
1:  No headshots give Coins event though the register in the database.
2: The coins dont save in anything i.e. on char in vehicles.  They dont show in the database tables at all. I checked the db table Object_data (inventory)
 
I can put in and take out of the vehicle no problem and re log and take coins in and out.  But when the server restarts all the coins are gone I guess as there not being written to the database :(.
 
I do have errors in the clientside log see below:
Error in expression <, ""];    
};
} else {
player removeAction s_bank_dialog;
s_bank_dialog = -1;
};


>
  Error position: <s_bank_dialog;
s_bank_dialog = -1;
};


>
  Error Undefined variable in expression: s_bank_dialog
File mpmissions\__CUR_MP.Chernarus\ZSC\compiles\fn_selfActions.sqf, line 500
Error in expression <stance _cursorTarget < 5)) then {        
if (s_bank_dialog2 < 0) then {
s_bank_dialog>
  Error position: <s_bank_dialog2 < 0) then {
s_bank_dialog>
  Error Undefined variable in expression: s_bank_dialog2
File mpmissions\__CUR_MP.Chernarus\ZSC\compiles\fn_selfActions.sqf, line 506
Error in expression <", ""];
};
} else {
player removeAction s_givemoney_dialog;
s_givemoney_dialog =>
  Error position: <s_givemoney_dialog;
s_givemoney_dialog =>
  Error Undefined variable in expression: s_givemoney_dialog
File mpmissions\__CUR_MP.Chernarus\ZSC\compiles\fn_selfActions.sqf, line 547
Error in expression <stance _cursorTarget < 5)) then {        
if (s_bank_dialog2 < 0) then {
s_bank_dialog>
  Error position: <s_bank_dialog2 < 0) then {
s_bank_dialog>

 

 

This is just a small selection from the rpt sorry couldnt figure out the spoiler thing.

 

I looked where the error points but no idea how to fix.  Any help would be greatly received thanks in advance :)

Link to comment
Share on other sites

Hi 

I am having an issue with the traders

 

Everything was working fine until now.

 

When i go in the trader menu and sell something it does not add money also when i want to buy something i can just buy it even without having money,

but when i use te advanced trader everything does work correctly 

Link to comment
Share on other sites

So, what is the fix for Coins not saving in the storage? I know someone has figured it out! Can someone tell us? I've read through trying to find it. If it is already in here refer me to the reply and i must be blind and I'm sorry! haha. Also, my storage only shows like 4 or 6 coins total to put in however i can put in however big the storage device is times 1000 like it's supposed to be..whats up with that? I installed everything correctly, I've had to do it like 6 times while trying to get it to work with Vector Build and Precise Build.. so what the eff? haha

Thanks for the help in advance guys!

Link to comment
Share on other sites

OK, after a good night sleep and a clear head and the help from calamity . I DID IT. 

I got it to work. The problem was in the server_updateObject.sqf, there was two places that had 

 

_inventory = [

            getWeaponCargo _object,

            getMagazineCargo _object,

            getBackpackCargo _object

        ];

 

So like i said, clear head. I decided to try it on the other one and it worked. I will put the file below that i am using so others can see. 

FIRST ONE ON LINE 66 AND SECOND ONE ON LINE 193

/*

[_object,_type] spawn server_updateObject;
*/
private ["_L39_TK_EP1","_object","_type","_objectID","_uid","_lastUpdate","_needUpdate","_object_position","_object_inventory","_object_damage","_isNotOk","_parachuteWest","_firstTime","_object_killed","_object_repair","_isbuildable","_object_vehicleKey","_activatingPlayer","_vehicleClassname","_toKey","_toKeyName","_vehicle_ID","_vehicle_UID"];
 
_object = _this select 0;
 
if(isNull(_object)) exitWith {
diag_log format["Skipping Null Object: %1", _object];
};
 
_type = _this select 1;
_parachuteWest = ((typeOf _object == "ParachuteWest") || (typeOf _object == "ParachuteC"));
_L39_TK_EP1 = (typeOf _object == "L39_TK_EP1");
_isbuildable = (typeOf _object) in dayz_allowedObjects;
_isNotOk = false;
_firstTime = false;
 
_objectID = _object getVariable ["ObjectID","0"];
_uid = _object getVariable ["ObjectUID","0"];
 
if ((typeName _objectID != "string") || (typeName _uid != "string")) then
    diag_log(format["Non-string Object: ID %1 UID %2", _objectID, _uid]);
    //force fail
    _objectID = "0";
    _uid = "0";
};
if (!_L39_TK_EP1 && !_parachuteWest && !(locked _object)) then {
if (_objectID == "0" && _uid == "0") then
{
_object_position = getPosATL _object;
    _isNotOk = true;
};
};
 
// do not update if buildable && not ok
if (_isNotOk && _isbuildable) exitWith {  };
 
// delete if still not ok
if (_isNotOk) exitWith { deleteVehicle _object; diag_log(format["Deleting object %1 with invalid ID at pos [%2,%3,%4]",typeOf _object,_object_position select 0,_object_position select 1, _object_position select 2]); };
 
 
_lastUpdate = _object getVariable ["lastUpdate",time];
_needUpdate = _object in needUpdate_objects;
 
// TODO ----------------------
_object_position = {
private["_position","_worldspace","_fuel","_key"];
_position = getPosATL _object;
_worldspace = [
round(direction _object),
_position
];
_fuel = 0;
if (_object isKindOf "AllVehicles") then {
_fuel = fuel _object;
};
_key = format["CHILD:305:%1:%2:%3:",_objectID,_worldspace,_fuel];
//diag_log ("HIVE: WRITE: "+ str(_key));
_key call server_hiveWrite;
};
 
_object_inventory = {
private["_inventory","_previous","_key"];
_inventory = [
getWeaponCargo _object,
getMagazineCargo _object,
getBackpackCargo _object
 
 
//STEP B
/*ZSC*/
, _object getVariable["bankMoney",0]
/*ZSC*/
 
];
_previous = str(_object getVariable["lastInventory",[]]);
if (str(_inventory) != _previous) then {
_object setVariable["lastInventory",_inventory];
if (_objectID == "0") then {
_key = format["CHILD:309:%1:%2:",_uid,_inventory];
} else {
_key = format["CHILD:303:%1:%2:",_objectID,_inventory];
};
//diag_log ("HIVE: WRITE: "+ str(_key));
_key call server_hiveWrite;
};
};
 
_object_damage = {
private["_hitpoints","_array","_hit","_selection","_key","_damage"];
_hitpoints = _object call vehicle_getHitpoints;
_damage = damage _object;
_array = [];
{
_hit = [_object,_x] call object_getHit;
_selection = getText (configFile >> "CfgVehicles" >> (typeOf _object) >> "HitPoints" >> _x >> "name");
if (_hit > 0) then {_array set [count _array,[_selection,_hit]]};
_object setHit ["_selection", _hit];
} count _hitpoints;
 
_key = format["CHILD:306:%1:%2:%3:",_objectID,_array,_damage];
//diag_log ("HIVE: WRITE: "+ str(_key));
_key call server_hiveWrite;
_object setVariable ["needUpdate",false,true];
};
 
_object_killed = {
private["_hitpoints","_array","_hit","_selection","_key","_damage"];
_hitpoints = _object call vehicle_getHitpoints;
//_damage = damage _object;
_damage = 1;
_array = [];
{
_hit = [_object,_x] call object_getHit;
_selection = getText (configFile >> "CfgVehicles" >> (typeOf _object) >> "HitPoints" >> _x >> "name");
if (_hit > 0) then {_array set [count _array,[_selection,_hit]]};
_hit = 1;
_object setHit ["_selection", _hit];
} count _hitpoints;
 
if (_objectID == "0") then {
_key = format["CHILD:306:%1:%2:%3:",_uid,_array,_damage];
} else {
_key = format["CHILD:306:%1:%2:%3:",_objectID,_array,_damage];
};
//diag_log ("HIVE: WRITE: "+ str(_key));
_key call server_hiveWrite;
_object setVariable ["needUpdate",false,true];
if ((count _this) > 2) then {
_killer = _this select 2;
_charID = _object getVariable ['CharacterID','0'];
_objID = _object getVariable['ObjectID','0'];
_objUID = _object getVariable['ObjectUID','0'];
_worldSpace = getPosATL _object;
if (getPlayerUID _killer != "") then {
_name = if (alive _killer) then { name _killer; } else { format["OBJECT %1", _killer]; };
diag_log format["Vehicle killed: Vehicle %1 (TYPE: %2), CharacterID: %3, ObjectID: %4, ObjectUID: %5, Position: %6, Killer: %7 (UID: %8)", _object, (typeOf _object), _charID, _objID, _objUID, _worldSpace, _name, (getPlayerUID _killer)];
} else {
diag_log format["Vehicle killed: Vehicle %1 (TYPE: %2), CharacterID: %3, ObjectID: %4, ObjectUID: %5, Position: %6", _object, (typeOf _object), _charID, _objID, _objUID, _worldSpace];
};
};
};
 
_object_repair = {
private["_hitpoints","_array","_hit","_selection","_key","_damage"];
_hitpoints = _object call vehicle_getHitpoints;
_damage = damage _object;
_array = [];
{
_hit = [_object,_x] call object_getHit;
_selection = getText (configFile >> "CfgVehicles" >> (typeOf _object) >> "HitPoints" >> _x >> "name");
if (_hit > 0) then {_array set [count _array,[_selection,_hit]]};
_object setHit ["_selection", _hit];
} count _hitpoints;
 
_key = format["CHILD:306:%1:%2:%3:",_objectID,_array,_damage];
//diag_log ("HIVE: WRITE: "+ str(_key));
_key call server_hiveWrite;
_object setVariable ["needUpdate",false,true];
};
 
_object_vehicleKey = {
private ["_hit","_selection","_fuel","_gotcha","_retry","_vehicleID","_key","_result","_outcome","_player","_class","_newKey","_newKeyName","_oldVehicleID","_oldVehicleUID","_hitpoints","_damage","_array","_inventory","_vehicleUID","_position","_dir","_worldspace"];
 
/* Setting up variables */
_player = _this select 0;
_class = _this select 1;
_newKey = _this select 2;
_newKeyName = _this select 3;
_oldVehicleID = _this select 4;
_oldVehicleUID = _this select 5;
 
/* Get Damage of the Vehicle */
_hitpoints = _object call vehicle_getHitpoints;
_damage = damage _object;
_array = [];
{
_hit = [_object,_x] call object_getHit;
_selection = getText (configFile >> "CfgVehicles" >> (typeOf _object) >> "HitPoints" >> _x >> "name");
if (_hit > 0) then {_array set [count _array,[_selection,_hit]]};
_object setHit ["_selection", _hit];
} forEach _hitpoints;
 
/* Get the Fuel of the Vehicle */
_fuel = 0;
if (_object isKindOf "AllVehicles") then {
_fuel = fuel _object;
};
 
/* Get the Inventory of the Vehicle */
_inventory = [
getWeaponCargo _object,
getMagazineCargo _object,
getBackpackCargo _object
 
];
 
/* Get the position of the Vehicle */
_position = getPosASL _object;
if !(surfaceIsWater _position) then {
_position =  ASLToATL _position;
};
_dir = getDir _object;
_worldspace = [_dir,_position];
 
/* Delete the current Database entry */
[_oldVehicleID,_oldVehicleUID,_player] call server_deleteObj;
sleep 1;
 
/* Generate a new UID */
_vehicleUID = _worldspace call dayz_objectUID3;
 
/* Write the new Database entry and LOG the action*/
_key = format["CHILD:308:%1:%2:%3:%4:%5:%6:%7:%8:%9:",dayZ_instance, _class, _damage , _newKey, _worldspace, _inventory, _array, _fuel,_vehicleUID];
_key call server_hiveWrite;
diag_log ("HIVE: WRITE: VEHICLE KEY CHANGER: "+ str(_key)); 
diag_log format["HIVE: WRITE: VEHICLE KEY CHANGER: Vehicle:%1 NewKey:%2 BY %3(%4)", _object, _newKeyName, (name _player), (getPlayerUID _player)];
 
/* Get the ObjectID of the entry in the Database */
_retry = 0;
_gotcha = false;
while {!_gotcha && _retry < 10} do {
sleep 1;
 
/* Send the request */
_key = format["CHILD:388:%1:",_vehicleUID];
diag_log ("HIVE: READ: VEHICLE KEY CHANGER: "+ str(_key));
_result = _key call server_hiveReadWrite;
_outcome = _result select 0;
 
/* We got a answer */
if (_outcome == "PASS") then {
_vehicleID = _result select 1;
 
/* Compare with old ObjectID to check if it not was deleted yet */
if (_oldVehicleID == _vehicleID) then {
/* Not good lets give it another try */
_gotcha = false;
_retry = _retry + 1;
} else {
/* GOTCHA! */
diag_log("CUSTOM: VEHICLE KEY CHANGER: Selected " + str(_vehicleID));
_gotcha = true;
_retry = 11;
 
_object setVariable ["VKC_disabled", 1,true];
_object setVariable ["VKC_claiming_disabled", 1,true];
 
[_object] spawn {
private ["_veh"];
_veh = _this select 0;
 
sleep 30;
_veh setVariable ["VKC_disabled", 0,true];
_veh setVariable ["VKC_claiming_disabled", 0,true];
};
 
PVDZE_vkc_Success = true;
(owner _player) publicVariableClient "PVDZE_vkc_Success";
 
/* Lock the Vehicle */
_object setVehicleLock "locked";
 
/* Save the ObjectID and ObjectUID to the vehicles variable and make it public */
_object setVariable ["ObjectID", _vehicleID, true];
_object setVariable ["ObjectUID", _vehicleUID, true];
 
/* Set the lastUpdate time to current */
_object setVariable ["lastUpdate",time,true];
 
/* Set the CharacterID to the new Key so we can access it! */
_object setVariable ["CharacterID", _newKey, true];
 
/* Some other variables you might need for disallow lift/tow/cargo locked Vehicles and such */
/* Uncomment if you use this */
 
/* R3F Arty and LOG block lift/tow/cargo locked vehicles*/
_object setVariable ["R3F_LOG_disabled",true,true];
 
/* =BTC= Logistic block lift locked vehicles*/
_object setVariable ["BTC_Cannot_Lift",true,true];
};
} else {
/* Something went wrong on the request give it another try */
diag_log("CUSTOM: VEHICLE KEY CHANGER: trying again to get id for: " + str(_vehicleUID));
_gotcha = false;
_retry = _retry + 1;
};
};
};
// TODO ----------------------
 
_object setVariable ["lastUpdate",time,true];
switch (_type) do {
case "all": {
call _object_position;
call _object_inventory;
call _object_damage;
};
case "position": {
if (!(_object in needUpdate_objects)) then {
//diag_log format["DEBUG Position: Added to NeedUpdate=%1",_object];
needUpdate_objects set [count needUpdate_objects, _object];
};
};
case "gear": {
call _object_inventory;
};
case "damage": {
if ( (time - _lastUpdate) > 5) then {
call _object_damage;
} else {
if (!(_object in needUpdate_objects)) then {
//diag_log format["DEBUG Damage: Added to NeedUpdate=%1",_object];
needUpdate_objects set [count needUpdate_objects, _object];
};
};
};
case "killed": {
call _object_killed;
};
case "repair": {
call _object_damage;
};
    case "vehiclekey": {
_activatingPlayer = _this select 2;
_vehicleClassname = _this select 3;
_toKey = _this select 4;
_toKeyName = _this select 5;
_vehicle_ID = _this select 6;
_vehicle_UID = _this select 7;
[_activatingPlayer, _vehicleClassname, _toKey, _toKeyName, _vehicle_ID, _vehicle_UID] call _object_vehicleKey;;
};
};
 

!

 

BTW ZUPA, Thank you for the script and sorry for being such a pain in the, ask me where. lol

I added in your "STEP B" solution, and yes that did solve my issue for coins saving to the storage items, but now when it comes to depositing or withdrawing coins from storage items, it doesn't update the players cash properly. For example, I deposited 100 coins into the safe, and it took 128 coins from my players cash. And then when I log out, I have the same amount of money i had before, so it's pretty much just "duping" the money right now.

 

I need some help please...

 

 

EDIT: After a second restart went by, it seemed to have corrected itself and now seems to be taking the correct amount of coin. Just waiting on one more restart to finish the testing. Will update once done.

Edited by JohnnyBravo666
Link to comment
Share on other sites

I cant figure this out can anybody please help?

Ive searched and none of the things i've found have fixed this.

 

 

 

Im getting a problem where vehicles that are bought at traders and spawned by the database revert to the original spawn location after server restart.

Iv'e heard that this is most likely a error in server_monitor.sqf but I dont want to replace my server_monitor.sqf to vanilla to test because i have many custom mods that rely on it but i posted my server_monitor.sqf below.

I believe this has something to do with zupa single currency 3.0 but im up to try anything that might fix this.

 

Code Snippet Of Spammed Error : http://pastebin.com/wVyEr9VN

My server_monitor.sqf http://pastebin.com/c9zhysnq

 

 

Heres a list of the following mods I have installed that need edits to the server_monitor and the links to the addons:

JAEM Evac Choppers V1.4 : 

DZMS 1.1FIN : 

DZAI VERSION "2.0.0 (Final + Epoch 1.0.4.2a temp hotfix)" Found on opendayz.net

Paint Vehicles : 

Zupa Single Currency 3.0 Stoarge : 

Custom Build Vectors Legacy Installation Version 3 (Without P4L and fast build) : 

Door Management 3.0 Non P4L (Fix For Plot Management Variant) : 

Plot Management 2.1 Object Counter Maintain Version (Non Single Currency Variant) : 

 

 

 

 

Any Help Is Appreciated,

Thanks

Still having this problem after sniffing through server_updateobject and server_monitor and fixing a few things that looked liked formatting errors, I did confirm its something to do with single currency as i reverted to before I installed single currency and everything ran smooth as silk and yes ive already tried reinstalling it to my stable pbo before single currency and i still get the same problem and my rpt isn't telling me much.

 

The first time a object enters the database (bought at trader/built) it saves then but after that the object isn't getting updated or sending out the updated hive information about it from the arma server (at least from what i see by using navicat and the server console).

 

I can use infistar admin tools and teleport the object (most of the time vehicle) to a location and then it will update the position i teleported to in the database but not the inventory,worldspace,fuel and hit points,I can also manually save its stuff by using infistars admin tools insert to database function but then it always spawns there every restart until its deleted using navicat or infistar in game.

 

Its weird because anything thats stored into the object_data database table is not updated after the first spawn i've tested safes,lockboxes and of course vehicles, but characters/players are fine and they update regularly.

 

If somebody could please look through my server files that could have the error in it I would be forever grateful. 

 

Updated Files:

server_monitor.sqf: http://pastebin.com/pKGRMbFW
server_functions.sqf: http://pastebin.com/w7Z7wN3E
server_updateObject.sqf: http://pastebin.com/UCLtVPMV 
arma2oaserver_rpt.rpt: http://pastebin.com/2QQXsCRP

This is starting to drive me nuts.

I would really appreciate it if someone could help me with this,

Thanks

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...