constinfo
intrologin
networkmodule
I found the problem and that the solution
def Connect(self, id, pwd, Hwid, Snn):
global Hwid, Snn
if constInfo.SEQUENCE_PACKET_ENABLE:
net.SetPacketSequenceMode()
if IsLoginDelay():
loginDelay = GetLoginDelay()
self.connectingDialog = ConnectingDialog()
self.connectingDialog.Open(loginDelay)
self.connectingDialog.SAFE_SetTimeOverEvent(self.OnEndCountDown)
self.connectingDialog.SAFE_SetExitEvent(self.OnPressExitKey)
self.isNowCountDown = TRUE
else:
self.stream.popupWindow.Close()
self.stream.popupWindow.Open(localeInfo.LOGIN_CONNETING, self.SetPasswordEditLineFocus, localeInfo.UI_CANCEL)
self.stream.SetLoginInfo(id, pwd, Hwid, Snn)
self.stream.Connect()
Change it to this
global Hwid, Snn
Hwid = constInfo.Hwid
Snn = constInfo.Snn
So getting.
def Connect(self, id, pwd, Hwid, Snn):
# global Hwid
# global Snn
Hwid = constInfo.Hwid
Snn = constInfo.Snn
if constInfo.SEQUENCE_PACKET_ENABLE:
net.SetPacketSequenceMode()
if IsLoginDelay():
loginDelay = GetLoginDelay()
self.connectingDialog = ConnectingDialog()
self.connectingDialog.Open(loginDelay)
self.connectingDialog.SAFE_SetTimeOverEvent(self.OnEndCountDown)
self.connectingDialog.SAFE_SetExitEvent(self.OnPressExitKey)
self.isNowCountDown = TRUE
else:
self.stream.popupWindow.Close()
self.stream.popupWindow.Open(localeInfo.LOGIN_CONNETING, self.SetPasswordEditLineFocus, localeInfo.UI_CANCEL)
self.stream.SetLoginInfo(id, pwd, Hwid, Snn)
self.stream.Connect()