Author Topic: Known issue: Main server timer  (Read 1021 times)

0 Members and 1 Guest are viewing this topic.

Offline Mike

  • Server Owner
  • *
  • Posts: 3677
  • Country: gb
  • Respect: +413/-71
  • Gender: Male
    • View Profile
  • MCNR name: Mike
  • Discord name: mp2
Known issue: Main server timer
« on: May 19, 2020, 05:56:04 pm »
There is currently a bug which is affecting the 'main server timer'. This timer runs once a second and handles a lot of things such as cop evasion, mission scripts, mission timers and so on. It breaking can result in many other unrelated systems breaking.

The first I noticed this bug was how mission timers would miss a second when counting down, i.e. 1:22, 1:21, 1:20, 1:19, 1:19, 1:18, 1:17, 1:16, 1:15, 1:14, 1:14 or something. You may also notice your wanted stars don't flash for one second every 5 seconds. The fact that this bug happens every 5 seconds (e.g. at game time 13:00, 13:05, 13:10 etc.) is not surprising, as many things are set to run every 5 seconds to increase efficiency, rather than running every single second.

This bug isn't active at all times, which makes it a lot harder to debug. Someone on the server has to be doing a specific thing for the code to somehow stop working during the main timer. Just need to find out what. I'm currently working on debugging this, and debugging code will be added in the next update to help me pinpoint the exact issue. I'll have to wait until it happens again and run the debug code.

Examples of bugs reported which are 99% likely to be caused by this:
http://mikescnr.com/forum/index.php/topic,3512.0.html
http://mikescnr.com/forum/index.php/topic,3513.0.html
http://mikescnr.com/forum/index.php/topic,3495.0.html

AFTER UPDATE 1.8.2:
If any of you spot the things I mentioned such as wanted stars not flashing for 1 second every 5 seconds, or timers repeating a number every 5 seconds, or any of the issues above, let me know ASAP on Discord so I can come onto the server and debug it. Thank you.
View trailers here.