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)