toontown: Fix DeprecationWarnings

This commit is contained in:
Rocket Programmer 2021-07-19 20:13:58 -05:00
parent 8e270e4acb
commit 07902ef97e
No known key found for this signature in database
GPG key ID: 48FD14DE2DD84998
2 changed files with 4 additions and 4 deletions

View file

@ -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)

View file

@ -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)