ok so im trying to expand my map , and when ever i do i get this
Infinite loop suspected--switching proc to background.
If it is not an infinite loop, either do 'set background=1' or set world.loop_checks=0.
can i get some guidance as to fix this issue
#1 Aug 13 2012, 1:49 am
Best response
|
|
If a loop runs more than a certain number of times, it it internally flagged as an infinite loop by the runtime. You either need to set the loop processing to background (which means the loop will yield occasionally, allowing other things to process), or you need to disable world.loop_checks in order to prevent the game from switching it to background processing automatically.
| |
#2 Aug 13 2012, 2:58 am
|
|
can i get a guide line on how to do so ?
| |
#3 Aug 13 2012, 3:27 am
|
||
Put that somewhere in your code. | ||
#4 Aug 13 2012, 1:46 pm
|
|
i thought that was bad and caused the game to crash
| |
#5 Aug 13 2012, 1:49 pm
|
|
Try posting the code for the loop. It's possible you have it set up so that it goes errant.
| |
#6 Aug 13 2012, 2:27 pm (Edited by moderator on Aug 13 2012, 2:37 pm)
|
||
| ||
#7 Aug 13 2012, 3:43 pm
|
|
It would probably be better to use a series of while() loops instead of using spawn() to spawn the same proc.
| |
#8 Aug 14 2012, 1:30 am
|
|
the whole thing is this only happens when i add more maps . if i remove the maps its just fine
| |
#9 Aug 14 2012, 11:04 am
|
|
i still dont have a definitive answer here -,-
| |
#10 Aug 14 2012, 11:32 am
|
|
The issue is the loop, use while() then sleep() inside the while instead of spawn() same_proc().
| |
The way you save all mobs is frightening.
| ||
#12 Aug 15 2012, 3:02 pm
|
|
none of this has fixed the problem yet -,-
| |
#13 Aug 15 2012, 8:38 pm
|
|
You didn't post which proc it calls for the infinite loop, did you?
| |
#14 Aug 16 2012, 6:51 am
|
|
i dont know i just posted what i thought, i only get the error when i add the new maps if i uncheck them it goes away but when i have the maps added the loop error happens when hosting .
| |