GithubHelp home page GithubHelp logo

netease / lordofpomelo Goto Github PK

View Code? Open in Web Editor NEW
791.0 791.0 455.0 5.78 MB

the online demo of pomelo

Home Page: http://pomelo.netease.com/lordofpomelo

License: MIT License

JavaScript 94.72% Shell 0.02% CSS 4.38% HTML 0.88%

lordofpomelo's People

Contributors

changchang avatar demon0925 avatar fantasyni avatar halfblood369 avatar matrixbirds avatar nextzeus avatar numbcoder avatar py8765 avatar wuxian avatar xiecc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lordofpomelo's Issues

一些游戏里的bug

只是在http://pomelo.netease.com/lordofpomelo/ 上玩了一下,发现一些bug。
Macbook pro+lion+chrome 23

  1. 经常性的多装备或者少装备,重新登陆一次装备全变样了。基本上只要重新登陆equip里面的东西就变一次,我试了六次,有四次都有变化。
  2. oasis里面只要到coconut那里就彻底卡死,fps一下从50+到10-。
  3. 很多时候fps很高,但是延迟相当明显。点一下半天才有反应。是不是服务器配置太低?
  4. 鼠标判定太粗糙,很多时候完全点不到敌人。

towerAOI.js width undefined

  • pomelo start.
[2012-11-30 15:47:24.223] [INFO] console - lordofpomelo/game-server/node_modules/pomelo-aoi/lib/towerAOI/towerAOI.js:10

[2012-11-30 15:47:24.223] [INFO] console -   this.width = config.tower.width;

[2012-11-30 15:47:24.224] [INFO] console -                   ^

[2012-11-30 15:47:24.227] [INFO] console - [2012-11-30 15:47:24.223] [INFO] console - [data sync component] load mapping file done.

[2012-11-30 15:47:24.241] [INFO] console - TypeError: Cannot read property 'width' of undefined
    at new TowerAOI (lordofpomelo/game-server/node_modules/pomelo-aoi/lib/towerAOI/towerAOI.js:10:28)
    at Object.exp.getService (lordofpomelo/game-server/node_modules/pomelo-aoi/lib/towerAOI/towerAOI.js:358:10)
    at new AOIService (lordofpomelo/game-server/node_modules/pomelo-aoi/lib/aoiService.js:12:25)
    at Object.exp.getService (lordofpomelo/game-server/node_modules/pomelo-aoi/lib/aoiService.js:100:10)
    at Object.exp.init (lordofpomelo/game-server/app/domain/area/area.js:48:19)
    at Object.<anonymous> (lordofpomelo/game-server/app.js:76:7)
    at Object.Application.configure (lordofpomelo/game-server/node_modules/pomelo/lib/application.js:541:7)
    at Object.<anonymous> (lordofpomelo/game-server/app.js:67:5)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)

[2012-11-30 15:47:24.248] [ERROR] /node_modules/pomelo/lib/master/starter.js - FAILED TO RUN, return code: 1

demo不支持windows安装了吗

我看了安装教程说windows平台下运行bat文件安装相关依赖,但是我刚拉下来的demo项目中已经没有bat文件了,请问是该demo不支持windows下安装了吗,还是换了别的方式,但文档木有更新?

无法启动game-server

path.js:28
throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'path', 'string');
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string
at assertPath (path.js:28:11)
at Object.resolve (path.js:1179:7)
at start (/usr/local/lib/node_modules/pomelo/bin/pomelo:340:24)
at Command. (/usr/local/lib/node_modules/pomelo/bin/pomelo:65:5)
at Command. (/usr/local/lib/node_modules/pomelo/node_modules/commander/index.js:249:8)
at Command.emit (events.js:160:13)
at Command.parseArgs (/usr/local/lib/node_modules/pomelo/node_modules/commander/index.js:472:12)
at Command.parse (/usr/local/lib/node_modules/pomelo/node_modules/commander/index.js:370:21)
at Object. (/usr/local/lib/node_modules/pomelo/bin/pomelo:142:9)
at Module._compile (module.js:660:30)

master branch code is not running in my ubuntu 18.04 local system.

When I run the game-server with the command "pomelo start" then it shows me the below error :-

[2018-10-19 10:41:37.525] [ERROR] console - getSysInfo failed! Error: Command failed: iostat
/bin/sh: 1: iostat: not found

at ChildProcess.exithandler (child_process.js:199:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:920:16)
at Socket.<anonymous> (internal/child_process.js:351:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:509:12)

[2018-10-19 10:41:37.629] [ERROR] console - Caught exception: TypeError: Cannot read property 'date' of undefined
at Module.masterHandler (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/modules/systemInfo.js:41:19)
at ConsoleService.execute (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/consoleService.js:203:16)
at MasterSocket.onMonitor (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/master/masterSocket.js:105:28)
at Connection. (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/master/masterAgent.js:93:20)
at emitOne (events.js:96:13)
at Connection.emit (events.js:188:7)
at Connection. (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/protocol/mqtt/mqttServer.js:56:11)
at emitOne (events.js:96:13)
at Connection.emit (events.js:188:7)
at Connection.emitPacket (/var/www/html/lordofpomelo/game-server/node_modules/mqtt-connection/connection.js:14:8)

[2018-10-19 10:41:37.632] [ERROR] console - Caught exception: TypeError: Cannot read property 'date' of undefined
at Module.masterHandler (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/modules/systemInfo.js:41:19)
at ConsoleService.execute (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/consoleService.js:203:16)
at MasterSocket.onMonitor (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/master/masterSocket.js:105:28)
at Connection. (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/master/masterAgent.js:93:20)
at emitOne (events.js:96:13)
at Connection.emit (events.js:188:7)
at Connection. (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/protocol/mqtt/mqttServer.js:56:11)
at emitOne (events.js:96:13)
at Connection.emit (events.js:188:7)
at Connection.emitPacket (/var/www/html/lordofpomelo/game-server/node_modules/mqtt-connection/connection.js:14:8)

[2018-10-19 10:41:37.533] [ERROR] console - getSysInfo failed! Error: Command failed: iostat
/bin/sh: 1: iostat: not found

at ChildProcess.exithandler (child_process.js:199:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:920:16)
at Socket.<anonymous> (internal/child_process.js:351:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:509:12)

[2018-10-19 10:41:37.533] [ERROR] console - getSysInfo failed! Error: Command failed: iostat
/bin/sh: 1: iostat: not found

at ChildProcess.exithandler (child_process.js:199:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:920:16)
at Socket.<anonymous> (internal/child_process.js:351:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:509:12)

[2018-10-19 10:41:37.637] [ERROR] console - Caught exception: TypeError: Cannot read property 'date' of undefined
at Module.masterHandler (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/modules/systemInfo.js:41:19)
at ConsoleService.execute (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/consoleService.js:203:16)
at MasterSocket.onMonitor (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/master/masterSocket.js:105:28)
at Connection. (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/master/masterAgent.js:93:20)
at emitOne (events.js:96:13)
at Connection.emit (events.js:188:7)
at Connection. (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/protocol/mqtt/mqttServer.js:56:11)
at emitOne (events.js:96:13)
at Connection.emit (events.js:188:7)
at Connection.emitPacket (/var/www/html/lordofpomelo/game-server/node_modules/mqtt-connection/connection.js:14:8)

[2018-10-19 10:41:37.532] [ERROR] console - getSysInfo failed! Error: Command failed: iostat
/bin/sh: 1: iostat: not found

at ChildProcess.exithandler (child_process.js:199:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:920:16)
at Socket.<anonymous> (internal/child_process.js:351:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:509:12)

[2018-10-19 10:41:37.641] [ERROR] console - Caught exception: TypeError: Cannot read property 'date' of undefined
at Module.masterHandler (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/modules/systemInfo.js:41:19)
at ConsoleService.execute (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/consoleService.js:203:16)
at MasterSocket.onMonitor (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/master/masterSocket.js:105:28)
at Connection. (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/master/masterAgent.js:93:20)
at emitOne (events.js:96:13)
at Connection.emit (events.js:188:7)
at Connection. (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/protocol/mqtt/mqttServer.js:56:11)
at emitOne (events.js:96:13)
at Connection.emit (events.js:188:7)
at Connection.emitPacket (/var/www/html/lordofpomelo/game-server/node_modules/mqtt-connection/connection.js:14:8)

[2018-10-19 10:41:37.643] [ERROR] console - Caught exception: TypeError: Cannot read property 'date' of undefined
at Module.masterHandler (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/modules/systemInfo.js:41:19)
at ConsoleService.execute (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/consoleService.js:203:16)
at MasterSocket.onMonitor (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/master/masterSocket.js:105:28)
at Connection. (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/master/masterAgent.js:93:20)
at emitOne (events.js:96:13)
at Connection.emit (events.js:188:7)
at Connection. (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/protocol/mqtt/mqttServer.js:56:11)
at emitOne (events.js:96:13)
at Connection.emit (events.js:188:7)
at Connection.emitPacket (/var/www/html/lordofpomelo/game-server/node_modules/mqtt-connection/connection.js:14:8)

[2018-10-19 10:41:37.538] [ERROR] console - getSysInfo failed! Error: Command failed: iostat
/bin/sh: 1: iostat: not found

at ChildProcess.exithandler (child_process.js:199:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:920:16)
at Socket.<anonymous> (internal/child_process.js:351:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:509:12)

[2018-10-19 10:41:37.647] [ERROR] console - Caught exception: TypeError: Cannot read property 'date' of undefined
at Module.masterHandler (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/modules/systemInfo.js:41:19)
at ConsoleService.execute (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/consoleService.js:203:16)
at MasterSocket.onMonitor (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/master/masterSocket.js:105:28)
at Connection. (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/master/masterAgent.js:93:20)
at emitOne (events.js:96:13)
at Connection.emit (events.js:188:7)
at Connection. (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/protocol/mqtt/mqttServer.js:56:11)
at emitOne (events.js:96:13)
at Connection.emit (events.js:188:7)
at Connection.emitPacket (/var/www/html/lordofpomelo/game-server/node_modules/mqtt-connection/connection.js:14:8)

[2018-10-19 10:41:37.544] [ERROR] console - getSysInfo failed! Error: Command failed: iostat
/bin/sh: 1: iostat: not found

at ChildProcess.exithandler (child_process.js:199:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:920:16)
at Socket.<anonymous> (internal/child_process.js:351:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:509:12)

[2018-10-19 10:41:37.549] [ERROR] console - getSysInfo failed! Error: Command failed: iostat
/bin/sh: 1: iostat: not found

at ChildProcess.exithandler (child_process.js:199:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:920:16)
at Socket.<anonymous> (internal/child_process.js:351:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:509:12)

[2018-10-19 10:41:37.553] [ERROR] console - getSysInfo failed! Error: Command failed: iostat
/bin/sh: 1: iostat: not found

at ChildProcess.exithandler (child_process.js:199:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:920:16)
at Socket.<anonymous> (internal/child_process.js:351:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:509:12)

[2018-10-19 10:41:37.648] [ERROR] console - Caught exception: TypeError: Cannot read property 'date' of undefined
at Module.masterHandler (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/modules/systemInfo.js:41:19)
at ConsoleService.execute (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/consoleService.js:203:16)
at MasterSocket.onMonitor (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/master/masterSocket.js:105:28)
at Connection. (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/master/masterAgent.js:93:20)
at emitOne (events.js:96:13)
at Connection.emit (events.js:188:7)
at Connection. (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/protocol/mqtt/mqttServer.js:56:11)
at emitOne (events.js:96:13)
at Connection.emit (events.js:188:7)
at Connection.emitPacket (/var/www/html/lordofpomelo/game-server/node_modules/mqtt-connection/connection.js:14:8)

[2018-10-19 10:41:37.560] [ERROR] console - getSysInfo failed! Error: Command failed: iostat
/bin/sh: 1: iostat: not found

at ChildProcess.exithandler (child_process.js:199:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:920:16)
at Socket.<anonymous> (internal/child_process.js:351:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:509:12)

[2018-10-19 10:41:37.653] [ERROR] console - Caught exception: TypeError: Cannot read property 'date' of undefined
at Module.masterHandler (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/modules/systemInfo.js:41:19)
at ConsoleService.execute (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/consoleService.js:203:16)
at MasterSocket.onMonitor (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/master/masterSocket.js:105:28)
at Connection. (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/master/masterAgent.js:93:20)
at emitOne (events.js:96:13)
at Connection.emit (events.js:188:7)
at Connection. (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/protocol/mqtt/mqttServer.js:56:11)
at emitOne (events.js:96:13)
at Connection.emit (events.js:188:7)
at Connection.emitPacket (/var/www/html/lordofpomelo/game-server/node_modules/mqtt-connection/connection.js:14:8)

[2018-10-19 10:41:37.561] [ERROR] console - getSysInfo failed! Error: Command failed: iostat
/bin/sh: 1: iostat: not found

at ChildProcess.exithandler (child_process.js:199:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:920:16)
at Socket.<anonymous> (internal/child_process.js:351:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:509:12)

[2018-10-19 10:41:37.654] [ERROR] console - Caught exception: TypeError: Cannot read property 'date' of undefined
at Module.masterHandler (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/modules/systemInfo.js:41:19)
at ConsoleService.execute (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/consoleService.js:203:16)
at MasterSocket.onMonitor (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/master/masterSocket.js:105:28)
at Connection. (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/master/masterAgent.js:93:20)
at emitOne (events.js:96:13)
at Connection.emit (events.js:188:7)
at Connection. (/var/www/html/lordofpomelo/game-server/node_modules/pomelo-admin/lib/protocol/mqtt/mqttServer.js:56:11)
at emitOne (events.js:96:13)
at Connection.emit (events.js:188:7)
at Connection.emitPacket (/var/www/html/lordofpomelo/game-server/node_modules/mqtt-connection/connection.js:14:8)

GitHub login

GitHub now requires the app to set a UserAgent when making requests to its API.

