Having trouble spotting the bug

Can someone help me spot the bug? I’ve included a screenshot for below of the error message and the coding involved. For the last half hour, I’ve been tinkering with what could be wrong and I’m drawing a blank. If you could help, that’d be much appreciated! :smiley:

1 Like

From the look of it, and this is only a guess. But it looks like an indentation issue.

The other possibility is that if you haven’t made those labels yet, it doesn’t recognize having anywhere to go. If you do, triple check to make sure they are spelled exactly right because that has happened to me before without noticing.

2 Likes

Could be an indentation issue as Frosty mentions. Or if the “Comprehension and Analysis Questions” choice is part of a parent choice (and not mis-indented), then you’ll need a goto above that line.

3 Likes

It’s probably indentation, since I’ve double checked and rechecked the labels and their respective scene names for spelling errors.

Any ideas where the indentation issue might be? Here’s another screenshot for reference since the previous is a little smushed.

1 Like

Wasn’t there a way in cside to ‘show hidden’ aka display indentation as dots (I know that function saved my tons of trouble in scrivener)

2 Likes

From the way it looks, try getting that choice on the same line where the other # are. It looks like that isn’t far enough indented. The rest are double tabbed but that one is only one spaced. Be sure all the stuff that follows after is on the proper lines as well(Indented after) So it would be 2 for a choice and three for the *set stuff

Not sure if that helps, but you can see the lines that needed to be indented at least a little.

2 Likes

If the original command at the top of all this is an actual *choice then it’s falling out of the two nested *fake_choice options which have no *goto or similar (‘As much as we could’ and ‘We did some preparation’).

Even though that nested block is a *fake_choice, the original *choice still requires a *goto or *finish for all nested blocks below it.

3 Likes

In general nesting *fake_choices doesn’t work (which is what I’m assuming the case is). If you’re intent on nesting those, you’ll need to switch over the implicit_control_flow.

5 Likes

Ast he friend said. One can not mix fake_choices with *goto or *goto_scene. They didn’t suppose to work together.

2 Likes

Design-wise, once your choices are stacked four-deep, you can really start considering moving some of the content of the options into separate labels.

If you choose not to do this, then “*goto_scene chapterthree” should be the very last line for every option nested under the top-most *choice command.

5 Likes

Maybe. Except the *fake_choices of “How much preparation did you do beforehand?” and “What role did you take in committing this crime?” are supposed to follow one after another in the narrative.

One of the four parent options from the original *choice are #Chapter One, #Chapter Two, #Chapter Four, and then #Comprehension and Analysis Questions. Within each of these options there are more *fake_choices that will *set certain things.

I’ll toggle around with it some more. Maybe the nested *fake_choices underneath #Chapter Three aren’t supposed to be indented that far in. :thinks:

2 Likes

Yup. This was the problem. Too much indentation. :smiley: Thanks for everyone who commented/helped!

3 Likes