xiaonanln / goworld

Scalable Distributed Game Server Engine with Hot Swapping in Golang
Apache License 2.0
2.53k stars 450 forks source link

Samples does not work. #97

Open glight2000 opened 3 years ago

glight2000 commented 3 years ago

There's a lot of fatal section gate1 has unknown key: http_addr when call goworld start because of goworld.ini config file. Still got an error ! start dispatcher failed, see dispatcher.log for error: wait started tag timeout After fixed it, but dispatcher.log is empty.

magixmin commented 3 years ago

@glight2000 what`s you env my latest ver iso k [root@izwz95vgp1haukj85asticz goworld]# goworld build examples/unity_demo

arguments: build examples/unity_demo go list -m -json: {Path:github.com/xiaonanln/goworld Main:true Dir:/root/dev/opt/go/src/magix/goworld GoMod:/root/dev/opt/go/src/magix/goworld/go.mod GoVersion:1.13} goworld directory found: /root/dev/opt/go/src/magix/goworld info Using config file: /root/dev/opt/go/src/magix/goworld/goworld.ini {"ts": "2020-09-04T14:14:51.303+0800"} info >>> config <<< debug = true {"ts": "2020-09-04T14:14:51.303+0800"} info >>> config <<< desired dispatcher count = 1 {"ts": "2020-09-04T14:14:51.303+0800"} info >>> config <<< desired game count = 1 {"ts": "2020-09-04T14:14:51.303+0800"} info >>> config <<< desired gate count = 1 {"ts": "2020-09-04T14:14:51.303+0800"} info >>> config <<< storage type = mongodb {"ts": "2020-09-04T14:14:51.303+0800"} info >>> config <<< KVDB type = mongodb {"ts": "2020-09-04T14:14:51.303+0800"} building server examples/unity_demo ... server directory is /root/dev/opt/go/src/magix/goworld/examples/unity_demo ... go build examples/unity_demo ... go build dispatcher ... go build gate ... go: downloading github.com/xtaci/kcp-go v5.4.19+incompatible go: downloading github.com/petar/GoLLRB v0.0.0-20190514000832-33fb24c13b99 go: downloading github.com/klauspost/reedsolomon v1.9.3 go: downloading golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529 go: downloading github.com/templexxx/xor v0.0.0-20181023030647-4e92f724b73b go: downloading github.com/tjfoc/gmsm v1.0.1 go: downloading github.com/templexxx/cpufeat v0.0.0-20180724012125-cef66df7f161 go: downloading github.com/klauspost/cpuid v1.2.1 [root@izwz95vgp1haukj85asticz goworld]# goworld start examples/unity_demo arguments: start examples/unity_demo go list -m -json: {Path:github.com/xiaonanln/goworld Main:true Dir:/root/dev/opt/go/src/magix/goworld GoMod:/root/dev/opt/go/src/magix/goworld/go.mod GoVersion:1.13} goworld directory found: /root/dev/opt/go/src/magix/goworld info Using config file: /root/dev/opt/go/src/magix/goworld/goworld.ini {"ts": "2020-09-04T14:15:04.547+0800"} info >>> config <<< debug = true {"ts": "2020-09-04T14:15:04.547+0800"} info >>> config <<< desired dispatcher count = 1 {"ts": "2020-09-04T14:15:04.547+0800"} info >>> config <<< desired game count = 1 {"ts": "2020-09-04T14:15:04.547+0800"} info >>> config <<< desired gate count = 1 {"ts": "2020-09-04T14:15:04.547+0800"} info >>> config <<< storage type = mongodb {"ts": "2020-09-04T14:15:04.547+0800"} info >>> config <<< KVDB type = mongodb {"ts": "2020-09-04T14:15:04.547+0800"} start dispatchers ... dispatcher ids: [1] start games ... desired games = 1 start game 1 ...