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