From ba8605b93fb2c4bc1ff1e0f0f0bce07e2516afcf Mon Sep 17 00:00:00 2001 From: Open Toontown <57279094+opentoontown@users.noreply.github.com> Date: Mon, 3 Jan 2022 20:18:17 -0500 Subject: [PATCH] Some minor changes to further support the OTP protocol --- otp/distributed/OTPClientRepository.py | 2 +- otp/login/LoginTTAccount.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/otp/distributed/OTPClientRepository.py b/otp/distributed/OTPClientRepository.py index 047600a..51daf21 100644 --- a/otp/distributed/OTPClientRepository.py +++ b/otp/distributed/OTPClientRepository.py @@ -961,7 +961,7 @@ class OTPClientRepository(ClientRepositoryBase): avNames[1] = di.getString() avNames[2] = di.getString() avNames[3] = di.getString() - avDNA = di.getString() + avDNA = di.getBlob() avPosition = di.getUint8() aname = di.getUint8() potAv = PotentialAvatar(avNum, avNames, avDNA, avPosition, aname) diff --git a/otp/login/LoginTTAccount.py b/otp/login/LoginTTAccount.py index 2961428..b3883c4 100644 --- a/otp/login/LoginTTAccount.py +++ b/otp/login/LoginTTAccount.py @@ -24,7 +24,7 @@ class LoginTTAccount(LoginBase.LoginBase): datagram.addString(cr.serverVersion) datagram.addUint32(cr.hashVal) self.__addTokenType(datagram) - datagram.addString(cr.wantMagicWords) + datagram.addString('YES' if cr.wantMagicWords else 'NO') else: datagram.addUint16(CLIENT_LOGIN_2) self.__addPlayToken(datagram)