From 07902ef97e075560b963eb86b8b1b6947836206a Mon Sep 17 00:00:00 2001 From: Rocket Programmer Date: Mon, 19 Jul 2021 20:13:58 -0500 Subject: [PATCH] toontown: Fix DeprecationWarnings --- toontown/ai/AIStart.py | 4 ++-- toontown/uberdog/UDStart.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/toontown/ai/AIStart.py b/toontown/ai/AIStart.py index fc5ea88..4e1cee8 100644 --- a/toontown/ai/AIStart.py +++ b/toontown/ai/AIStart.py @@ -43,9 +43,9 @@ builtins.game = game from otp.ai.AIBaseGlobal import * from toontown.ai.ToontownAIRepository import ToontownAIRepository -simbase.air = ToontownAIRepository(config.GetInt('air-base-channel', 1000000), config.GetInt('air-stateserver', 4002), config.GetString('district-name', 'Toon Valley')) +simbase.air = ToontownAIRepository(ConfigVariableInt('air-base-channel', 1000000).value, ConfigVariableInt('air-stateserver', 4002).value, ConfigVariableString('district-name', 'Toon Valley').value) -host = config.GetString('air-connect', '127.0.0.1:7199') +host = ConfigVariableString('air-connect', '127.0.0.1:7199').value port = 7199 if ':' in host: host, port = host.split(':', 1) diff --git a/toontown/uberdog/UDStart.py b/toontown/uberdog/UDStart.py index ccb7d81..332a2cd 100644 --- a/toontown/uberdog/UDStart.py +++ b/toontown/uberdog/UDStart.py @@ -43,9 +43,9 @@ loadPrcFile('etc/Configrc.prc') from otp.ai.AIBaseGlobal import * from toontown.uberdog.ToontownUDRepository import ToontownUDRepository -simbase.air = ToontownUDRepository(config.GetInt('air-base-channel', 1000000), config.GetInt('air-stateserver', 4002)) +simbase.air = ToontownUDRepository(ConfigVariableInt('air-base-channel', 1000000).value, ConfigVariableInt('air-stateserver', 4002).value) -host = config.GetString('air-connect', '127.0.0.1:7199') +host = ConfigVariableString('air-connect', '127.0.0.1:7199').value port = 7199 if ':' in host: host, port = host.split(':', 1)