Jump to content

Recommended Posts

Hi I can get the coin system its self working traders etc display coins to buy/sell etc but whenever I use a SC variant of a hiveext.dll from here I get a error saying "This server is running the incorrect version of the server side application, if you are staff of this server please contact epoch dev team" that appears when im trying to load in and get kicked back to the lobby I see a part of my loading screen (timer is missing) then it goes to lobby saying that.

But just by changing the hiveext.dll to the vanilla epoch i can load in fine but obviously no banking data saves to the mysql database.

 

With souls dll the server console wont show it starting to retrieve information for the mysql database (the info in green text). And nothing is showing up in the rpt or hiveext logs.

My RPT: pastebin.com/BQQu8XPc

 

 

if anybody can help i would appreciate it.

Thanks

Link to comment
Share on other sites

Issue where when players buy something for over a million and the relog shortly or straight afterwards there miney is then 0 or a minus amount some players reported that it can revert back the money you had before you purchased also.

 

Any fix?

 

 

Seriously noone gets an issue of money value changing after buying something and relogging or even just logging off

 

Any help at all?

Link to comment
Share on other sites

Issue where when players buy something for over a million and the relog shortly or straight afterwards there miney is then 0 or a minus amount some players reported that it can revert back the money you had before you purchased also.

 

Any fix?

 

 

Another bump as still haven't found a solution for this, it seems to it just isn't saving quickly enough?

Link to comment
Share on other sites

Another bump as still haven't found a solution for this, it seems to it just isn't saving quickly enough?

 

Simple solution.

Open every trader .hpp in notepad.

Mass replace

0,"Coins"

with

,"Coins"

 

It will drop your trader prices by 1 zero which should stop items being over 1 million coins, thus not having to encounter this error.

 

