Uhh Ohh I think I broke it


#1

When trying to open my game in IE I get the following error:

Expected ‘:’

Yeah, pretty lame huh, then it pops up with a:

‘window.nav’ is null or not an object

Then it just sits on what I’m guessing would be my startup scene, but no text is displayed my three stats buttons are there and when I click one it displays:

‘window.stat.scene’ is null or not an object

I also ran an autotest and I’ll post what is displayed in the next post


#2

This is what is displayed when I run autotest.

C:\Users\Kriszta\Choice Script Games>java -jar js.jar -w -opt -1 -debug autotest
.js
js: “web/mygame/mygame.js”, line 206: missing : after property id
js: ,jump_from_scene_birth2_05: false
js: …^
js: “web/mygame/mygame.js”, line 207: missing ; before statement
js: ,jump_to_scene_birth2_05: false
js: …^
js: “web/mygame/mygame.js”, line 209: missing ; before statement
js: ,bullyname: “unknown”
js: …^
js: “web/mygame/mygame.js”, line 211: missing ; before statement
js: ,namepossessive: “unknown”
js: …^
js: “web/mygame/mygame.js”, line 213: missing ; before statement
js: ,no_strengths: false
js: …^
js: “web/mygame/mygame.js”, line 215: missing ; before statement
js: ,speed_select: 0
js: …^
js: “web/mygame/mygame.js”, line 217: missing ; before statement
js: ,agility_select: 0
js: …^
js: “web/mygame/mygame.js”, line 219: missing ; before statement
js: ,perception_select: 0
js: …^
js: “web/mygame/mygame.js”, line 221: missing ; before statement
js: ,endurance_select: 0
js: …^
js: “web/mygame/mygame.js”, line 223: missing ; before statement
js: ,strong_physical_plus_half: 0
js: …^
js: “web/mygame/mygame.js”, line 225: missing ; before statement
js: ,strong_physical_plus_one_third: 0
js: …^
js: “web/mygame/mygame.js”, line 227: missing ; before statement
js: ,strong_speed_plus_half: 0
js: …^
js: “web/mygame/mygame.js”, line 229: missing ; before statement
js: ,strong_speed_plus_one_third: 0
js: …^
js: “web/mygame/mygame.js”, line 231: missing ; before statement
js: ,strong_dexterity_plus_half: 0
js: …^
js: “web/mygame/mygame.js”, line 233: missing ; before statement
js: ,strong_dexterity_plus_one_third: 0
js: …^
js: “web/mygame/mygame.js”, line 235: missing ; before statement
js: ,strong_agility_plus_half: 0
js: …^
js: “web/mygame/mygame.js”, line 237: missing ; before statement
js: ,strong_agility_plus_one_third: 0
js: …^
js: “web/mygame/mygame.js”, line 239: missing ; before statement
js: ,strong_charisma_plus_half: 0
js: …^
js: “web/mygame/mygame.js”, line 241: missing ; before statement
js: ,strong_charisma_plus_one_third: 0
js: …^
js: “web/mygame/mygame.js”, line 243: missing ; before statement
js: ,strong_perception_plus_half: 0
js: …^
js: “web/mygame/mygame.js”, line 245: missing ; before statement
js: ,strong_perception_plus_one_third: 0
js: …^
js: “web/mygame/mygame.js”, line 247: missing ; before statement
js: ,strong_intelligence_plus_half: 0
js: …^
js: “web/mygame/mygame.js”, line 249: missing ; before statement
js: ,strong_intelligence_plus_one_third: 0
js: …^
js: “web/mygame/mygame.js”, line 251: missing ; before statement
js: ,strong_endurance_plus_half: 0
js: …^
js: “web/mygame/mygame.js”, line 253: missing ; before statement
js: ,strong_endurance_plus_one_third: 0
js: …^
js: “web/mygame/mygame.js”, line 255: missing ; before statement
js: ,strong_wisdom_plus_half: 0
js: …^
js: “web/mygame/mygame.js”, line 257: missing ; before statement
js: ,strong_wisdom_plus_one_third: 0
js: …^
js: “web/mygame/mygame.js”, line 259: missing ; before statement
js: ,weak_physical_one_quarter: 0
js: …^
js: “web/mygame/mygame.js”, line 261: missing ; before statement
js: ,weak_speed_half: 0
js: …^
js: “web/mygame/mygame.js”, line 263: missing ; before statement
js: ,weak_speed_one_third: 0
js: …^
js: “web/mygame/mygame.js”, line 265: missing ; before statement
js: ,weak_dexterity_one_quarter: 0
js: …^
js: “web/mygame/mygame.js”, line 267: missing ; before statement
js: ,weak_agility_half: 0
js: …^
js: “web/mygame/mygame.js”, line 269: missing ; before statement
js: ,weak_agility_one_third: 0
js: …^
js: “web/mygame/mygame.js”, line 271: missing ; before statement
js: ,weak_charisma_one_quarter: 0
js: …^
js: “web/mygame/mygame.js”, line 273: missing ; before statement
js: ,weak_perception_half: 0
js: …^
js: “web/mygame/mygame.js”, line 275: missing ; before statement
js: ,weak_perception_one_third: 0
js: …^
js: “web/mygame/mygame.js”, line 277: missing ; before statement
js: ,weak_intelligence_one_quarter: 0
js: …^
js: “web/mygame/mygame.js”, line 279: missing ; before statement
js: ,weak_endurance_half: 0
js: …^
js: “web/mygame/mygame.js”, line 281: missing ; before statement
js: ,weak_endurance_one_third: 0
js: …^
js: “web/mygame/mygame.js”, line 283: missing ; before statement
js: ,weak_wisdom_one_quarter: 0
js: …^
js: “web/mygame/mygame.js”, line 287: missing ; before statement
js: ,weapon_damage_type01: 1
js: …^
js: “web/mygame/mygame.js”, line 289: missing ; before statement
js: ,max_weight: 0
js: …^
js: “web/mygame/mygame.js”, line 291: missing ; before statement
js: ,encumbered80: false
js: …^
js: “web/mygame/mygame.js”, line 293: missing ; before statement
js: ,encumbered95: false
js: …^
js: “web/mygame/mygame.js”, line 295: missing ; before statement
js: ,encumbered75: false
js: …^
js: “web/mygame/mygame.js”, line 299: missing ; before statement
js: ,holding_right_desc: “you are not holding anything in this hand”
js: …^
js: “web/mygame/mygame.js”, line 301: missing ; before statement
js: ,holding_left: false
js: …^
js: “web/mygame/mygame.js”, line 303: missing ; before statement
js: ,item0001: false
js: …^
js: “web/mygame/mygame.js”, line 305: missing ; before statement
js: ,item0001_in_inven: false
js: …^
js: “web/mygame/mygame.js”, line 307: missing ; before statement
js: ,item0001_holding_right: false

