So my Taviana OverPoch server was running great for a couple of days in a row. I've been updating it a lot lately but no major setbacks so far.
Until I discovered the following error in my RPT:
22:15:56 Error in expression <ivate.sqf"
if ((getPlayerUID player) in AdminList || (getPlayerUID player) in Mo>
22:15:56 Error position: <AdminList || (getPlayerUID player) in Mo>
22:15:56 Error Undefined variable in expression: adminlist
22:15:56 File mpmissions\DayZ_Overpoch_2.Tavi\admintools\Activate.sqf, line 1
This came literally out of nowhere. Yesterday I didn't have it, today since the first run I have it. I tried reverting the last couple of updates I did, didn't help. I reverted a whole day's worth of files, didn't help. Then I reverted the whole week's work and still getting the same error. How is this remotely possible? I very much doubt the error is in the files listed in the error. My theory is that it's a syntax error in some other file but activate.sqf is being called out because that's where the first conflict happens. I know you guys probably want to see my activate.sqf and adminList.sqf files anyway so here they are:
AdminList.sqf:
// Epoch Admin Tools
//Replace 111111111 with your ID.
AdminList = [
"76561198046592472" // Rocu
];
ModList = [
];
/*
Base deletion variable. Default true.
Determines default true or false for deleting all vehicles
inside the base delete dome. Can be changed in game.
*/
BD_vehicles = true;
// DO NOT MODIFY ANYTHING BEYOND THIS POINT
tempList = [];
/*
Determines default on or off for admin tools menu
Set this to false if you want the menu to be off by default.
F11 turns the tool off, F10 turns it on.
Leave this as True for now, it is under construction.
*/
if (isNil "toolsAreActive") then {toolsAreActive = true;};
Activate.sqf:
if ((getPlayerUID player) in AdminList || (getPlayerUID player) in ModList) then {
Sleep 5;
private["_veh", "_idx"];
_idx = -1;
while {alive player} do
{
if(toolsAreActive) then
{
if (_idx == -1) then
{
[]execVM "admintools\KeyBindings\FunctionKeys.sqf";
[]execVM "admintools\KeyBindings\NumberKeys.sqf";
_idx = (vehicle player) addaction [("<t color=""#585858"">" + ("Admin Menu") +"</t>"),"admintools\AdminToolsMain.sqf","",7,false,true,"",""];
_veh = vehicle player;
};
if (_veh != vehicle player) then
{
_veh removeAction _idx;
_idx = -1;
};
}else{
if(_idx != -1) then {
_veh removeAction _idx;
_idx = -1;
};
};
Sleep 2;
};
_veh removeAction _idx;
_idx = -1;
};
So what really happens in game? Well, nothing. Everything works fine. Even admin tools with all it's functions. But this seems like an error I can't ignore. It's a matter of time until it finds something to break.
To give you a little more insight of what my server includes, here's a list of major updates I've installed:
Mod: Taviana 2.0, Epoch 1.0.5.1, Overwatch
Scripts:
Admintools
Snap Building Pro
Plot Pole 4 Life
SafeZone script by Maca
Single Currency by Zupa
All scripts & mods are the latest version. When I tried reverting versions I also un-did the Single Currency one because I thought that might've been the cause.
Anyway, if someone has ever dealt with a similar problem or might have any insight of what's going on, any help would be much appreciated. Have worked around 8 hours on this error already without a result and will continue.
Question
Rocu
So my Taviana OverPoch server was running great for a couple of days in a row. I've been updating it a lot lately but no major setbacks so far.
Until I discovered the following error in my RPT:
This came literally out of nowhere. Yesterday I didn't have it, today since the first run I have it. I tried reverting the last couple of updates I did, didn't help. I reverted a whole day's worth of files, didn't help. Then I reverted the whole week's work and still getting the same error. How is this remotely possible? I very much doubt the error is in the files listed in the error. My theory is that it's a syntax error in some other file but activate.sqf is being called out because that's where the first conflict happens. I know you guys probably want to see my activate.sqf and adminList.sqf files anyway so here they are:
AdminList.sqf:
Activate.sqf:
So what really happens in game? Well, nothing. Everything works fine. Even admin tools with all it's functions. But this seems like an error I can't ignore. It's a matter of time until it finds something to break.
To give you a little more insight of what my server includes, here's a list of major updates I've installed:
Mod: Taviana 2.0, Epoch 1.0.5.1, Overwatch
Scripts:
All scripts & mods are the latest version. When I tried reverting versions I also un-did the Single Currency one because I thought that might've been the cause.
Anyway, if someone has ever dealt with a similar problem or might have any insight of what's going on, any help would be much appreciated. Have worked around 8 hours on this error already without a result and will continue.
Thanks in advance.
Link to comment
Share on other sites
9 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now