Page 1 of 1

Cannot read property 'x' of undefined

PostPosted: Tue Nov 26, 2013 2:52 pm
by cloned
There is no particular reason why this shows up but it has at random occasions during both world editing and playing a normal game. It causes the client to freeze leaving me unable to continue without refreshing the page. The following error shows in the JS console.

Code: Select all
Uncaught TypeError: Cannot read property 'x' of undefined


The last instance was when I was going to the edit NPC template screen, closing it, than clicking the items editor button.

I am using the latest version of Chrome to play.

Re: Cannot read property 'x' of undefined

PostPosted: Tue Nov 26, 2013 3:54 pm
by lugdunon
Thanks for reporting this, and letting me know what browser you are on. Is it happening often or rarely?

I'll try and reproduce it locally.

Re: Cannot read property 'x' of undefined

PostPosted: Tue Nov 26, 2013 5:03 pm
by cloned
I will try to get more details to assist as I am going to be using the GM Tools and test out the game mechanics.

Re: Cannot read property 'x' of undefined

PostPosted: Tue Nov 26, 2013 5:10 pm
by lugdunon
Awesome, thanks!

As far as I know, you are one of the first to be giving the world editing side of things a good shake. A lot of the editing at the moment still needs to be accomplished via editing the etc/*.json files directly, but there is still a good bit that can be accomplished in game as well.

Hope you find things enjoyable. :)

Re: Cannot read property 'x' of undefined

PostPosted: Tue Nov 26, 2013 8:03 pm
by cloned
I'm quite familiar with JSON format so this will be pretty fun for me.

Ill get back with you when I have a review and suggestions.

Re: Cannot read property 'x' of undefined

PostPosted: Tue Nov 26, 2013 10:10 pm
by cloned
Hope this helps, its the full error. There's no one action that triggers the error. Seems to happen randomly.

Code: Select all
Uncaught TypeError: Cannot read property 'x' of undefined VM2459:1
net.lugdunon.character.Character.handlePathing VM2459:1
net.lugdunon.character.Character.update VM2459:1
net.lugdunon.states.tiledGame.TiledGame.update VM2828:1
loop VM2426:1
(anonymous function)

Re: Cannot read property 'x' of undefined

PostPosted: Wed Nov 27, 2013 12:42 am
by lugdunon
Yep, that definitely helps narrow things down. I have some debug code in place locally to see exactly what is happening when this occurs.

Thanks again!