js: “autotest.js”, line 27: uncaught JavaScript runtime exception: ReferenceErro
r: “nav” is not defined.
at autotest.js:27

C:\Users\Kriszta\Choice Script Games>


#3

I had to delete some of the previous but as you can see it saying that I need to change the ‘,’ (comma) at the beginning of my variables to a ‘;’ semicolon. I have no idea why. I also have quite a few variables before these that are in the exact same format and no error message.


#4

@Rob oh dear, i hope you can fix it :open_mouth:


#5

I’ve got it narrowed down to mygame.js but can’t figure out why the error is being called


#6

Are you using Notepad to view your mygame.js? If you are, I suggest you download Notepad ++ if you don’t already have it. Notepad ++ has a feature where each line of input is numbered.

If you already have Dreamweaver, you can also use it for the same purpose.


#7

Im using programmer’s notepad, it has the same feature. I’ve been through every line of mygame.js and I can’t see how those particular lines are any different then the previous ones are, which no error was called on


#8

WOW! That was really bizarre, I just went to the first line that autotest called an error in deleted it and rewrote it. In exactly the same format that it was in btw and somehow it worked! Whoohoo, one disaster diverted, time to write in another one :smiley:


#9

@Rob woooooooooooooooooooooooooooooooooo can’t wait to see all your work come together ! will you be able to get a demo update up today ? just wondering you properly have loads more work to do Lol.


#10

I think maybe it’s because of extra spaces? Extra spaces make the code funny, I realise.