Page 1 of 1

Help with an error in 24.5 multiplayer isometric mouse

PostPosted: Thu Aug 04, 2016 8:35 am
by craigbett
I'm trying debug this error I keep getting when I run the multiplayer isometric mouse example, this is the error that comes up

Code: Select all
e:\projects\ige\ige\examples\24.5-multiplayer-isometric-mouse\gameClasses\CharacterContainer.js:73
         this._streamDir = this.path.currentDirection();
                                     ^

TypeError: this.path.currentDirection is not a function
    at IgeClass.IgeEntity.extend.update (e:\projects\ige\ige\examples\24.5-multiplayer-isometric-mouse\gameClasses\CharacterContainer.js:73:32)
    at IgeClass.IgeEventingClass.extend.update (E:\projects\ige\ige\engine\core\IgeObject.js:1541:21)
    at IgeClass.IgeObject.extend.update (E:\projects\ige\ige\engine\core\IgeEntity.js:1633:30)
    at IgeClass.IgeEventingClass.extend.update (E:\projects\ige\ige\engine\core\IgeObject.js:1541:21)
    at IgeClass.IgeObject.extend.update (E:\projects\ige\ige\engine\core\IgeEntity.js:1633:30)
    at IgeClass.IgeEntity.extend.update (E:\projects\ige\ige\engine\core\IgeScene2d.js:127:30)
    at IgeClass.IgeEventingClass.extend.update (E:\projects\ige\ige\engine\core\IgeObject.js:1541:21)
    at IgeClass.IgeObject.extend.update (E:\projects\ige\ige\engine\core\IgeEntity.js:1633:30)
    at IgeClass.IgeEntity.extend.update (E:\projects\ige\ige\engine\core\IgeScene2d.js:127:30)
    at IgeClass.IgeEntity.extend.update (E:\projects\ige\ige\engine\core\IgeViewport.js:143:17)


Anyone know how to fix this or where I should start looking to debug it?

Re: Help with an error in 24.5 multiplayer isometric mouse

PostPosted: Thu Aug 04, 2016 8:44 am
by craigbett
Ok after digging a bit into older versions it seems the function currentDirection was renamed to getDirection, but the function doesn't seem to work either. But the error goes away.

Re: Help with an error in 24.5 multiplayer isometric mouse

PostPosted: Thu Aug 04, 2016 10:38 am
by craigbett
Well I got it working, seems it was using an old/different pathing system. I also found that it wasn't capturing the mouse events so fixed that too. :D

Re: Help with an error in 24.5 multiplayer isometric mouse

PostPosted: Thu Aug 04, 2016 11:18 am
by rob
craigbett wrote:Well I got it working, seems it was using an old/different pathing system. I also found that it wasn't capturing the mouse events so fixed that too. :D


Wow cool. Can you do a pull request on GitHub so we can integrate your fixes?

Re: Help with an error in 24.5 multiplayer isometric mouse

PostPosted: Fri Aug 05, 2016 12:24 pm
by craigbett
rob wrote:
craigbett wrote:Well I got it working, seems it was using an old/different pathing system. I also found that it wasn't capturing the mouse events so fixed that too. :D


Wow cool. Can you do a pull request on GitHub so we can integrate your fixes?


I would but I honestly have no idea how to use git/github. :oops: