Help with an error in 24.5 multiplayer isometric mouse

Post your help queries and engine programming questions here

Help with an error in 24.5 multiplayer isometric mouse

Postby craigbett » Thu Aug 04, 2016 8:35 am

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?
craigbett
 
Posts: 10
Joined: Fri Feb 28, 2014 5:28 am

Re: Help with an error in 24.5 multiplayer isometric mouse

Postby craigbett » Thu Aug 04, 2016 8:44 am

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.
craigbett
 
Posts: 10
Joined: Fri Feb 28, 2014 5:28 am

Re: Help with an error in 24.5 multiplayer isometric mouse

Postby craigbett » Thu Aug 04, 2016 10:38 am

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
Attachments
24.5-multiplayer-isometric-mouse.zip
fixed multiplayer isometric mouse
(12.34 KiB) Downloaded 371 times
craigbett
 
Posts: 10
Joined: Fri Feb 28, 2014 5:28 am

Re: Help with an error in 24.5 multiplayer isometric mouse

Postby rob » Thu Aug 04, 2016 11:18 am

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?
CEO & Lead Developer
Irrelon Software Limited
http://www.isogenicengine.com
User avatar
rob
Site Admin
 
Posts: 316
Joined: Tue Oct 22, 2013 5:08 pm

Re: Help with an error in 24.5 multiplayer isometric mouse

Postby craigbett » Fri Aug 05, 2016 12:24 pm

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:
craigbett
 
Posts: 10
Joined: Fri Feb 28, 2014 5:28 am


Return to Help & Questions

Who is online

Users browsing this forum: No registered users and 1 guest
cron