From 6e885e0df9383c5490af0666ebcc408edd0dd8ea Mon Sep 17 00:00:00 2001 From: NCLanceman Date: Sat, 22 Nov 2025 15:44:09 -0600 Subject: [PATCH] minor cleanup --- README.md | 5 +++-- doomstarter.py | 30 +++++++++--------------------- 2 files changed, 12 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index f71411d..9c916e0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -DOOMSTARTER +# DOOMSTARTER A Python script for running Doom, handling numerous sourceports, maps, and gameplay WADs. @@ -6,4 +6,5 @@ maps, and gameplay WADs. (11/10/25) Initial Commit: Works on my machine! (11/20/25) Approaching basic functionality: Reads and writes basic settings file -# doomstarter + + diff --git a/doomstarter.py b/doomstarter.py index 490935e..65122ed 100644 --- a/doomstarter.py +++ b/doomstarter.py @@ -19,8 +19,8 @@ def settingsReader(mainDict, file): settings = ((open(file)).read()).splitlines() for i in settings: - print("Examining " + i) - print("Current Setting is: " + currentSetting) + # print("Examining " + i) + # print("Current Setting is: " + currentSetting) counterName = str(counter).zfill(2) if (i == "[Source Ports]"): @@ -135,15 +135,18 @@ def settingsGen(mapList, gameList, miscList): # Add the maps result = result + "[Maps]\n" for i in mapList: - result = result + str(i) + "\n" + if ((i.split('.'))[1].lower() == "wad"): + result = result + str(i) + "\n" # Add the gameplay wads result = result + "[Gameplay]\n" for i in gameList: - result = result + str(i) + "\n" + if ((i.split('.'))[1].lower() == "wad"): + result = result + str(i) + "\n" # Add misc wads result = result + "[Misc]\n" for i in miscList: - result = result + str(i) + "\n" + if ((i.split('.'))[1].lower() == "wad"): + result = result + str(i) + "\n" result = result + "[Last Used]" return result @@ -260,7 +263,7 @@ else: print(settingsDict) print("\n\n Saving to new file!") - with open("dictSettings.txt", "w") as f: + with open("settings.txt", "w") as f: f.write(settingsSave(settingsDict)) f.close() @@ -269,21 +272,6 @@ else: # + " ./gameplay/PVT_STONE_V12_5.wad", shell = True) # subprocess.run(sourceport_dict["Woof"]["runcommand"], shell=True) - # 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/")) - - # TODO: Now that I can read a settings file, create one - - # TODO: Throw everything into the settingsDict - - # TODO: Add an option for adding details for given entries. - # Configure SourcePort # Add Gameplay WAD (optional)