From e8bf4f9565e6a3923566b16b240f78a1715c5e0e Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Fri, 4 Sep 2020 11:17:05 -0400 Subject: [PATCH] Scoreboard now works! Finally! --- libstormgames.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libstormgames.py b/libstormgames.py index 58617d5..43ec124 100755 --- a/libstormgames.py +++ b/libstormgames.py @@ -47,7 +47,7 @@ class scoreboard(): self.oldScores = [] for i in range(1, 11): try: - self.oldScores.insert(i - 1, localConfig.getint("scoreboard", i)) + self.oldScores.insert(i - 1, localConfig.getint("scoreboard", str(i))) except: pass self.oldScores.insert(i - 1, 0) @@ -104,13 +104,13 @@ def read_config(readGlobal = False): if readGlobal == False: try: with open(gamePath + "/config.ini", 'r') as configfile: - localConfig.read(configfile) + localConfig.read_file(configfile) except: pass else: try: with open(globalPath + "/config.ini", 'r') as configfile: - globalConfig.read(configfile) + globalConfig.read_file(configfile) except: pass