ID:163163
 
world
loop_check=0
New()
complex_loop()
proc/complex_loop()
set background=1
for(var/turf/T in world)
stuff_to_do(T)//All the complex stuff I want it to do
//Note:stuff_to_do() also has a loop to go though but I don't think that is relavent
World.loop_check had reached it's limit on a loop I wanted to keep going for longer than the limit. So I turned
World.loop_check off.

My program loops though every turf on the map when the program loads. When I set the map size to 29X30 it works fine and does what I want it to do. When I make it any bigger the program does not load, nor does it lock up and it doesn't even say "Not responding", it just wont load the map or any of the verb panels or anything. [Edit: about a minute or two after I closed it my computer told me it crashed...]

So I ran the proc after the program was loaded. It crashed. So I did it again but with the proc background set to 1 and it worked, but then it stopped working on the 892nd turf.

Someone please help, why is the loop stopping after a certain amount?
Atomixkid wrote:
World.loop_check had reached it's limit on a loop I wanted to keep going for longer than the limit. So I turned
World.loop_check off.

Bad, bad idea. That's there mostly for debugging purposes. In practice you should never turn that off; it should always be possible to design a better loop than that.

My program loops though every turf on the map when the program loads. When I set the map size to 29X30 it works fine and does what I want it to do. When I make it any bigger the program does not load, nor does it lock up and it doesn't even say "Not responding", it just wont load the map or any of the verb panels or anything. [Edit: about a minute or two after I closed it my computer told me it crashed...]

So I ran the proc after the program was loaded. It crashed. So I did it again but with the proc background set to 1 and it worked, but then it stopped working on the 892nd turf.

Someone please help, why is the loop stopping after a certain amount?

Since we don't have the actual loop to look at, I'm gonna go out on a limb and blame Bigfoot.

Seriously though, the crashing is bad and it's something that could use fixing, but it doesn't do anyone any good to ask what's wrong if you don't provide any information.

Lummox JR
This happened to me also just change the proc loops to while loops...
In response to Hellonagol
That could fix it only problem is that in the second loop I want it to keep calling it self over and over so that it sort of spreads out over the map across the different turfs... So I need one proc to activate two to activate eight to activate thirty-two, and so on.