Just a little bit into my thought process for how I solve a problem. I had to hard code a solution which is never good, so I’ll try to fix it at a later time.
NEW,0,0,NEW,0,0,NEW,-1,0.5,NEW,0.5,1 (This is correct besides the “NEW,0,0,NEW,0,0”)
NEW,0,0,NEW,0,0.5 (This is incorrect, it’s meant to be “NEW,0.5,1”)
NEW,0,NEW,1 (This is incorrect, it’s meant to be “NEW,0.5”, where is the “1” coming from???)
NEW,0.5,1,NEW,1,1 (With no loop it works good, that means the problem happens because the system is not properly reset)
So from the above information, I know that there is something wrong with my looping function. (I cannot share the code currently so you will just have to imagine what it’s doing ig). When you have discovered the problem look over your code and try to find any key features that are incorrect (For a loop that would be a Switch on the incorrect setting, a Number that needs to be reset, etc). So I identified a Toggle Switch I forgot to reset, then tried again, but the loop still did not work. If the problem persists do everything manually, so if something starts the code automatically make it so you now need to do it manually, this will allow you to break the code into chucks so you can find the problem. If this still doesn’t solve it (It didn’t for me), have the part of your code that does work run, then manually add the values into the code. When I did this the code seemed to work fine, at this point I should have assumed it was something to do with the input, but I continued looking within the loop without testing if it was the input.
And yet going through this the input appeared to be fine. I had gone through everything I could think of and had gotten the system to work when doing it manually, so why would it not work now? So once again I added delay, this time to the input, and still it would not work. So if you continue over and over again and still don’t find the problem there are 2 things you can do. 1) Ask for help on the forums. I am unable to do that because only a select few would be able to even be able to understand how to fix the problem let alone understand my messy coding (due to 1 framing). I also want to keep the project secret so can’t share it anyways. 2) Build a workaround. I would normally advise against this because it builds a bad habit of hard coding, but for my situation, I had to do it. My only excuse for doing this is that it’s best to get a finished product out and fix things afterward (this varies from project to project).
Side note, I had an infinite loop earlier in my code and it only happened on the loop after the first. So the steps to get rid of the loop are 1. Just check none of your code is an obvious loop, 2. Timers prevent infinite loops, so take a small section of your code then add timers to it. If the infinite loop continues it’s not from that area. 3. Key behaviors are Filters (if they activate code again behind it), Numbers (in case it infinitely increases), Switches (Making sure they turn off correctly), Spawn (make sure the object doesn’t spawn itself instantly), Attacher (Same thing as Spawn), Emit (Same thing as Spawn), etc.