Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.78 KB | None | 0 0
  1. quakestart.sh - quake live multiple server spawning script.
  2. # created by Thomas Jones on 09/09/15.
  3.  
  4. # Defining variables.
  5. export qPathToStartScript="/home/steam/Steam/steamapps/common/qlds/run_server_x64.sh"
  6.  
  7. gameport=`expr $1 + 27960`
  8. rconport=`expr $1 + 28960`
  9. servernum=`expr $1 + 0`
  10.  
  11.  
  12. # Executing a random delay to stagger the spawning of each server, as
  13. # supervisord starts everything at once, thus lowering the load surge.
  14. # echo "Sleeping for random delay (5-30 seconds) before spawning..."
  15. # sleep $(((RANDOM%120)+10))
  16. # No-one cares about this anymore, sleeping on a per-server basis now?
  17. # Finally works, should mean that all servers should be up after 45 seconds.
  18.  
  19. # Starts servers with different settings, based off the process number parsed
  20. # as argument 1 by supervisord.
  21.  
  22. echo "========== QuakeStart.sh has started. =========="
  23. echo "========= $(date) ========="
  24. #echo "arg1 is equal to $1"
  25. cd ~/steam/steamapps/common/qlds/baseq3
  26.  
  27. if [ $1 -eq 0 ]
  28. # starting SmackDaddys CA 1
  29. then
  30. echo "Starting SmackDaddys CA 1"
  31. exec $qPathToStartScript \
  32. +set net_strict 1 \
  33. +set net_port $gameport \
  34. +set sv_hostname "SmackDaddys CA" \
  35. +set zmq_rcon_enable 1 \
  36. +set zmq_rcon_password "Tillus" \
  37. +set zmq_rcon_port $rconport \
  38. +set zmq_stats_enable 1 \
  39. +set zmq_stats_password "Tera" \
  40. +set zmq_stats_port $gameport \
  41. +set sv_tags "Chicago" \
  42. +set g_voteFlags "13928" \
  43. +set g_allowSpecVote "0" \
  44. +set g_allowVoteMidGame 1 \
  45. +set bot_enable 1 \
  46. +set bot_nochat 1 \
  47. +set g_accessFile "access.txt" \
  48. +set sv_mappoolFile "mappool_ca.txt" \
  49. +set fs_homepath "/home/steam/.quakelive/$gameport"
  50. elif [ $1 -eq 1 ]
  51. # starting SmackDaddys FT
  52. then
  53. echo "Starting SmackDaddys FT 1"
  54. exec $qPathToStartScript \
  55. +set net_strict 1 \
  56. +set net_port $gameport \
  57. +set sv_hostname "SmackDaddys FT" \
  58. +set zmq_rcon_enable 1 \
  59. +set zmq_rcon_password "Tillus" \
  60. +set zmq_rcon_port $rconport \
  61. +set zmq_stats_enable 1 \
  62. +set zmq_stats_password "Tera" \
  63. +set zmq_stats_port $gameport \
  64. +set sv_tags "Chicago" \
  65. +set g_voteFlags "13928" \
  66. +set g_allowSpecVote "0" \
  67. +set g_allowVoteMidGame "1" \
  68. +set bot_enable 1 \
  69. +set bot_nochat 1 \
  70. +set g_accessFile "access.txt" \
  71. +set sv_mappoolFile "mappool_ft.txt" \
  72. +set fs_homepath "/home/steam/.quakelive/$gameport"
  73.  
  74. // Servers have the ability to run multiple gametypes, known as "factories." You should not add gameplay related
  75. // cvars in the server config: they may get overwritten by the factory. For creating your own sets of gameplay rules,
  76. // create a file ending in ".factories" inside baseq3/scripts, and refer to "Creating custom gametypes" in the
  77. // server_readme.txt file.
  78.  
  79. // Be aware that factories can override any cvar, including ones specified in this config file.
  80.  
  81. set sv_hostname "SmackDaddy's"
  82. set sv_tags "Smack" // Comma delimited field of server tags to show in server browser.
  83. // Will automatically include gametype and some gameplay modifications.
  84. // ex. "crouch slide, classic, space"
  85. set sv_mapPoolFile "mappool_ctf.txt" // Map pool that the server will use. See default mapcycle.txt for format.
  86. // Built in map pools: mappool.txt, mappool_ca.txt, mappool_ctf.txt, mappool_duel.txt,
  87. // mappool_ffa.txt, mappool_race.txt, mappool_tdm.txt
  88. set g_accessFile "access.txt" // Used to determine which 64-bit Steam IDs have admin access, or are banned.
  89.  
  90. set sv_maxClients "16" // How many players can connect at once.
  91. set g_password "" // Set a server-wide password, and stop all users from connecting without it.
  92. set sv_privateClients "0" // Reserve slots that can be used with sv_privatePassword.
  93. set sv_privatePassword "" // Password to use in conjunction with sv_privateClients.
  94. set com_hunkMegs "60" // May need to be increased for additional players.
  95.  
  96. // Flood protection will increment everytime the user sends a client command, ex. dropweapon, changing name, color
  97. // model, or chatting. Set g_floodprot_maxcount to 0 to disable completely, but this will allow uncontrolled spam.
  98. set sv_floodprotect "100" // Kick the player when they reach x commands, decreases by 1 every second
  99. set g_floodprot_maxcount "100" // Kick the player when their userinfo flood counter reaches this level.
  100. set g_floodprot_decay "1000" // Decrease the userinfo flood counter by 1 this often, in milliseconds.
  101.  
  102. // Add the below values for which callvotes should be DISABLED:
  103. // map 1
  104. // map_restart 2
  105. // nextmap 4
  106. // gametype 8 (ex: "/callvote map campgrounds" will be allowed, but "/callvote map campgrounds ca" will fail)
  107. // kick 16
  108. // timelimit 32
  109. // fraglimit 64
  110. // shuffle 128
  111. // teamsize 256
  112. // cointoss/random 512
  113. // loadouts 1024
  114. // end-game voting 2048
  115. // ammo (global) 4096
  116. // timers (item) 8192
  117. set g_voteFlags "0"
  118. set g_allowVote "1" // Turn off all votes
  119. set g_voteDelay "0" // Delay allowing votes for x milliseconds after map load.
  120. set g_voteLimit "0" // Limit users to x votes per map.
  121. set g_allowVoteMidGame "0" // Don't allow callvotes once the map has started
  122. set g_allowSpecVote "0" // Allow spectators to call votes
  123.  
  124. set sv_warmupReadyPercentage "0.51" // Ratio of players that must be ready before the match starts.
  125. set g_warmupDelay "15" // Wait x seconds before allowing match to start to allow all players to connect.
  126. set g_warmupReadyDelay "0" // Force the game to start after x seconds after someone readies up.
  127. set g_warmupReadyDelayAction "1" // Set to 1 to force players to spectator after g_warmupReady Delay, 2 to force ready up.
  128.  
  129. set g_inactivity "0" // Kick players who are inactive for x amount of seconds.
  130. set g_alltalk "0" // 0: Limit voice comms to teams during match
  131. // 1: Allow all players to talk to each other always
  132. // 2: 1+ send back your own voice to yourself for testing
  133.  
  134. // System settings
  135.  
  136. // Uncomment and set below to use (server.cfg will override commandline!)
  137. // set net_strict "1" // Quit out immediately if we can't bind the IP and port.
  138. // set net_ip "" // Which IP to bind to. Blank will bind to all interfaces.
  139. // set net_port "55555" // Which UDP port to bind to. Blank will start at 27960 and keep going up, if net_strict is 0.
  140. set sv_serverType "2" // 0 = Offline, 1 = LAN, 2 = Internet
  141. set sv_master "1" // Whether the server should respond to queries. Disable this to stop server from appearing in browser.
  142. // (This will affect the LAN browser!)
  143.  
  144. set sv_fps "40" // Change how many frames the server runs per second. WARNING: Has not been tested extensively, and
  145. // will have a direct impact on CPU and network usage!
  146.  
  147. // Exit the server if idle (not running a map) for a specified time. This will allow it to automatically restart
  148. // in the case of a game error or other problem. A value of "1" is recommended, but not default, when you are running
  149. // the server detached from the terminal.
  150.  
  151. set sv_idleExit "1"
  152.  
  153. // Enable remote console, provided through ZeroMQ. See zmq_rcon.py for simple client.
  154. // ZMQ rcon binds on a separate port from the game server, and uses TCP. It must differ from the stats port if used.
  155. // Rcon can not be enabled or disabled after launch, nor can the IP and port change. Password can, however.
  156.  
  157. // Uncomment and set below to use (server.cfg will override commandline!)
  158. // set zmq_rcon_enable "1"
  159. // set zmq_rcon_ip ""
  160. // set zmq_rcon_port "28960"
  161. // set zmq_rcon_password ""
  162.  
  163. // Enable ZeroMQ stats socket. This will not be much use without a client listening.
  164. // See zmq_stats_verbose.py for example connect and stats printing.
  165. // If not specified, the stats socket will default to the same IP and port as the game server, but on TCP.
  166.  
  167. // Uncomment and set below to use (server.cfg will override commandline!)
  168. // set zmq_stats_enable "1"
  169. // set zmq_stats_ip ""
  170. // set zmq_stats_port ""
  171. // set zmq_stats_password ""
  172.  
  173. // The server will run serverstartup when it finishes initializing, so start a random map from the map pool.
  174. set serverstartup "startRandomMap"
  175. // Or, start a map of your choosing (factory is required)
  176.  
  177. set serverstartup "map courtyard ctf"
  178.  
  179. set qlx_plugins "DEFAULT, mybalance, branding, balance, servers, checkplayers"
  180.  
  181. set qlx_serverBrandName "^1Smack"
  182. set qlx_owner "76561198184066542"
  183. set qlx_mybalance "1"
  184. set qlx_redisAddress "/var/run/redis/redis.sock"
  185. set qlx_redisUnixSocket "1"
  186. set qlx_chatLogs "20"
  187. set qlx_servers "104.153.105.59:27960, 104.153.105.59:27961"
  188. set qlx_serversShowInChat "1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement