Cleanup

LTGNick

Valued Member!
Hmk and what if i want it to only clean up every 5 seconds or so? just change the sleep time right?
 

Jokaru

Well-Known Member
Hmk and what if i want it to only clean up every 5 seconds or so? just change the sleep time right?
Do not change timers in script! They are already perfect. If you change it on your server animals disappear, and your server is constantly try to cleanup yourself, i'm not recommended this.
 

Turtle

New Member
Honestly dude. It's extremly hard to believe that you would even have over 7fps with a full server.

I'm running full servers and they get down to a staggering 1-3 fps and I have 11997 objects so it's a normal thing.
 

Jokaru

Well-Known Member
Honestly dude. It's extremly hard to believe that you would even have over 7fps with a full server.

I'm running full servers and they get down to a staggering 1-3 fps and I have 11997 objects so it's a normal thing.
Just not use my script. I give you my logs, and try to help, what do you need else? PM me with your mission and server_function, i look and try to fix, or compare with others, so i can tell what is wrong.
 

Jokaru

Well-Known Member
if you want debugs log from me, i can grant it, but you'll need to wait, so logs can full. And i not use count, cause it creates lags, so server fps can be -1 or so
 
Last edited:

DangerRuss

OpenDayZ Rockstar!
works beautifully on my server. I can tell a bit of a performance boost towards the end of a restart. Furthermore, this helps with people being stuck in crashed jets on epoch (just a side bonus!)
 
Getting this on epoch?

Code:
23:25:32 Error in expression <elQty + 1;
};
};
sleep 0.001;
} forEach _missionObjs;
if (_delQty > 0) then {
_q>
23:25:32 Error position: <_missionObjs;
if (_delQty > 0) then {
_q>
23:25:32 Error Undefined variable in expression: _missionobjs
23:25:32 File z\addons\dayz_server\init\LinkCleanup.sqf, line 54
23:25:33 "LinkCleaning: Start cleaning"
23:25:34 "LinkCleaning: Stop cleaning"
23:25:58 Error in expression <0) then {
_lastGullMod = diag_tickTime;
_x call purge;
} forEach entities "Seagu>
23:25:58 Error position: <_x call purge;
} forEach entities "Seagu>
23:25:58 Error Undefined variable in expression: _x
23:25:58 File z\addons\dayz_server\init\LinkCleanup.sqf, line 132
23:25:58 Error in expression <+ 1;
};
};
};
};
sleep 0.001;
} forEach _randomzeds;
if (_delrndzed > 0) then {
>
23:25:58 Error position: <_randomzeds;
if (_delrndzed > 0) then {
>
23:25:58 Error Undefined variable in expression: _randomzeds
23:25:58 File z\addons\dayz_server\init\LinkCleanup.sqf, line 113
 

Inkko

Valued Member!
Just a question, but I noticed you said you are suing parts of infistar's fix server fps. Did you pull all the code from that? Cause I know if you run that on your server it deletes all the loot at crash sites which is annoying since that loot only spawns once.
 

Maddin

Well-Known Member
Just a question, but I noticed you said you are suing parts of infistar's fix server fps. Did you pull all the code from that? Cause I know if you run that on your server it deletes all the loot at crash sites which is annoying since that loot only spawns once.
Havin a look at the Code. Boxes will be removed, if no player is nearby within 130m and only those
Code:
_ammobox = ["USLaunchersBox","RULaunchersBox","USSpecialWeapons_EP1","USVehicleBox"];
 

sukkaed

Well-Known Member
Set permaloot variable to your boxes or whitelist them to this array.
Code:
_ammobox = ["USLaunchersBox","RULaunchersBox","USSpecialWeapons_EP1","USVehicleBox"];
Crash site loot uses permaloot and is not cleaned.
Code:
_keep = (_x getVariable ["permaLoot",false])
Jokaru, have you tried any longer clean intervals than 3 minutes? This keeps the object count nicely in control but I can see lag/desync spikes when this is checking nearEntities from every player, every 3 minutes.
 

Jokaru

Well-Known Member
Jokaru, have you tried any longer clean intervals than 3 minutes? This keeps the object count nicely in control but I can see lag/desync spikes when this is checking nearEntities from every player, every 3 minutes.
Right now i use 2 minutes, for my server this value is perfect, and 1 or 2 times per restart server fps drops to 1, but after 10 sec all is normal again and 20+ fps. And i test 30 sec and 10 sec intervals, that keeps server clean with < 50 objects, and same fps drops sometimes, but loot does not spawn sometimes, so i change it. This lags are not so critical, cause it restores quickly enough.
 

LTGNick

Valued Member!
Code:
5:50:41 "LinkCleaning: Start cleaning"
5:50:42 "CLEANUP:TOTAL 33 LOOT BAGS"
5:50:42 Bad conversion: array
5:50:42 Error in expression <(isPlayer _x) and (alive _x)} count (_x nearEntities [["CAManBase"], 25]);
if ((>
5:50:42   Error position: <nearEntities [["CAManBase"], 25]);
if ((>
5:50:42   Error 0 elements provided, 3 expected
5:50:42 File z\addons\dayz_server\init\LinkCleanup.sqf, line 76
5:50:42 "LinkCleaning: Stop cleaning"
how might i fix this problamo?
 
Top