Jerenaux / phaserquest

Reproduction of Mozilla's BrowserQuest using Phaser, socket.io and Node.js
http://www.dynetisgames.com/2017/03/18/phaser-quest/
MIT License
371 stars 127 forks source link

How to fix #14

Closed ziraiken closed 4 years ago

ziraiken commented 5 years ago

Listening on 8081 /root/phaserquest/js/server/GameServer.js:686 GameServer.dirtyAOIs.forEach(function(aoi){ ^

TypeError: Cannot read property 'forEach' of undefined at Object.GameServer.clearAOIs (/root/phaserquest/js/server/GameServer.js:686:26) at Timeout.GameServer.updatePlayers [as _onTimeout] (/root/phaserquest/js/server/GameServer.js:679:16) at ontimeout (timers.js:436:11) at tryOnTimeout (timers.js:300:5) at listOnTimeout (timers.js:263:5) at Timer.processTimers (timers.js:223:10)

How to fix that?

Jerenaux commented 5 years ago

This error should normally never happen, can you provide information to reproduce it? In what context did you run the game? Are there other errors in the log before that one?

Jerenaux commented 4 years ago

Closing due to lack of follow up.