noxsicarius / Epoch-Admin-Tools

An admin menu for the AmrA2 DayZ mod. Lead Developer: NoxSicarius
GNU General Public License v3.0
30 stars 48 forks source link

Error in expression #295

Closed therealsputnik closed 8 years ago

therealsputnik commented 8 years ago

After fresh install of testbranch, server rpt says:

21:02:38 "Admin Tools: variables.sqf loaded" 21:02:38 Error in expression <ntools\variables.sqf" EAT_adminList = EAT_adminList + EAT_superAdminList; EAT> 21:02:38 Error position: <EAT_adminList + EAT_superAdminList; EAT> 21:02:38 Error Undefined variable in expression: eat_adminlist 21:02:38 File mpmissions\DayZ_Epoch_17.Chernarus\admintools\variables.sqf, line 3 21:02:38 "Admin Tools: config.sqf loaded"

Line 1-5 of variables.sqf as follows:

// Do not modify this file unless you know what you are doing

EAT_adminList = EAT_adminList + EAT_superAdminList; // add SuperAdmin to Admin EAT_adminModList = EAT_adminList + EAT_modList; // Add all admin/mod into one list for easy call if ((getPlayerUID player) in EAT_adminModList) then {EAT_isAdmin = true;} else {EAT_isAdmin = false;}; // Discern if player is admin

noxsicarius commented 8 years ago

This could be causing an issue with the bypass too. Does your config have these variables, if not you have an old config: //Replace 111111111 with your ID. EAT_superAdminList = [ "111111111", // "999999999" // ]; EAT_adminList = [ "999999999", // "999999999" // ];

therealsputnik commented 8 years ago

Yep. My config contains this:

//Replace 111111111 with your ID. 
EAT_superAdminList = [
"76561198067303598", // <David>
"999999999" // <player name>
];
EAT_adminList = [
"999999999", // <player name>
"999999999" // <player name>
];
EAT_modList = [
"999999999", // <player name>
"999999999" // <player name>
];
noxsicarius commented 8 years ago

Does config come before variables in the init.sqf? The rpt thing shows that it might not.

therealsputnik commented 8 years ago

Variables first, then config.

noxsicarius commented 8 years ago

Switch them. Config must be first. Config sets your presets, the variables set up everything.

noxsicarius commented 8 years ago

Paste the following

 call compile preprocessFileLineNumbers "admintools\config.sqf"; // Epoch admin Tools config file
 call compile preprocessFileLineNumbers "admintools\variables.sqf"; // Epoch admin Tools variables

Directly under this:

 call compile preprocessFileLineNumbers "server_traders.sqf";
therealsputnik commented 8 years ago

Solved.

NO idea how that got changed around but no doubt I'm responsible. Well spotted and thank you.

(I was hoping this may resolve the teleporting issue, but just tested and that issue persists.)