mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 11:42:39 -06:00
Jumble, WHY U DELETE MY COMMITS <3
This commit is contained in:
parent
b51df42bdb
commit
398ede7a85
2 changed files with 12 additions and 1 deletions
|
@ -50,6 +50,11 @@ if ':' in host:
|
||||||
port = int(port)
|
port = int(port)
|
||||||
simbase.air.connect(host, port)
|
simbase.air.connect(host, port)
|
||||||
|
|
||||||
|
isServer = config.GetBool('is-server', False)
|
||||||
|
|
||||||
|
if isServer:
|
||||||
|
import datetime
|
||||||
|
|
||||||
try:
|
try:
|
||||||
run()
|
run()
|
||||||
except SystemExit:
|
except SystemExit:
|
||||||
|
@ -57,4 +62,9 @@ except SystemExit:
|
||||||
except Exception:
|
except Exception:
|
||||||
info = describeException()
|
info = describeException()
|
||||||
simbase.air.writeServerEvent('uberdog-exception', simbase.air.getAvatarIdFromSender(), simbase.air.getAccountIdFromSender(), info)
|
simbase.air.writeServerEvent('uberdog-exception', simbase.air.getAvatarIdFromSender(), simbase.air.getAccountIdFromSender(), info)
|
||||||
raise
|
|
||||||
|
if isServer:
|
||||||
|
with open(config.GetString('ud-crash-log-name', '/opt/var/log/Uberdog-crash-%s.txt' % (datetime.datetime.now())), 'w+') as file:
|
||||||
|
file.write(info + "\n")
|
||||||
|
|
||||||
|
raise
|
|
@ -4,6 +4,7 @@ from toontown.distributed.ToontownNetMessengerAI import ToontownNetMessengerAI
|
||||||
from direct.distributed.PyDatagram import PyDatagram
|
from direct.distributed.PyDatagram import PyDatagram
|
||||||
import traceback
|
import traceback
|
||||||
import sys
|
import sys
|
||||||
|
import urlparse
|
||||||
|
|
||||||
class ToontownInternalRepository(AstronInternalRepository):
|
class ToontownInternalRepository(AstronInternalRepository):
|
||||||
GameGlobalsId = OTP_DO_ID_TOONTOWN
|
GameGlobalsId = OTP_DO_ID_TOONTOWN
|
||||||
|
|
Loading…
Reference in a new issue