Extremely strange and destructive glitch

Hello!

I have been using flowlab for a while now, and this is the first time I have ever encountered something like this.

In my game “Iris,” there is a scene (unfinished) where the player talks to a museum curator to check on something important. However, when the first part of the dialogue in the cutscene is finished, the game freezes and the page crashes. Is this a real bug, or is it just my computer?

The link to my game is: Flowlab Game Creator - Iris: A Restoration of Color

Thank you for your time.

Sincerely,
-Acorn Interactive Games

3 Likes

When I reached the Museum the game seems to crash for me too, but then again I’m on a school chromebook so I honestly don’t know. We might even have to get grazer.

Yeah, I’m on a school-issued chromebook too. I checked and double-checked the dialogue code, because it was working fine before I added it. It might be a problem with the site itself, or even the computer.

I think the issue has something to do with the fact that when the text is done, you spawn a new object for a new set of text. I’m not for sure why it’s causing an infinite loop somewhere, but you can condense a lot of this just into a single object.

Whenever you press space, just have a new text behavior into the value of the label instead of using other objects for it.

I figured it out, for some reason, when you press space, it lingered so it would spawn the next block, then the next, and then the next all at the same time causing an infinite loop. One way to avoid this would be to add a timer in between the space and the spawn so it shouldn’t spawn everything at once.

But a better option than spawning and using unnecessary objects, would be something similar to what I stated above.

A faster way would be to copy and import the code below into the first object you have for text. This should work, I don’t normally post code on the forums so I’m not for sure, but it’s the same as the screenshot above.

