Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
Merge remote branch 'mkrecny/deps'
Browse files Browse the repository at this point in the history
  • Loading branch information
sork committed Apr 6, 2012
2 parents 4e173ba + 4b32ddc commit f580f2f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ config_build.json
config_local*
client/audio/music
.DS_Store
*.swp
14 changes: 14 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "BrowserQuest"
, "version": "0.0.1"
, "private": false
, "dependencies": {
"underscore": ">0"
, "log": ">0"
, "bison": ">0"
, "websocket": ">0"
, "websocket-server": ">0"
, "sanitizer": ">0"
, "memcache": ">0"
}
}
5 changes: 3 additions & 2 deletions server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ The game server currently runs on nodejs v0.4.7 (but should run fine on the late
- websocket
- websocket-server
- sanitizer
- memcache

All of them can be installed via `npm install [module_name]`
All of them can be installed via `npm install -d` (this will install a local copy of all the dependencies in the node_modules directory)


Configuration
Expand Down Expand Up @@ -38,4 +39,4 @@ The server has a status URL which can be used as a health check or simply as a w

Send a GET request to: `http://[host]:[port]/status`

It will return a JSON array containing the number of players in all instanced worlds on this game server.
It will return a JSON array containing the number of players in all instanced worlds on this game server.
2 changes: 1 addition & 1 deletion server/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function main(config) {
worlds = [],
lastTotalPlayers = 0,
checkPopulationInterval = setInterval(function() {
if(metrics.isReady) {
if(metrics && metrics.isReady) {
metrics.getTotalPlayers(function(totalPlayers) {
if(totalPlayers !== lastTotalPlayers) {
lastTotalPlayers = totalPlayers;
Expand Down

0 comments on commit f580f2f

Please sign in to comment.