# SceneNavigator Undefined (aka, mygame.js isn't opening)

**URL:** <https://forum.choiceofgames.com/t/scenenavigator-undefined-aka-mygame-js-isnt-opening/1305>\
**Category:** ChoiceScript Help\
**Created:** [April 27, 2013, 9:42pm UTC](https://forum.choiceofgames.com/t/scenenavigator-undefined-aka-mygame-js-isnt-opening/1305 "2013-04-27T21:42:20Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![adjppm1227](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@adjppm1227](https://forum.choiceofgames.com/u/adjppm1227)\
**Post date:** [April 27, 2013, 9:42pm UTC](https://forum.choiceofgames.com/t/scenenavigator-undefined-aka-mygame-js-isnt-opening/1305/1 "2013-04-27T21:42:20Z")

</div>

Script: C:\Users\Austin\Documents\dfabulich-choicescript-bfe5332\dfabulich-choicescript-bfe5332\web\mygame\mygame.js

Line: 1

Char: 1

Error: ‘SceneNavigator’ is undefined

Code: 800A1391

Source: Microsoft JScript runtime error

My computer is a Windows 8 (the bane of my life). I’ve heard something along the lines of Windows 8 doesn’t understand how the JavaScript works…and then I get lost. I can do numbers and patterns, but not computer talk. LOL. Help?

---

<div class="post-metadata">

**Author:** ![2Ton](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/2ton/32/786_2.png) [@2Ton](https://forum.choiceofgames.com/u/2Ton)\
**Post date:** [April 27, 2013, 9:47pm UTC](https://forum.choiceofgames.com/t/scenenavigator-undefined-aka-mygame-js-isnt-opening/1305/2 "2013-04-27T21:47:36Z")

</div>

Did you download Notepad++?

[http://notepad-plus-plus.org/](http://notepad-plus-plus.org/)

---

<div class="post-metadata">

**Author:** ![adjppm1227](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@adjppm1227](https://forum.choiceofgames.com/u/adjppm1227)\
**Post date:** [April 27, 2013, 9:51pm UTC](https://forum.choiceofgames.com/t/scenenavigator-undefined-aka-mygame-js-isnt-opening/1305/3 "2013-04-27T21:51:12Z")

</div>

@2Ton Yeah, I just did that. And it worked. Thanks you. 😃

(If a mod wants to close this…)

---

<div class="post-metadata">

**Author:** ![2Ton](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/2ton/32/786_2.png) [@2Ton](https://forum.choiceofgames.com/u/2Ton)\
**Post date:** [April 27, 2013, 9:52pm UTC](https://forum.choiceofgames.com/t/scenenavigator-undefined-aka-mygame-js-isnt-opening/1305/4 "2013-04-27T21:52:04Z")

</div>

No probs

---

<div class="post-metadata">

**Author:** ![WolfieGrey](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/wolfiegrey/32/1048_2.png) [@WolfieGrey](https://forum.choiceofgames.com/u/WolfieGrey)\
**Post date:** [April 27, 2013, 10:03pm UTC](https://forum.choiceofgames.com/t/scenenavigator-undefined-aka-mygame-js-isnt-opening/1305/5 "2013-04-27T22:03:39Z")

</div>

@Reaperoa

~close

---

<div class="post-metadata">

**Author:** ![2Ton](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/2ton/32/786_2.png) [@2Ton](https://forum.choiceofgames.com/u/2Ton)\
**Post date:** [April 27, 2013, 10:04pm UTC](https://forum.choiceofgames.com/t/scenenavigator-undefined-aka-mygame-js-isnt-opening/1305/6 "2013-04-27T22:04:27Z")

</div>

@Reaperoa

is amazing

---

<div class="post-metadata">

**Author:** ![adjppm1227](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@adjppm1227](https://forum.choiceofgames.com/u/adjppm1227)\
**Post date:** [April 27, 2013, 10:35pm UTC](https://forum.choiceofgames.com/t/scenenavigator-undefined-aka-mygame-js-isnt-opening/1305/7 "2013-04-27T22:35:12Z")

</div>

@2Ton Lol.

Hell, new problem. If it’s still open, I might as well ask, no?

“Unable to get property ‘setStartingStatsClone’ of undefined or null reference”

Le ugh! Why does ChoiceScript hate me? This is my stats screen on mygame.js

nav = new SceneNavigator([“startup”]);  
stats = {

strength: 50  
,fighting: 50  
,melee: 50  
,archery: 50  
,charisma: 50  
,influence  
,reputation: 50  
,grace: 50  
,intellect: 50  
,cunning: 50  
,wisdom: 50  
,lore: 50

};

// Specify the stats to use in debug mode

debugStats = stats

---

<div class="post-metadata">

**Author:** ![2Ton](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/2ton/32/786_2.png) [@2Ton](https://forum.choiceofgames.com/u/2Ton)\
**Post date:** [April 27, 2013, 10:37pm UTC](https://forum.choiceofgames.com/t/scenenavigator-undefined-aka-mygame-js-isnt-opening/1305/8 "2013-04-27T22:37:06Z")

</div>

I believe your influence may be to blame It needs to have a number or some text or something to register im sure

---

<div class="post-metadata">

**Author:** ![WolfieGrey](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/wolfiegrey/32/1048_2.png) [@WolfieGrey](https://forum.choiceofgames.com/u/WolfieGrey)\
**Post date:** [April 27, 2013, 10:38pm UTC](https://forum.choiceofgames.com/t/scenenavigator-undefined-aka-mygame-js-isnt-opening/1305/9 "2013-04-27T22:38:06Z")

</div>

In debug stats did you put:

Strength  
,fighting  
Etc?

---

<div class="post-metadata">

**Author:** ![adjppm1227](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@adjppm1227](https://forum.choiceofgames.com/u/adjppm1227)\
**Post date:** [April 27, 2013, 10:40pm UTC](https://forum.choiceofgames.com/t/scenenavigator-undefined-aka-mygame-js-isnt-opening/1305/10 "2013-04-27T22:40:11Z")

</div>

@2Ton

Fixed that, and still a no. (Are computers capable of hate?)

Any other flaws?

---

<div class="post-metadata">

**Author:** ![adjppm1227](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@adjppm1227](https://forum.choiceofgames.com/u/adjppm1227)\
**Post date:** [April 27, 2013, 10:41pm UTC](https://forum.choiceofgames.com/t/scenenavigator-undefined-aka-mygame-js-isnt-opening/1305/11 "2013-04-27T22:41:43Z")

</div>

@WolfieGrey

Debug stats are the choicescript\_stats scene you get when you download the folder, yes?

---

<div class="post-metadata">

**Author:** ![2Ton](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/2ton/32/786_2.png) [@2Ton](https://forum.choiceofgames.com/u/2Ton)\
**Post date:** [April 27, 2013, 10:44pm UTC](https://forum.choiceofgames.com/t/scenenavigator-undefined-aka-mygame-js-isnt-opening/1305/12 "2013-04-27T22:44:12Z")

</div>

Yes, computers are capable of hate… and hate crimes accoording to my lil bro

but ive never ran into this problem personally im at somewhat of a disadvantage with helping on it seeing as I was naturally born with the gift of coding

```

stats = {

  strength: 50
  ,fighting: 50
  ,melee: 50
  ,archery: 50
  ,charisma: 50
  ,influence: 0
  ,reputation: 50
  ,grace: 50
  ,intellect: 50
  ,cunning: 50
  ,wisdom: 50
  ,lore: 50

}; 

```

So, this is what you have my friend?

---

<div class="post-metadata">

**Author:** ![WolfieGrey](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/wolfiegrey/32/1048_2.png) [@WolfieGrey](https://forum.choiceofgames.com/u/WolfieGrey)\
**Post date:** [April 27, 2013, 10:47pm UTC](https://forum.choiceofgames.com/t/scenenavigator-undefined-aka-mygame-js-isnt-opening/1305/13 "2013-04-27T22:47:02Z")

</div>

No it should be in the mygame.js.  
Try downloading the new version of CS, you should be able to drag all your folders across to it, and it removes the need for the mygame file.

In the update, open the startup and use \*create  
Strength  
Fighting  
Lore  
Etc

---

<div class="post-metadata">

**Author:** ![2Ton](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/2ton/32/786_2.png) [@2Ton](https://forum.choiceofgames.com/u/2Ton)\
**Post date:** [April 27, 2013, 10:49pm UTC](https://forum.choiceofgames.com/t/scenenavigator-undefined-aka-mygame-js-isnt-opening/1305/14 "2013-04-27T22:49:03Z")

</div>

@WolfieGrey Oohh! because of that new update!? I had forgotten about that and im still a bit lost on how it changed

---

<div class="post-metadata">

**Author:** ![adjppm1227](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@adjppm1227](https://forum.choiceofgames.com/u/adjppm1227)\
**Post date:** [April 27, 2013, 10:53pm UTC](https://forum.choiceofgames.com/t/scenenavigator-undefined-aka-mygame-js-isnt-opening/1305/15 "2013-04-27T22:53:14Z")

</div>

@WolfieGrey So…mygame.js is pointless?

---

<div class="post-metadata">

**Author:** ![2Ton](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/2ton/32/786_2.png) [@2Ton](https://forum.choiceofgames.com/u/2Ton)\
**Post date:** [April 27, 2013, 10:57pm UTC](https://forum.choiceofgames.com/t/scenenavigator-undefined-aka-mygame-js-isnt-opening/1305/16 "2013-04-27T22:57:31Z")

</div>

No, your game is awesome even though it could possibly be about twilight which hopefully it isnt, but there was an update im not sure if this has anything to do on it but imma go try to find something

---

<div class="post-metadata">

**Author:** ![adjppm1227](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@adjppm1227](https://forum.choiceofgames.com/u/adjppm1227)\
**Post date:** [April 27, 2013, 11:02pm UTC](https://forum.choiceofgames.com/t/scenenavigator-undefined-aka-mygame-js-isnt-opening/1305/17 "2013-04-27T23:02:19Z")

</div>

@2Ton Twilight wasn’t too bad…

Anyway, I mean not the game (lol, I refuse to discredit my works of writing at this stage) but the function in and of itself. And we may still need it for scene order.

---

<div class="post-metadata">

**Author:** ![adjppm1227](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@adjppm1227](https://forum.choiceofgames.com/u/adjppm1227)\
**Post date:** [April 27, 2013, 11:09pm UTC](https://forum.choiceofgames.com/t/scenenavigator-undefined-aka-mygame-js-isnt-opening/1305/18 "2013-04-27T23:09:39Z")

</div>

@2Ton and @WolfieGrey VICTORY!!! Thanks you two. 😃 x infinity.

Now I just have to master the art of ‘letting you choose your name.’

I think I can master this one on my own. ;D

Thanks again!

---

<div class="post-metadata">

**Author:** ![2Ton](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/2ton/32/786_2.png) [@2Ton](https://forum.choiceofgames.com/u/2Ton)\
**Post date:** [April 27, 2013, 11:17pm UTC](https://forum.choiceofgames.com/t/scenenavigator-undefined-aka-mygame-js-isnt-opening/1305/19 "2013-04-27T23:17:42Z")

</div>

You figured it out? and also if you cant figure it out heres a cheat code  
  
stats = {

name: “2Ton is badass”

strength: 50

,fighting: 50

,melee: 50

,archery: 50

,charisma: 50

,influence: 0

,reputation: 50

,grace: 50

,intellect: 50

,cunning: 50

,wisdom: 50

,lore: 50

};  
do that in the mygame.js or whatever the name stat is all you need to add to it but also when your writing within the scenes you have to call a commandy thing like this

\*input\_text name

so it would be like

[Your text here}

Pick a name…

\*input\_text name

Nice name ${name}, SIKE!!!

---

<div class="post-metadata">

**Author:** ![WolfieGrey](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/wolfiegrey/32/1048_2.png) [@WolfieGrey](https://forum.choiceofgames.com/u/WolfieGrey)\
**Post date:** [April 27, 2013, 11:20pm UTC](https://forum.choiceofgames.com/t/scenenavigator-undefined-aka-mygame-js-isnt-opening/1305/20 "2013-04-27T23:20:55Z")

</div>

The update doesn’t matter unless you want to use

\*create and another command. It also won’t work unless you have the update.

[Next page](https://forum.choiceofgames.com/t/scenenavigator-undefined-aka-mygame-js-isnt-opening/1305.md?page=2)
