fungus

Open full view…

(possible bug) Multiple Game Started points

Shane Whelan
Tue, 17 Mar 2015 18:58:48 GMT

I've been debugging a scene with a main Fungus script handling the whole story by starting different sequences to test different parts of the game. Even though I never ran two Game Started events at the same time, I find that there are three places that start the game, though only one of them is a Game Started event handler. The telling part is that at some point, these were Game Started sequences. Is there something I need to clear to refresh this? [Fungus multiple starts](//muut.com/u/fungus/s1/:fungus:Baym:fungusmultiplestarts.png.jpg)

chrisgregan
Tue, 17 Mar 2015 21:35:05 GMT

Well that's weird. When you set a new Event Handler it should destroy any previous one that was set. Is it possible that the problem sequences were duplicated from other sequences that had a Game Started event handler? That's a separate code path and it's possible there's a bug there. Any chance you could send me a project that replicates the issue?

Shane Whelan
Tue, 17 Mar 2015 21:41:25 GMT

I just fixed it by copying and pasting command lists from the offending sequences into new clean ones with new names and linking them up as they were. Changing the names back to the way they were doesn't cause the duplicate starts again, though. Does that suggest there is some reference to the name of the sequence being retained where it shouldn't be?

chrisgregan
Tue, 17 Mar 2015 22:16:39 GMT

That's what it sounds like alright. If you have time, it would be great if you could figure out a sequence of steps that reliably causes the issue. I'll take a look at it myself this week.