https://github.com/widelands/widelands-metaserver
The game server that provides chat and hosting of games.
https://github.com/widelands/widelands-metaserver
floss game-server go
Last synced: about 1 year ago
JSON representation
The game server that provides chat and hosting of games.
- Host: GitHub
- URL: https://github.com/widelands/widelands-metaserver
- Owner: widelands
- Created: 2015-02-07T20:12:06.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2021-06-06T14:13:26.000Z (about 5 years ago)
- Last Synced: 2025-04-09T08:44:24.126Z (about 1 year ago)
- Topics: floss, game-server, go
- Language: Go
- Homepage: http://wl.widelands.org
- Size: 412 KB
- Stars: 4
- Watchers: 9
- Forks: 5
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# widelands-metaserver
The game server that provides chat and hosting of games for Widelands.
For information about the used network protocol, see the file
[src/network/internet_gaming_protocol.h](https://github.com/widelands/widelands/blob/master/src/network/internet_gaming_protocol.h)
in the Widelands sources at .
# Building
1. Install [Go](https://golang.org/doc/install).
2. `cd $GOPATH`
3. `go get github.com/widelands/widelands-metaserver/...`
4. `cd src/github.com/widelands/widelands-metaserver`
5. `make`
# Deploying
1. `make cross`
2. scp `$GOPATH/bin/linux_amd64/wl*` over to the server and replace the files in `/usr/local/bin/`.
3. `sudo restart wlnetrelay`. This will also restart the metaserver.
4. Check in `/var/log/upstart/wlmetaserver.log` and
`/var/log/upstart/wlnetrelay.log` that the restarts were
successful.
# Testing locally
1. `$GOPATH/bin/wlnr`. This starts the relay server for hosting games.
2. `$GOPATH/bin/wlms`. This starts the server with an empty in memory user database.
3. Edit `~/.widelands/config` and add the line `metaserver="localhost"` before
launching widelands.
4. Launch Widelands and click on internet game.
5. Do not forget to remove the metaserver line once you want to play on the real
metaserver again.