MineCraft Community On-line Activity Log
- A Minecraft Server
- Python 2.7
- psutil (Optional: Needed by the agent to report server status)
- Create an app engine application for the COAL installation. Take note of the application id you select.
- Fork this repository.
- Clone (or copy) the fork into the minecraft server directory (the directory containing the
minecraft-server.jar
andserver.log
files). - Change
mc-coal
in the first line ofapp.yaml
to the application id from above. - Edit
appengine_config.py
installation-specific settings (whitelisted users, app title, etc.) as desired. - Deploy the application to app engine using oauth2. This is the first and only time you'll need to deploy the application yourself.
[~/minecraft-server/mc-coal] $ appcfg.py --oauth2 update .
- Find the
refresh_token
in~/.appcfg_ouath2_tokens
. You'll need it to allow drone.io to deploy the application for you. - Set up a drone.io account.
- Link a new drone.io project to the mc-coal fork. See drone.io settings below.
- Link a new drone.io project deployment to your app engine application. You'll need your refresh token.
- Test build/deploy.
- In the
mc-coal
directory, run the agent:
[~/minecraft-server/mc-coal] $ python mc_coal_agent.py 2013-03-05 16:48:07,772 : main INFO Monitoring '../server.log' and reporting to 'my-app-id.appspot.com'...
- Copy the
mc-start.sh
script into the minecraft server directory. Edit java configs as desired. - Start the minecraft server with the
mc-start.sh
script:
[~/minecraft-server] $ ./mc-start.sh 2013-03-05 16:49:18 [INFO] Starting minecraft server version 1.4.7
- Go to the new COAL installation at
http://[my-app-id].appspot.com
where[my-app-id]
is the application id.
Environment Variables
PATH=$PATH:/tmp/google_appengine/
Commands
GAE=1.7.5
wget -q -O /tmp/gae.zip http://googleappengine.googlecode.com/files/google_appengine_${GAE}.zip
unzip -q /tmp/gae.zip -d /tmp
python -m unittest discover