This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DefaultStartScript = script.txt | |
Fullscreen = 1 | |
HostPortDefault = 0 | |
VSync = 1 | |
ShowClock = 0 | |
ShowFPS = 0 | |
ShowPlayerInfo = 0 | |
MoveWarnings = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local cmdConfig = { | |
{ | |
command = "gamerules", | |
description = "Sets values of specific gamerules variables", | |
cheat = true, | |
suggestions = function(cmd, cmdParts) | |
local suggestions = {} | |
local param = cmdParts[2] | |
for index, rule in pairs(Spring.GetGameRulesParams()) do | |
if type(rule) == "table" then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
import threading | |
import subprocess | |
import traceback | |
import shlex | |
class Command(object): | |
""" | |
Enables to run subprocess commands in a different thread with TIMEOUT option. |