Uncaught ReferenceError: Buffer is not defined & Uncaught TypeError: Cannot call method 'on' of undefined

重新git clone了lordofpomelo,服务端是可以运行了,但是http://127.0.0.1:3001/点登录和注册按钮都没有反应,打开JavaScript控制台,有报错:
Uncaught ReferenceError: Buffer is not defined @ build.js:720
''Uncaught TypeError: Cannot call method 'on' of undefined'' @clientManager.js:27

Error in Firebug of firefox:
ReferenceError: Buffer is not defined
...module ? module.exports : (this.Protocol = {}),'object' === typeof module ? Buff...
build.js (第 720 行)

TypeError: pomelo is undefined
pomelo.on('websocket-error', function(){
clientManager.js (第 27 行)

Progress bar takes forever

Hi,

I am experiencing that sometimes (yes, it is one of these bugs) the progress bar that takes you to the areas seems to take forever or stalls completely. You can also see this on the reference implementation.

This seems not to be related to the horse power of the server (see my discussion here in the google group) because I tried this on an m1.medium and it didn't show any load problems.

Any ideas why that is?

Thanks,
Dirk

[EDIT] I found these warnings on the console, but I am not sure if the are related:
[WARN] /app/servers/area/remote/playerRemote.js - player not in the area ! {"playerId":2,"areaId":1}
[WARN] /app/domain/entity/character.js - Remote find path failed! No path exist!

提示需要安装oauth,装完后提示代码错误

node app
Error: Cannot find module 'oauth'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object. (/home/gaowei/project/lordofpomelo/web-server/node_modules/everyauth/lib/modules/oauth2.js:2:13)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)

npm install oauth
node app

/home/gaowei/project/lordofpomelo/web-server/node_modules/everyauth/index.js:20
var oldUse = connect.HTTPServer.prototype.use;
^
TypeError: Cannot read property 'prototype' of undefined
at Object.everyauth.middleware (/home/gaowei/project/lordofpomelo/web-server/node_modules/everyauth/index.js:20:34)
at HTTPServer. (/home/gaowei/project/lordofpomelo/web-server/app.js:16:21)
at HTTPServer.app.configure (/home/gaowei/project/lordofpomelo/web-server/node_modules/express/lib/http.js:543:61)
at Object. (/home/gaowei/project/lordofpomelo/web-server/app.js:11:5)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:492:10)
at process.startup.processNextTick.process._tickCallback (node.js:245:9)

安装问题

按照wiki安装方法到这一步出错了
cd lordofpomelo/web-server && sh bin/component.sh
bin/component.sh: line 1: component: command not found

请问测试用例应该怎么用?

用mocha 执行单个文件?
执行dataApiTest.js出现
TypeError: Cannot read property 'should' of undefined

请问测试用例应该怎么用?

lord保存数据的问题

