[Solved] Yarn - A single interaction breaking?

Just a quick note on tripping the bondagejs parser - please avoid copying blocks of text from the web and pasting it into yarn. If your clipboard picks up a weird character, it might crash the parser. Fortunately gdevelop’s interpreter does everything possible to avoid that and in recent versions I have added some fixes to it to make it stronger.

If that happens,please always share the corrupt data with the developers (us), so we can replicate the bug and fix it.

Also when you add options, avoid putting several on the same line. If the game freezes upon selecting a choice, there is something wrong with the choice in yarn.

dont do:
[[hey|goHey]] [[may|goMey]]
do:
[[hey|goHey]]
[[may|goMey]]

dont insert spaces on the right side like this
[[I have spaces but its ok|I have spaces bad bad]]
do this
[[I have spaces but its ok|noSpacesHere]]

If a choice leads to a node that doesn’t exist for example- thats another thing that might trip it into a frozen state. I think I fixed those things, but saying in case someone else stumbles on this

Any javascript monkeys interested in fixing corner cases, please go to bondagejs’s git tracker and have a go :slight_smile: I would patch them up myself if I had more time

3 Likes