Lots of my blueprints stopped working properly after infinite loop

I accidentally made an infinite loop in 4.19 and it broke my project, I removed the infinite loop and got errors for some of the ForEachLoops but replacing with another ForEachLoop resolved the error message but lots of my blueprints no longer work as they did before the infinite loop, even if they don’t use a ForEachLoop. Is there any way of fixing this?

Hey there @Eirtep! Welcome back to the community! What are the errors being produced?

Did you by chance delete / modify the main engine blueprint macro for loops?

If so make a new project and copy the new loops internals back into your old project loop macro (you can copy the internals of blueprints selecting them and using ctrl+ c, then later paste them into a the other project with ctrl +v inside of the blueprint)

After the accidental infinte loop, I deleted the logic that caused it and then still got errors for infinite loops in other blueprint’s ForEachLoops asserted during branch, sequence and assigns within the ForEachLoop macro - replacing these nodes with themselves did remove the errors but my project is not functioning as the logic should and more random things keep breaking for no reason

Interesting! If possible, could you back your project up first then delete the saved, intermediate, and DerivedDataCache of the copy of your project and try and launch it? It should regenerate caches and clear any possible mismatches. If the issue persists or the project doesn’t launch, revert to the backup and we’ll take it from there.

I did this and still had errors from inside the ForEachLoop macro, some of the nodes weren’t connected (oops. I previously replaced assign nodes etc because it was saying errors on them but forgot to connect some lines) so I connected the nodes and it all fixed itself! Thank you tho!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.