{"data":{"behavior":{"v":"2","nodes":[{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":-90,"y":0,"group":"","id":"39f50e4e37f75346","notes":null,"n_o":0,"startVal":"I  believe that our situation is far worse than I feared.\n-Space-\n","tag":null},{"inputCount":0,"outputCount":1,"name":"Once","behaviorType":"logic.triggers.Once","x":-450,"y":0,"group":"","id":"39f50e4f6660cc40","notes":null,"n_o":null,"resetOnLevelStart":false},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":-270,"y":-8,"group":"","id":"39f50e4f4b344f42","notes":null,"n_o":null,"startVal":"","tag":null},{"inputCount":1,"outputCount":2,"name":"Text List Each","behaviorType":"logic.data.ListEach","x":180,"y":32,"group":"","id":"39f50e4fe1ca8247","notes":null,"n_o":0,"delay":0.5},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":90,"y":-232,"group":"","id":"39f50e4fa9dfee45","notes":null,"n_o":0,"startVal":"","tag":null},{"comp_x":8,"comp_y":-1,"inputCount":4,"outputCount":4,"name":"Label","behaviorType":"logic.hud.Label","x":270,"y":-232,"group":"","id":"39f50e54b7d0bb4f","notes":null,"n_o":null,"text":"Label","textColor":8775152,"fontName":"rivalry","scale":12,"borderStyle":"None","borderColor":0,"borderSize":0,"textAlign":"left","maxWidth":300,"version":2},{"inputCount":3,"outputCount":3,"name":"SoundEffect","behaviorType":"logic.components.SoundEffect","x":540,"y":-8,"group":"","id":"39f50e5481537c44","notes":null,"n_o":null,"sound":null,"loop":false,"volume":100,"url":null,"soundName":"click 19","soundURL":"/effects/click/tap-muted.aif.mp3"},{"inputCount":1,"outputCount":1,"name":"Text Length","behaviorType":"logic.data.TextLength","x":360,"y":-8,"group":"","id":"39f50e54e7832f4f","notes":null,"n_o":null},{"inputCount":0,"outputCount":2,"name":"Keyboard","behaviorType":"logic.triggers.Keyboard","x":-900,"y":216,"group":"","id":"39f50e55396e4445","keyCode":32},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":-90,"y":160,"group":"","id":"3a564726f98b7f49","notes":null,"n_o":0,"startVal":"The Colors of the Iris have been removed from it and scattered across the world. -Space-","tag":null},{"inputCount":3,"outputCount":1,"name":"Switch","behaviorType":"logic.logic.Switch","x":-720,"y":200,"group":"","id":"3a56e9b135334744","_startVal":1,"dataType":2},{"inputCount":2,"outputCount":3,"name":"Router","behaviorType":"logic.logic.Router","x":-540,"y":216,"group":"","id":"3a5921f998ee284f","loop":true,"routes":3,"mode":1},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":-270,"y":160,"group":"","id":"3a5afedd7a27fa48","notes":null,"n_o":null,"startVal":"","tag":null},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":-90,"y":328,"group":"","id":"3a5c4d0696179843","notes":null,"n_o":0,"startVal":"I am sorry to say that the pressure rests upon you to find the three primary colors\n-Space-","tag":null},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":-270,"y":328,"group":"","id":"3a5c5f72cc3cd345","notes":null,"n_o":null,"startVal":"","tag":null},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":-270,"y":496,"group":"","id":"3a5defd37c060e44","notes":"This just resets the dialogue for future uses or to end it.","n_o":0,"startVal":"","tag":null}],"links":[{"input_id":"39f50e4e37f75346i4","output_id":"39f50e4f4b344f42o0"},{"input_id":"39f50e4fe1ca8247i0","output_id":"39f50e4e37f75346o1"},{"input_id":"39f50e4f4b344f42i1","output_id":"39f50e4f6660cc40o0"},{"input_id":"39f50e4f4b344f42i1","output_id":"39f50e4f6660cc40o0"},{"input_id":"39f50e4fa9dfee45i0","output_id":"39f50e4f4b344f42o0"},{"input_id":"39f50e4e37f75346i4","output_id":"39f50e4f4b344f42o0"},{"input_id":"39f50e4fe1ca8247i0","output_id":"39f50e4e37f75346o1"},{"input_id":"39f50e4fe1ca8247i0","output_id":"3a564726f98b7f49o1"},{"input_id":"39f50e4fe1ca8247i0","output_id":"3a5c4d0696179843o1"},{"input_id":"39f50e4fa9dfee45i3","output_id":"39f50e4fe1ca8247o0"},{"input_id":"39f50e54e7832f4fi0","output_id":"39f50e4fe1ca8247o0"},{"input_id":"3a56e9b135334744i1","output_id":"39f50e4fe1ca8247o1"},{"input_id":"39f50e4fa9dfee45i0","output_id":"39f50e4f4b344f42o0"},{"input_id":"39f50e4fa9dfee45i0","output_id":"3a5afedd7a27fa48o0"},{"input_id":"39f50e4fa9dfee45i0","output_id":"3a5c5f72cc3cd345o0"},{"input_id":"39f50e4fa9dfee45i0","output_id":"3a5defd37c060e44o0"},{"input_id":"39f50e4fa9dfee45i3","output_id":"39f50e4fe1ca8247o0"},{"input_id":"39f50e54b7d0bb4fi0","output_id":"39f50e4fa9dfee45o0"},{"input_id":"39f50e54b7d0bb4fi0","output_id":"39f50e4fa9dfee45o0"},{"input_id":"39f50e54b7d0bb4fi0","output_id":"3a5defd37c060e44o0"},{"input_id":"39f50e5481537c44i0","output_id":"39f50e54e7832f4fo0"},{"input_id":"39f50e54e7832f4fi0","output_id":"39f50e4fe1ca8247o0"},{"input_id":"39f50e5481537c44i0","output_id":"39f50e54e7832f4fo0"},{"input_id":"3a56e9b135334744i2","output_id":"39f50e55396e4445o0"},{"input_id":"3a564726f98b7f49i4","output_id":"3a5afedd7a27fa48o0"},{"input_id":"39f50e4fe1ca8247i0","output_id":"3a564726f98b7f49o1"},{"input_id":"3a56e9b135334744i0","output_id":"3a56e9b135334744o0"},{"input_id":"3a56e9b135334744i1","output_id":"39f50e4fe1ca8247o1"},{"input_id":"3a56e9b135334744i2","output_id":"39f50e55396e4445o0"},{"input_id":"3a56e9b135334744i0","output_id":"3a56e9b135334744o0"},{"input_id":"3a5921f998ee284fi1","output_id":"3a56e9b135334744o0"},{"input_id":"3a5921f998ee284fi0","output_id":"3a5921f998ee284fo1"},{"input_id":"3a5921f998ee284fi0","output_id":"3a5921f998ee284fo0"},{"input_id":"3a5921f998ee284fi1","output_id":"3a56e9b135334744o0"},{"input_id":"3a5afedd7a27fa48i1","output_id":"3a5921f998ee284fo0"},{"input_id":"3a5921f998ee284fi0","output_id":"3a5921f998ee284fo0"},{"input_id":"3a5921f998ee284fi0","output_id":"3a5921f998ee284fo1"},{"input_id":"3a5c5f72cc3cd345i1","output_id":"3a5921f998ee284fo1"},{"input_id":"3a5defd37c060e44i1","output_id":"3a5921f998ee284fo2"},{"input_id":"3a5afedd7a27fa48i1","output_id":"3a5921f998ee284fo0"},{"input_id":"39f50e4fa9dfee45i0","output_id":"3a5afedd7a27fa48o0"},{"input_id":"3a564726f98b7f49i4","output_id":"3a5afedd7a27fa48o0"},{"input_id":"3a5c4d0696179843i4","output_id":"3a5c5f72cc3cd345o0"},{"input_id":"39f50e4fe1ca8247i0","output_id":"3a5c4d0696179843o1"},{"input_id":"3a5c5f72cc3cd345i1","output_id":"3a5921f998ee284fo1"},{"input_id":"39f50e4fa9dfee45i0","output_id":"3a5c5f72cc3cd345o0"},{"input_id":"3a5c4d0696179843i4","output_id":"3a5c5f72cc3cd345o0"},{"input_id":"3a5defd37c060e44i1","output_id":"3a5921f998ee284fo2"},{"input_id":"39f50e4fa9dfee45i0","output_id":"3a5defd37c060e44o0"},{"input_id":"39f50e54b7d0bb4fi0","output_id":"3a5defd37c060e44o0"}]}}}

You may have to refresh the page afterwards because I know the label doesn’t format to the correct font right away.

1 Like

Thank you so much… I was racking my brain to find a solution.

2 Likes

Most times when the tab crashes, it is because of an infinite loop that the game doesn’t know about