Startup Line Error Code

I’m having trouble with part of a code. The rest of the choices are fine, but for some reason the take and leave photos options keep showing the same error.

The error I’m getting is: startup line 115: increasing indent not allowed, expected 16 was 17

My code looks like this:
<#Go to the desk.
You’ve had this desk for a long time. It has one drawer and faded markings on it you
might be able to make out.
*choice
#Open the drawer.
You find handwritten notes and photos from your aunt.
*choice
#Look at photos
You and your aunt took loads of pictures together. She had given you an old
polaroid a long time ago. You wonder where it is. You wonder where she is.
*choice
#Take the photos
You have been missing your aunt. You find yourself running late. Time to go.
*set diplomat +5
*finish
#Leave the photos
The past should stay where it is. Besides, you want to look around more.
*goto get_out_of_bed
#Read notes
You were so forgetful when you were younger. You feel like you’ve worked on it
though. The notes are mostly reminders, but there is advice and little 'I love
you’s.
*choice
#Take the notes
You don’t quite know why, but you want to take these notes with you. You look
at the clock and see that it’s time to go.
*set memory +5
*finish
#leave the notes
It’s best to leave them. You don’t think you’ll have much use for them. Looking
at the clock, you see that you still have some time to look around your room.
*goto get_out_of_bed
#Read markings.
They’re from a very long time ago, when your cousin was still here. You two were
inseparable. That’s what you had thought, at least. The markings where your names.
You’ll have to get back in touch with your cousin when you finish school.
*goto get_out_of_bed>

Welcome buddy!

Something in your line 115 or 114 is with a space or tab where it didn’t should.

Example:

*fake_choice
  #I like potatoes!
    Sure you like
  #I don't like potatoes!
    That's ok!
#What is whrong with you?

You see the “what’s is ‘whrong’ with you” line?
It’s with a idetation error.

1 Like

Please wrap your code using “preformatted text” option when posting.

1 Like