(Only problem people will be rich so you'll need to run a sql event for banking_data)

Link to comment
Share on other sites

Okay guys just finished doing the install of Soul 2.0 again and I sitll keep getting this same error, was getting it with the previous overpoch origins so I wiped the server and started fresh and yep still getting it.

 

And I will just post anywhere I may get help as nobody seems to know how to fix this let alone show some insight into why that line is causing issues.

 

Here is my .RPT

 

10:52:31 "Total Number of spawn locations 10"


10:53:40 "infiSTAR.de PlayerConnected: ["76561197994550682","SgtSparraGump"]"
10:53:40 "infiSTAR.de PlayerConnected: ["","__SERVER__"]"
10:53:42 "HOUSE SERVER: Owners Are: B1 [] B2 [] B3 [] H1 [] H2 [] H3 [] SG [] LG [] KING [] SH []"
10:53:42 "EPOCH EVENTS INIT"
10:54:13 "DEBUG VEIN: Too many objects at [12165.6,11040.2]"
10:54:13 "DEBUG VEIN: on road [12949.8,12780.8]"
10:54:29 "TIME SYNC: Local Time set to [2013,8,3,10,54]"
10:54:29 Error in expression < = _primary select 1;
_stats = _primary select 2;
_state = _primary select 3;
_w>
10:54:29 Error position: _state = _primary select 3;_w>10:54:29 Error Zero divisor10:54:29 File z\addons\dayz_server\compile\server_playerSetup.sqf, line 5710:54:30 "DEBUG VEIN: Too many objects at [12175.2,11028.7]"10:54:33 "DEBUG VEIN: Too many objects at [11923.1,13679]"10:55:14 "infiSTAR.de PlayerDisconnected: _uid: 76561197994550682 _name: SgtSparraGump"10:55:14 "get: STRING (76561197994550682), sent: STRING (76561197994550682)"10:55:14 "DISCONNECT: SgtSparraGump (76561197994550682) Object: B 1-1-B:1 (SgtSparraGump) REMOTE, _characterID: 44 at loc [126.219,157.456,46.1726]"10:55:14 "ERROR: server_playerSync: Cannot Sync Player SgtSparraGump [44]. Position in debug! [126.219,157.456,46.1726]"10:55:14 Client: Remote object 3:5 not found

 

Here is my server_playerSetup.sqf

 

private ["_characterID","_playerObj","_playerID","_dummy","_worldspace","_state","_doLoop","_key","_primary","_medical","_stats","_humanity","_lastinstance","_friendlies","_randomSpot","_position","_debug","_distance","_hit","_fractures","_score","_findSpot","_pos","_isIsland","_w","_clientID","_spawnMC","_namespace"];



//diag_log ("SETUP: attempted with " + str(_this));

_characterID = _this select 0;
_playerObj = _this select 1;
_playerID = getPlayerUID _playerObj;
_playerName = name _playerObj;

if (isNull _playerObj) exitWith {
diag_log ("SETUP INIT FAILED: Exiting, player object null: " + str(_playerObj));
};

//Add MPHit event handler
// diag_log("Adding MPHit EH for " + str(_playerObj));
_playerObj addMPEventHandler ["MPHit", {_this spawn fnc_plyrHit;}];

if (_playerID == "") then {
_playerID = getPlayerUID _playerObj;
};

if (_playerID == "") exitWith {
diag_log ("SETUP INIT FAILED: Exiting, no player ID: " + str(_playerObj));
};

private["_dummy"];
_dummy = getPlayerUID _playerObj;
if ( _playerID != _dummy ) then {
diag_log format["DEBUG: _playerID miscompare with UID! _playerID:%1",_playerID];
_playerID = _dummy;
};

_worldspace = [];
_state = [];
_cashMoney = 0;
_bankMoney = 0;
_doLoop = 0;

//Do Connection Attempt
_doLoop = 0;
while {_doLoop < 5} do {
_key = format["CHILD:102:%1:",_characterID];
_primary = _key call server_hiveReadWrite;
if (count _primary > 0) then {
if ((_primary select 0) != "ERROR") then {
_doLoop = 9;
};
};
_doLoop = _doLoop + 1;
};

if (isNull _playerObj || !isPlayer _playerObj) exitWith {
diag_log ("SETUP RESULT: Exiting, player object null: " + str(_playerObj));
};

_medical = _primary select 1;
_stats = _primary select 2;
_state = _primary select 3;
_worldspace = _primary select 4;
_humanity = _primary select 5;
_lastinstance = _primary select 6;
_cashMoney = _primary select 7;
_randomSpot = false;

if (count _worldspace > 0) then {

_position = _worldspace select 1;
if (count _position < 3) then {
//prevent debug world!
_randomSpot = true;
};
_debug = getMarkerpos "respawn_west";
_distance = _debug distance _position;
if (_distance < 2000) then {
_randomSpot = true;
};

_distance = [0,0,0] distance _position;
if (_distance < 500) then {
_randomSpot = true;
};

// Came from another server force random spawn
if (_lastinstance != dayZ_instance) then {
_randomSpot = true;
};

//_playerObj setPosATL _position;
} else {
_randomSpot = true;
};

//diag_log ("LOGIN: Location: " + str(_worldspace) + " doRnd?: " + str(_randomSpot));

//set medical values
if (count _medical > 0) then {
_playerObj setVariable["USEC_isDead",(_medical select 0),true];
_playerObj setVariable["NORRN_unconscious", (_medical select 1), true];
_playerObj setVariable["USEC_infected",(_medical select 2),true];
_playerObj setVariable["USEC_injured",(_medical select 3),true];
_playerObj setVariable["USEC_inPain",(_medical select 4),true];
_playerObj setVariable["USEC_isCardiac",(_medical select 5),true];
_playerObj setVariable["USEC_lowBlood",(_medical select 6),true];
_playerObj setVariable["USEC_BloodQty",(_medical select 7),true];
_playerObj setVariable["unconsciousTime",(_medical select 10),true];

//Add Wounds
{
_playerObj setVariable[_x,true,true];
//["usecBleed",[_playerObj,_x,_hit]] call broadcastRpcCallAll;
usecBleed = [_playerObj,_x,_hit];
publicVariable "usecBleed";
} count (_medical select 8);

//Add fractures
_fractures = (_medical select 9);
_playerObj setVariable ["hit_legs",(_fractures select 0),true];
_playerObj setVariable ["hit_hands",(_fractures select 1),true];

if (count _medical > 11) then {
//Additional medical stats
_playerObj setVariable ["messing",(_medical select 11),true];
};

} else {
//Reset Fractures
_playerObj setVariable ["hit_legs",0,true];
_playerObj setVariable ["hit_hands",0,true];
_playerObj setVariable ["USEC_injured",false,true];
_playerObj setVariable ["USEC_inPain",false,true];
_playerObj setVariable ["messing",[0,0],true];
};

if (count _stats > 0) then {
//register stats
_playerObj setVariable["zombieKills",(_stats select 0),true];
_playerObj setVariable["headShots",(_stats select 1),true];
_playerObj setVariable["humanKills",(_stats select 2),true];
_playerObj setVariable["banditKills",(_stats select 3),true];
_playerObj addScore (_stats select 1);
_playerObj setVariable ["moneychanged",0,true];
_playerObj setVariable ["bankchanged",0,true];
_playerObj setVariable["AsReMixhud", true,true];
_score = score _playerObj;
_playerObj addScore ((_stats select 0) - _score);

//record for Server JIP checks
_playerObj setVariable["zombieKills_CHK",(_stats select 0)];
_playerObj setVariable["headShots_CHK",(_stats select 1)];
_playerObj setVariable["humanKills_CHK",(_stats select 2)];
_playerObj setVariable["banditKills_CHK",(_stats select 3)];
if (count _stats > 4) then {
if (!(_stats select 3)) then {
_playerObj setVariable["selectSex",true,true];
};
} else {
_playerObj setVariable["selectSex",true,true];
};
} else {
//Save initial loadout
//register stats
_playerObj setVariable["zombieKills",0,true];
_playerObj setVariable["humanKills",0,true];
_playerObj setVariable["banditKills",0,true];
_playerObj setVariable["headShots",0,true];
_playerObj setVariable ["friendlies",[],true];
_playerObj setVariable["AsReMixhud", true,true];
_playerObj setVariable["zombieKills_CHK",0,true];
_playerObj setVariable["humanKills_CHK",0,true];
_playerObj setVariable["banditKills_CHK",0,true];
_playerObj setVariable["headShots_CHK",0,true];
};

if (_randomSpot) then {
private["_counter","_position","_isNear","_isZero","_mkr"];
if (!isDedicated) then {
endLoadingScreen;
};

//Spawn modify via mission init.sqf
if(isnil "spawnArea") then {
spawnArea = 1500;
};
if(isnil "spawnShoremode") then {
spawnShoremode = 1;
};

//
_spawnMC = actualSpawnMarkerCount;

//spawn into random
_findSpot = true;
_mkr = "";
while {_findSpot} do {
_counter = 0;
while {_counter < 20 && _findSpot} do {
// switched to floor
_mkr = "spawn" + str(floor(random _spawnMC));
_position = ([(getMarkerPos _mkr),0,spawnArea,10,0,2000,spawnShoremode] call BIS_fnc_findSafePos);
_isNear = count (_position nearEntities ["Man",100]) == 0;
_isZero = ((_position select 0) == 0) && ((_position select 1) == 0);
//Island Check //TeeChange
_pos = _position;
_isIsland = false; //Can be set to true during the Check
for [{_w=0},{_w<=150},{_w=_w+2}] do {
_pos = [(_pos select 0),((_pos select 1) + _w),(_pos select 2)];
if(surfaceisWater _pos) exitWith {
_isIsland = true;
};
};

if ((_isNear && !_isZero) || _isIsland) then {_findSpot = false};
_counter = _counter + 1;
};
};
_isZero = ((_position select 0) == 0) && ((_position select 1) == 0);
_position = [_position select 0,_position select 1,0];
if (!_isZero) then {
//_playerObj setPosATL _position;
_worldspace = [0,_position];
};
};

//Record player for management
dayz_players set [count dayz_players,_playerObj];

//record player pos locally for server checking
_playerObj setVariable["CharacterID",_characterID,true];
_playerObj setVariable["humanity",_humanity,true];
_playerObj setVariable["humanity_CHK",_humanity];
//_playerObj setVariable["worldspace",_worldspace,true];
//_playerObj setVariable["state",_state,true];
_playerObj setVariable["lastPos",getPosATL _playerObj];
_playerObj setVariable ["cashMoney",_cashMoney,true];
_playerObj setVariable ["bankMoney",_bankMoney,true];

dayzPlayerLogin2 = [_worldspace,_state,_randomSpot];

// PVDZE_obj_Debris = DZE_LocalRoadBlocks;
_clientID = owner _playerObj;
if (!isNull _playerObj) then {
_clientID publicVariableClient "dayzPlayerLogin2";

if (isNil "PVDZE_plr_SetDate") then {
call server_timeSync;
};
_clientID publicVariableClient "PVDZE_plr_SetDate";
};
//record time started
_playerObj setVariable ["lastTime",time];
_key2 = format["CHILD:298:%1:",_playerID];
_primary2 = _key2 call server_hiveReadWrite;

if(count _primary2 > 0) then {
if((_primary2 select 0) != "ERROR") then {
_bankMoney = _primary2 select 1;
_playerObj setVariable["bankMoney",_bankMoney,true];
_playerObj setVariable["bankMoney_CHK",_bankMoney];
} else {
_playerObj setVariable["bankMoney",0,true];
_playerObj setVariable["bankMoney_CHK",0];
};
} else {
_playerObj setVariable["bankMoney",0,true];
_playerObj setVariable["bankMoney_CHK",0];
};

PVDZE_plr_Login = nil;
PVDZE_plr_Login2 = nil;

Link to comment
Share on other sites

  • 2 weeks later...

Can you please help me its been like 3 days and i cant just get the files for the coin script for my server its the entire mission and server pbo, when i sell stuff no money is given to them, I can just put a number into the bank and i can put in money without having it, and when you log out no money is saved its like its not reaching the database. Im using souls custom pack and vilayer is my host. (vilayer has preset overpoch server files so i put files in floders named these instead of epoch ones, Server:dayz_overpoch Mission:overpoch.chernarus) And i get repeated errors in the rpt like this(its only some of it because i cant figure out how to use spoilers so i dont want to take up the whole page):

# d;

_object&gt;

19:25:11 Error Undefined variable in expression: _vnew

19:25:11 File z\addons\dayz_server\init\server_functions.sqf, line 549

19:25:11 Error in expression &lt;_killsH,_killsB,_currentModel,_humanity,_cashMoney];

