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


#1

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?


#2

Did you download Notepad++?

http://notepad-plus-plus.org/


#3

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

(If a mod wants to close this…)


#4

No probs


#5

@Reaperoa

~close


#6

@Reaperoa

is amazing


#7

@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


#8

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


#9

In debug stats did you put:

Strength
,fighting
Etc?


#10

@2Ton

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

Any other flaws?


#11

@WolfieGrey

Debug stats are the choicescript_stats scene you get when you download the folder, yes?


#12

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?


#13

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


#14

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


#15

@WolfieGrey So…mygame.js is pointless?


#16

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


#17

@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.


#18

@2Ton and @WolfieGrey VICTORY!!! Thanks you two. :smiley: 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!


#19

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


#20

The update doesn’t matter unless you want to use

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