ID:1568251
 
(See the best response by Ssj4justdale.)
So in my game I have loop_checks=0, and for some reason it keeps freezing, but I don't know which loop is freezing it.

Doesn't BYOND output some sort of error or anything? I don't see any. My code is huge I can't find an infinite loop without a clue to go on.

Thanks
You might have to turn back on loop_checks to get a good idea of any procedures that could be potentially infinite.
I turned loop_checks back on and it still freezes, so it seems I was wrong. I'm not sure why it is freezing.
In response to Lizard_Sphere_X
Please check every

for() //statements
while() //statements


and anything else that has a loop in it.

Please ensure that there is at least a sleep() command in that loop occuring, because if it is an issue caused by the loop endlessly going and with no delay, you will get a crazy lag that will result in a crash.
In response to Lizard_Sphere_X
Also this includes proc repetition:

ie:

proc/loop()
loop()

mob/Login()
loop()


just an example of what i mean.
Searching for for(): 1397 strings found
Searching for while(): 468 strings found

lol

Also I think it might be the new changes to BYOND's Export() proc freezing my game. I'm about to disable export and see if it can run an hour without freezing, which would be a new record by far.
Best response
when was the last time it ran normal?

did you add anything new after that time?
Yea we recently updated our BYOND version. I'm almost sure now that it is BYOND's changes to Export(), because I now have:
world/Export()
return

To stop any Export behavior from happening, and we are no longer repeatedly freezing.

The server still needs to stay up for 1 hour straight without freezing before I am absolutely sure. It has been 30 minutes currently, which is already a new record by far.
Hmm well best of luck :)
Thanks for being here to help