Jump to content
  • 0

Looking for help clearing up some client side errors


BetterDeadThanZed

Question

I was wondering if you guys wouldn't mind helping me clear up some errors I'm seeing client side that don't seem to affect the server but are annoying for my players to be receiving. The first one is in the weapons attachment mod. Here's the error:

Error in expression <ng!";
};
if (DZE_CLICK_ACTIONS_BUILD != DZE_CRV_DEPLOYABLE) exitWith {
diag_log >
  Error position: <DZE_CRV_DEPLOYABLE) exitWith {
diag_log >
  Error Undefined variable in expression: dze_crv_deployable
File mpmissions\__CUR_MP.Takistan\custom\wmod\addons\wmod\init.sqf, line 12

Here's the entire init.sqf mentioned in the error:

 

private["_version"];
_version = "1.1.0";
diag_log text format["WMOD v%1: loading...",_version];
call compile preprocessFileLineNumbers "custom\wmod\addons\wmod\config.sqf";
call compile preprocessFileLineNumbers "custom\wmod\addons\wmod\lib.sqf";
call compile preprocessFileLineNumbers "custom\wmod\addons\wmod\functions.sqf";
if(isServer) exitWith {};
call compile preprocessFileLineNumbers "custom\wmod\overwrites\click_actions\init.sqf";
if (isNil "DZE_CLICK_ACTIONS_BUILD") exitWith {
    diag_log text "WMOD: ERROR -- Click Actions Handler missing!";
};
if (DZE_CLICK_ACTIONS_BUILD != DZE_CRV_DEPLOYABLE) exitWith {
    diag_log text format["WMOD: ERROR -- Click Actions Handler loaded build #%1! Required build #%2!",DZE_CLICK_ACTIONS_BUILD,DZE_CRV_DEPLOYABLE];
};
 
DZE_WEAPON_MOD_INVENTORY = [];
DZE_WEAPON_MOD_BUSY = false;
DZE_WEAPON_MOD_INVENTORY_SHOW = false;
 
"DZE_WMOD_LOAD_INVENTORY" addPublicVariableEventHandler {
    ((_this select 1) call fnc_wmod_setWeaponModInventory);
};
 
call fnc_wmod_combineWeaponMods;
call fnc_wmod_loadClickActions;
call fnc_wmod_loadPlayerInventory;

Link to comment
Share on other sites

11 answers to this question

Recommended Posts

  • 0

Set it to anything to remove the error "" should do it.

Well not really.. It will expect a Boolean...

So, if you got ClickActions installed (just see, if you got a Folder called ClickActions) you'll want to set that to false;, that means you won't be using it.. Else set it to true.

Link to comment
Share on other sites

  • 0

True != false will give a generic error in expression, at least in A3. Is it a bool the, surely if (var1 && var2) should be used..

 

Is an undefined variable, define it first! 

 

You're right.. Can't check, if true is not false..

Just do, like the master said:

 

DZE_CRV_DEPLOYABLE = "";

In your variables.sqf

 

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