Jump to content

Recommended Posts

Actually I've just noticed the original install topic has a fix for it. If you haven't already tried it :

 

In your server PBO open compiles/server_playerSync.sqf

 

Replace this:

_headShots =     ["headShots",_character] call server_getDiff;

With this:

_headShots =     0;

I've no idea if it works so you're going to have to test it out for yourself.

Share this post


Link to post
Share on other sites

Actually I've just noticed the original install topic has a fix for it. If you haven't already tried it :

 

In your server PBO open compiles/server_playerSync.sqf

 

Replace this:

_headShots =     ["headShots",_character] call server_getDiff;

With this:

_headShots =     0;

I've no idea if it works so you're going to have to test it out for yourself.

Yeah I saw this a long time ago and did it but I thought it had something to do with the headshots and how it used those for the coins way back then so I didn't bother to do it again in the new updates. 

 

EDIT:

When I went to look into that file I came to notice...

		//Record stats while we're here		
		/*
			Check previous stats against what client had when they logged in
			this helps prevent JIP issues, where a new player wouldn't have received
			the old players updates. Only valid for stats where clients could have
			be recording  results from their local objects (such as agent zombies)
		*/
		_kills = 		["zombieKills",_character] call server_getDiff;
		_killsB = 		["banditKills",_character] call server_getDiff;
		_killsH = 		["humanKills",_character] call server_getDiff;
		_headShots = 	["headShots",_character] call server_getDiff;
		_humanity = 	["humanity",_character] call server_getDiff2;
		//_humanity = 	_character getVariable ["humanity",0];
		//Soul start: SC Edit >>> collecting players cashmoney
		_cashMoney = 	["cashMoney",_character] call server_getDiff2;
		//Soul end: SC Edit
		_character addScore _kills;		
		/*
			Assess how much time has passed, for recording total time on server
		*/
		_lastTime = 	_character getVariable["lastTime",time];
		_timeGross = 	(time - _lastTime);
		_timeSince = 	floor(_timeGross / 60);
		_timeLeft =		(_timeGross - (_timeSince * 60)); 

that here you can clearly see that the humanity has been messed with the way it loads. My question is why can't _character getVariable ["humanity",0]; just be used and also what is this server_getDiff2 that is also being used to load the characters coins. 

so question is where is server_getDiff2 located. 

 

I would try testing the old way that humanity was loading but I don't have the time atm....maybe if you wanna see what it does. 

 

Lastly in regards to some peoples banks wiping on some restarts, I don't think that it has to do with the way it's loading, but they way that the coins are being deposited. I also haven't looked into this that much but when I figure it out i'll see if I can make some working changes. 

Share this post


Link to post
Share on other sites

server_getDiff2 is located in the server_functions.sqf and it calculates the difference between the current and last known value for that variable.

cause when saving to database it sends the diference value and the hive then instructs a basic math operation in a sql query...

_humanity = 	["humanity",_character] call server_getDiff2;
//_humanity = 	_character getVariable ["humanity",0];

this code is 100% vanilla and the same as inthe files that came with this mod addon.

You would know that if you had taken the time to check out a fresh download of epoch.

Share this post


Link to post
Share on other sites

I'm attempting to use the CHILD:999 and CHILD:998 calls for a custom table, but it crashes the server as well with the following error:

Exception code: C0000005 ACCESS_VIOLATION at 72D7D2EB
Allocator: C:\Program Files (x86)\Steam\SteamApps\common\DayZ_Server\dll\tbb4malloc_bi.dll
graphics:  No
resolution:  160x120x32

This is using a number of key formats:

format["CHILD:999:select `evacUID`, `objectUID`, `pilotLocation`, `homeLocation`, `homeDir` from `epoch.evac_choppers` where `playerUID` = ?:[""%1""]:",_playerUID];

format["CHILD:999:select `evacUID`, `objectUID`, `pilotLocation`, `homeLocation`, `homeDir` from `epoch.evac_choppers` where `playerUID` = ?:[%1]:",_playerUID];

