# Lines Is Not Defined

**URL:** <https://forum.choiceofgames.com/t/lines-is-not-defined/29343>\
**Category:** ChoiceScript Help\
**Created:** [August 2, 2017, 6:59pm UTC](https://forum.choiceofgames.com/t/lines-is-not-defined/29343 "2017-08-02T18:59:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lorikeet](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/lorikeet/32/25082_2.png) [@Lorikeet](https://forum.choiceofgames.com/u/Lorikeet)\
**Post date:** [August 2, 2017, 6:59pm UTC](https://forum.choiceofgames.com/t/lines-is-not-defined/29343/1 "2017-08-02T18:59:46Z")

</div>

So I’ll start off by saying I’m not exactly great with coding, so maybe I’m missing an obvious something.

I keep getting the error; **Uncaught ReferenceError: lines is not defined** from dashingdon.

This happened after I uploaded the second scene and so far I’ve been looking at variables, checking to make sure all my indentation is uniform, et cetera, but no matter what I try it won’t work.

I guess I’ll also add that when I run the game via the Index (using firefox) it just shows as a script error.

Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![RETowers](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/retowers/32/21477_2.png) [@RETowers](https://forum.choiceofgames.com/u/RETowers)\
**Post date:** [August 2, 2017, 7:06pm UTC](https://forum.choiceofgames.com/t/lines-is-not-defined/29343/2 "2017-08-02T19:06:11Z")

</div>

Uh, I’m guessing that means that one of the JS files got messed up at some point. I recommend downloading a fresh version of CS, moving over you scenes folder, and testing to see if that fixes it.

---

<div class="post-metadata">

**Author:** ![Lorikeet](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/lorikeet/32/25082_2.png) [@Lorikeet](https://forum.choiceofgames.com/u/Lorikeet)\
**Post date:** [August 2, 2017, 7:16pm UTC](https://forum.choiceofgames.com/t/lines-is-not-defined/29343/3 "2017-08-02T19:16:03Z")

</div>

That doesn’t seem to be the problem. I tried that and the same error came up. Everything worked fine until I uploaded that one file so I can’t help but wonder if it’s just something within that text…

---

<div class="post-metadata">

**Author:** ![Lorikeet](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/lorikeet/32/25082_2.png) [@Lorikeet](https://forum.choiceofgames.com/u/Lorikeet)\
**Post date:** [August 3, 2017, 4:32am UTC](https://forum.choiceofgames.com/t/lines-is-not-defined/29343/4 "2017-08-03T04:32:09Z")

</div>

Alright, I have no clue what I fixed, but it’s working now.

I put everything I had into ChoicescriptIDE and it, for some reason, was showing a whole bunch of indentations that weren’t showing in my text editor (for some odd reason).

Thanks for your help, though!

---

<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:** [August 3, 2017, 5:32am UTC](https://forum.choiceofgames.com/t/lines-is-not-defined/29343/5 "2017-08-03T05:32:29Z")

</div>

Huh.

> [@Lorikeet](#):
>
> I put everything I had into ChoicescriptIDE and it, for some reason, was showing a whole bunch of indentations that weren’t showing in my text editor (for some odd reason).

I assume you’re not using notepad-whatnot, am I right?

---

<div class="post-metadata">

**Author:** ![Lorikeet](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/lorikeet/32/25082_2.png) [@Lorikeet](https://forum.choiceofgames.com/u/Lorikeet)\
**Post date:** [August 3, 2017, 8:42am UTC](https://forum.choiceofgames.com/t/lines-is-not-defined/29343/6 "2017-08-03T08:42:50Z")

</div>

Nope, I was using apps called CodeWriter and NotepadX, the former of which has been kind of buggy. I assume that’s where something got messed up.

---

<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:** [August 3, 2017, 9:02am UTC](https://forum.choiceofgames.com/t/lines-is-not-defined/29343/7 "2017-08-03T09:02:01Z")

</div>

Oh, I see.  
Yeah, I guess that’s the cause 🤔