_key call server_hiveWrite;&gt;

19:25:11 Error position: &lt;_cashMoney];

_key call server_hiveWrite;&gt;

19:25:11 Error Undefined variable in expression: _cashmoney

19:25:11 File z\addons\dayz_server\compile\server_playerSync.sqf, line 172

19:25:47 Error in expression

19:25:47 Error position: &lt;_vNew];

_result = _vNew - _vOld;

_object&gt;

19:25:47 Error Undefined variable in expression: _vnew

19:25:47 File z\addons\dayz_server\init\server_functions.sqf, line 549

19:25:47 Error in expression &lt;_killsH,_killsB,_currentModel,_humanity,_cashMoney];

_key call server_hiveWrite;&gt;

19:25:47 Error position: &lt;_cashMoney];

_key call server_hiveWrite;&gt;

19:25:47 Error Undefined variable in expression: _cashmoney

19:25:47 File z\addons\dayz_server\compile\server_playerSync.sqf, line 172

19:26:16 Error in expression

19:26:16 Error position: &lt;_vNew];

_result = _vNew - _vOld;

Link to comment
Share on other sites

and when you log out no money is saved its like its not reaching the database

I'm getting this exact issue, also with Vilayer. I've thoroughly checked over the files and I'm fairly confident I don't have any errors there, so I'm going to send Vilayer a ticket and check if there is some underlying problem I've missed.

Also, just type [*spoiler]text[/*spoiler] to do a spoiler (take out * )

Link to comment
Share on other sites

If your code is correct and you have manually changed your hive.dll. you may want to check the the dll is still installed because vilayer rebuilds themission and server pbo to the custom content one. You will have to open a ticket and get them to manually update it so the dll will save on restarts. Which should fix your probelm of money not saving.

Link to comment
Share on other sites

Hey folks,

 

I made a post here: 

 

I installed Zupa's 1.1 and it works perfectly. I installed Soul's 2.0, and the HUD is no longer appearing, and I'm receiving an error about an undefined variable _cashmoney. Trading right now doesn't work at all. The items and currency values appear correctly, but I am unable to buy any item.

 

All help is greatly appreciated.

 

Thanks,

 

Rick

Link to comment
Share on other sites

For anyone who only want to use ONLY the coins icon in the playerhud.sqf

 


disableSerialization;


AsReMixhud_Control = true;


while {true} do
{


1000 cutRsc ["AsReMixhud","PLAIN"];


_wpui = uiNameSpace getVariable "AsReMixhud";
    _vitals = _wpui displayCtrl 4900;
_Player = player;


Money          =  _Player getVariable["cashMoney",0];


_vitals ctrlSetStructuredText parseText format 
["
<t size='0.9'> %1 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Money.paa'/><br/>",
[Money] call BIS_fnc_numberText
];
_vitals ctrlCommit 0;
    sleep 1.5;
};

 

I also adjusted the hud.hpp to lower the icon more to the middle on the right-side:


Change:

y = safezoneY + 0.10 * safezoneW;

To:

y = safezoneY + 0.42 * safezoneW;

 

Ingame pic:

20u6061.jpg

Link to comment
Share on other sites

I use vilayer and i cantected them to put in the dll for me and they told me that they give us access now so i know its not that i did put in the hiveext.dll and the other dlls in the root but i try to start my server and i get this error in my rpt and get stuck on "Waiting for server to start authentication" and sorry i can never remember how to do spoilers  

 

EDIT: I'm also using souls pack.

 

# 3d:geometryView

11:34:58 Strange convex component252 in warehouse\models\warehouse.p3d:geometryView
11:34:58 Strange convex component253 in warehouse\models\warehouse.p3d:geometryView
11:34:58 Strange convex component254 in warehouse\models\warehouse.p3d:geometryView
11:34:58 Strange convex component255 in warehouse\models\warehouse.p3d:geometryView
11:34:58 Strange convex component256 in warehouse\models\warehouse.p3d:geometryView
11:34:58 Strange convex component257 in warehouse\models\warehouse.p3d:geometryView
11:34:58 Strange convex component258 in warehouse\models\warehouse.p3d:geometryView
11:34:58 Strange convex component259 in warehouse\models\warehouse.p3d:geometryView
11:34:58 Strange convex component260 in warehouse\models\warehouse.p3d:geometryView
11:34:58 Strange convex component261 in warehouse\models\warehouse.p3d:geometryView
11:34:58 Strange convex component262 in warehouse\models\warehouse.p3d:geometryView
11:34:58 Strange convex component263 in warehouse\models\warehouse.p3d:geometryView
11:34:58 Strange convex component264 in warehouse\models\warehouse.p3d:geometryView
11:34:58 Strange convex component265 in warehouse\models\warehouse.p3d:geometryView
11:34:58 Strange convex component266 in warehouse\models\warehouse.p3d:geometryView
11:34:58 Strange convex component267 in warehouse\models\warehouse.p3d:geometryView
11:34:58 Strange convex component268 in warehouse\models\warehouse.p3d:geometryView
11:34:58 Strange convex component269 in warehouse\models\warehouse.p3d:geometryView
11:34:58 Strange convex component270 in warehouse\models\warehouse.p3d:geometryView
11:34:58 Strange convex component271 in warehouse\models\warehouse.p3d:geometryView
11:34:58 Strange convex component272 in warehouse\models\warehouse.p3d:geometryView
11:34:58 Strange convex component273 in warehouse\models\warehouse.p3d:geometryView
11:34:58 Strange convex component274 in warehouse\models\warehouse.p3d:geometryView
11:34:58 Strange convex component275 in warehouse\models\warehouse.p3d:geometryView
11:34:58 Strange convex component276 in warehouse\models\warehouse.p3d:geometryView
11:34:58 Strange convex component277 in warehouse\models\warehouse.p3d:geometryView
11:34:58 Strange convex component278 in warehouse\models\warehouse.p3d:geometryView
11:35:03 Warning: looped for animation: ca\anims\characters\data\anim\sdr\mov\erc\wlk\non\non\amovpercmwlksnonwnondf.rtm differs (looped now 1)! MoveName: amovpercmrunsnonwbindf_rfl
11:35:03 "DayZ Epoch: PRELOAD Functions\init [[<No group>:0 (FunctionsManager)],any]"
11:35:03 "DayZ Epoch: MPframework inited"
11:35:04 Warning Message: Script z\addons\dayz_server\init\server_functions.sqf not found
11:35:04 Warning Message: Script z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\dynamic_vehicle.sqf not found
11:35:04 Warning Message: Script z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\mission.sqf not found
11:35:04 "Res3tting B!S effects..."
11:35:04 Warning Message: Script z\addons\dayz_server\system\server_monitor.sqf not found

Link to comment
Share on other sites

 

It is right "z\addons\dayz_server" since i use vilayer i have 2 dayz server files tho 1 for epoch and 1 from overwatch could it be getting confused on which one to go to

 

whats the name and extension of the file.   $PREFIX$ or $PBOPREFIX$ ?

 

can you show the file structure inside your vilayercodecustom\*yourserverfile*\

Link to comment
Share on other sites

Anyone else having problems after changing to a certain skin, you constantly have the "Check Wallet" option on yourself?

Still have this problem, will try to find out on which skins this "bug" comes forth.

I also noticed when i walk up to an AI (godmode obviously :P ) i get the option to give them money :lol:

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...