Skip to content

Instantly share code, notes, and snippets.

View tjone270's full-sized avatar

Thomas Jones tjone270

View GitHub Profile
@tjone270
tjone270 / pseudo-quakeupdate.sh
Last active October 8, 2015 15:57
Example of backing up/restoring files before running 'qzeroded' update.
echo Backing up workshop.txt...
cp -fv /home/steam/steamcmd/steamapps/common/qlds/baseq3/workshop.txt /home/steam/steamcmd/steamapps/common/qlds/baseq3/workshop.bak
# Running 'steamcmd' to update qzeroded
echo Updating Quake Server...
/home/steam/steamcmd/steamcmd.sh +login "$steamUser" "$steamPass" +force_install_dir /home/steam/steamcmd/steamapps/common/qlds/ +app_update 349090 +quit
echo Restoring workshop.txt...
cp -fv /home/steam/steamcmd/steamapps/common/qlds/baseq3/workshop.bak /home/steam/steamcmd/steamapps/common/qlds/baseq3/workshop.txt
@tjone270
tjone270 / listcmds
Created October 10, 2015 07:28
qlds commands list
zmq RCON command from 41624a286f2011e5a57600163e260a14: listcmds
listcmds
touchFile
fdir
dir
path
map
startRandomMap
vstr
set
@tjone270
tjone270 / quake output
Created October 10, 2015 12:37
output of quakeupdate.sh
========== QuakeUpdate.sh has started. ==========
========== Sat Oct 10 22:33:10 AEST 2015 ==========
Telling players in server port 28960 that the servers are going down...
zmq RCON command from 113359986f4b11e5bb3000163e260a14: say ^4The Purgery^7 servers are going down ^4within a minute^7 for daily updating. They will be back in ^410 minutes^7.
Telling players in server port 28961 that the servers are going down...
zmq RCON command from 1255886e6f4b11e5a11700163e260a14: say ^4The Purgery^7 servers are going down ^4within a minute^7 for daily updating. They will be back in ^410 minutes^7.
Telling players in server port 28962 that the servers are going down...
zmq RCON command from 1376e4866f4b11e5a18e00163e260a14: say ^4The Purgery^7 servers are going down ^4within a minute^7 for daily updating. They will be back in ^410 minutes^7.
Telling players in server port 28963 that the servers are going down...
zmq RCON command from 14952fa86f4b11e59f5b00163e260a14: say ^4The Purgery^7 servers are going down ^4withi
#!/bin/bash
# quakestart.sh - quake live multiple server spawning script.
# created by Thomas Jones on 09/09/15.
# thomas@tomtecsolutions.com
# Defining variables.
location="FREEMONT"
qPathToStartScript="/home/steam/Steam/steamapps/common/qlds/run_server_x64_minqlx.sh"
sponsortag="QLSTATS.NET:8080,CALI,FREEMONT,VKS"
@tjone270
tjone270 / irc.py
Created December 9, 2015 18:43
modified irc.py that submits live score data to the relay channel on round end and game end.
# minqlx - A Quake Live server administrator bot.
# Copyright (C) 2015 Mino <mino@minomino.org>
# This file is part of minqlx.
# minqlx is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@tjone270
tjone270 / rysiu_sounds.py
Last active December 14, 2015 18:10
rysiu_sounds.py, a minqlx plugin for RysiuWroc of RysiuBot servers in Poland.
# get access to the minqlx code base so we can access the server and game
import minqlx
# import the randint function from the random class, so we can make random numbers
from random import randint
class rysiu_sounds(minqlx.Plugin):
def __init__(self):
# Adding hooks, so everytime the map changes or the round ends, the code runs :)
self.add_hook("map", self.reference_soundpack)
@tjone270
tjone270 / workshop.txt
Created December 16, 2015 18:51
The Purgery - workshop.txt
# TomTec Solutions' loaded workshop maps. Please only load maps here, other items will most likely cause issues.
# Get these numbers from the ?id= ending of the workshop URL.
# Quake Live Extras Pack
539421606
# Quake Live Holiday Pack
539421982
# Quake III Arena: Sound Pack (by Thomas Jones for testing purposes)
@tjone270
tjone270 / snippet
Created February 3, 2016 07:35
how to tell which team scored last
self.team_gametypes = ["tdm", "ca", "ctf", "1f", "har", "ft", "dom", "ad", "rr"]
self.free_gametypes = ["ffa", "duel", "race"]
self.stored_score_red = 0
self.stored_score_blue = 0
def handle_round_end(self, *args, **kwargs):
if self.game.type_short in self.team_gametypes:
if self.game.red_score != self.stored_score_red:
self.stored_score_red = self.game.red_score
@tjone270
tjone270 / workshop.txt
Created February 3, 2016 18:21
overflowing workshop.txt,
# Please only load maps here, other items will most likely cause issues.
# Get these numbers from the ?id= ending of the workshop URL.
# Quake Live Extras Pack
539421606
# Quake Live Holiday Pack
539421982
# Quake III Arena: Sound Pack (by Thomas Jones for testing purposes)

Keybase proof

I hereby claim:

  • I am tjone270 on github.
  • I am tjone270 (https://keybase.io/tjone270) on keybase.
  • I have a public key whose fingerprint is 6130 E24C 53D4 E234 453E 7F50 4619 B616 0EC2 BC6C

To claim this, I am signing this object: