mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-10-30 08:17:55 +00:00
Upload batty's change to hide the gameserver IP, update astron.
This commit is contained in:
parent
e157c01f30
commit
21b5edae04
7 changed files with 20 additions and 3 deletions
BIN
dependencies/astron/astrond.exe
vendored
BIN
dependencies/astron/astrond.exe
vendored
Binary file not shown.
BIN
dependencies/astron/mongoclient.dll
vendored
Normal file
BIN
dependencies/astron/mongoclient.dll
vendored
Normal file
Binary file not shown.
2
dependencies/config/release/dev.prc
vendored
2
dependencies/config/release/dev.prc
vendored
|
@ -25,6 +25,8 @@ accountdb-type developer
|
|||
shard-low-pop 50
|
||||
shard-mid-pop 100
|
||||
|
||||
game-type developer
|
||||
|
||||
# RPC:
|
||||
want-rpc-server #f
|
||||
rpc-server-endpoint http://localhost:8080/
|
||||
|
|
|
@ -9,6 +9,8 @@ video-library-name p3ffmpeg
|
|||
want-dev #f
|
||||
preload-avatars #t
|
||||
|
||||
game-type remote
|
||||
|
||||
# Graphics:
|
||||
aux-display pandagl
|
||||
aux-display pandadx9
|
||||
|
|
|
@ -469,7 +469,7 @@ class OTPClientRepository(ClientRepositoryBase):
|
|||
self.handler = self.handleMessageType
|
||||
messenger.send('connectionIssue')
|
||||
url = self.serverList[0]
|
||||
self.notify.warning('Failed to connect to %s (%s %s). Notifying user.' % (url.cStr(), statusCode, statusString))
|
||||
self.notify.warning('Failed to connect to %s (%s %s). Notifying user.' % (config.GetString('TTS_GAMESERVER'), statusCode, statusString))
|
||||
dialogClass = OTPGlobals.getGlobalDialogClass()
|
||||
self.failedToConnectBox = dialogClass(message=OTPLocalizer.CRNoConnectTryAgain % (url.getServer(), url.getPort()), doneEvent='failedToConnectAck', text_wordwrap=18, style=OTPDialog.TwoChoice)
|
||||
self.failedToConnectBox.show()
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 4e2986832f047ae4e8f6256d187a6d111a526f5d
|
||||
Subproject commit af09e769b860512c03de6fff4a585e96d674e89b
|
|
@ -46,7 +46,20 @@ class TTSLauncher:
|
|||
return self.getValue('TTS_PLAYCOOKIE')
|
||||
|
||||
def getGameServer(self):
|
||||
return self.getValue('TTS_GAMESERVER')
|
||||
if config.GetString('game-type', 'developer') != 'remote':
|
||||
return self.getValue('TTS_GAMESERVER')
|
||||
return self.getServer(self.getValue('TTS_GAMESERVER'))
|
||||
|
||||
def getServer(self, gameserver):
|
||||
import DNS
|
||||
DNS.DiscoverNameServers()
|
||||
srv_req = DNS.Request(qtype = 'srv')
|
||||
srv_result = srv_req.req('_toontown._tcp.'+ gameserver)
|
||||
|
||||
for result in srv_result.answers:
|
||||
if result['typename'] == 'SRV':
|
||||
data = result['data']
|
||||
return data[3] + ":" + str(data[2])
|
||||
|
||||
def getValue(self, key, default = None):
|
||||
return os.environ.get(key, default)
|
||||
|
|
Loading…
Reference in a new issue