ICDev 239 Posted October 30, 2017 Share Posted October 30, 2017 M2 Download Center This is the hidden content, please Sign In or Sign Up ( Internal ) Spoiler Extract root and open intrologin.py At the beginning add: import os from _winreg import * Search: self.loginExitButton = GetObject("LoginExitButton") Add: self.saveLoginButton = GetObject("SaveLoginButton") self.loadCredentialButton = GetObject("LoadCredentials") Finally at the end add: def ICDev_ECRYPT(self,data): Data = '' for l in data: Data = Data+str(int(ord(l) + 2) * 2)+' ' return Data def ICDev_DECRYPT(self,data): Data = '' data = data.split() for l in data: Data = Data+chr((int(l) / 2) - 2) return Data def __OnClickSaveLoginButton(self): id = self.idEditLine.GetText() pwd = self.pwdEditLine.GetText() if (len(id) != 0 and len(pwd) != 0): if not os.path.exists("SOFTWARE\ICDev"): key = CreateKey(HKEY_CURRENT_USER,"SOFTWARE\ICDev") SetValueEx(key, "UserID", 0, REG_SZ, self.ICDev_ECRYPT(id)) SetValueEx(key, "Passwd", 0, REG_SZ, self.ICDev_ECRYPT(pwd)) CloseKey(key) self.PopupNotifyMessage("Datele au fost salvate!",self.SetIDEditLineFocus) def __OnClickLoadInfoButton(self): try: key = OpenKey(HKEY_CURRENT_USER, "SOFTWARE\ICDev", 0, KEY_ALL_ACCESS) self.Connect(self.ICDev_DECRYPT(QueryValueEx(key, "UserID")[0]),self.ICDev_DECRYPT(QueryValueEx(key, "Passwd")[0])) except: self.PopupNotifyMessage("Nu exista nici un account salvat!",self.SetIDEditLineFocus) Extract locale_xx and open loginwindow.py Search: "text" : uiScriptLocale.LOGIN_CONNECT, }, ), }, Add: ## userDataBoard { "name" : "UserDataBoard", "type" : "thinboard", "x" : (SCREEN_WIDTH - 208) / 2, "y" : (SCREEN_HEIGHT - 355), "width" : 205, "height" : 55, "children" : ( { "name" : "SaveLoginButton", "type" : "button", "x" : 10, "y" : 0, "vertical_align" : "center", "default_image" : "d:/ymir work/ui/public/large_button_01.sub", "over_image" : "d:/ymir work/ui/public/large_button_02.sub", "down_image" : "d:/ymir work/ui/public/large_button_03.sub", "text" : uiScriptLocale.LOGIN_SAVE_BUTTON, }, { "name" : "LoadCredentials", "type" : "button", "x" : 105, "y" : 0, "vertical_align" : "center", "default_image" : "d:/ymir work/ui/public/large_button_01.sub", "over_image" : "d:/ymir work/ui/public/large_button_02.sub", "down_image" : "d:/ymir work/ui/public/large_button_03.sub", "text" : uiScriptLocale.LOGIN_LOAD_BUTTON, }, ), }, In local_interface.txt (local_xx) add: LOGIN_SAVE_BUTTON Save LOGIN_LOAD_BUTTON Load Now add in YourClient/lib: This is the hidden content, please Sign In or Sign Up 121 3 2 1 3 1 2 2 2 1 48 5 65 Link to comment Share on other sites More sharing options...
blackList 2 Posted November 8, 2017 Share Posted November 8, 2017 didnt work, if i press save he not save it and also when i press load he not load anything Link to comment Share on other sites More sharing options...
ICDev 239 Posted November 21, 2017 Author Share Posted November 21, 2017 On 8/11/2017 at 10:29 PM, Freitag said: didnt work, if i press save he not save it and also when i press load he not load anything You must run client with administrator rights Link to comment Share on other sites More sharing options...
Newton 0 Posted November 26, 2017 Share Posted November 26, 2017 i have the error: 1126 11:28:00353 :: File " 1126 11:28:00353 :: introLogin.py 1126 11:28:00353 :: ", line 1126 11:28:00353 :: 1376 1126 11:28:00353 :: 1126 11:28:00353 :: 1126 11:28:00353 :: Data = '' 1126 11:28:00353 :: 1126 11:28:00353 :: 1126 11:28:00353 :: 1126 11:28:00353 :: 1126 11:28:00353 :: ^ 1126 11:28:00353 :: IndentationError 1126 11:28:00353 :: : 1126 11:28:00353 :: expected an indented block 1126 11:28:00353 :: Link to comment Share on other sites More sharing options...
weryoliveira 26 Posted November 28, 2017 Share Posted November 28, 2017 you tabs is wrong Link to comment Share on other sites More sharing options...
amosth 9 Posted March 15, 2018 Share Posted March 15, 2018 Does not work. Link to comment Share on other sites More sharing options...
mast210 0 Posted June 27, 2019 Share Posted June 27, 2019 Under: self.pwdEditLine.SetTabEvent(ui.__mem_func__(self.idEditLine.SetFocus)) Add: self.saveLoginButton.SetEvent(ui.__mem_func__(self.__OnClickSaveLoginButton)) self.loadCredentialButton.SetEvent(ui.__mem_func__(self.__OnClickLoadInfoButton)) Link to comment Share on other sites More sharing options...
Historia 0 Posted January 3, 2022 Share Posted January 3, 2022 I did all the copy & paste stuff. But dont know where do I put the winreg.pyc data? 17 minutes ago, Historia said: I did all the copy & paste stuff. But dont know where do I put the winreg.pyc data? Now the Client shut downs, I did put the winreg in filezilla usr/home/game/quest.. Link to comment Share on other sites More sharing options...
Contributor TMP4 10998 Posted January 3, 2022 Contributor Share Posted January 3, 2022 (edited) 2 hours ago, Historia said: I did all the copy & paste stuff. But dont know where do I put the winreg.pyc data? Now the Client shut downs, I did put the winreg in filezilla usr/home/game/quest.. why did you put it on serverside, when it is a clientside thing? Anyway put it to the lib folder clientside (or even root should work). Edited January 3, 2022 by TMP4 Link to comment Share on other sites More sharing options...
Dedu 0 Posted February 19, 2022 Share Posted February 19, 2022 upp Link to comment Share on other sites More sharing options...
kenoZ 2 Posted March 6, 2022 Share Posted March 6, 2022 0306 07:25:00721 :: Traceback (most recent call last): 0306 07:25:00721 :: File "introLogo.py", line 60, in OnUpdate 0306 07:25:00721 :: File "networkModule.py", line 177, in SetLoginPhase 0306 07:25:00721 :: File "system.py", line 130, in __pack_import 0306 07:25:00721 :: File " 0306 07:25:00721 :: <string> 0306 07:25:00721 :: ", line 0306 07:25:00721 :: 530 0306 07:25:00722 :: 0306 07:25:00722 :: 0306 07:25:00722 :: self.saveLoginButton = GetObject("SaveLoginButton") 0306 07:25:00722 :: 0306 07:25:00722 :: 0306 07:25:00722 :: 0306 07:25:00722 :: 0306 07:25:00722 :: 0306 07:25:00722 :: 0306 07:25:00722 :: 0306 07:25:00722 :: 0306 07:25:00722 :: 0306 07:25:00722 :: 0306 07:25:00722 :: 0306 07:25:00722 :: 0306 07:25:00722 :: 0306 07:25:00722 :: 0306 07:25:00723 :: 0306 07:25:00723 :: 0306 07:25:00723 :: 0306 07:25:00723 :: 0306 07:25:00723 :: 0306 07:25:00723 :: 0306 07:25:00723 :: 0306 07:25:00723 :: 0306 07:25:00723 :: 0306 07:25:00723 :: 0306 07:25:00723 :: 0306 07:25:00723 :: 0306 07:25:00723 :: 0306 07:25:00723 :: 0306 07:25:00723 :: 0306 07:25:00723 :: 0306 07:25:00723 :: 0306 07:25:00723 :: 0306 07:25:00723 :: 0306 07:25:00724 :: 0306 07:25:00724 :: 0306 07:25:00724 :: 0306 07:25:00724 :: 0306 07:25:00724 :: 0306 07:25:00724 :: 0306 07:25:00724 :: 0306 07:25:00724 :: 0306 07:25:00724 :: 0306 07:25:00724 :: 0306 07:25:00724 :: 0306 07:25:00724 :: 0306 07:25:00724 :: 0306 07:25:00724 :: 0306 07:25:00724 :: 0306 07:25:00724 :: 0306 07:25:00724 :: 0306 07:25:00724 :: 0306 07:25:00724 :: 0306 07:25:00725 :: 0306 07:25:00725 :: 0306 07:25:00725 :: 0306 07:25:00725 :: 0306 07:25:00725 :: 0306 07:25:00725 :: 0306 07:25:00725 :: ^ 0306 07:25:00725 :: IndentationError 0306 07:25:00725 :: : 0306 07:25:00725 :: unindent does not match any outer indentation level 0306 07:25:00725 :: I have blackscreen and this says my client syserr.txt Link to comment Share on other sites More sharing options...
Sparta21 0 Posted April 29, 2022 Share Posted April 29, 2022 (edited) With tabs, working for me. Spoiler Extract root and open intrologin.py At the beginning add: import os from _winreg import * Search: self.loginExitButton = GetObject("LoginExitButton") Add: self.saveLoginButton = GetObject("SaveLoginButton") self.loadCredentialButton = GetObject("LoadCredentials") Search self.pwdEditLine.SetTabEvent(ui.__mem_func__(self.idEditLine.SetFocus)) Add: self.saveLoginButton.SetEvent(ui.__mem_func__(self.__OnClickSaveLoginButton)) self.loadCredentialButton.SetEvent(ui.__mem_func__(self.__OnClickLoadInfoButton)) Finally at the end add: def ICDev_ECRYPT(self,data): Data = '' for l in data: Data = Data+str(int(ord(l) + 2) * 2)+' ' return Data def ICDev_DECRYPT(self,data): Data = '' data = data.split() for l in data: Data = Data+chr((int(l) / 2) - 2) return Data def __OnClickSaveLoginButton(self): id = self.idEditLine.GetText() pwd = self.pwdEditLine.GetText() if (len(id) != 0 and len(pwd) != 0): if not os.path.exists("SOFTWARE\ICDev"): key = CreateKey(HKEY_CURRENT_USER,"SOFTWARE\ICDev") SetValueEx(key, "UserID", 0, REG_SZ, self.ICDev_ECRYPT(id)) SetValueEx(key, "Passwd", 0, REG_SZ, self.ICDev_ECRYPT(pwd)) CloseKey(key) self.PopupNotifyMessage("Saved successfully.",self.SetIDEditLineFocus) def __OnClickLoadInfoButton(self): try: key = OpenKey(HKEY_CURRENT_USER, "SOFTWARE\ICDev", 0, KEY_ALL_ACCESS) self.Connect(self.ICDev_DECRYPT(QueryValueEx(key, "UserID")[0]),self.ICDev_DECRYPT(QueryValueEx(key, "Passwd")[0])) except: self.PopupNotifyMessage("Save before load.",self.SetIDEditLineFocus) Extract locale_xx and open loginwindow.py Search: "text" : uiScriptLocale.LOGIN_EXIT, }, ), }, Add: ## userDataBoard { "name" : "UserDataBoard", "type" : "thinboard", "x" : (SCREEN_WIDTH - 208) / 2, "y" : (SCREEN_HEIGHT - 410 - 70), "width" : 208, "height" : 35, "children" : ( { "name" : "SaveLoginButton", "type" : "button", "x" : 10, "y" : 0, "vertical_align" : "center", "default_image" : "d:/ymir work/ui/public/large_button_01.sub", "over_image" : "d:/ymir work/ui/public/large_button_02.sub", "down_image" : "d:/ymir work/ui/public/large_button_03.sub", "text" : uiScriptLocale.LOGIN_SAVE_BUTTON, }, { "name" : "LoadCredentials", "type" : "button", "x" : 105, "y" : 0, "vertical_align" : "center", "default_image" : "d:/ymir work/ui/public/large_button_01.sub", "over_image" : "d:/ymir work/ui/public/large_button_02.sub", "down_image" : "d:/ymir work/ui/public/large_button_03.sub", "text" : uiScriptLocale.LOGIN_LOAD_BUTTON, }, ), }, In local_interface.txt (local_xx) add: LOGIN_SAVE_BUTTON Save LOGIN_LOAD_BUTTON Load Edited August 16, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
supra 0 Posted June 9, 2022 Share Posted June 9, 2022 Hello i have this problem please help me 0609 20:19:00880 :: introLogin.py(line:533) __LoadScript ui.py(line:2704) GetChild LoginWindow.__LoadScript.BindObject - <type 'exceptions.KeyError'>:'SaveLoginButton' 0609 20:19:00880 :: ============================================================================================================ 0609 20:19:00880 :: Abort!!!! Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted June 9, 2022 Active Member Share Posted June 9, 2022 @supraCheck your loginwindow.py, it looks like you did some syntax mistake. I'll be always helpful! Link to comment Share on other sites More sharing options...
Recommended Posts