# Startup Line Error Code

**URL:** <https://forum.choiceofgames.com/t/startup-line-error-code/66352>\
**Category:** ChoiceScript Help\
**Created:** [October 1, 2019, 4:28pm UTC](https://forum.choiceofgames.com/t/startup-line-error-code/66352 "2019-10-01T16:28:29Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Delta\_Dumbo](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/delta_dumbo/32/102284_2.png) [@Delta\_Dumbo](https://forum.choiceofgames.com/u/Delta_Dumbo)\
**Post date:** [October 1, 2019, 4:28pm UTC](https://forum.choiceofgames.com/t/startup-line-error-code/66352/1 "2019-10-01T16:28:29Z")

</div>

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\>

---

<div class="post-metadata">

**Author:** ![Nahim\_Kerman](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/nahim_kerman/32/62734_2.png) [@Nahim\_Kerman](https://forum.choiceofgames.com/u/Nahim_Kerman)\
**Post date:** [October 1, 2019, 4:31pm UTC](https://forum.choiceofgames.com/t/startup-line-error-code/66352/2 "2019-10-01T16:31:33Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![anon8836198](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@anon8836198](https://forum.choiceofgames.com/u/anon8836198)\
**Post date:** [October 1, 2019, 4:32pm UTC](https://forum.choiceofgames.com/t/startup-line-error-code/66352/3 "2019-10-01T16:32:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [October 1, 2019, 5:11pm UTC](https://forum.choiceofgames.com/t/startup-line-error-code/66352/4 "2019-10-01T17:11:10Z")

</div>

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

```
Like this
   It will show the indentation

```

---

<div class="post-metadata">

**Author:** ![Delta\_Dumbo](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/delta_dumbo/32/102284_2.png) [@Delta\_Dumbo](https://forum.choiceofgames.com/u/Delta_Dumbo)\
**Post date:** [October 1, 2019, 8:58pm UTC](https://forum.choiceofgames.com/t/startup-line-error-code/66352/5 "2019-10-01T20:58:06Z")

</div>

‘’’#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?

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [October 1, 2019, 9:10pm UTC](https://forum.choiceofgames.com/t/startup-line-error-code/66352/6 "2019-10-01T21:10:27Z")

</div>

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

`` \<~ three of those

Without the brackets

---

<div class="post-metadata">

**Author:** ![kashidol](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/kashidol/32/96765_2.png) [@kashidol](https://forum.choiceofgames.com/u/kashidol)\
**Post date:** [October 1, 2019, 10:29pm UTC](https://forum.choiceofgames.com/t/startup-line-error-code/66352/7 "2019-10-01T22:29:21Z")

</div>

Do you see this?

 ![Screenshot_2019-10-01_182756](https://global.discourse-cdn.com/choiceofgames/original/3X/d/a/da97ebd5993bf5bba4f5f0a108004205e57d9d67.jpeg)

Click this then-

 ![Screenshot_2019-10-01_182404](https://global.discourse-cdn.com/choiceofgames/original/3X/b/d/bd4ef94538d3e19299fdb0167558cc7cb77abd44.jpeg)

This is what you should click. 😄

---

<div class="post-metadata">

**Author:** ![Mystic\_CRO](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/mystic_cro/32/109898_2.png) [@Mystic\_CRO](https://forum.choiceofgames.com/u/Mystic_CRO)\
**Post date:** [October 2, 2019, 8:00am UTC](https://forum.choiceofgames.com/t/startup-line-error-code/66352/8 "2019-10-02T08:00:25Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Delta\_Dumbo](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/delta_dumbo/32/102284_2.png) [@Delta\_Dumbo](https://forum.choiceofgames.com/u/Delta_Dumbo)\
**Post date:** [October 4, 2019, 6:17am UTC](https://forum.choiceofgames.com/t/startup-line-error-code/66352/9 "2019-10-04T06:17:17Z")

</div>

```
#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!

---

<div class="post-metadata">

**Author:** ![Szaal](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/szaal/32/112202_2.png) [@Szaal](https://forum.choiceofgames.com/u/Szaal)\
**Post date:** [October 4, 2019, 8:45am UTC](https://forum.choiceofgames.com/t/startup-line-error-code/66352/10 "2019-10-04T08:45:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![anon8836198](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@anon8836198](https://forum.choiceofgames.com/u/anon8836198)\
**Post date:** [October 4, 2019, 5:49pm UTC](https://forum.choiceofgames.com/t/startup-line-error-code/66352/11 "2019-10-04T17:49:31Z")

</div>

@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

```

---

<div class="post-metadata">

**Author:** ![Delta\_Dumbo](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/delta_dumbo/32/102284_2.png) [@Delta\_Dumbo](https://forum.choiceofgames.com/u/Delta_Dumbo)\
**Post date:** [October 4, 2019, 11:07pm UTC](https://forum.choiceofgames.com/t/startup-line-error-code/66352/12 "2019-10-04T23:07:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Nahim\_Kerman](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/nahim_kerman/32/62734_2.png) [@Nahim\_Kerman](https://forum.choiceofgames.com/u/Nahim_Kerman)\
**Post date:** [October 4, 2019, 11:20pm UTC](https://forum.choiceofgames.com/t/startup-line-error-code/66352/14 "2019-10-04T23:20:24Z")

</div>

Must be What @anon8836198 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.

---

<div class="post-metadata">

**Author:** ![kashidol](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/kashidol/32/96765_2.png) [@kashidol](https://forum.choiceofgames.com/u/kashidol)\
**Post date:** [October 5, 2019, 12:15am UTC](https://forum.choiceofgames.com/t/startup-line-error-code/66352/15 "2019-10-05T00:15:00Z")

</div>

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 @anon8836198 pointed out text corresponding with one choice should have the same amount of indents as the commands under the choice.

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [October 5, 2019, 6:02pm UTC](https://forum.choiceofgames.com/t/startup-line-error-code/66352/16 "2019-10-05T18:02:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Delta\_Dumbo](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/delta_dumbo/32/102284_2.png) [@Delta\_Dumbo](https://forum.choiceofgames.com/u/Delta_Dumbo)\
**Post date:** [October 6, 2019, 4:29pm UTC](https://forum.choiceofgames.com/t/startup-line-error-code/66352/17 "2019-10-06T16:29:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Delta\_Dumbo](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/delta_dumbo/32/102284_2.png) [@Delta\_Dumbo](https://forum.choiceofgames.com/u/Delta_Dumbo)\
**Post date:** [October 6, 2019, 4:29pm UTC](https://forum.choiceofgames.com/t/startup-line-error-code/66352/18 "2019-10-06T16:29:11Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Nahim\_Kerman](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/nahim_kerman/32/62734_2.png) [@Nahim\_Kerman](https://forum.choiceofgames.com/u/Nahim_Kerman)\
**Post date:** [October 6, 2019, 6:28pm UTC](https://forum.choiceofgames.com/t/startup-line-error-code/66352/19 "2019-10-06T18:28:43Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![kashidol](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/kashidol/32/96765_2.png) [@kashidol](https://forum.choiceofgames.com/u/kashidol)\
**Post date:** [October 6, 2019, 7:16pm UTC](https://forum.choiceofgames.com/t/startup-line-error-code/66352/20 "2019-10-06T19:16:14Z")

</div>

> [@Delta\_Dumbo](#):
>
> I’m sorry if this isn’t the way you were wanting me to format.

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

Ex:

```choicescript
                 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...**
>
> > [@kashidol](#):
> >
> > 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
> > 
> > ```choicescript
> > 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
> > 
> > ```

Does that help you?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/choiceofgames/original/3X/e/f/efe1497a762edecdb6d569a1c4abee87508bf002.png) [@system](https://forum.choiceofgames.com/u/system)\
**Post date:** [November 10, 2019, 8:43pm UTC](https://forum.choiceofgames.com/t/startup-line-error-code/66352/21 "2019-11-10T20:43:15Z")

</div>

Closed on November 10, 2019, 8:43pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
