Jump to content
  • 0

mission_check.sqf takes a lot of time


kmiller

Question

Hi,

i had the problem that joining the server after a restart took like 4 minutes. To spot the problem, i added many diag_log-Lines to specific serverfiles so I can see where the server gets stuck.

The problematic files were dayz_server\init\server_functions.sqf and dayz_server\init\mission_check.sqf (the second file gets included in the first file)

Here you see my RPT:

Quote

2:25:23 "PRELOAD_ Functions\init [[<No group>:0 (FunctionsManager)],any]"
 2:25:23 "MPframework inited"
 2:25:23 "dayz_preloadFinished reset"
 2:25:26 "Start loading server compiles"
 2:25:26 "SERVER_FUNCTIONS started"
 2:25:36 "SERVER_FUNCTIONS finished standard"
 2:25:36 "SERVER_FUNCTIONS finished virtual garage"
 2:25:36 "SERVER_FUNCTIONS finished admin tools"
 2:25:36 "SERVER_FUNCTIONS 1 medicalSync"
 2:25:36 "SERVER_FUNCTIONS 2 FenceUpdate"
 2:25:36 "SERVER_FUNCTIONS 3 ServerKilled"
 2:25:36 "SERVER_FUNCTIONS 4 publishObject"
 2:25:36 "SERVER_FUNCTIONS 5 hiveWrite"
 2:25:36 "SERVER_FUNCTIONS 6 hiveReadWrite"
 2:25:36 "SERVER_FUNCTIONS 7 getStatsDiff"
 2:25:36 "SERVER_FUNCTIONS 8 objectUID2"
 2:25:36 "SERVER_FUNCTIONS 9 recordLogin"
 2:25:36 "SERVER_FUNCTIONS 10 generate_new_damage"
 2:25:36 "SERVER_FUNCTIONS 11 hiveReadWriteLarge"
 2:25:36 "SERVER_FUNCTIONS 12 fa_coor2str"
 2:25:36 "SERVER_FUNCTIONS 13 fa_plr2str"
 2:25:36 "SERVER_FUNCTIONS 14 array_reduceSize"
 2:25:36 "SERVER_FUNCTIONS 15 mapedit"
 2:25:36 "SERVER_FUNCTIONS 16 mapedit (sector)"
 2:25:36 "MISSION_CHECK 18"
 2:25:36 "MISSION_CHECK 19"
 2:25:36 "MISSION_CHECK 20"
 2:25:36 "SERVER_FUNCTIONS 21 kk_functions"
 2:27:11 "MISSION_CHECK 22"
 2:27:11 "MISSION_CHECK 23"
 2:27:11 "MISSION_CHECK 24"
 2:27:11 "MISSION_CHECK 25"
 2:27:11 "SERVER_FUNCTIONS 26 mission_check"
 2:27:11 "Finished server functions compile"
 2:27:11 "Loaded server compiles"
 2:27:11 "Finished compiles"
 2:27:11 "Deploy Anything: loading version 2.8.2 ..."
 2:27:11 "Deploy Anything: adding deployables to safe vehicle list..."

 

As you can see nearly 2 minutes are used between SERVER_FUNCTIONS 21 kk_functions and MISSION_CHECK 22. Thats exactly where the mission_check.sqf is doing his work.

Even with the default version of this file, it takes two minutes on my server. When I comment everything out there, the server starts noticeable faster.

So in short terms: With no mission_check.sqf my server starts noticeable faster.

Does anyone know how I can tackle this? Did I do something wrong?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
On 9/27/2018 at 9:48 PM, kmiller said:

The problematic files were dayz_server\init\server_functions.sqf and dayz_server\init\mission_check.sqf (the second file gets included in the first file)

thanks for this ive been wondering myself why it was taking so long and you found out why, i wont remove it but it is nice to know why it was happening.

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