Jump to content
  • 0

In my quest for an error free server ....


ElDubya

Question

.... I was going well until I struck this : 

Error in expression <tNumber(configFile >> "CfgMagazines" >> _loot >> "count");
if(_loot_count>1) the>
  Error position: <_loot >> "count");
if(_loot_count>1) the>
  Error Undefined variable in expression: _loot
File z\addons\dayz_code\compile\zombie_generate.sqf, line 100
Error in expression <CLChances select _index;
_loot = _array select (_weights select (floor(random (c>
  Error position: <select (_weights select (floor(random (c>
  Error Zero divisor
File z\addons\dayz_code\compile\zombie_generate.sqf, line 98
Error in expression <tNumber(configFile >> "CfgMagazines" >> _loot >> "count");
if(_loot_count>1) the>
  Error position: <_loot >> "count");
if(_loot_count>1) the>
  Error Undefined variable in expression: _loot
File z\addons\dayz_code\compile\zombie_generate.sqf, line 100
Error in expression <CLChances select _index;
_loot = _array select (_weights select (floor(random (c>
  Error position: <select (_weights select (floor(random (c>
  Error Zero divisor
File z\addons\dayz_code\compile\zombie_generate.sqf, line 98

Now, I started with a clean Epoch server install then performed these steps, testing and backing up after each one : 

 

Switched it to Overpoch.

Installed iSAH.

Installed Plot For Life / Snap Build Pro.

Installed Vector Build.

Installed Precise Base Building.

Installed Group Management.

Installed JAEC.

 

I haven't ever touched zombie_generate.sqf. Could it be caused by putting "No Zombie Agro" and "Zombie Shield" on in my admin tools? I had to change a bit of code in iSAH for Group Management but it was only the AdminESP section, nothing to do with zombies as far as I know?

 

Any ideas guys, please?

 

 

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

You are using mission loot tables right? Cause i believe that error is caused by when you have mission loot true it searches for the Cfgloot in the wrong place.

 

To fix the problem create a custom zombie_generate.sqf and call it in your compiles.sqf. (place in mission .pbo)

Paste this 'fixed' version of the zombie_generate.sqf into the file, or manually make the changes if you have an existing one: https://github.com/deadeye2/DayZ-Epoch/commit/7345f46fed15c58480e9a6d2af2e21144e91d2ab

 

Hopefully it will fix your problem, or the epoch devs will fix theirs  :lol:

Link to comment
Share on other sites

  • 0

ah thanks for pointing that out , yes i do have config loot =P, made the adjustments 

 

 

 

Me too. I decided to appease my OCD tendencies and create a totally error free server, and now I am baulked by Epoch code itself! Noooooo 

 

 

just did this my self aswell set up whole new set of files to get most of the errors out =P , this one and the back pack one were still showing up

 

if any one has a fix for the back packs that would be cool, 

 

bug is posted here a few times on the forums , pretty much has to do with picking up back packs from ai and when buying and spawing in with ESS (Dont think its limited to ESS but i use it for all my servers)

Link to comment
Share on other sites

  • 0

That fixed it, cheers Markokil321.

 

TNT, the file you need is this one : 

private ["_holder","_type","_classname","_name","_actionSet"];
_holder = _this select 0;
_type = _this select 1;
_classname = _this select 2;

// Exit if player zombie
if(player isKindOf "PZombie_VB") exitWith {};

if (!isNull _holder) then {
	_name = getText(configFile >> _type >> _classname >> "displayName");
	_actionSet = _holder getVariable["actionSet", false];

	if (!_actionSet) then {
		s_player_holderPickup = _holder addAction [format[(localize "STR_DAYZ_CODE_1"),_name], "\z\addons\dayz_code\actions\object_pickup.sqf",[_type,_classname,_holder], 20, true, true];
		player reveal _holder;
		_holder setVariable["actionSet", true];
	};
};

That was one of the first errors I fixed :)

Link to comment
Share on other sites

  • 0

That fixed it, cheers Markokil321.

 

TNT, the file you need is this one : 

private ["_holder","_type","_classname","_name","_actionSet"];
_holder = _this select 0;
_type = _this select 1;
_classname = _this select 2;

// Exit if player zombie
if(player isKindOf "PZombie_VB") exitWith {};

if (!isNull _holder) then {
	_name = getText(configFile >> _type >> _classname >> "displayName");
	_actionSet = _holder getVariable["actionSet", false];

	if (!_actionSet) then {
		s_player_holderPickup = _holder addAction [format[(localize "STR_DAYZ_CODE_1"),_name], "\z\addons\dayz_code\actions\object_pickup.sqf",[_type,_classname,_holder], 20, true, true];
		player reveal _holder;
		_holder setVariable["actionSet", true];
	};
};

That was one of the first errors I fixed :)

 

 

Are you talking about this error?

20:37:00 Error in expression < getVariable["actionSet", false];

if (!_actionSet) then {
s_player_holderPickup>
20:37:00   Error position: <_actionSet) then {
s_player_holderPickup>
20:37:00   Error Undefined variable in expression: _actionset
20:37:00 File z\addons\dayz_code\init\object_BackpackAction.sqf, line 13

If so, how would i be able to implement this fix? Just moving the file mission sided and calling it in compiles.sqf wouldn't work as far as i'm aware cause the file is called in CfgVehicles\Bags.hpp, or have i missed something? 

Also quick question is there something specific that was broken by this error or is it just an aesthetic thing?

 

Thanks :)

Link to comment
Share on other sites

  • 0

I just changed mine in dayz_code > init and left the call as standard. Fixed the error for me.

 

Did you do this in your client files or the files in your server directory? or both?

Sorry haven't quite understood how this would work, cause wouldn't then everyone have to make that change in order to fully fix the problem?

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
  • Advertisement
  • Discord

×
×
  • Create New...