Preformatted text can be done by adding three ` above and below your code:

Like this
   It will show the indentation
1 Like

‘’’#Go to the desk.
You’ve had this desk for a long time. It has one drawer and faded markings on it you
might be able to make out.
*choice
#Open the drawer.
You find handwritten notes and photos from your aunt.
*choice
#Look at photos
You and your aunt took loads of pictures together. She had given you an old
polaroid a long time ago. You wonder where it is. You wonder where she is.
*choice
#Take the photos.
You have been missing your aunt. You find yourself running late. Time to go.
*finish
#Leave the photos.
The past should stay where it is. Besides, you want to look around more.
*goto get_out_of_bed
#Read notes.
You were so forgetful when you were younger. You feel like you’ve worked on it
though. The notes are mostly reminders, but there is advice and little ‘I love
you’s.
*choice
#Take the notes.
You don’t quite know why, but you want to take these notes with you. You look
at the clock and see that it’s time to go.
*set memory +5
*finish
#Leave the notes.
It’s best to leave them. You don’t think you’ll have much use for them. Looking
at the clock, you see that you still have some time to look around your room.
*goto get_out_of_bed
#Read markings.
They’re from a very long time ago, when your cousin was still here. You two were
inseparable. That’s what you had thought, at least. The markings where your names.
You’ll have to get back in touch with your cousin when you finish school.
*goto get_out_of_bed’’’

Like that?

I think you got them the wrong way round (happened to almost all of us)

`` <~ three of those

Without the brackets

Do you see this?

Click this then-

This is what you should click. :smile:

1 Like

Happens to me a lot its related to spacing. Just go to the error line, and one space back on the said line fixes it.

2 Likes
#Go to the desk.
    You've had this desk for a long time. It has one drawer and faded markings on it you 
    might be able to make out.
    *choice
      #Open the drawer.
        You find handwritten notes and photos from your aunt.
        *choice
          #Look at photos
            You and your aunt took loads of pictures together. She had given you an old 
            polaroid a long time ago. You wonder where it is. You wonder where she is. 
            *choice
              #Take the photos.
                You have been missing your aunt. You find yourself running late. Time to go.  
                 *set diplomat +5
                 *finish
              #Leave the photos.
                The past should stay where it is. Besides, you want to look around more.
                 *goto get_out_of_bed
          #Read notes.
            You were so forgetful when you were younger. You feel like you've worked on it 
            though. The notes are mostly reminders, but there is advice and little 'I love 
            you's. 
            *choice
              #Take the notes.
                You don't quite know why, but you want to take these notes with you. You look 
                at the clock and see that it's time to go. 
                 *set memory +5
                 *finish
              #Leave the notes.
                It's best to leave them. You don't think you'll have much use for them. Looking 
                at the clock, you see that you still have some time to look around your room. 
                 *goto get_out_of_bed
      #Read markings.
        They're from a very long time ago, when your cousin was still here. You two were 
        inseparable. That's what you had thought, at least. The markings where your names. 
        You'll have to get back in touch with your cousin when you finish school. 
        *goto get_out_of_bed

Thank you!

2 Likes

Just asking. Have you resolved your issue? Still looking for help?

@Delta_Dumbo I noticed you have several instances where commands after prose are indented 1 level further. That will cause errors.

Instead of

#Option
	Example text.
		*set this
		*goto there

should be

#Option
	Example text.
	*set this
	*goto there
1 Like

I haven’t resolved it yet. It keeps popping up with the same error and when I try to fix it, it says the problem is in a different line.

Must be What @Jumo_004 pointed.

Do you use CS IDE for code or Notepad++?

If you use the last one it’s auto increment must be what is causing the problem.

How about this tell us the error its giving you this time and show (not tell) us which line it’s on that way we can help you fix the issue accordingly.

And it it might help you to shorten your indents if it’s hard to keep up with too many. I personally use 2 and 3 indents as shown

Word used so you can make text?

*choice
  #Boom ------>2 spaces
   Text -------------->3 spaces
   *set boom true ------->3 spaces
   *goto get_out_of_jail_free_card

As @Jumo_004 pointed out text corresponding with one choice should have the same amount of indents as the commands under the choice.

1 Like

In a lot of writing programs you can switch on showing spaces/tabs

The error I get when I run it has a few different lines. When I try to take the photos, it shows ‘startup line 111: increasing indent not allowed, expected 16 was 17’.

#Go to the desk.
        You've had this desk for a long time. It has one drawer and faded markings on it you 
        might be able to make out.
        *choice
          #Open the drawer.
            You find handwritten notes and photos from your aunt.
            *choice
              #Look at photos
                You and your aunt took loads of pictures together. She had given you an old 
                polaroid a long time ago. You wonder where it is. You wonder where she is. 
                *choice
                  #Take the photos.
                    You have been missing your aunt. You find yourself running late. Time to go.  
                    *set diplomat +5
                    *finish
                  #Leave the photos.
                    The past should stay where it is. Besides, you want to look around more.
                    *goto get_out_of_bed
              #Read notes.
                You were so forgetful when you were younger. You feel like you've worked on it 
                though. The notes are mostly reminders, but there is advice and little 'I love 
                you's. 
                *choice
                  #Take the notes.
                    You don't quite know why, but you want to take these notes with you. 
                    You look at the clock and see that it's time to go. 
                    *set memory +5
                    *finish
                  #Leave the notes.
                    It's best to leave them. You don't think you'll have much use for them. Looking 
                    at the clock, you see that you still have some time to look around your room. 
                    *goto get_out_of_bed

Line 111 is the ‘You don’t quite know why’ under ‘Take Notes’. I’m sorry if this isn’t the way you were wanting me to format.

I use the TextEditor my mac comes with. It’s most likely a lot like Notepad++, but I’ve recently been on a site that ChoiceScript took me to. It may be that?

1 Like

It’s possible. I used to have this issue before I downloaded the choicescript highlight for notepad. And even then I have got the habit of try to revise my code using the browser version of Choicescript IDE options to better recheck all my scenes.

1 Like

No it’s fine this is how it’s supposed to be done now on the lines where you have indention issues backspace

Ex:

                 Text----17 spaces error line
This is how it should be.
                Text------16 spaces correct way

The errors just trying to tell you you have too many spaces on that one line.

And I know I’ve said this before but maybe you should lessen your indents.

What I said before...

Does that help you?