|
|
@ -3,6 +3,12 @@ import subprocess |
|
|
|
|
|
|
|
|
path = os.getcwd() |
|
|
path = os.getcwd() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def menuPrinter(list): |
|
|
|
|
|
for i in range(len(list)): |
|
|
|
|
|
print(str(i) + ": " + list[i]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Dynamic Introduction! |
|
|
# Dynamic Introduction! |
|
|
print("So it looks like you wanna play some fuckin\' DOOM!") |
|
|
print("So it looks like you wanna play some fuckin\' DOOM!") |
|
|
|
|
|
|
|
|
@ -19,6 +25,11 @@ if (os.path.isdir('misc') == False): |
|
|
print("Making Misc Folder...") |
|
|
print("Making Misc Folder...") |
|
|
os.mkdir('misc') |
|
|
os.mkdir('misc') |
|
|
|
|
|
|
|
|
|
|
|
# Load Config File |
|
|
|
|
|
settings = (open("Settings.txt")).read() |
|
|
|
|
|
print(settings.splitlines()) |
|
|
|
|
|
# TODO: Throw everything into a dictionary and utilize at runtime |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Detect SourcePorts |
|
|
# Detect SourcePorts |
|
|
# Source Port list: GZDoom, UZDoom, ChocolateDoom, DSDA-Doom, Woof! |
|
|
# Source Port list: GZDoom, UZDoom, ChocolateDoom, DSDA-Doom, Woof! |
|
|
@ -33,11 +44,24 @@ sourceport_dict = { |
|
|
|
|
|
|
|
|
print("The command for running UZDoom is: " + |
|
|
print("The command for running UZDoom is: " + |
|
|
sourceport_dict["UZDoom"]["runcommand"]) |
|
|
sourceport_dict["UZDoom"]["runcommand"]) |
|
|
print("Running UZDoom with no arguements...") |
|
|
# print("Running UZDoom with no arguements...") |
|
|
subprocess.run(sourceport_dict["UZDoom"]["runcommand"], shell=True) |
|
|
# subprocess.run(sourceport_dict["UZDoom"]["runcommand"] |
|
|
|
|
|
# + " ./gameplay/PVT_STONE_V12_5.wad", shell = True) |
|
|
# subprocess.run(sourceport_dict["Woof"]["runcommand"], shell=True) |
|
|
# subprocess.run(sourceport_dict["Woof"]["runcommand"], shell=True) |
|
|
|
|
|
|
|
|
# List all that stuff in a file |
|
|
# List all that stuff in a file |
|
|
|
|
|
print("Listing everything in Maps...") |
|
|
|
|
|
print(os.listdir("./maps/")) |
|
|
|
|
|
|
|
|
|
|
|
print("Listing everything in Gameplay...") |
|
|
|
|
|
print(os.listdir("./gameplay/")) |
|
|
|
|
|
|
|
|
|
|
|
print("Listing everything in Misc...") |
|
|
|
|
|
print(os.listdir("./misc/")) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print("Sample Maps listing: ") |
|
|
|
|
|
menuPrinter(os.listdir("./maps/")) |
|
|
|
|
|
|
|
|
# Store last configs for later use |
|
|
# Store last configs for later use |
|
|
|
|
|
|
|
|
|