how to avoid infinite loop ?

is there any way to disable this loop limitation?

i just did this cave-live level generation in blueprint:
http://www.roguebasin.com/index.php?title=Cellular_Automata_Method_for_Generating_Random_Cave-Like_Levels

it work for 40*40 and less grid, but when i try 80 * 80 for example or more i get the error infinite loop detected :confused:

I tried to do this in a function called by a set timer and the error stiil poped on the screen :frowning:

i use ue4 4.6.1

i am now stuck in this project due to this limitation :frowning:

Thanks

You could try to go into:

Edit>Project Settings>General Settings>Blueprints>Maximum Loop Iteration Count

Care that these Iteration belong to everything, not only the for loop or such.

nice, now 80*80 work, even 160 * 160 work !

so i did (yea because i want more :]) 300*300 and i got the error infinite loop

i cant increase maximum loop iteration count anymore in project settings

could we have an option to disable this maximum loop iteration or to increase the max limit which is 2147483647 :]

Hm, searching for it seems that Epic wanted to higher the limit, but that cause other problems, so they didn’t.

Alexander posted something to bypass the limit, but you have to rebuild from source for that i guess:

hmm, i am bad at c++ but what happen if i set DO_GUARD to 0 in scriptcore.cpp?

will the infinite loop check be disabled ?

does it disable other important things?

i fear to rebuild the engine and corrupt all my project with bad things

i just want to remove the infinite loop check i dont care if my logic take 30 second to complete and does 99999999999999 iterations

but i dont want to corrupt my project by disabled important β€˜check’ things. by the way is this infinite loop check an important thing to protect my project?