py君,lord的保存有点问题,save那边使用了pomelo-sync,现在lord这边是使用了部分,在退出跟切换场景的时候直接调用dao.update了,可sync里边现在是1分钟保存,那边的没取消,可能会覆盖掉退出时候保存的数据,改成这样应该就行, addSaveEvent那边的save 事件要加个参数
player.on('save', function(immediate) {
if (immediate) {
app.get('sync').flush('updatePlayer', player.id, player.strip());
} else {
app.get('sync').exec('updatePlayer', player.id, player.strip());
}
普通使用的时候就是player.save() 退出跟切换场景的时候就是player.save(true)

dictionary.json

[
"onDropItem",
"onAttack",
"onDied",
"onMove",
"onUpgrage",
"onPickItem",
"onRevive",
"addEntities",
"onRemoveEntities",
"onPathCheckout"
]

"addEntities" is wrong, the right is "onAddEntities"

pomelo list显示undefined

升级到0.3版本后,运行demo,想用pomelo list查看资源占用情况,出现以下异常:

x

代码里的注释打错了单词

在web-server/public/js/handler/loginMsgHandler.js的第11行中messge应该是message吧。哈哈,我这人比较较真,我想这可能会有外国人看吧......

it's error when I choose a role player!!!what's the demo??? so much errors,why???why???why???

[2017-02-24 09:18:39.929] [DEBUG] pomelo - [E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\game-server\node_modules\pomelo\lib\components\connector.js] session on [connector-server-1] bind with uid: 2
[2017-02-24 09:18:39.930] [DEBUG] pomelo - [E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\game-server\node_modules\pomelo\lib\components\connector.js] [connector-server-1] send message reqId: 2, route: connector.entryHandler.entry, msg: {"code":200}, receivers: [1], opts: {"type":"response","userOptions":{},"isResponse":true}
[2017-02-24 09:18:52.321] [DEBUG] pomelo - [E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\game-server\node_modules\pomelo\lib\components\connector.js] [connector-server-1] handleMessage session id: 1, msg: {"id":3,"type":0,"compressRoute":1,"route":"connector.roleHandler.createPlayer","body":{"name":"mk","roleId":210},"compressGzip":0}
[2017-02-24 09:18:55.322] [ERROR] pomelo - [E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\game-server\node_modules\pomelo\lib\filters\handler\timeout.js] request "connector.roleHandler.createPlayer" timeout.

master branch code is not running in my ubuntu 18.04 local system.

when I run the web server with the command "node app.js" then it shows me the below error : -

Web server has started.
Please log on http://127.0.0.1:3001/
Caught exception: TypeError: mime.lookup is not a function
at /var/www/html/lordofpomelo/web-server/node_modules/express/node_modules/connect/lib/middleware/static.js:144:17
at FSReqWrap.oncomplete (fs.js:123:15)
Caught exception: TypeError: mime.lookup is not a function
at /var/www/html/lordofpomelo/web-server/node_modules/express/node_modules/connect/lib/middleware/static.js:144:17
at FSReqWrap.oncomplete (fs.js:123:15)
Caught exception: TypeError: mime.lookup is not a function
at /var/www/html/lordofpomelo/web-server/node_modules/express/node_modules/connect/lib/middleware/static.js:144:17
at FSReqWrap.oncomplete (fs.js:123:15)
Caught exception: TypeError: mime.lookup is not a function
at /var/www/html/lordofpomelo/web-server/node_modules/express/node_modules/connect/lib/middleware/static.js:144:17
at FSReqWrap.oncomplete (fs.js:123:15)
Caught exception: TypeError: mime.lookup is not a function
at /var/www/html/lordofpomelo/web-server/node_modules/express/node_modules/connect/lib/middleware/static.js:144:17
at FSReqWrap.oncomplete (fs.js:123:15)
Caught exception: TypeError: mime.lookup is not a function
at /var/www/html/lordofpomelo/web-server/node_modules/express/node_modules/connect/lib/middleware/static.js:144:17
at FSReqWrap.oncomplete (fs.js:123:15)
Caught exception: TypeError: mime.lookup is not a function
at /var/www/html/lordofpomelo/web-server/node_modules/express/node_modules/connect/lib/middleware/static.js:144:17
at FSReqWrap.oncomplete (fs.js:123:15)
Caught exception: TypeError: mime.lookup is not a function
at /var/www/html/lordofpomelo/web-server/node_modules/express/node_modules/connect/lib/middleware/static.js:144:17
at FSReqWrap.oncomplete (fs.js:123:15)

fightskill.js

in the file fightskill.js 102 line
if (this.mp < this.mp) { // <--err
return {result: consts.AttackResult.NO_ENOUGH_MP};
}

pomelo start 报错

。。。这是pomelo start后的所有信息,因为号=好几处报错,可以搜索error来看。。。
chendeMacBook-Pro:game-server xiaohei107$ pomelo start
[2012-11-30 22:04:35.954] [INFO] /node_modules/pomelo/lib/application.js - app.init invoked

[2012-11-30 22:04:35.968] [INFO] /node_modules/pomelo/lib/application.js - application inited: "master-server-1"

[2012-11-30 22:04:35.991] [INFO] console - [data sync component] load mapping file done.

[2012-11-30 22:04:36.097] [INFO] console - info: 'socket.io started'

[2012-11-30 22:04:36.098] [ERROR] console - log4js.fileAppender - Writing to file logs/node-log-master-server-1.log, error happened { [Error: ENOENT, open 'logs/node-log-master-server-1.log']
errno: 34,
code: 'ENOENT',
path: 'logs/node-log-master-server-1.log' }
Error: ENOENT, open 'logs/node-log-master-server-1.log'

[2012-11-30 22:04:36.099] [ERROR] console - log4js.fileAppender - Writing to file logs/rpc-log-master-server-1.log, error happened { [Error: ENOENT, open 'logs/rpc-log-master-server-1.log']
errno: 34,
code: 'ENOENT',
path: 'logs/rpc-log-master-server-1.log' }
Error: ENOENT, open 'logs/rpc-log-master-server-1.log'

[2012-11-30 22:04:36.100] [ERROR] console - log4js.fileAppender - Writing to file logs/forward-log-master-server-1.log, error happened { [Error: ENOENT, open 'logs/forward-log-master-server-1.log']
errno: 34,
code: 'ENOENT',
path: 'logs/forward-log-master-server-1.log' }
Error: ENOENT, open 'logs/forward-log-master-server-1.log'

[2012-11-30 22:04:36.100] [ERROR] console - log4js.fileAppender - Writing to file logs/crash.log, error happened { [Error: ENOENT, open 'logs/crash.log'] errno: 34, code: 'ENOENT', path: 'logs/crash.log' }
Error: ENOENT, open 'logs/crash.log'

[2012-11-30 22:04:36.100] [INFO] /node_modules/pomelo/lib/master/starter.js - Executing cd /Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server && node /Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/app.js env=development serverType=connector serverId=connector-server-1 locally

[2012-11-30 22:04:36.103] [INFO] /node_modules/pomelo/lib/master/starter.js - Executing cd /Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server && node /Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/app.js env=development serverType=connector serverId=connector-server-2 locally

[2012-11-30 22:04:36.107] [INFO] /node_modules/pomelo/lib/master/starter.js - Executing cd /Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server && node /Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/app.js env=development serverType=connector serverId=connector-server-3 locally

[2012-11-30 22:04:36.108] [INFO] /node_modules/pomelo/lib/master/starter.js - Executing cd /Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server && node /Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/app.js env=development serverType=connector serverId=connector-server-4 locally

[2012-11-30 22:04:36.110] [INFO] /node_modules/pomelo/lib/master/starter.js - Executing cd /Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server && node /Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/app.js env=development serverType=area serverId=area-server-1 locally

[2012-11-30 22:04:36.112] [INFO] /node_modules/pomelo/lib/master/starter.js - Executing cd /Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server && node /Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/app.js env=development serverType=area serverId=area-server-2 locally

[2012-11-30 22:04:36.114] [INFO] /node_modules/pomelo/lib/master/starter.js - Executing cd /Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server && node /Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/app.js env=development serverType=area serverId=area-server-3 locally

[2012-11-30 22:04:36.116] [INFO] /node_modules/pomelo/lib/master/starter.js - Executing cd /Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server && node /Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/app.js env=development serverType=chat serverId=chat-server-1 locally

[2012-11-30 22:04:36.119] [INFO] /node_modules/pomelo/lib/master/starter.js - Executing cd /Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server && node /Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/app.js env=development serverType=path serverId=path-server-1 locally

[2012-11-30 22:04:36.121] [INFO] /node_modules/pomelo/lib/master/starter.js - Executing cd /Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server && node /Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/app.js env=development serverType=auth serverId=auth-server-1 locally

[2012-11-30 22:04:36.126] [INFO] /node_modules/pomelo/lib/master/starter.js - Executing cd /Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server && node /Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/app.js env=development serverType=gate serverId=gate-server-1 locally

[2012-11-30 22:04:36.134] [INFO] /node_modules/pomelo/node_modules/pomelo-admin/lib/consoleService.js - try to connect master: "master", "127.0.0.1", 3005

[2012-11-30 22:04:36.258] [DEBUG] /node_modules/pomelo/lib/master/master.js - [master] new register connection: "master-server-1", "master"

[2012-11-30 22:04:36.505] [INFO] console - [2012-11-30 22:04:36.489] [INFO] /node_modules/pomelo/lib/application.js - app.init invoked

[2012-11-30 22:04:36.508] [INFO] console - [2012-11-30 22:04:36.491] [INFO] /node_modules/pomelo/lib/application.js - app.init invoked

[2012-11-30 22:04:36.529] [INFO] console - [2012-11-30 22:04:36.518] [INFO] /node_modules/pomelo/lib/application.js - app.init invoked

[2012-11-30 22:04:36.531] [INFO] console - [2012-11-30 22:04:36.520] [INFO] /node_modules/pomelo/lib/application.js - app.init invoked

[2012-11-30 22:04:36.534] [INFO] console - [2012-11-30 22:04:36.523] [INFO] /node_modules/pomelo/lib/application.js - app.init invoked

[2012-11-30 22:04:36.535] [INFO] console - [2012-11-30 22:04:36.534] [INFO] /node_modules/pomelo/lib/application.js - application inited: "connector-server-1"

[2012-11-30 22:04:36.543] [INFO] console - [2012-11-30 22:04:36.542] [INFO] /node_modules/pomelo/lib/application.js - application inited: "connector-server-3"

[2012-11-30 22:04:36.553] [INFO] console - [2012-11-30 22:04:36.552] [INFO] /node_modules/pomelo/lib/application.js - application inited: "connector-server-4"

[2012-11-30 22:04:36.555] [INFO] console - [2012-11-30 22:04:36.542] [INFO] /node_modules/pomelo/lib/application.js - app.init invoked

[2012-11-30 22:04:36.555] [INFO] console - [2012-11-30 22:04:36.544] [INFO] /node_modules/pomelo/lib/application.js - app.init invoked

[2012-11-30 22:04:36.555] [INFO] console - [2012-11-30 22:04:36.554] [INFO] /node_modules/pomelo/lib/application.js - application inited: "connector-server-2"

[2012-11-30 22:04:36.563] [INFO] console - [2012-11-30 22:04:36.552] [INFO] /node_modules/pomelo/lib/application.js - app.init invoked

[2012-11-30 22:04:36.565] [INFO] console - [2012-11-30 22:04:36.554] [INFO] /node_modules/pomelo/lib/application.js - app.init invoked

[2012-11-30 22:04:36.572] [INFO] console - [2012-11-30 22:04:36.571] [INFO] /node_modules/pomelo/lib/application.js - application inited: "area-server-1"

[2012-11-30 22:04:36.573] [INFO] console - [2012-11-30 22:04:36.564] [INFO] /node_modules/pomelo/lib/application.js - app.init invoked

[2012-11-30 22:04:36.581] [INFO] console - [2012-11-30 22:04:36.566] [INFO] /node_modules/pomelo/lib/application.js - app.init invoked

[2012-11-30 22:04:36.584] [INFO] console - [2012-11-30 22:04:36.583] [INFO] /node_modules/pomelo/lib/application.js - application inited: "area-server-2"

[2012-11-30 22:04:36.584] [INFO] console - [2012-11-30 22:04:36.583] [INFO] /node_modules/pomelo/lib/application.js - application inited: "chat-server-1"

[2012-11-30 22:04:36.585] [INFO] console - [2012-11-30 22:04:36.584] [INFO] /node_modules/pomelo/lib/application.js - application inited: "area-server-3"

[2012-11-30 22:04:36.593] [INFO] console - [2012-11-30 22:04:36.593] [INFO] console - [data sync component] load mapping file done.

[2012-11-30 22:04:36.594] [INFO] console - [2012-11-30 22:04:36.592] [INFO] /node_modules/pomelo/lib/application.js - application inited: "path-server-1"

[2012-11-30 22:04:36.598] [INFO] console - [2012-11-30 22:04:36.598] [INFO] console - [data sync component] load mapping file done.

[2012-11-30 22:04:36.602] [INFO] console - [2012-11-30 22:04:36.601] [INFO] /node_modules/pomelo/lib/application.js - application inited: "auth-server-1"

[2012-11-30 22:04:36.607] [INFO] console - [2012-11-30 22:04:36.606] [INFO] /node_modules/pomelo/lib/application.js - application inited: "gate-server-1"

[2012-11-30 22:04:36.617] [INFO] console - [2012-11-30 22:04:36.616] [INFO] console - [data sync component] load mapping file done.

[2012-11-30 22:04:36.622] [INFO] console - [2012-11-30 22:04:36.620] [INFO] console - [data sync component] load mapping file done.

[2012-11-30 22:04:36.663] [INFO] console - [2012-11-30 22:04:36.660] [INFO] console - [data sync component] load mapping file done.

[2012-11-30 22:04:36.745] [INFO] console - [2012-11-30 22:04:36.745] [INFO] console - [data sync component] load mapping file done.

[2012-11-30 22:04:36.980] [INFO] console - [2012-11-30 22:04:36.979] [INFO] console - [data sync component] load mapping file done.

[2012-11-30 22:04:37.631] [INFO] console - [2012-11-30 22:04:37.630] [INFO] console - [data sync component] load mapping file done.

[2012-11-30 22:04:38.352] [INFO] console - [2012-11-30 22:04:38.350] [ERROR] console - log4js.fileAppender - Writing to file logs/node-log-connector-server-3.log, error happened { [Error: ENOENT, open 'logs/node-log-connector-server-3.log']
errno: 34,
code: 'ENOENT',
path: 'logs/node-log-connector-server-3.log' }
Error: ENOENT, open 'logs/node-log-connector-server-3.log'

[2012-11-30 22:04:38.352] [INFO] console - [2012-11-30 22:04:38.352] [ERROR] console - log4js.fileAppender - Writing to file logs/con-log-connector-server-3.log, error happened { [Error: ENOENT, open 'logs/con-log-connector-server-3.log']
errno: 34,
code: 'ENOENT',
path: 'logs/con-log-connector-server-3.log' }
Error: ENOENT, open 'logs/con-log-connector-server-3.log'

[2012-11-30 22:04:38.353] [INFO] console - [2012-11-30 22:04:38.352] [ERROR] console - log4js.fileAppender - Writing to file logs/rpc-log-connector-server-3.log, error happened { [Error: ENOENT, open 'logs/rpc-log-connector-server-3.log']
errno: 34,
code: 'ENOENT',
path: 'logs/rpc-log-connector-server-3.log' }
Error: ENOENT, open 'logs/rpc-log-connector-server-3.log'

[2012-11-30 22:04:38.353] [INFO] console - [2012-11-30 22:04:38.353] [ERROR] console - log4js.fileAppender - Writing to file logs/forward-log-connector-server-3.log, error happened { [Error: ENOENT, open 'logs/forward-log-connector-server-3.log']
errno: 34,
code: 'ENOENT',
path: 'logs/forward-log-connector-server-3.log' }
Error: ENOENT, open 'logs/forward-log-connector-server-3.log'

[2012-11-30 22:04:38.353] [INFO] console - [2012-11-30 22:04:38.353] [ERROR] console - log4js.fileAppender - Writing to file logs/crash.log, error happened { [Error: ENOENT, open 'logs/crash.log'] errno: 34, code: 'ENOENT', path: 'logs/crash.log' }
Error: ENOENT, open 'logs/crash.log'

[2012-11-30 22:04:38.359] [INFO] console - [2012-11-30 22:04:38.357] [ERROR] console - log4js.fileAppender - Writing to file logs/node-log-chat-server-1.log, error happened { [Error: ENOENT, open 'logs/node-log-chat-server-1.log']
errno: 34,
code: 'ENOENT',
path: 'logs/node-log-chat-server-1.log' }
Error: ENOENT, open 'logs/node-log-chat-server-1.log'

[2012-11-30 22:04:38.360] [INFO] console - [2012-11-30 22:04:38.359] [ERROR] console - log4js.fileAppender - Writing to file logs/rpc-log-chat-server-1.log, error happened { [Error: ENOENT, open 'logs/rpc-log-chat-server-1.log']
errno: 34,
code: 'ENOENT',
path: 'logs/rpc-log-chat-server-1.log' }
Error: ENOENT, open 'logs/rpc-log-chat-server-1.log'

[2012-11-30 22:04:38.362] [INFO] console - [2012-11-30 22:04:38.361] [ERROR] console - log4js.fileAppender - Writing to file logs/forward-log-chat-server-1.log, error happened { [Error: ENOENT, open 'logs/forward-log-chat-server-1.log']
errno: 34,
code: 'ENOENT',
path: 'logs/forward-log-chat-server-1.log' }
Error: ENOENT, open 'logs/forward-log-chat-server-1.log'

[2012-11-30 22:04:38.362] [INFO] console - [2012-11-30 22:04:38.362] [ERROR] console - log4js.fileAppender - Writing to file logs/crash.log, error happened { [Error: ENOENT, open 'logs/crash.log'] errno: 34, code: 'ENOENT', path: 'logs/crash.log' }
Error: ENOENT, open 'logs/crash.log'

[2012-11-30 22:04:38.362] [INFO] console - [2012-11-30 22:04:38.354] [ERROR] console - log4js.fileAppender - Writing to file logs/node-log-path-server-1.log, error happened { [Error: ENOENT, open 'logs/node-log-path-server-1.log']
errno: 34,
code: 'ENOENT',
path: 'logs/node-log-path-server-1.log' }
Error: ENOENT, open 'logs/node-log-path-server-1.log'

[2012-11-30 22:04:38.363] [INFO] console - [2012-11-30 22:04:38.362] [ERROR] console - log4js.fileAppender - Writing to file logs/rpc-log-path-server-1.log, error happened { [Error: ENOENT, open 'logs/rpc-log-path-server-1.log']
errno: 34,
code: 'ENOENT',
path: 'logs/rpc-log-path-server-1.log' }
Error: ENOENT, open 'logs/rpc-log-path-server-1.log'

[2012-11-30 22:04:38.363] [INFO] console - [2012-11-30 22:04:38.363] [ERROR] console - log4js.fileAppender - Writing to file logs/forward-log-path-server-1.log, error happened { [Error: ENOENT, open 'logs/forward-log-path-server-1.log']
errno: 34,
code: 'ENOENT',
path: 'logs/forward-log-path-server-1.log' }
Error: ENOENT, open 'logs/forward-log-path-server-1.log'

[2012-11-30 22:04:38.364] [INFO] console - [2012-11-30 22:04:38.363] [ERROR] console - log4js.fileAppender - Writing to file logs/crash.log, error happened { [Error: ENOENT, open 'logs/crash.log'] errno: 34, code: 'ENOENT', path: 'logs/crash.log' }
Error: ENOENT, open 'logs/crash.log'

[2012-11-30 22:04:38.364] [INFO] console - [2012-11-30 22:04:38.362] [ERROR] console - log4js.fileAppender - Writing to file logs/node-log-connector-server-1.log, error happened { [Error: ENOENT, open 'logs/node-log-connector-server-1.log']
errno: 34,
code: 'ENOENT',
path: 'logs/node-log-connector-server-1.log' }
Error: ENOENT, open 'logs/node-log-connector-server-1.log'

[2012-11-30 22:04:38.365] [INFO] console - [2012-11-30 22:04:38.365] [ERROR] console - log4js.fileAppender - Writing to file logs/con-log-connector-server-1.log, error happened { [Error: ENOENT, open 'logs/con-log-connector-server-1.log']
errno: 34,
code: 'ENOENT',
path: 'logs/con-log-connector-server-1.log' }
Error: ENOENT, open 'logs/con-log-connector-server-1.log'

[2012-11-30 22:04:38.368] [INFO] console - [2012-11-30 22:04:38.365] [ERROR] console - log4js.fileAppender - Writing to file logs/rpc-log-connector-server-1.log, error happened { [Error: ENOENT, open 'logs/rpc-log-connector-server-1.log']
errno: 34,
code: 'ENOENT',
path: 'logs/rpc-log-connector-server-1.log' }
Error: ENOENT, open 'logs/rpc-log-connector-server-1.log'
[2012-11-30 22:04:38.366] [ERROR] console - log4js.fileAppender - Writing to file logs/forward-log-connector-server-1.log, error happened { [Error: ENOENT, open 'logs/forward-log-connector-server-1.log']
errno: 34,
code: 'ENOENT',
path: 'logs/forward-log-connector-server-1.log' }
Error: ENOENT, open 'logs/forward-log-connector-server-1.log'
[2012-11-30 22:04:38.366] [ERROR] console - log4js.fileAppender - Writing to file logs/crash.log, error happened { [Error: ENOENT, open 'logs/crash.log'] errno: 34, code: 'ENOENT', path: 'logs/crash.log' }
Error: ENOENT, open 'logs/crash.log'

[2012-11-30 22:04:38.374] [INFO] console - [2012-11-30 22:04:38.373] [INFO] console - info: 'socket.io started'

[2012-11-30 22:04:38.376] [INFO] console - [2012-11-30 22:04:38.376] [INFO] console - info: 'socket.io started'

[2012-11-30 22:04:38.379] [INFO] console - [2012-11-30 22:04:38.379] [ERROR] console - Caught exception: Error: listen EADDRINUSE
at errnoException (net.js:769:11)
at Server._listen2 (net.js:909:14)
at listen (net.js:936:10)
at Server.listen (net.js:985:5)
at Object.exports.listen (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/socket.io/lib/socket.io.js:74:12)
at pro.listen (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/pomelo/node_modules/pomelo-rpc/lib/rpc-server/acceptors/ws-acceptor.js:29:20)
at pro.start (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/pomelo/node_modules/pomelo-rpc/lib/rpc-server/gateway.js:42:16)
at pro.start (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/pomelo/lib/components/remote.js:46:14)
at Application._optComponents (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/pomelo/lib/application.js:383:16)
at async.forEachSeries.iterate (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/async/lib/async.js:108:13)

[2012-11-30 22:04:38.380] [INFO] console - [2012-11-30 22:04:38.378] [ERROR] console - Caught exception: Error: listen EADDRINUSE
at errnoException (net.js:769:11)
at Server._listen2 (net.js:909:14)
at listen (net.js:936:10)
at Server.listen (net.js:985:5)
at Object.exports.listen (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/socket.io/lib/socket.io.js:74:12)
at pro.listen (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/pomelo/node_modules/pomelo-rpc/lib/rpc-server/acceptors/ws-acceptor.js:29:20)
at pro.start (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/pomelo/node_modules/pomelo-rpc/lib/rpc-server/gateway.js:42:16)
at pro.start (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/pomelo/lib/components/remote.js:46:14)
at Application._optComponents (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/pomelo/lib/application.js:383:16)
at async.forEachSeries.iterate (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/async/lib/async.js:108:13)

[2012-11-30 22:04:38.391] [INFO] console - [2012-11-30 22:04:38.391] [INFO] /node_modules/pomelo/node_modules/pomelo-admin/lib/consoleService.js - try to connect master: "chat", "127.0.0.1", 3005

[2012-11-30 22:04:38.393] [INFO] console - [2012-11-30 22:04:38.387] [INFO] console - info: 'socket.io started'

[2012-11-30 22:04:38.393] [INFO] console - [2012-11-30 22:04:38.390] [ERROR] console - log4js.fileAppender - Writing to file logs/node-log-connector-server-4.log, error happened { [Error: ENOENT, open 'logs/node-log-connector-server-4.log']
errno: 34,
code: 'ENOENT',
path: 'logs/node-log-connector-server-4.log' }
Error: ENOENT, open 'logs/node-log-connector-server-4.log'

[2012-11-30 22:04:38.393] [INFO] console - [2012-11-30 22:04:38.393] [ERROR] console - log4js.fileAppender - Writing to file logs/con-log-connector-server-4.log, error happened { [Error: ENOENT, open 'logs/con-log-connector-server-4.log']
errno: 34,
code: 'ENOENT',
path: 'logs/con-log-connector-server-4.log' }
Error: ENOENT, open 'logs/con-log-connector-server-4.log'

[2012-11-30 22:04:38.393] [INFO] console - [2012-11-30 22:04:38.393] [ERROR] console - log4js.fileAppender - Writing to file logs/rpc-log-connector-server-4.log, error happened { [Error: ENOENT, open 'logs/rpc-log-connector-server-4.log']
errno: 34,
code: 'ENOENT',
path: 'logs/rpc-log-connector-server-4.log' }
Error: ENOENT, open 'logs/rpc-log-connector-server-4.log'

[2012-11-30 22:04:38.394] [INFO] console - [2012-11-30 22:04:38.393] [ERROR] console - log4js.fileAppender - Writing to file logs/forward-log-connector-server-4.log, error happened { [Error: ENOENT, open 'logs/forward-log-connector-server-4.log']
errno: 34,
code: 'ENOENT',
path: 'logs/forward-log-connector-server-4.log' }
Error: ENOENT, open 'logs/forward-log-connector-server-4.log'

[2012-11-30 22:04:38.394] [INFO] console - [2012-11-30 22:04:38.394] [ERROR] console - log4js.fileAppender - Writing to file logs/crash.log, error happened { [Error: ENOENT, open 'logs/crash.log'] errno: 34, code: 'ENOENT', path: 'logs/crash.log' }
Error: ENOENT, open 'logs/crash.log'

[2012-11-30 22:04:38.401] [INFO] console - [2012-11-30 22:04:38.399] [ERROR] console - Caught exception: Error: listen EADDRINUSE
at errnoException (net.js:769:11)
at Server._listen2 (net.js:909:14)
at listen (net.js:936:10)
at Server.listen (net.js:985:5)
at Object.exports.listen (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/socket.io/lib/socket.io.js:74:12)
at pro.listen (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/pomelo/node_modules/pomelo-rpc/lib/rpc-server/acceptors/ws-acceptor.js:29:20)
at pro.start (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/pomelo/node_modules/pomelo-rpc/lib/rpc-server/gateway.js:42:16)
at pro.start (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/pomelo/lib/components/remote.js:46:14)
at Application._optComponents (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/pomelo/lib/application.js:383:16)
at async.forEachSeries.iterate (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/async/lib/async.js:108:13)

[2012-11-30 22:04:38.408] [INFO] console - [2012-11-30 22:04:38.408] [INFO] /node_modules/pomelo/node_modules/pomelo-admin/lib/consoleService.js - try to connect master: "connector", "127.0.0.1", 3005

[2012-11-30 22:04:38.415] [INFO] console - [2012-11-30 22:04:38.415] [INFO] console - info: 'socket.io started'

[2012-11-30 22:04:38.416] [INFO] console - [2012-11-30 22:04:38.410] [ERROR] console - log4js.fileAppender - Writing to file logs/node-log-gate-server-1.log, error happened { [Error: ENOENT, open 'logs/node-log-gate-server-1.log']
errno: 34,
code: 'ENOENT',
path: 'logs/node-log-gate-server-1.log' }
Error: ENOENT, open 'logs/node-log-gate-server-1.log'

[2012-11-30 22:04:38.416] [INFO] console - [2012-11-30 22:04:38.416] [ERROR] console - log4js.fileAppender - Writing to file logs/rpc-log-gate-server-1.log, error happened { [Error: ENOENT, open 'logs/rpc-log-gate-server-1.log']
errno: 34,
code: 'ENOENT',
path: 'logs/rpc-log-gate-server-1.log' }
Error: ENOENT, open 'logs/rpc-log-gate-server-1.log'

[2012-11-30 22:04:38.416] [INFO] console - [2012-11-30 22:04:38.416] [ERROR] console - log4js.fileAppender - Writing to file logs/forward-log-gate-server-1.log, error happened { [Error: ENOENT, open 'logs/forward-log-gate-server-1.log']
errno: 34,
code: 'ENOENT',
path: 'logs/forward-log-gate-server-1.log' }
Error: ENOENT, open 'logs/forward-log-gate-server-1.log'

[2012-11-30 22:04:38.417] [INFO] console - [2012-11-30 22:04:38.417] [ERROR] console - log4js.fileAppender - Writing to file logs/crash.log, error happened { [Error: ENOENT, open 'logs/crash.log'] errno: 34, code: 'ENOENT', path: 'logs/crash.log' }
Error: ENOENT, open 'logs/crash.log'

[2012-11-30 22:04:38.418] [INFO] console - [2012-11-30 22:04:38.415] [ERROR] console - log4js.fileAppender - Writing to file logs/node-log-connector-server-2.log, error happened { [Error: ENOENT, open 'logs/node-log-connector-server-2.log']
errno: 34,
code: 'ENOENT',
path: 'logs/node-log-connector-server-2.log' }
Error: ENOENT, open 'logs/node-log-connector-server-2.log'

[2012-11-30 22:04:38.418] [INFO] console - [2012-11-30 22:04:38.418] [ERROR] console - log4js.fileAppender - Writing to file logs/con-log-connector-server-2.log, error happened { [Error: ENOENT, open 'logs/con-log-connector-server-2.log']
errno: 34,
code: 'ENOENT',
path: 'logs/con-log-connector-server-2.log' }
Error: ENOENT, open 'logs/con-log-connector-server-2.log'

[2012-11-30 22:04:38.418] [INFO] console - [2012-11-30 22:04:38.418] [ERROR] console - log4js.fileAppender - Writing to file logs/rpc-log-connector-server-2.log, error happened { [Error: ENOENT, open 'logs/rpc-log-connector-server-2.log']
errno: 34,
code: 'ENOENT',
path: 'logs/rpc-log-connector-server-2.log' }
Error: ENOENT, open 'logs/rpc-log-connector-server-2.log'

[2012-11-30 22:04:38.419] [INFO] console - [2012-11-30 22:04:38.418] [ERROR] console - log4js.fileAppender - Writing to file logs/forward-log-connector-server-2.log, error happened { [Error: ENOENT, open 'logs/forward-log-connector-server-2.log']
errno: 34,
code: 'ENOENT',
path: 'logs/forward-log-connector-server-2.log' }
Error: ENOENT, open 'logs/forward-log-connector-server-2.log'

[2012-11-30 22:04:38.419] [INFO] console - [2012-11-30 22:04:38.419] [ERROR] console - log4js.fileAppender - Writing to file logs/crash.log, error happened { [Error: ENOENT, open 'logs/crash.log'] errno: 34, code: 'ENOENT', path: 'logs/crash.log' }
Error: ENOENT, open 'logs/crash.log'

[2012-11-30 22:04:38.422] [INFO] console - [2012-11-30 22:04:38.419] [ERROR] console - Caught exception: Error: listen EADDRINUSE
at errnoException (net.js:769:11)
at Server._listen2 (net.js:909:14)
at listen (net.js:936:10)
at Server.listen (net.js:985:5)
at Object.exports.listen (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/socket.io/lib/socket.io.js:74:12)
at pro.listen (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/pomelo/node_modules/pomelo-rpc/lib/rpc-server/acceptors/ws-acceptor.js:29:20)
at pro.start (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/pomelo/node_modules/pomelo-rpc/lib/rpc-server/gateway.js:42:16)
at pro.start (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/pomelo/lib/components/remote.js:46:14)
at Application._optComponents (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/pomelo/lib/application.js:383:16)
at async.forEachSeries.iterate (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/async/lib/async.js:108:13)

[2012-11-30 22:04:38.429] [INFO] console - [2012-11-30 22:04:38.428] [INFO] /node_modules/pomelo/node_modules/pomelo-admin/lib/consoleService.js - try to connect master: "gate", "127.0.0.1", 3005

[2012-11-30 22:04:38.434] [INFO] console - [2012-11-30 22:04:38.434] [INFO] console - info: 'socket.io started'

[2012-11-30 22:04:38.436] [INFO] console - [2012-11-30 22:04:38.435] [INFO] /node_modules/pomelo/node_modules/pomelo-admin/lib/consoleService.js - try to connect master: "connector", "127.0.0.1", 3005

[2012-11-30 22:04:38.441] [INFO] console - [2012-11-30 22:04:38.437] [ERROR] console - Caught exception: Error: listen EADDRINUSE
at errnoException (net.js:769:11)
at Server._listen2 (net.js:909:14)
at listen (net.js:936:10)
at Server.listen (net.js:985:5)
at Object.exports.listen (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/socket.io/lib/socket.io.js:74:12)
at pro.listen (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/pomelo/node_modules/pomelo-rpc/lib/rpc-server/acceptors/ws-acceptor.js:29:20)
at pro.start (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/pomelo/node_modules/pomelo-rpc/lib/rpc-server/gateway.js:42:16)
at pro.start (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/pomelo/lib/components/remote.js:46:14)
at Application._optComponents (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/pomelo/lib/application.js:383:16)
at async.forEachSeries.iterate (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/async/lib/async.js:108:13)

[2012-11-30 22:04:38.454] [INFO] console - [2012-11-30 22:04:38.451] [ERROR] console - log4js.fileAppender - Writing to file logs/node-log-area-server-1.log, error happened { [Error: ENOENT, open 'logs/node-log-area-server-1.log']
errno: 34,
code: 'ENOENT',
path: 'logs/node-log-area-server-1.log' }
Error: ENOENT, open 'logs/node-log-area-server-1.log'

[2012-11-30 22:04:38.455] [INFO] console - [2012-11-30 22:04:38.453] [ERROR] console - log4js.fileAppender - Writing to file logs/node-log-auth-server-1.log, error happened { [Error: ENOENT, open 'logs/node-log-auth-server-1.log']
errno: 34,
code: 'ENOENT',
path: 'logs/node-log-auth-server-1.log' }
Error: ENOENT, open 'logs/node-log-auth-server-1.log'

[2012-11-30 22:04:38.457] [INFO] console - [2012-11-30 22:04:38.455] [ERROR] console - log4js.fileAppender - Writing to file logs/rpc-log-auth-server-1.log, error happened { [Error: ENOENT, open 'logs/rpc-log-auth-server-1.log']
errno: 34,
code: 'ENOENT',
path: 'logs/rpc-log-auth-server-1.log' }
Error: ENOENT, open 'logs/rpc-log-auth-server-1.log'

[2012-11-30 22:04:38.458] [INFO] console - [2012-11-30 22:04:38.457] [ERROR] console - log4js.fileAppender - Writing to file logs/forward-log-auth-server-1.log, error happened { [Error: ENOENT, open 'logs/forward-log-auth-server-1.log']
errno: 34,
code: 'ENOENT',
path: 'logs/forward-log-auth-server-1.log' }
Error: ENOENT, open 'logs/forward-log-auth-server-1.log'

[2012-11-30 22:04:38.458] [INFO] console - [2012-11-30 22:04:38.458] [INFO] /node_modules/pomelo/node_modules/pomelo-admin/lib/consoleService.js - try to connect master: "connector", "127.0.0.1", 3005

[2012-11-30 22:04:38.459] [INFO] console - [2012-11-30 22:04:38.458] [ERROR] console - log4js.fileAppender - Writing to file logs/crash.log, error happened { [Error: ENOENT, open 'logs/crash.log'] errno: 34, code: 'ENOENT', path: 'logs/crash.log' }
Error: ENOENT, open 'logs/crash.log'

[2012-11-30 22:04:38.459] [INFO] console - [2012-11-30 22:04:38.455] [ERROR] console - log4js.fileAppender - Writing to file logs/rpc-log-area-server-1.log, error happened { [Error: ENOENT, open 'logs/rpc-log-area-server-1.log']
errno: 34,
code: 'ENOENT',
path: 'logs/rpc-log-area-server-1.log' }
Error: ENOENT, open 'logs/rpc-log-area-server-1.log'

[2012-11-30 22:04:38.460] [INFO] console - [2012-11-30 22:04:38.459] [ERROR] console - log4js.fileAppender - Writing to file logs/forward-log-area-server-1.log, error happened { [Error: ENOENT, open 'logs/forward-log-area-server-1.log']
errno: 34,
code: 'ENOENT',
path: 'logs/forward-log-area-server-1.log' }
Error: ENOENT, open 'logs/forward-log-area-server-1.log'

[2012-11-30 22:04:38.463] [INFO] console - [2012-11-30 22:04:38.461] [ERROR] console - log4js.fileAppender - Writing to file logs/crash.log, error happened { [Error: ENOENT, open 'logs/crash.log'] errno: 34, code: 'ENOENT', path: 'logs/crash.log' }
Error: ENOENT, open 'logs/crash.log'

[2012-11-30 22:04:38.469] [INFO] console - [2012-11-30 22:04:38.467] [INFO] /node_modules/pomelo/node_modules/pomelo-admin/lib/consoleService.js - try to connect master: "connector", "127.0.0.1", 3005

[2012-11-30 22:04:38.481] [INFO] console - [2012-11-30 22:04:38.481] [INFO] console - info: 'socket.io started'

[2012-11-30 22:04:38.484] [INFO] console - [2012-11-30 22:04:38.484] [ERROR] console - Caught exception: Error: listen EADDRINUSE
at errnoException (net.js:769:11)
at Server._listen2 (net.js:909:14)
at listen (net.js:936:10)
at Server.listen (net.js:985:5)
at Object.exports.listen (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/socket.io/lib/socket.io.js:74:12)
at pro.listen (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/pomelo/node_modules/pomelo-rpc/lib/rpc-server/acceptors/ws-acceptor.js:29:20)
at pro.start (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/pomelo/node_modules/pomelo-rpc/lib/rpc-server/gateway.js:42:16)
at pro.start (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/pomelo/lib/components/remote.js:46:14)
at Application._optComponents (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/pomelo/lib/application.js:383:16)
at async.forEachSeries.iterate (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/async/lib/async.js:108:13)

[2012-11-30 22:04:38.491] [INFO] console - [2012-11-30 22:04:38.489] [INFO] console - info: 'socket.io started'

[2012-11-30 22:04:38.497] [INFO] console - [2012-11-30 22:04:38.492] [INFO] /node_modules/pomelo/node_modules/pomelo-admin/lib/consoleService.js - try to connect master: "auth", "127.0.0.1", 3005

[2012-11-30 22:04:38.500] [DEBUG] /node_modules/pomelo/lib/master/master.js - [master] new register connection: "connector-server-3", "connector"

[2012-11-30 22:04:38.514] [DEBUG] /node_modules/pomelo/lib/master/master.js - [master] new register connection: "chat-server-1", "chat"

[2012-11-30 22:04:38.518] [DEBUG] /node_modules/pomelo/lib/master/master.js - [master] new register connection: "connector-server-1", "connector"

[2012-11-30 22:04:38.540] [DEBUG] /node_modules/pomelo/lib/master/master.js - [master] new register connection: "connector-server-2", "connector"

[2012-11-30 22:04:38.542] [DEBUG] /node_modules/pomelo/lib/master/master.js - [master] new register connection: "connector-server-4", "connector"

[2012-11-30 22:04:38.543] [INFO] console - [2012-11-30 22:04:38.543] [INFO] /node_modules/pomelo/node_modules/pomelo-admin/lib/consoleService.js - try to connect master: "area", "127.0.0.1", 3005

[2012-11-30 22:04:38.566] [DEBUG] /node_modules/pomelo/lib/master/master.js - [master] new register connection: "gate-server-1", "gate"

[2012-11-30 22:04:38.595] [DEBUG] /node_modules/pomelo/lib/master/master.js - [master] new register connection: "auth-server-1", "auth"

[2012-11-30 22:04:38.626] [DEBUG] /node_modules/pomelo/lib/master/master.js - [master] new register connection: "area-server-1", "area"

[2012-11-30 22:04:38.705] [INFO] console - [2012-11-30 22:04:38.703] [ERROR] console - log4js.fileAppender - Writing to file logs/node-log-area-server-2.log, error happened { [Error: ENOENT, open 'logs/node-log-area-server-2.log']
errno: 34,
code: 'ENOENT',
path: 'logs/node-log-area-server-2.log' }
Error: ENOENT, open 'logs/node-log-area-server-2.log'

[2012-11-30 22:04:38.705] [INFO] console - [2012-11-30 22:04:38.705] [ERROR] console - log4js.fileAppender - Writing to file logs/rpc-log-area-server-2.log, error happened { [Error: ENOENT, open 'logs/rpc-log-area-server-2.log']
errno: 34,
code: 'ENOENT',
path: 'logs/rpc-log-area-server-2.log' }
Error: ENOENT, open 'logs/rpc-log-area-server-2.log'

[2012-11-30 22:04:38.706] [INFO] console - [2012-11-30 22:04:38.705] [ERROR] console - log4js.fileAppender - Writing to file logs/forward-log-area-server-2.log, error happened { [Error: ENOENT, open 'logs/forward-log-area-server-2.log']
errno: 34,
code: 'ENOENT',
path: 'logs/forward-log-area-server-2.log' }
Error: ENOENT, open 'logs/forward-log-area-server-2.log'

[2012-11-30 22:04:38.706] [INFO] console - [2012-11-30 22:04:38.706] [ERROR] console - log4js.fileAppender - Writing to file logs/crash.log, error happened { [Error: ENOENT, open 'logs/crash.log'] errno: 34, code: 'ENOENT', path: 'logs/crash.log' }
Error: ENOENT, open 'logs/crash.log'

[2012-11-30 22:04:38.719] [INFO] console - [2012-11-30 22:04:38.718] [INFO] console - info: 'socket.io started'

[2012-11-30 22:04:38.760] [INFO] console - [2012-11-30 22:04:38.758] [INFO] /node_modules/pomelo/node_modules/pomelo-admin/lib/consoleService.js - try to connect master: "area", "127.0.0.1", 3005

[2012-11-30 22:04:38.804] [DEBUG] /node_modules/pomelo/lib/master/master.js - [master] new register connection: "area-server-2", "area"

[2012-11-30 22:04:38.880] [INFO] console - [2012-11-30 22:04:38.878] [ERROR] console - log4js.fileAppender - Writing to file logs/node-log-area-server-3.log, error happened { [Error: ENOENT, open 'logs/node-log-area-server-3.log']
errno: 34,
code: 'ENOENT',
path: 'logs/node-log-area-server-3.log' }
Error: ENOENT, open 'logs/node-log-area-server-3.log'

[2012-11-30 22:04:38.881] [INFO] console - [2012-11-30 22:04:38.880] [ERROR] console - log4js.fileAppender - Writing to file logs/rpc-log-area-server-3.log, error happened { [Error: ENOENT, open 'logs/rpc-log-area-server-3.log']
errno: 34,
code: 'ENOENT',
path: 'logs/rpc-log-area-server-3.log' }
Error: ENOENT, open 'logs/rpc-log-area-server-3.log'

[2012-11-30 22:04:38.881] [INFO] console - [2012-11-30 22:04:38.881] [ERROR] console - log4js.fileAppender - Writing to file logs/forward-log-area-server-3.log, error happened { [Error: ENOENT, open 'logs/forward-log-area-server-3.log']
errno: 34,
code: 'ENOENT',
path: 'logs/forward-log-area-server-3.log' }
Error: ENOENT, open 'logs/forward-log-area-server-3.log'

[2012-11-30 22:04:38.881] [INFO] console - [2012-11-30 22:04:38.881] [ERROR] console - log4js.fileAppender - Writing to file logs/crash.log, error happened { [Error: ENOENT, open 'logs/crash.log'] errno: 34, code: 'ENOENT', path: 'logs/crash.log' }
Error: ENOENT, open 'logs/crash.log'

[2012-11-30 22:04:38.890] [INFO] console - [2012-11-30 22:04:38.890] [INFO] console - info: 'socket.io started'

[2012-11-30 22:04:38.926] [INFO] console - [2012-11-30 22:04:38.926] [INFO] /node_modules/pomelo/node_modules/pomelo-admin/lib/consoleService.js - try to connect master: "area", "127.0.0.1", 3005

[2012-11-30 22:04:38.974] [INFO] console - [2012-11-30 22:04:38.974] [INFO] console - info: 'socket.io started'

[2012-11-30 22:04:38.976] [INFO] console - [2012-11-30 22:04:38.975] [ERROR] console - Caught exception: Error: listen EADDRINUSE
at errnoException (net.js:769:11)
at Server._listen2 (net.js:909:14)
at listen (net.js:936:10)
at Server.listen (net.js:985:5)
at Object.exports.listen (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/socket.io/lib/socket.io.js:74:12)
at pro.listen (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/pomelo/node_modules/pomelo-rpc/lib/rpc-server/acceptors/ws-acceptor.js:29:20)
at pro.start (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/pomelo/node_modules/pomelo-rpc/lib/rpc-server/gateway.js:42:16)
at pro.start (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/pomelo/lib/components/remote.js:46:14)
at Application._optComponents (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/pomelo/lib/application.js:383:16)
at async.forEachSeries.iterate (/Users/xiaohei107/Documents/GameDevelop/example/lordofpomelo/game-server/node_modules/async/lib/async.js:108:13)

[2012-11-30 22:04:38.980] [INFO] console - [2012-11-30 22:04:38.980] [INFO] /node_modules/pomelo/node_modules/pomelo-admin/lib/consoleService.js - try to connect master: "path", "127.0.0.1", 3005

[2012-11-30 22:04:38.982] [DEBUG] /node_modules/pomelo/lib/master/master.js - [master] new register connection: "area-server-3", "area"

[2012-11-30 22:04:39.012] [DEBUG] /node_modules/pomelo/lib/master/master.js - [master] new register connection: "path-server-1", "path"

[2012-11-30 22:04:39.013] [INFO] /node_modules/pomelo/lib/master/master.js - [master] all servers have started and notify after start now...

[2012-11-30 22:04:39.013] [INFO] console - [2012-11-30 22:04:39.013] [DEBUG] /node_modules/pomelo/lib/modules/afterStart.js - after start: "connector-server-3"

[2012-11-30 22:04:39.014] [DEBUG] /node_modules/pomelo/lib/modules/afterStart.js - after start: "master-server-1"

[2012-11-30 22:04:39.014] [INFO] /node_modules/pomelo/lib/modules/afterStart.js - server "master-server-1" started.

[2012-11-30 22:04:39.014] [INFO] console - [2012-11-30 22:04:39.013] [DEBUG] /node_modules/pomelo/lib/modules/afterStart.js - after start: "chat-server-1"

[2012-11-30 22:04:39.015] [INFO] console - [2012-11-30 22:04:39.013] [DEBUG] /node_modules/pomelo/lib/modules/afterStart.js - after start: "connector-server-4"

[2012-11-30 22:04:39.015] [INFO] console - [2012-11-30 22:04:39.013] [DEBUG] /node_modules/pomelo/lib/modules/afterStart.js - after start: "connector-server-1"

[2012-11-30 22:04:39.015] [INFO] console - [2012-11-30 22:04:39.013] [DEBUG] /node_modules/pomelo/lib/modules/afterStart.js - after start: "connector-server-2"

[2012-11-30 22:04:39.015] [INFO] console - [2012-11-30 22:04:39.014] [DEBUG] /node_modules/pomelo/lib/modules/afterStart.js - after start: "auth-server-1"

[2012-11-30 22:04:39.015] [INFO] console - [2012-11-30 22:04:39.015] [INFO] console - info: 'socket.io started'
[2012-11-30 22:04:39.015] [INFO] /node_modules/pomelo/lib/modules/afterStart.js - server "connector-server-3" started.

[2012-11-30 22:04:39.015] [INFO] console - [2012-11-30 22:04:39.014] [INFO] /node_modules/pomelo/lib/modules/afterStart.js - server "chat-server-1" started.

[2012-11-30 22:04:39.016] [INFO] console - [2012-11-30 22:04:39.015] [INFO] console - info: 'socket.io started'
[2012-11-30 22:04:39.015] [INFO] /node_modules/pomelo/lib/modules/afterStart.js - server "connector-server-1" started.

[2012-11-30 22:04:39.016] [INFO] console - [2012-11-30 22:04:39.015] [INFO] console - info: 'socket.io started'

[2012-11-30 22:04:39.016] [INFO] console - [2012-11-30 22:04:39.015] [DEBUG] /node_modules/pomelo/lib/modules/afterStart.js - after start: "path-server-1"

[2012-11-30 22:04:39.016] [INFO] console - [2012-11-30 22:04:39.015] [INFO] console - info: 'socket.io started'
[2012-11-30 22:04:39.015] [INFO] /node_modules/pomelo/lib/modules/afterStart.js - server "connector-server-2" started.

[2012-11-30 22:04:39.016] [INFO] console - [2012-11-30 22:04:39.015] [INFO] /node_modules/pomelo/lib/modules/afterStart.js - server "auth-server-1" started.

[2012-11-30 22:04:39.016] [INFO] console - [2012-11-30 22:04:39.015] [DEBUG] /node_modules/pomelo/lib/modules/afterStart.js - after start: "area-server-2"
[2012-11-30 22:04:39.016] [INFO] /node_modules/pomelo/lib/modules/afterStart.js - server "area-server-2" started.

[2012-11-30 22:04:39.016] [INFO] console - [2012-11-30 22:04:39.016] [INFO] /node_modules/pomelo/lib/modules/afterStart.js - server "connector-server-4" started.

[2012-11-30 22:04:39.017] [INFO] console - [2012-11-30 22:04:39.016] [INFO] /node_modules/pomelo/lib/modules/afterStart.js - server "path-server-1" started.

[2012-11-30 22:04:39.017] [INFO] console - [2012-11-30 22:04:39.016] [DEBUG] /node_modules/pomelo/lib/modules/afterStart.js - after start: "area-server-1"

[2012-11-30 22:04:39.017] [INFO] console - [2012-11-30 22:04:39.014] [DEBUG] /node_modules/pomelo/lib/modules/afterStart.js - after start: "gate-server-1"

[2012-11-30 22:04:39.017] [INFO] console - [2012-11-30 22:04:39.016] [DEBUG] /node_modules/pomelo/lib/modules/afterStart.js - after start: "area-server-3"
[2012-11-30 22:04:39.017] [INFO] /node_modules/pomelo/lib/modules/afterStart.js - server "area-server-3" started.

[2012-11-30 22:04:39.017] [INFO] console - [2012-11-30 22:04:39.017] [INFO] /node_modules/pomelo/lib/modules/afterStart.js - server "area-server-1" started.

[2012-11-30 22:04:39.020] [INFO] console - [2012-11-30 22:04:39.019] [INFO] console - info: 'socket.io started'

[2012-11-30 22:04:39.020] [INFO] console - [2012-11-30 22:04:39.020] [INFO] /node_modules/pomelo/lib/modules/afterStart.js - server "gate-server-1" started.

[2012-11-30 22:07:29.789] [INFO] console - [2012-11-30 22:07:29.788] [WARN] /node_modules/pomelo/lib/filters/handler/timeout.js - request "connector.entryHandler.entry" timeout.

[2012-11-30 22:08:42.981] [INFO] console - [2012-11-30 22:08:42.981] [DEBUG] /node_modules/pomelo/lib/server/server.js - no default error handler to resolve unknown exception. undefined

why call "sprite.movePath" 2 times

in the file"clientManager.js"
function "move" has the codes below:

 sprite.movePath(paths.path, speed);//1
  pomelo.request('area.playerHandler.move', {path: paths.path}, function(result) {
    if(result.code === Message.ERR){
      console.warn('curPlayer move error!');
      sprite.translateTo(paths.path[0].x, paths.path[0].y);
    }
  });
  sprite.movePath(paths.path);//2, maybe wrong

treasuers和lordofpomelo登陆的问题

treasures配置好后按Start Game没反应,lordofpomelo配置好后可以成功注册,在数据库和终端也看到成功注册了,按login的时候页面没反应,但终端现实login了。用的都是chrome浏览器,不知道问题何在?

克隆源码安装直接报错-好郁闷

pomelo版本如下2.2.5,与package.json 一致。删了重装没有效果

root@19d1bba3c9ae:/code/vol/lordofpomelo/game-server# pomelo -V
2.2.5
root@19d1bba3c9ae:/code/vol/lordofpomelo/game-server#
root@19d1bba3c9ae:/code/vol/lordofpomelo/game-server#
root@19d1bba3c9ae:/code/vol/lordofpomelo/game-server# cat package.json
{
"name": "lord_of_pomelo",
"version": "0.3.0",
"private": false,
"dependencies": {
"express": "2.5.2"
, "connect": ">=0.0.1"
, "socket.io": ">=0.9.6"
, "generic-pool": "*"
, "mysql": ">=2.0"
, "pomelo": "2.2.5"
, "async": ">=0.0.1"
, "socket.io-client" : ">=0.9.6"
, "pomelo-aoi" : ">=0.3.4"
, "crc" : ">=0.0.1"
, "pomelo-bt": ">=0.0.1"
, "pomelo-pathfinding": ">=0.1.0"
, "pomelo-collection": ">=0.1.0"
, "pomelo-logger": "0.0.3"
, "pomelo-monitor": ">=0.3.3"
, "pomelo-sync-plugin": "0.0.1"
, "pomelo-masterha-plugin": "0.0.4"
, "underscore": "1.5.2"
, "node-zookeeper-client": "0.2.0"
, "webkit-devtools-agent" : "0.1.2"
},
"devDependencies": {
"should": ">=0.0.1"
, "mocha": ">=0.0.1"
}
}

root@19d1bba3c9ae:/code/vol/lordofpomelo/game-server#
root@19d1bba3c9ae:/code/vol/lordofpomelo/game-server#
root@19d1bba3c9ae:/code/vol/lordofpomelo/game-server# cnpm install -d
[1/22] Packgage [email protected] is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/express
[2/22] Packgage connect@>=0.0.1 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/connect
[3/22] Packgage socket.io@>=0.9.6 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/socket.io
[4/22] Packgage generic-pool@* is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/generic-pool
[5/22] Packgage mysql@>=2.0 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/mysql
[6/22] Packgage [email protected] is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/pomelo
[7/22] Packgage async@>=0.0.1 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/async
[8/22] Packgage socket.io-client@>=0.9.6 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/socket.io-client
[9/22] Packgage pomelo-aoi@>=0.3.4 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/pomelo-aoi
[10/22] Packgage crc@>=0.0.1 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/crc
[11/22] Packgage pomelo-bt@>=0.0.1 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/pomelo-bt
[12/22] Packgage pomelo-pathfinding@>=0.1.0 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/pomelo-pathfinding
[13/22] Packgage pomelo-collection@>=0.1.0 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/pomelo-collection
[14/22] Packgage [email protected] is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/pomelo-logger
[15/22] Packgage pomelo-monitor@>=0.3.3 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/pomelo-monitor
[16/22] Packgage [email protected] is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/pomelo-sync-plugin
[17/22] Packgage [email protected] is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/pomelo-masterha-plugin
[18/22] Packgage [email protected] is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/underscore
[19/22] Packgage [email protected] is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/node-zookeeper-client
[20/22] Packgage should@>=0.0.1 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/should
[21/22] Packgage mocha@>=0.0.1 is skipped because it already exists at: /code/vol/lordofpomelo/game-server/node_modules/mocha

WARN node unsupported "[email protected]" is incompatible with [email protected], expected [email protected] || 0.7 || 0.8
[[email protected] › v8-profiler@git://github.com/c4milo/v8-profiler.git#v4.0.0] install v8-profiler from git git://github.com/c4milo/v8-profiler.git#v4.0.0, may be very slow, please keep patience
make: Entering directory '/code/vol/lordofpomelo/game-server/node_modules/v8-profiler@4.0.0@v8-profiler/build'
CXX(target) Release/obj.target/profiler/cpu_profiler.o
In file included from ../cpu_profiler.cc:1:0:
../cpu_profiler.h:19:57: error: ‘Arguments’ does not name a type
static Handle GetProfilesCount(const Arguments& args);
^
../cpu_profiler.h:20:51: error: ‘Arguments’ does not name a type
static Handle GetProfile(const Arguments& args);
^
../cpu_profiler.h:21:52: error: ‘Arguments’ does not name a type
static Handle FindProfile(const Arguments& args);
^
../cpu_profiler.h:22:55: error: ‘Arguments’ does not name a type
static Handle StartProfiling(const Arguments& args);
^
../cpu_profiler.h:23:54: error: ‘Arguments’ does not name a type
static Handle StopProfiling(const Arguments& args);
^
../cpu_profiler.h:24:58: error: ‘Arguments’ does not name a type
static Handle DeleteAllProfiles(const Arguments& args);
^
In file included from ../cpu_profiler.cc:2:0:
../profile.h:15:61: error: ‘AccessorInfo’ does not name a type
static Handle GetUid(Local property, const AccessorInfo& info);
^
../profile.h:16:63: error: ‘AccessorInfo’ does not name a type
static Handle GetTitle(Local property, const AccessorInfo& info);
^
../profile.h:17:65: error: ‘AccessorInfo’ does not name a type
static Handle GetTopRoot(Local property, const AccessorInfo& info);
^
../profile.h:18:68: error: ‘AccessorInfo’ does not name a type
static Handle GetBottomRoot(Local property, const AccessorInfo& info);
^
../profile.h:19:37: error: ‘Arguments’ does not name a type
static Handle Delete(const Arguments& args);
^
In file included from /root/.node-gyp/4.2.6/include/node/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/v8.h: In static member function ‘static void nodex::CpuProfiler::Initialize(v8::Handlev8::Object)’:
/root/.node-gyp/4.2.6/include/node/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../cpu_profiler.cc:8:21: error: within this context
HandleScope scope;
^
../cpu_profiler.cc:10:87: error: no matching function for call to ‘v8::Persistentv8::ObjectTemplate::New(v8::Localv8::ObjectTemplate)’
cpu_profiler_template
= Persistent::New(ObjectTemplate::New());
^
../cpu_profiler.cc:10:87: note: candidate is:
In file included from /root/.node-gyp/4.2.6/include/node/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/v8.h:7181:4: note: static T* v8::PersistentBase::New(v8::Isolate*, T*) [with T = v8::ObjectTemplate]
T* PersistentBase::New(Isolate* isolate, T* that) {
^
/root/.node-gyp/4.2.6/include/node/v8.h:7181:4: note: candidate expects 2 arguments, 1 provided
../cpu_profiler.cc:11:31: error: base operand of ‘->’ has non-pointer type ‘v8::Persistentv8::ObjectTemplate’
cpu_profiler_template_->SetInternalFieldCount(1);
^
../cpu_profiler.cc:13:62: error: base operand of ‘->’ has non-pointer type ‘v8::Persistentv8::ObjectTemplate’
Local cpuProfilerObj = cpu_profiler_template_->NewInstance();
^
../cpu_profiler.cc:15:90: error: no matching function for call to ‘NODE_SET_METHOD(v8::Localv8::Object&, const char [17], v8::Handlev8::Value (&)(const int&))’
NODE_SET_METHOD(cpuProfilerObj, "getProfilesCount", CpuProfiler::GetProfilesCount);
^
../cpu_profiler.cc:15:90: note: candidate is:
In file included from ../cpu_profiler.h:5:0,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template argument deduction/substitution failed:
../cpu_profiler.cc:15:90: note: cannot convert ‘nodex::CpuProfiler::GetProfilesCount’ (type ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’) to type ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfov8::Value&)}’
NODE_SET_METHOD(cpuProfilerObj, "getProfilesCount", CpuProfiler::GetProfilesCount);
^
../cpu_profiler.cc:16:78: error: no matching function for call to ‘NODE_SET_METHOD(v8::Localv8::Object&, const char [11], v8::Handlev8::Value (&)(const int&))’
NODE_SET_METHOD(cpuProfilerObj, "getProfile", CpuProfiler::GetProfile);
^
../cpu_profiler.cc:16:78: note: candidate is:
In file included from ../cpu_profiler.h:5:0,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template void node::NODE_SET_METHOD(const TypeName&, const char
, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template argument deduction/substitution failed:
../cpu_profiler.cc:16:78: note: cannot convert ‘nodex::CpuProfiler::GetProfile’ (type ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’) to type ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfov8::Value&)}’
NODE_SET_METHOD(cpuProfilerObj, "getProfile", CpuProfiler::GetProfile);
^
../cpu_profiler.cc:17:80: error: no matching function for call to ‘NODE_SET_METHOD(v8::Localv8::Object&, const char [12], v8::Handlev8::Value (&)(const int&))’
NODE_SET_METHOD(cpuProfilerObj, "findProfile", CpuProfiler::FindProfile);
^
../cpu_profiler.cc:17:80: note: candidate is:
In file included from ../cpu_profiler.h:5:0,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template void node::NODE_SET_METHOD(const TypeName&, const char
, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template argument deduction/substitution failed:
../cpu_profiler.cc:17:80: note: cannot convert ‘nodex::CpuProfiler::FindProfile’ (type ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’) to type ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfov8::Value&)}’
NODE_SET_METHOD(cpuProfilerObj, "findProfile", CpuProfiler::FindProfile);
^
../cpu_profiler.cc:18:86: error: no matching function for call to ‘NODE_SET_METHOD(v8::Localv8::Object&, const char [15], v8::Handlev8::Value (&)(const int&))’
NODE_SET_METHOD(cpuProfilerObj, "startProfiling", CpuProfiler::StartProfiling);
^
../cpu_profiler.cc:18:86: note: candidate is:
In file included from ../cpu_profiler.h:5:0,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template void node::NODE_SET_METHOD(const TypeName&, const char
, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template argument deduction/substitution failed:
../cpu_profiler.cc:18:86: note: cannot convert ‘nodex::CpuProfiler::StartProfiling’ (type ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’) to type ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfov8::Value&)}’
NODE_SET_METHOD(cpuProfilerObj, "startProfiling", CpuProfiler::StartProfiling);
^
../cpu_profiler.cc:19:84: error: no matching function for call to ‘NODE_SET_METHOD(v8::Localv8::Object&, const char [14], v8::Handlev8::Value (&)(const int&))’
NODE_SET_METHOD(cpuProfilerObj, "stopProfiling", CpuProfiler::StopProfiling);
^
../cpu_profiler.cc:19:84: note: candidate is:
In file included from ../cpu_profiler.h:5:0,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template void node::NODE_SET_METHOD(const TypeName&, const char
, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template argument deduction/substitution failed:
../cpu_profiler.cc:19:84: note: cannot convert ‘nodex::CpuProfiler::StopProfiling’ (type ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’) to type ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfov8::Value&)}’
NODE_SET_METHOD(cpuProfilerObj, "stopProfiling", CpuProfiler::StopProfiling);
^
../cpu_profiler.cc:20:92: error: no matching function for call to ‘NODE_SET_METHOD(v8::Localv8::Object&, const char [18], v8::Handlev8::Value (&)(const int&))’
NODE_SET_METHOD(cpuProfilerObj, "deleteAllProfiles", CpuProfiler::DeleteAllProfiles);
^
../cpu_profiler.cc:20:92: note: candidate is:
In file included from ../cpu_profiler.h:5:0,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template void node::NODE_SET_METHOD(const TypeName&, const char
, v8::FunctionCallback)
inline void NODE_SET_METHOD(const TypeName& recv,
^
/root/.node-gyp/4.2.6/include/node/node.h:236:13: note: template argument deduction/substitution failed:
../cpu_profiler.cc:20:92: note: cannot convert ‘nodex::CpuProfiler::DeleteAllProfiles’ (type ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’) to type ‘v8::FunctionCallback {aka void ()(const v8::FunctionCallbackInfov8::Value&)}’
NODE_SET_METHOD(cpuProfilerObj, "deleteAllProfiles", CpuProfiler::DeleteAllProfiles);
^
../cpu_profiler.cc:22:21: error: ‘NewSymbol’ is not a member of ‘v8::String’
target->Set(String::NewSymbol("cpuProfiler"), cpuProfilerObj);
^
../cpu_profiler.cc: At global scope:
../cpu_profiler.cc:28:55: error: ‘Arguments’ does not name a type
Handle CpuProfiler::GetProfilesCount(const Arguments& args) {
^
In file included from /root/.node-gyp/4.2.6/include/node/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/v8.h: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::GetProfilesCount(const int&)’:
/root/.node-gyp/4.2.6/include/node/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../cpu_profiler.cc:29:21: error: within this context
HandleScope scope;
^
../cpu_profiler.cc:30:22: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(Integer::New(v8::CpuProfiler::GetProfilesCount()));
^
../cpu_profiler.cc:30:41: error: ‘GetProfilesCount’ is not a member of ‘v8::CpuProfiler’
return scope.Close(Integer::New(v8::CpuProfiler::GetProfilesCount()));
^
../cpu_profiler.cc: At global scope:
../cpu_profiler.cc:33:49: error: ‘Arguments’ does not name a type
Handle CpuProfiler::GetProfile(const Arguments& args) {
^
In file included from /root/.node-gyp/4.2.6/include/node/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/v8.h: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::GetProfile(const int&)’:
/root/.node-gyp/4.2.6/include/node/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../cpu_profiler.cc:34:21: error: within this context
HandleScope scope;
^
../cpu_profiler.cc:35:18: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1) {
^
../cpu_profiler.cc:36:52: error: ‘New’ is not a member of ‘v8::String’
return ThrowException(Exception::Error(String::New("No index specified")));
^
../cpu_profiler.cc:36:86: error: ‘ThrowException’ was not declared in this scope
return ThrowException(Exception::Error(String::New("No index specified")));
^
../cpu_profiler.cc:37:27: error: invalid types ‘const int[int]’ for array subscript
} else if (!args[0]->IsInt32()) {
^
../cpu_profiler.cc:38:56: error: ‘New’ is not a member of ‘v8::String’
return ThrowException(Exception::TypeError(String::New("Argument must be an integer")));
^
../cpu_profiler.cc:38:99: error: ‘ThrowException’ was not declared in this scope
return ThrowException(Exception::TypeError(String::New("Argument must be an integer")));
^
../cpu_profiler.cc:40:31: error: invalid types ‘const int[int]’ for array subscript
int32_t index = args[0]->Int32Value();
^
../cpu_profiler.cc:41:37: error: ‘GetProfile’ is not a member of ‘v8::CpuProfiler’
const CpuProfile
profile = v8::CpuProfiler::GetProfile(index);
^
../cpu_profiler.cc:42:22: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(Profile::New(profile));
^
../cpu_profiler.cc: At global scope:
../cpu_profiler.cc:45:50: error: ‘Arguments’ does not name a type
Handle CpuProfiler::FindProfile(const Arguments& args) {
^
In file included from /root/.node-gyp/4.2.6/include/node/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/v8.h: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::FindProfile(const int&)’:
/root/.node-gyp/4.2.6/include/node/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../cpu_profiler.cc:46:21: error: within this context
HandleScope scope;
^
../cpu_profiler.cc:47:18: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1) {
^
../cpu_profiler.cc:48:52: error: ‘New’ is not a member of ‘v8::String’
return ThrowException(Exception::Error(String::New("No index specified")));
^
../cpu_profiler.cc:48:86: error: ‘ThrowException’ was not declared in this scope
return ThrowException(Exception::Error(String::New("No index specified")));
^
../cpu_profiler.cc:49:27: error: invalid types ‘const int[int]’ for array subscript
} else if (!args[0]->IsInt32()) {
^
../cpu_profiler.cc:50:56: error: ‘New’ is not a member of ‘v8::String’
return ThrowException(Exception::TypeError(String::New("Argument must be an integer")));
^
../cpu_profiler.cc:50:99: error: ‘ThrowException’ was not declared in this scope
return ThrowException(Exception::TypeError(String::New("Argument must be an integer")));
^
../cpu_profiler.cc:52:30: error: invalid types ‘const int[int]’ for array subscript
uint32_t uid = args[0]->Uint32Value();
^
../cpu_profiler.cc:53:37: error: ‘FindProfile’ is not a member of ‘v8::CpuProfiler’
const CpuProfile* profile = v8::CpuProfiler::FindProfile(uid);
^
../cpu_profiler.cc:54:22: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(Profile::New(profile));
^
../cpu_profiler.cc: At global scope:
../cpu_profiler.cc:57:53: error: ‘Arguments’ does not name a type
Handle CpuProfiler::StartProfiling(const Arguments& args) {
^
In file included from /root/.node-gyp/4.2.6/include/node/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/v8.h: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::StartProfiling(const int&)’:
/root/.node-gyp/4.2.6/include/node/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../cpu_profiler.cc:58:21: error: within this context
HandleScope scope;
^
../cpu_profiler.cc:59:36: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
Local title = args.Length() > 0 ? args[0]->ToString() : String::New("");
^
../cpu_profiler.cc:59:57: error: invalid types ‘const int[int]’ for array subscript
Local title = args.Length() > 0 ? args[0]->ToString() : String::New("");
^
../cpu_profiler.cc:59:73: error: ‘New’ is not a member of ‘v8::String’
Local title = args.Length() > 0 ? args[0]->ToString() : String::New("");
^
../cpu_profiler.cc:60:46: error: cannot call member function ‘void v8::CpuProfiler::StartProfiling(v8::Localv8::String, bool)’ without object
v8::CpuProfiler::StartProfiling(title);
^
../cpu_profiler.cc:61:26: error: too few arguments to function ‘v8::Localv8::Primitive v8::Undefined(v8::Isolate*)’
return Undefined();
^
In file included from /root/.node-gyp/4.2.6/include/node/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/v8.h:315:27: note: declared here
friend Local Undefined(Isolate* isolate);
^
../cpu_profiler.cc: At global scope:
../cpu_profiler.cc:64:52: error: ‘Arguments’ does not name a type
Handle CpuProfiler::StopProfiling(const Arguments& args) {
^
In file included from /root/.node-gyp/4.2.6/include/node/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/v8.h: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::StopProfiling(const int&)’:
/root/.node-gyp/4.2.6/include/node/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../cpu_profiler.cc:65:21: error: within this context
HandleScope scope;
^
../cpu_profiler.cc:66:36: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
Local title = args.Length() > 0 ? args[0]->ToString() : String::New("");
^
../cpu_profiler.cc:66:57: error: invalid types ‘const int[int]’ for array subscript
Local title = args.Length() > 0 ? args[0]->ToString() : String::New("");
^
../cpu_profiler.cc:66:73: error: ‘New’ is not a member of ‘v8::String’
Local title = args.Length() > 0 ? args[0]->ToString() : String::New("");
^
../cpu_profiler.cc:67:73: error: cannot call member function ‘v8::CpuProfile* v8::CpuProfiler::StopProfiling(v8::Localv8::String)’ without object
const CpuProfile* profile = v8::CpuProfiler::StopProfiling(title);
^
../cpu_profiler.cc:68:22: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(Profile::New(profile));
^
../cpu_profiler.cc: At global scope:
../cpu_profiler.cc:71:56: error: ‘Arguments’ does not name a type
Handle CpuProfiler::DeleteAllProfiles(const Arguments& args) {
^
../cpu_profiler.cc: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::DeleteAllProfiles(const int&)’:
../cpu_profiler.cc:72:9: error: ‘DeleteAllProfiles’ is not a member of ‘v8::CpuProfiler’
v8::CpuProfiler::DeleteAllProfiles();
^
../cpu_profiler.cc:73:26: error: too few arguments to function ‘v8::Localv8::Primitive v8::Undefined(v8::Isolate*)’
return Undefined();
^
In file included from /root/.node-gyp/4.2.6/include/node/v8-profiler.h:9:0,
from ../cpu_profiler.h:4,
from ../cpu_profiler.cc:1:
/root/.node-gyp/4.2.6/include/node/v8.h:315:27: note: declared here
friend Local Undefined(Isolate* isolate);
^
../cpu_profiler.cc: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::GetProfilesCount(const int&)’:
../cpu_profiler.cc:31:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
../cpu_profiler.cc: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::GetProfile(const int&)’:
../cpu_profiler.cc:43:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
../cpu_profiler.cc: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::FindProfile(const int&)’:
../cpu_profiler.cc:55:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
../cpu_profiler.cc: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::StartProfiling(const int&)’:
../cpu_profiler.cc:62:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
../cpu_profiler.cc: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::StopProfiling(const int&)’:
../cpu_profiler.cc:69:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
../cpu_profiler.cc: In static member function ‘static v8::Handlev8::Value nodex::CpuProfiler::DeleteAllProfiles(const int&)’:
../cpu_profiler.cc:74:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
profiler.target.mk:99: recipe for target 'Release/obj.target/profiler/cpu_profiler.o' failed
make: *** [Release/obj.target/profiler/cpu_profiler.o] Error 1
make: Leaving directory '/code/vol/lordofpomelo/game-server/node_modules/_v8-profiler@4.0.0@v8-profiler/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/cnpm/node_modules/node-gyp/lib/build.js:285:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 3.13.0-71-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/local/lib/node_modules/cnpm/node_modules/npminstall/node-gyp-bin/node-gyp.js" "rebuild"
gyp ERR! cwd /code/vol/lordofpomelo/game-server/node_modules/_v8-profiler@4.0.0@v8-profiler
gyp ERR! node -v v4.2.6
gyp ERR! node-gyp -v v3.6.0
gyp ERR! not ok
Install fail! Error: Run "sh -c node-gyp rebuild" error, exit code 1
Error: Run "sh -c node-gyp rebuild" error, exit code 1
at ChildProcess. (/usr/local/lib/node_modules/cnpm/node_modules/runscript/index.js:65:21)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:821:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
npminstall version: 2.29.2
npminstall args: /usr/bin/nodejs /usr/local/lib/node_modules/cnpm/node_modules/npminstall/bin/install.js --china --userconfig=/root/.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://registry.npm.taobao.org -d
root@19d1bba3c9ae:/code/vol/lordofpomelo/game-server#

map.js

in the file "gameserver/app/domain/map/map.js":

Map.prototype._checkLinePath = function(x1, y1, x2, y2) {
var px = x2 - x1;
var py = y2 - y1;
var tile = this.tileW/2;
if(px === 0) {
while(x1 < x2) { //!!!!!! maybe wrong !!!!!! y1<y2
x1 += tile;
if(!this.isReachable(x1, y1)) {
return false;
}
}
return true;
}

if(py === 0) {
while(y1 < y2) { //!!!!!! maybe wrong !!!!!! x1<x2
y1 += tile;
if(!this.isReachable(x1, y1)) {
return false;
}
}
return true;
}
............
}

不维护demo了吗?

现在新版本跑不起来游戏,各种报错,官方没不跟进下吗?

the callback in funtion createMysqlPool of dao-pool.js is not a function???

TypeError: callback is not a function
at Object.create (E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\lib\dao\mysql\dao-pool.js:29:9)
at Pool._createResource (E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\node_modules\generic-pool\lib\Pool.js:279:42)
at Pool._dispense (E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\node_modules\generic-pool\lib\Pool.js:210:12)
at Pool.acquire (E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\node_modules\generic-pool\lib\Pool.js:406:10)
at Object.NND.query (E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\lib\dao\mysql\mysql.js:25:8)
at Object.userDao.getUserByName (E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\lib\dao\userDao.js:12:9)
at E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\app.js:54:11
at callbacks (E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\node_modules\express\lib\router\index.js:272:11)
at param (E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\node_modules\express\lib\router\index.js:246:11)
at pass (E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\node_modules\express\lib\router\index.js:253:5)

TypeError: callback is not a function

TypeError: callback is not a function
at Object._poolModule.createPool.create [as create] (D:\lordofpomelo-master
web-server\lib\dao\mysql\dao-pool.js:24:7)
at Pool._createResource (D:\lordofpomelo-master\web-server\node_modules\gene
ric-pool\lib\Pool.js:279:42)
at Pool._dispense (D:\lordofpomelo-master\web-server\node_modules\generic-po
ol\lib\Pool.js:210:12)
at Pool.acquire (D:\lordofpomelo-master\web-server\node_modules\generic-pool
\lib\Pool.js:406:10)
at Object.NND.query (D:\lordofpomelo-master\web-server\lib\dao\mysql\mysql.j
s:25:8)
at Object.userDao.createUser (D:\lordofpomelo-master\web-server\lib\dao\user
Dao.js:38:9)
at D:\lordofpomelo-master\web-server\app.js:81:11
at callbacks (D:\lordofpomelo-master\web-server\node_modules\express\lib\rou
ter\index.js:272:11)
at param (D:\lordofpomelo-master\web-server\node_modules\express\lib\router
index.js:246:11)
at pass (D:\lordofpomelo-master\web-server\node_modules\express\lib\router\i
ndex.js:253:5)

lordofpomelo源代码的疑问

app.post('/register', function(req, res) {
//console.log('req.params');
var msg = req.body;
if (!msg.name || !msg.password) {
res.send({code: 500});
return;
}
这是注册时候web-server发送的post请求,我想知道game-server是怎么接受这个请求的。。。

Arguments to path.resolve must be strings & Cannot set property 'pid' of undefined

run
pomelo start
output

[2014-03-03 23:41:42.215] [ERROR] console - Caught exception: TypeError: Cannot set property 'pid' of undefined
at /Users/WildCat/Downloads/lordofpomelo/game-server/node_modules/pomelo/node_modules/pomelo-admin/lib/masterAgent.js:745:18
at utils.defaultAuthServerMaster (/Users/WildCat/Downloads/lordofpomelo/game-server/node_modules/pomelo/node_modules/pomelo-admin/lib/util/utils.js:133:9)
at doAuthServer (/Users/WildCat/Downloads/lordofpomelo/game-server/node_modules/pomelo/node_modules/pomelo-admin/lib/masterAgent.js:729:3)
at Socket. (/Users/WildCat/Downloads/lordofpomelo/game-server/node_modules/pomelo/node_modules/pomelo-admin/lib/masterAgent.js:98:13)
at Socket.EventEmitter.emit as $emit
at SocketNamespace.handlePacket (/Users/WildCat/Downloads/lordofpomelo/game-server/node_modules/socket.io/lib/namespace.js:335:22)
at Manager.onClientMessage (/Users/WildCat/Downloads/lordofpomelo/game-server/node_modules/socket.io/lib/manager.js:488:38)
at WebSocket.Transport.onMessage (/Users/WildCat/Downloads/lordofpomelo/game-server/node_modules/socket.io/lib/transport.js:387:20)
at Parser. (/Users/WildCat/Downloads/lordofpomelo/game-server/node_modules/socket.io/lib/transports/websocket/hybi-16.js:39:10)
at Parser.EventEmitter.emit (events.js:95:17)

and run ''pomelo start production''
output
path.js:313
throw new TypeError('Arguments to path.resolve must be strings');
^
TypeError: Arguments to path.resolve must be strings
at Object.exports.resolve (path.js:313:15)
at start (/usr/local/lib/node_modules/pomelo/bin/pomelo:239:24)
at Command.program.command.description.option.option.option.option.action.opts (/usr/local/lib/node_modules/pomelo/bin/pomelo:65:5)
at Command. (/usr/local/lib/node_modules/pomelo/node_modules/commander/index.js:249:8)
at Command.EventEmitter.emit (events.js:98:17)
at Command.parseArgs (/usr/local/lib/node_modules/pomelo/node_modules/commander/index.js:472:12)
at Command.parse (/usr/local/lib/node_modules/pomelo/node_modules/commander/index.js:370:21)
at Object. (/usr/local/lib/node_modules/pomelo/bin/pomelo:142:9)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)

What can I do?

登陆时出现一下错误

GET http://127.0.0.1:3014/socket.io/1/?t=1353611703515 socket.io.js:1632
Socket.handshake socket.io.js:1632
Socket.connect socket.io.js:1671
Socket socket.io.js:1530
io.connect socket.io.js:91
pomelo.init pomelo-client.js:326
queryEntry clientManager.js:105
authEntry clientManager.js:170
(anonymous function) clientManager.js:97
k jquery-1.8.0.min.js:2
l.fireWith jquery-1.8.0.min.js:2
y jquery-1.8.0.min.js:2
d jquery-1.8.0.min.js:2

另外config.js中http://pomelo.netease.com/art/该网址不能访问

Assets Missing

One of the art assets is missing for the level 90 Gate Of Hell.

/art/equipment/item_90192.png

Just so you know.

Also I have tidied up a lot of the English in the quests etc.
Will put together a pull if you would like.

install error

lncoderdeMacBook-Pro:game-server lncoder$ npm install pomelo
npm WARN package.json [email protected] No description
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.

> [email protected] install /Users/lncoder/Documents/practice/fe/lordofpomelo-master/game-server/node_modules/pomelo/node_modules/toobusy
> node-gyp rebuild

child_process: customFds option is deprecated, use stdio instead.
  CXX(target) Release/obj.target/toobusy/toobusy.o
../toobusy.cc:25:29: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
Handle<Value> TooBusy(const Arguments& args) {
                            ^~~~~~~~~
                            v8::internal::Arguments
/Users/lncoder/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../toobusy.cc:37:20: error: no matching function for call to 'True'
    return block ? True() : False();
                   ^~~~
/Users/lncoder/.node-gyp/0.12.0/deps/v8/include/v8.h:6624:17: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
Handle<Boolean> True(Isolate* isolate) {
                ^
../toobusy.cc:37:29: error: no matching function for call to 'False'
    return block ? True() : False();
                            ^~~~~
/Users/lncoder/.node-gyp/0.12.0/deps/v8/include/v8.h:6633:17: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
Handle<Boolean> False(Isolate* isolate) {
                ^
../toobusy.cc:40:30: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
Handle<Value> ShutDown(const Arguments& args) {
                             ^~~~~~~~~
                             v8::internal::Arguments
/Users/lncoder/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../toobusy.cc:45:12: error: no matching function for call to 'Undefined'
    return Undefined();
           ^~~~~~~~~
/Users/lncoder/.node-gyp/0.12.0/deps/v8/include/v8.h:305:28: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
  friend Handle<Primitive> Undefined(Isolate* isolate);
                           ^
../toobusy.cc:48:25: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
Handle<Value> Lag(const Arguments& args) {
                        ^~~~~~~~~
                        v8::internal::Arguments
/Users/lncoder/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../toobusy.cc:49:17: error: calling a protected constructor of class 'v8::HandleScope'
    HandleScope scope;
                ^
/Users/lncoder/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: note: declared protected here
  V8_INLINE HandleScope() {}
            ^
../toobusy.cc:50:18: error: no member named 'Close' in 'v8::HandleScope'
    return scope.Close(Integer::New(s_currentLag));
           ~~~~~ ^
../toobusy.cc:50:49: error: too few arguments to function call, expected 2, have 1
    return scope.Close(Integer::New(s_currentLag));
                       ~~~~~~~~~~~~             ^
/Users/lncoder/.node-gyp/0.12.0/deps/v8/include/v8.h:2012:3: note: 'New' declared here
  static Local<Integer> New(Isolate* isolate, int32_t value);
  ^
../toobusy.cc:53:35: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
Handle<Value> HighWaterMark(const Arguments& args) {
                                  ^~~~~~~~~
                                  v8::internal::Arguments
/Users/lncoder/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../toobusy.cc:54:17: error: calling a protected constructor of class 'v8::HandleScope'
    HandleScope scope;
                ^
/Users/lncoder/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: note: declared protected here
  V8_INLINE HandleScope() {}
            ^
../toobusy.cc:56:13: error: member access into incomplete type 'const v8::internal::Arguments'
    if (args.Length() >= 1) {
            ^
/Users/lncoder/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: forward declaration of 'v8::internal::Arguments'
class Arguments;
      ^
../toobusy.cc:57:18: error: type 'const v8::internal::Arguments' does not provide a subscript operator
        if (!args[0]->IsNumber()) {
             ~~~~^~
../toobusy.cc:58:24: error: no member named 'ThrowException' in namespace 'v8'
            return v8::ThrowException(
                   ~~~~^
../toobusy.cc:60:33: error: no member named 'New' in 'v8::String'
                    v8::String::New("expected numeric first argument")));
                    ~~~~~~~~~~~~^
../toobusy.cc:62:23: error: type 'const v8::internal::Arguments' does not provide a subscript operator
        int hwm = args[0]->Int32Value();
                  ~~~~^~
../toobusy.cc:64:24: error: no member named 'ThrowException' in namespace 'v8'
            return v8::ThrowException(
                   ~~~~^
../toobusy.cc:66:33: error: no member named 'New' in 'v8::String'
                    v8::String::New("maximum lag should be greater than 10ms")));
                    ~~~~~~~~~~~~^
../toobusy.cc:71:18: error: no member named 'Close' in 'v8::HandleScope'
    return scope.Close(Number::New(HIGH_WATER_MARK_MS));
           ~~~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/toobusy/toobusy.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Darwin 14.3.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/lncoder/Documents/practice/fe/lordofpomelo-master/game-server/node_modules/pomelo/node_modules/toobusy
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok

> [email protected] install /Users/lncoder/Documents/practice/fe/lordofpomelo-master/game-server/node_modules/pomelo/node_modules/pomelo-admin/node_modules/ndump
> node-gyp rebuild

child_process: customFds option is deprecated, use stdio instead.
  CXX(target) Release/obj.target/ndump/src/node_dump.o
In file included from ../src/node_dump.cc:5:
../src/heap_dump.h:19:54: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
            static Handle<Value> WriteSnapshot(const Arguments& args);
                                                     ^~~~~~~~~
                                                     v8::internal::Arguments
/Users/lncoder/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node_dump.cc:6:
../src/cpu_dump.h:19:58: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
            static Handle<Value> DeleteAllProfiles(const Arguments& args);
                                                         ^~~~~~~~~
                                                         v8::internal::Arguments
/Users/lncoder/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node_dump.cc:6:
../src/cpu_dump.h:20:51: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
            static Handle<Value> GetProfile(const Arguments& args);
                                                  ^~~~~~~~~
                                                  v8::internal::Arguments
/Users/lncoder/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node_dump.cc:6:
../src/cpu_dump.h:21:55: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
            static Handle<Value> StartProfiling(const Arguments& args);
                                                      ^~~~~~~~~
                                                      v8::internal::Arguments
/Users/lncoder/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node_dump.cc:6:
../src/cpu_dump.h:22:54: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
            static Handle<Value> StopProfiling(const Arguments& args);
                                                     ^~~~~~~~~
                                                     v8::internal::Arguments
/Users/lncoder/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../src/node_dump.cc:18:15: error: calling a protected constructor of class 'v8::HandleScope'
                HandleScope scope;
                            ^
/Users/lncoder/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: note: declared protected here
  V8_INLINE HandleScope() {}
            ^
6 errors generated.
make: *** [Release/obj.target/ndump/src/node_dump.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Darwin 14.3.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/lncoder/Documents/practice/fe/lordofpomelo-master/game-server/node_modules/pomelo/node_modules/pomelo-admin/node_modules/ndump
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok

> [email protected] install /Users/lncoder/Documents/practice/fe/lordofpomelo-master/game-server/node_modules/pomelo/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o

> [email protected] install /Users/lncoder/Documents/practice/fe/lordofpomelo-master/game-server/node_modules/pomelo/node_modules/pomelo-rpc/node_modules/toobusy
> node-gyp rebuild

child_process: customFds option is deprecated, use stdio instead.
  CXX(target) Release/obj.target/toobusy/toobusy.o
../toobusy.cc:27:29: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
Handle<Value> TooBusy(const Arguments& args) {
                            ^~~~~~~~~
                            v8::internal::Arguments
/Users/lncoder/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../toobusy.cc:40:20: error: no matching function for call to 'True'
    return block ? True() : False();
                   ^~~~
/Users/lncoder/.node-gyp/0.12.0/deps/v8/include/v8.h:6624:17: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
Handle<Boolean> True(Isolate* isolate) {
                ^
../toobusy.cc:40:29: error: no matching function for call to 'False'
    return block ? True() : False();
                            ^~~~~
/Users/lncoder/.node-gyp/0.12.0/deps/v8/include/v8.h:6633:17: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
Handle<Boolean> False(Isolate* isolate) {
                ^
../toobusy.cc:43:30: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
Handle<Value> ShutDown(const Arguments& args) {
                             ^~~~~~~~~
                             v8::internal::Arguments
/Users/lncoder/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../toobusy.cc:48:12: error: no matching function for call to 'Undefined'
    return Undefined();
           ^~~~~~~~~
/Users/lncoder/.node-gyp/0.12.0/deps/v8/include/v8.h:305:28: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
  friend Handle<Primitive> Undefined(Isolate* isolate);
                           ^
../toobusy.cc:51:25: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
Handle<Value> Lag(const Arguments& args) {
                        ^~~~~~~~~
                        v8::internal::Arguments
/Users/lncoder/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../toobusy.cc:52:17: error: calling a protected constructor of class 'v8::HandleScope'
    HandleScope scope;
                ^
/Users/lncoder/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: note: declared protected here
  V8_INLINE HandleScope() {}
            ^
../toobusy.cc:53:18: error: no member named 'Close' in 'v8::HandleScope'
    return scope.Close(Integer::New(s_currentLag));
           ~~~~~ ^
../toobusy.cc:53:49: error: too few arguments to function call, expected 2, have 1
    return scope.Close(Integer::New(s_currentLag));
                       ~~~~~~~~~~~~             ^
/Users/lncoder/.node-gyp/0.12.0/deps/v8/include/v8.h:2012:3: note: 'New' declared here
  static Local<Integer> New(Isolate* isolate, int32_t value);
  ^
../toobusy.cc:56:35: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
Handle<Value> HighWaterMark(const Arguments& args) {
                                  ^~~~~~~~~
                                  v8::internal::Arguments
/Users/lncoder/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../toobusy.cc:57:17: error: calling a protected constructor of class 'v8::HandleScope'
    HandleScope scope;
                ^
/Users/lncoder/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: note: declared protected here
  V8_INLINE HandleScope() {}
            ^
../toobusy.cc:59:13: error: member access into incomplete type 'const v8::internal::Arguments'
    if (args.Length() >= 1) {
            ^
/Users/lncoder/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: forward declaration of 'v8::internal::Arguments'
class Arguments;
      ^
../toobusy.cc:60:18: error: type 'const v8::internal::Arguments' does not provide a subscript operator
        if (!args[0]->IsNumber()) {
             ~~~~^~
../toobusy.cc:61:24: error: no member named 'ThrowException' in namespace 'v8'
            return v8::ThrowException(
                   ~~~~^
../toobusy.cc:63:33: error: no member named 'New' in 'v8::String'
                    v8::String::New("expected numeric first argument")));
                    ~~~~~~~~~~~~^
../toobusy.cc:65:23: error: type 'const v8::internal::Arguments' does not provide a subscript operator
        int hwm = args[0]->Int32Value();
                  ~~~~^~
../toobusy.cc:67:24: error: no member named 'ThrowException' in namespace 'v8'
            return v8::ThrowException(
                   ~~~~^
../toobusy.cc:69:33: error: no member named 'New' in 'v8::String'
                    v8::String::New("maximum lag should be greater than 10ms")));
                    ~~~~~~~~~~~~^
../toobusy.cc:74:18: error: no member named 'Close' in 'v8::HandleScope'
    return scope.Close(Number::New(HIGH_WATER_MARK_MS));
           ~~~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/toobusy/toobusy.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Darwin 14.3.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/lncoder/Documents/practice/fe/lordofpomelo-master/game-server/node_modules/pomelo/node_modules/pomelo-rpc/node_modules/toobusy
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "pomelo"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the toobusy package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls toobusy
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/lncoder/Documents/practice/fe/lordofpomelo-master/game-server/npm-debug.log

how to fix it? tks.

装备的BUG一枚

装备的代码有错,麻烦修改一下,在server/aera/equipmentHandler.js里面的Player.prototype.equip这里判断了之前是否已经有装备东西,如果有就保存,装备后放到包裹,这段代码在domain/entry/palyer.js里面的equip方法里面重复了,导致如果原来有装备东西,装备新的东西后,会把原来身上的东西两次放到包里,于是会经常出现客户端那边明明背包没有满却提示满的错误,重新登入游戏就会看到背包的确满,装备多出来

registration / login button has no visible effect except clearing password fields.

i tried to register, but all the submit button did was clear the password fields, no info on success or failure. to check for silent success, i then tried to login with the account i just attempted to register, but the login button had the same problem, only visible effect was to clear the password field.

  • i'm using Firefox 26.0 on Ubuntu precise.
  • the JS console sometimes reports "too much recursion" or "this.sink is null".

register user duplicate key error

userDao.createUser = function (username, password, from, cb) {
...
utils.invokeCallback(cb, { code: err.number, msg: err.message }, null);
...
}

the err has no number field.

so app.js

app.post('/register', function(req, res) {
...
this line error [if (err && err.code === 1062) {]
...
}

problem with lordofpomelo\game-server\bin\build.sh

cd node_modules/pomelo/node_modules/pomelo-admin/node_modules/v8-profiler/ && node-waf configure && node-waf build && cd ../../../../
npm install v8-profiler

where is v8-profiler and node-waf

can anybody explain it in detail?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.