old_contents: # ##### BEGIN AGPL LICENSE BLOCK #####
  # This file is part of SimpleMMO.
  #
  # Copyright (C) 2011, 2012  Charles Nelson
  #
  # This program is free software: you can redistribute it and/or modify
  # it under the terms of the GNU Affero General Public License as
  # published by the Free Software Foundation, either version 3 of the
  # License, or (at your option) any later version.
  #
  # This program is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  # GNU Affero General Public License for more details.
  #
  # You should have received a copy of the GNU Affero General Public License
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  #
  # ##### END AGPL LICENSE BLOCK #####
  
  # Global Settings
  PROTOCOL = "http"
  HOSTNAME = "localhost"
  
  AUTHSERVERPORT = 1234
  CHARSERVERPORT = 1235
  MASTERZONESERVERPORT = 1236
  
  DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S:%f'
  
  import subprocess
  COOKIE_SECRET = subprocess.check_output('git rev-parse HEAD', shell=True).strip()
  
  AGPL_STRING = "BEGIN AGPL LICENSE BLOCK"
  SKIP_FOLDERS = ("/.", ".git", ".svn", "/build/", "/srv/")
  
  # AuthServer Settings
  ADMINISTRATORS = ['admin']
  
  # ZoneServer Settings
  ZONESTARTPORT = 1300
  ZONEENDPORT = 1400
  ZONESTARTUPTIME = 10
  DEFAULT_CHARACTER_ZONE = 'defaultzone'
  
  # ScriptServer Settings
  MAX_ZONE_OBJECT_MESSAGE_COUNT = 1000
  MAX_DICE_AMOUNT = 100
  
  # Client Settings
  CLIENT_TIMEOUT = 10 # Client gives up connecting after 10 seconds.
  MSPERSEC = 1000
  CLIENT_NETWORK_FPS = 10
  CLIENT_UPDATE_FREQ = MSPERSEC/CLIENT_NETWORK_FPS
  DEFAULT_USERNAME = "Username"
  DEFAULT_PASSWORD = "Password"
  
new_contents: # ##### BEGIN AGPL LICENSE BLOCK #####
  # This file is part of SimpleMMO.
  #
  # Copyright (C) 2011, 2012  Charles Nelson
  #
  # This program is free software: you can redistribute it and/or modify
  # it under the terms of the GNU Affero General Public License as
  # published by the Free Software Foundation, either version 3 of the
  # License, or (at your option) any later version.
  #
  # This program is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  # GNU Affero General Public License for more details.
  #
  # You should have received a copy of the GNU Affero General Public License
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  #
  # ##### END AGPL LICENSE BLOCK #####
  
  # Global Settings
  PROTOCOL = "http"
  HOSTNAME = "localhost"
  _server_str = "%s://%s:%d"
  
  AUTHSERVERPORT = 1234
  CHARSERVERPORT = 1235
  MASTERZONESERVERPORT = 1236
  METASERVERPORT = 1237
  
  AUTHSERVER = _server_str % (PROTOCOL, HOSTNAME, AUTHSERVERPORT)
  CHARSERVER = _server_str % (PROTOCOL, HOSTNAME, CHARSERVERPORT)
  ZONESERVER = _server_str % (PROTOCOL, HOSTNAME, MASTERZONESERVERPORT)
  METASERVER = _server_str % (PROTOCOL, HOSTNAME, METASERVERPORT)
  
  DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S:%f'
  
  import subprocess
  COOKIE_SECRET = subprocess.check_output('git rev-parse HEAD', shell=True).strip()
  
  AGPL_STRING = "BEGIN AGPL LICENSE BLOCK"
  SKIP_FOLDERS = ("/.", ".git", ".svn", "/build/", "/srv/")
  
  # AuthServer Settings
  ADMINISTRATORS = ['admin']
  
  # ZoneServer Settings
  ZONESTARTPORT = 1300
  ZONEENDPORT = 1400
  ZONESTARTUPTIME = 10
  DEFAULT_CHARACTER_ZONE = 'defaultzone'
  
  # ScriptServer Settings
  MAX_ZONE_OBJECT_MESSAGE_COUNT = 1000
  MAX_DICE_AMOUNT = 100
  
  # Client Settings
  CLIENT_TIMEOUT = 10 # Client gives up connecting after 10 seconds.
  MSPERSEC = 1000
  CLIENT_NETWORK_FPS = 10
  CLIENT_UPDATE_FREQ = MSPERSEC/CLIENT_NETWORK_FPS
  DEFAULT_USERNAME = "Username"
  DEFAULT_PASSWORD = "Password"
  
subject: Move formatting for server string into a variable.