format["CHILD:999:select `evacUID`, `objectUID`, `pilotLocation`, `homeLocation`, `homeDir` from `epoch.evac_choppers` where `playerUID` = ?:%1:",_playerUID];

format["CHILD:999:select `evacUID`, `objectUID`, `pilotLocation`, `homeLocation`, `homeDir` from `epoch.evac_choppers` where `playerUID` = ""%1"":",_playerUID];

format["CHILD:999:select `evacUID`, `objectUID`, `pilotLocation`, `homeLocation`, `homeDir` from `epoch.evac_choppers` where `playerUID` = %1:",_playerUID];

I'll either get a server crash, or the call will error.  Any advice?

Share this post


Link to post
Share on other sites

I'm attempting to use the CHILD:999 and CHILD:998 calls for a custom table, but it crashes the server as well with the following error:

Exception code: C0000005 ACCESS_VIOLATION at 72D7D2EB
Allocator: C:\Program Files (x86)\Steam\SteamApps\common\DayZ_Server\dll\tbb4malloc_bi.dll
graphics:  No
resolution:  160x120x32

This is using a number of key formats:

format["CHILD:999:select `evacUID`, `objectUID`, `pilotLocation`, `homeLocation`, `homeDir` from `epoch.evac_choppers` where `playerUID` = ?:[""%1""]:",_playerUID];

format["CHILD:999:select `evacUID`, `objectUID`, `pilotLocation`, `homeLocation`, `homeDir` from `epoch.evac_choppers` where `playerUID` = ?:[%1]:",_playerUID];

format["CHILD:999:select `evacUID`, `objectUID`, `pilotLocation`, `homeLocation`, `homeDir` from `epoch.evac_choppers` where `playerUID` = ?:%1:",_playerUID];

format["CHILD:999:select `evacUID`, `objectUID`, `pilotLocation`, `homeLocation`, `homeDir` from `epoch.evac_choppers` where `playerUID` = ""%1"":",_playerUID];

format["CHILD:999:select `evacUID`, `objectUID`, `pilotLocation`, `homeLocation`, `homeDir` from `epoch.evac_choppers` where `playerUID` = %1:",_playerUID];

I'll either get a server crash, or the call will error.  Any advice?

 

thats cause their all faulty.

 

try this:

format["CHILD:999:SELECT `evacUID`, `objectUID`, `pilotLocation`, `homeLocation`, `homeDir` FROM `evac_choppers` WHERE `playerUID` = '?' :[%1]:", str(_playerUID)];

Share this post


Link to post
Share on other sites

Thanks for your help Soul, but that still crashes the server.

 

I commented out the playeruid, so just think of the xxx's as the player uid number.  It's just debug information I print to the arma.rpt file.

20:39:41 "CHILD:999:SELECT `evacUID`, `objectUID`, `pilotLocation`, `homeLocation`, `homeDir` FROM `evac_choppers` WHERE `playerUID` = '?' :["xxxxxxxxxxxxx"]:"
=======================================================
-------------------------------------------------------
Exception code: C0000005 ACCESS_VIOLATION at 72B2D2EB
Allocator: C:\Program Files (x86)\Steam\SteamApps\common\DayZ_Server\dll\tbb4malloc_bi.dll
graphics:  No
resolution:  160x120x32

Share this post


Link to post
Share on other sites

Hi. I have troubles with installing.. Pls help me!

On clean Epoch 1.0.5.1 i installed Zupas 1.1, paste 2.0 over 1.1, added in BE !="PVDZE_bank_Save". 
So problems:
* Almost all traders dont have Trader Menu, instead of appeared Give money to *Trader* 
- I think just need to change skins to traders

*Cashmoney and BankSaldo didnt saves. 
-Dlls? On server are root dll's from 1.1. and Hive from 2.0. Sqls was executed.

*Debug monitor doesnt apperars, only of Infistar. 
-Descriptoin ext? 

Share this post


Link to post
Share on other sites

Hi. I have troubles with installing.. Pls help me!

On clean Epoch 1.0.5.1 i installed Zupas 1.1, paste 2.0 over 1.1, added in BE !="PVDZE_bank_Save". 

