From 336796e7bfc49c6dc9928f822fa7d3f2932cec7e Mon Sep 17 00:00:00 2001 From: Ru Chern Date: Sun, 21 Aug 2016 09:06:20 +1000 Subject: [PATCH 1/3] Added a cfg.js.example file so as not to accidentally overwrite user's cfg.js settings that is already on localhost. Updated README.md to reflect the necessary changes. (To start, rename cfg.js.example to cfg.js). --- .gitignore | 3 ++- README.md | 4 +++- cfg.js.example | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+), 2 deletions(-) create mode 100644 cfg.js.example diff --git a/.gitignore b/.gitignore index 344f0b6..97aa159 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules/ -scripts/ \ No newline at end of file +scripts/ +cfg.js diff --git a/README.md b/README.md index 6f50353..ffa1e7d 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,8 @@ ______ _____ _____ _____ ## Setup +Copy and rename ``cfg.js.example`` to ``cfg.js``. + Open ``cfg.js`` and fill the following fields: ````js @@ -60,4 +62,4 @@ Depending on your OS, you need to run either ``run-linux.sh`` or ``run-windows.b If everything went fine, it should look like: -![Preview](http://image.prntscr.com/image/6ce92058147b4067b8027c42258a198c.png "") \ No newline at end of file +![Preview](http://image.prntscr.com/image/6ce92058147b4067b8027c42258a198c.png "") diff --git a/cfg.js.example b/cfg.js.example new file mode 100644 index 0000000..39b6ffe --- /dev/null +++ b/cfg.js.example @@ -0,0 +1,50 @@ +export default { + + // Server settings + MAX_CONNECTIONS: 64, + PORT: 3000, + GAME_MODE: 0, + SAVE_INTERVAL: 60000, + PLAYER_CONNECTION_TIMEOUT: 1800000, + MINIMUM_CLIENT_VERSION: "0.33.0", + DEFAULT_CONSOLE_COLOR: 32, + TRANSFER_ACCOUNTS: false, + + // Choose a database type + DATABASE_TYPE: "MYSQL", + + // MySQL credentials + MYSQL_PORT: 3306, + MYSQL_HOST_IP: "127.0.0.1", + MYSQL_DB_NAME: "pogosql", + MYSQL_USERNAME: "root", + MYSQL_PASSWORD: "", + MYSQL_TABLE: "users", + + // MongoDB credentials + MONGO_PORT: 27017, + MONGO_HOST_IP: "127.0.0.1", + MONGO_DB_NAME: "pokemongo", + MONGO_COLLECTION_USERS: "users", + + // Used for asset download session + DOWNLOAD_PROVIDER: "GOOGLE", + DOWNLOAD_USERNAME: "USERNAME", + DOWNLOAD_PASSWORD: "PASSWORD", + + // Google maps api key + GMAPS_KEY: "AIzaSyDF9rkP8lhcddBtvH9gVFzjnNo13WtmJIM", + + // Server debug options + DEBUG_DUMP_PATH: "./logs/", + DEBUG_DUMP_TRAFFIC: true, + DEBUG_LOG_REQUESTS: true, + + // Better dont touch these + TICK_INTERVAL: 1, + BOOT_TIMEOUT: 10000, + // Currently supported pokemon + MAX_POKEMON_NATIONAL_ID: 151, + DUMP_ASSET_PATH: "data/" + +} \ No newline at end of file From ee65e1232a2eb938e286fe263e91c299ead4a30c Mon Sep 17 00:00:00 2001 From: Ru Chern Date: Sun, 21 Aug 2016 09:09:16 +1000 Subject: [PATCH 2/3] Removed cfg.js from repo. --- cfg.js | 50 -------------------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 cfg.js diff --git a/cfg.js b/cfg.js deleted file mode 100644 index 39b6ffe..0000000 --- a/cfg.js +++ /dev/null @@ -1,50 +0,0 @@ -export default { - - // Server settings - MAX_CONNECTIONS: 64, - PORT: 3000, - GAME_MODE: 0, - SAVE_INTERVAL: 60000, - PLAYER_CONNECTION_TIMEOUT: 1800000, - MINIMUM_CLIENT_VERSION: "0.33.0", - DEFAULT_CONSOLE_COLOR: 32, - TRANSFER_ACCOUNTS: false, - - // Choose a database type - DATABASE_TYPE: "MYSQL", - - // MySQL credentials - MYSQL_PORT: 3306, - MYSQL_HOST_IP: "127.0.0.1", - MYSQL_DB_NAME: "pogosql", - MYSQL_USERNAME: "root", - MYSQL_PASSWORD: "", - MYSQL_TABLE: "users", - - // MongoDB credentials - MONGO_PORT: 27017, - MONGO_HOST_IP: "127.0.0.1", - MONGO_DB_NAME: "pokemongo", - MONGO_COLLECTION_USERS: "users", - - // Used for asset download session - DOWNLOAD_PROVIDER: "GOOGLE", - DOWNLOAD_USERNAME: "USERNAME", - DOWNLOAD_PASSWORD: "PASSWORD", - - // Google maps api key - GMAPS_KEY: "AIzaSyDF9rkP8lhcddBtvH9gVFzjnNo13WtmJIM", - - // Server debug options - DEBUG_DUMP_PATH: "./logs/", - DEBUG_DUMP_TRAFFIC: true, - DEBUG_LOG_REQUESTS: true, - - // Better dont touch these - TICK_INTERVAL: 1, - BOOT_TIMEOUT: 10000, - // Currently supported pokemon - MAX_POKEMON_NATIONAL_ID: 151, - DUMP_ASSET_PATH: "data/" - -} \ No newline at end of file From 09ea4ab9ef2d3b6552ed5a103c8f1ba55b687616 Mon Sep 17 00:00:00 2001 From: Ru Chern Date: Sun, 21 Aug 2016 09:09:16 +1000 Subject: [PATCH 3/3] Removed cfg.js from repo as it may contain user's specific sensitive information. --- cfg.js | 50 -------------------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 cfg.js diff --git a/cfg.js b/cfg.js deleted file mode 100644 index 39b6ffe..0000000 --- a/cfg.js +++ /dev/null @@ -1,50 +0,0 @@ -export default { - - // Server settings - MAX_CONNECTIONS: 64, - PORT: 3000, - GAME_MODE: 0, - SAVE_INTERVAL: 60000, - PLAYER_CONNECTION_TIMEOUT: 1800000, - MINIMUM_CLIENT_VERSION: "0.33.0", - DEFAULT_CONSOLE_COLOR: 32, - TRANSFER_ACCOUNTS: false, - - // Choose a database type - DATABASE_TYPE: "MYSQL", - - // MySQL credentials - MYSQL_PORT: 3306, - MYSQL_HOST_IP: "127.0.0.1", - MYSQL_DB_NAME: "pogosql", - MYSQL_USERNAME: "root", - MYSQL_PASSWORD: "", - MYSQL_TABLE: "users", - - // MongoDB credentials - MONGO_PORT: 27017, - MONGO_HOST_IP: "127.0.0.1", - MONGO_DB_NAME: "pokemongo", - MONGO_COLLECTION_USERS: "users", - - // Used for asset download session - DOWNLOAD_PROVIDER: "GOOGLE", - DOWNLOAD_USERNAME: "USERNAME", - DOWNLOAD_PASSWORD: "PASSWORD", - - // Google maps api key - GMAPS_KEY: "AIzaSyDF9rkP8lhcddBtvH9gVFzjnNo13WtmJIM", - - // Server debug options - DEBUG_DUMP_PATH: "./logs/", - DEBUG_DUMP_TRAFFIC: true, - DEBUG_LOG_REQUESTS: true, - - // Better dont touch these - TICK_INTERVAL: 1, - BOOT_TIMEOUT: 10000, - // Currently supported pokemon - MAX_POKEMON_NATIONAL_ID: 151, - DUMP_ASSET_PATH: "data/" - -} \ No newline at end of file