So problems:

* Almost all traders dont have Trader Menu, instead of appeared Give money to *Trader* 

- I think just need to change skins to traders

*Cashmoney and BankSaldo didnt saves. 

-Dlls? On server are root dll's from 1.1. and Hive from 2.0. Sqls was executed.

*Debug monitor doesnt apperars, only of Infistar. 

-Descriptoin ext? 

 

If you doing fresh install and Cherno 11 traders use this : 

Share this post


Link to post
Share on other sites

Haha nice to know someone uses it :) , Give me some feedback on the forum post

  :) 

Found 1 problem. Again with traders.  Almost all traders dont have Trader Menu, instead of appeared Give money to *Trader* 

+ 1 question, how to change HUD, so that will looks like

Infistar  + coins and bank below

or

Infistar ( where included strings with coins and bank )

Tell me pls :3

EDIT: What makes Admintable from topic of 2.0 SC ??

Share this post


Link to post
Share on other sites
_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;
	} else {
		_bankMoney = 0;
	};
} else {
	_bankMoney = 0;
};

Share this post


Link to post
Share on other sites

Yeah 999/998 are not properly working which is mainly why i ended up building our own Hiveext.dll. Which is sadly not really usable for others since i redid the single currency mod (leech the files from our server to see what i've done) which includes a number of changes but most importantly has no banking (replaced by the ability to store coins in safes/lockboxes). Other then that it has been changed to support AxeCop Multichar, so it will only work for servers with that installed.

 

But the good thing is i made the Hiveext files public and anyone can download/change and recompile them to suit their needs.

Share this post


Link to post
Share on other sites

Yeah 999/998 are not properly working which is mainly why i ended up building our own Hiveext.dll. Which is sadly not really usable for others since i redid the single currency mod (leech the files from our server to see what i've done) which includes a number of changes but most importantly has no banking (replaced by the ability to store coins in safes/lockboxes). Other then that it has been changed to support AxeCop Multichar, so it will only work for servers with that installed.

 

But the good thing is i made the Hiveext files public and anyone can download/change and recompile them to suit their needs.

 

you can make a Hiveext.dll but without AceCop Multichat? 

Share this post


Link to post
Share on other sites

anyfix on players having over 1mil not saving after a restart or relog? have all files dated 8/17 dated for the dlls. thanks for any help

 

edit: when a player logs out with 1 mil on them or above it will always give them a negitive number after the relog or restart 

Share this post


Link to post
Share on other sites

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.

 

EDIT: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.

 

if anybody can help i would appreciate it.

Thanks

Share this post


Link to post
Share on other sites

server_getDiff2 is located in the server_functions.sqf and it calculates the difference between the current and last known value for that variable.

cause when saving to database it sends the diference value and the hive then instructs a basic math operation in a sql query...

_humanity = 	["humanity",_character] call server_getDiff2;
//_humanity = 	_character getVariable ["humanity",0];

this code is 100% vanilla and the same as inthe files that came with this mod addon.

You would know that if you had taken the time to check out a fresh download of epoch.

well sorry, I had said a bit ago that I have absoloutly no time. but now that you've finally answered have you ever gotten around to fixing the humanity dupe thing? I've used variant 1 and variant 2 and have it with both

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Similar Content

    • By salival
      Virtual Garage is part of Epoch 1.0.7.1 now.
      Hi guys,
      Here's my version of Virtual Garage, it's not far off a full rewrite but includes some of the original code that the original author contributed.
      Fixes a lot of problems and adds a lot of newer features:
      Single UI for storing/retrieving vehicles Dynamic pricing based on vehicle type/classname Dynamic limits based on vehicle type/classname Adds support for removing a helipad nearby Able to see storage in stored vehicles RPT logging for storing/retrieving vehicles Fixes dupes for more than 2 people depositing the same vehicle Supports briefcases and coins Localization support (currently german and russian) Please see my github repo for install instructions:
      https://github.com/oiad/virtualGarage
    • By salival
      Vehicle Key Changer is part of Epoch 1.0.7.1 now.
       
      Hi,
      Here's my version of  @OtterNas3 vehicle key changer.  It was subsequently modified by @Grahame for epoch 1.0.6. Updated for 1.0.7.
      This adds support for briefcases, gems and coins as well as using the epoch vehicle upgrade system to do the key changing/claiming.
      * original discussion url: https://epochmod.com/forum/topic/5972-release-vehicle-key-changer-for-making-masterkey-v-14-updated-06152014/
      * updated discussion url: https://epochmod.com/forum/topic/43048-release-vehicle-key-changer-for-making-masterkey-v-141-updated-for-epoch-106/
      Github link with install directions: https://github.com/oiad/vkc
      **EDIT* Link to a working locate Vehicle script that is able to find multiple vehicles per key: 
       
      **** For Epoch 1.0.6.2 only **** >> Download <<
      Visit this link: https://github.com/oiad/vkc/tree/vkc-Epoch-1.0.6.2
    • By salival
      Vehicle Service Point is part of Epoch 1.0.7.1 now.
       
      Hi,
      With Axe Cops permission I am releasing my updated version of his amazing Service Points script. 
      This includes support for original briefcases, gems (from epoch 1.0.7) and coins.
          (original github url: https://github.com/vos/dayz/tree/master/service_point)
          (original install/discussion url: https://epochmod.com/forum/topic/3935-release-vehicle-service-point-refuel-repair-rearm-script/)
          
      **** *REQUIRES DAYZ EPOCH 1.0.7* ****
          
      Major Changes:
          This version adds support for both single currency and gems (from the epoch 1.0.6 update) as well as the original epoch briefcase currency system. 
          Instead of pricing things like the original way, prices are now done on a "worth" similar to how coins are done. The price value of items are below.
          If you are using coins, I would recommend using the _currencyModifier variable since coins typically are 10x the value of briefcase based currency (1 brief == 100,000 coins)
          (You can either set this _currencyModifier variable to 1 then set the proper value or use the modifier, the modifier is mainly for dual currency servers)
          1 silver = 1 worth
          1 10oz silver = 10 worth
          1 gold = 100 worth
          1 10oz gold = 1,000 worth
          1 briefcase = 10,000 worth
          Please see dayz_code\configVariables.sqf for the value of gems (DZE_GemWorthArray) and their relevant worth if they are enabled.
          Example config settings for _refuel_costs, _repair_costs and _rearm_costs:
          All 3 sections can either be made free, disabled or a specifc price with the following examples:
          ["Air","free"] will make the vehicle config class of "Air" free for the specific action.
          ["Air","disabled"] will make the vehicle config class of "Air" disabled for the specific action.
          ["Air",2000] will make the vehicle config class of "Air" have a worth of 2000 for the specific action.
          ["Armored_SUV_PMC",2000] will make the specific vehicle have a worth of 2000 for the specific action.
          ["Armored_SUV_PMC","free"] will make the specific vehicle be free for the specific action.
          ["Armored_SUV_PMC","disabled"] will make the specific vehicle be disabled for the specific action.
          Valid vehicle config classes as an example: "Air", "AllVehicles", "All", "APC", "Bicycle", "Car", "Helicopter", "Land", "Motorcycle", "Plane", "Ship", "Tank"
      Visit my Github page to download and read the README.MD : https://github.com/oiad/service_points
      Old Epoch 1.0.6.2 Version can be found here: https://github.com/oiad/service_points/archive/refs/tags/Epoch_1.0.6.2.zip
    • By Arturius1967
      Hey guys,
      I never liked, the unfinished west end of the coast road on the Tschernarus map.
      Now I spent some time to make it look better with a mod script , which I basically created in the 3D editor.
      Still have some things to fix, but than i could uplod it, if anyone is interested.
      BEFORE:
      AFTER:
       
    • By FG_Trap
      Made this in my free time awhile ago thought id make it public.
      Right Alt is the key to open the menu.
      Install instructions are inside the download.
      https://github.com/NWDZ-Trapxxgods/traps-menu
       
       
      here is a picture of the server menu
       
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...