Jump to content

Multiple Login Saver System


Recommended Posts

  • 8 months later...
1 hour ago, Jxxkub said:

Client/lib folder.

1007 22:38:00430 :: Traceback (most recent call last):

1007 22:38:00430 ::   File "introLogo.py", line 60, in OnUpdate

1007 22:38:00430 ::   File "networkModule.py", line 177, in SetLoginPhase

1007 22:38:00430 ::   File "system.py", line 130, in __pack_import

1007 22:38:00430 ::   File "system.py", line 110, in _process_result

1007 22:38:00430 ::   File "introLogin.py", line 19, in <module>

1007 22:38:00431 ::   File "system.py", line 130, in __pack_import

1007 22:38:00431 ::   File "system.py", line 110, in _process_result

1007 22:38:00431 ::   File "uiSelectCredentials.py", line 5, in <module>

1007 22:38:00431 ::   File "system.py", line 130, in __pack_import

1007 22:38:00431 ::   File "system.py", line 110, in _process_result

1007 22:38:00431 ::   File "intrologin.py", line 23, in <module>

1007 22:38:00432 ::   File "system.py", line 137, in __pack_import

1007 22:38:00432 :: ImportError
1007 22:38:00432 :: : 
1007 22:38:00432 :: Bad magic number in C:\xxx\xxx\xxx\xxx\Client & Serverfiles xxx _ xxx\Client\lib\string.pyc

Any ideea why I m getting this error? I ve got python2.7. 

Do you have the string lib for this version by any chance? xD

Edited by narcisxb
Link to comment
Share on other sites

  • Nitro Booster
1 hour ago, narcisxb said:
1007 22:38:00430 :: Traceback (most recent call last):

1007 22:38:00430 ::   File "introLogo.py", line 60, in OnUpdate

1007 22:38:00430 ::   File "networkModule.py", line 177, in SetLoginPhase

1007 22:38:00430 ::   File "system.py", line 130, in __pack_import

1007 22:38:00430 ::   File "system.py", line 110, in _process_result

1007 22:38:00430 ::   File "introLogin.py", line 19, in <module>

1007 22:38:00431 ::   File "system.py", line 130, in __pack_import

1007 22:38:00431 ::   File "system.py", line 110, in _process_result

1007 22:38:00431 ::   File "uiSelectCredentials.py", line 5, in <module>

1007 22:38:00431 ::   File "system.py", line 130, in __pack_import

1007 22:38:00431 ::   File "system.py", line 110, in _process_result

1007 22:38:00431 ::   File "intrologin.py", line 23, in <module>

1007 22:38:00432 ::   File "system.py", line 137, in __pack_import

1007 22:38:00432 :: ImportError
1007 22:38:00432 :: : 
1007 22:38:00432 :: Bad magic number in C:\xxx\xxx\xxx\xxx\Client & Serverfiles xxx _ xxx\Client\lib\string.pyc

Any ideea why I m getting this error? I ve got python2.7. 

Do you have the string lib for this version by any chance? xD

I do (you can actually get it by downloading python 2.7 from official python website, then going to ~\python27\lib\string.pyc)

This is the hidden content, please

lemme know if i should add virustotal, i dont think its neccessary cause its just one file.

  • Metin2 Dev 20
  • Eyes 1
  • Good 4
  • Love 1
  • Love 4
Link to comment
Share on other sites

1 minute ago, Jxxkub said:

I do (you can actually get it by downloading python 2.7 from official python website, then going to ~\python27\lib\string.pyc)

This is the hidden content, please

lemme know if i should add virustotal, i dont think its neccessary cause its just one file.

I ve got a newer version of python installed and I don t want to conflict them. I actually took the lib from another client and the system works fine.

Thank you anyways!

  • Metin2 Dev 4
  • Good 1
Link to comment
Share on other sites

  • 1 month later...
On 1/24/2021 at 1:35 PM, DemOnJR said:

If is missing something is because i don't remember from where i edited it an year ago.

 

accountlistwindow.py

		{
			"name" : "sterge",
			"type" : "button",

			"x" : 105,
			"y" : 265,

			"width" : 41,
			"height" : 21,

			"text" : "Sterge",

			"default_image" : "d:/ymir work/ui/public/small_button_01.sub",
			"over_image" : "d:/ymir work/ui/public/small_button_02.sub",
			"down_image" : "d:/ymir work/ui/public/small_button_03.sub",
		},

 

uiselectcredentials.py

After:

self.cancelButton.SAFE_SetEvent(self.__OnCancel)

 

Add:

self.stergeButton.SAFE_SetEvent(self.__OnSterge)

 

After:

self.okButton=self.GetChild("ok")

 

Add:

self.stergeButton=self.GetChild("sterge")

 

After:

def __OnOK(self):
    self.Hide()

 

Add:

  def __OnSterge(self):
    self.Hide()

 

After:

	def __OnOK(self):
		selItem=self.fileListBox.GetSelectedItem()
		if selItem:
			if self.selectEvent:
				self.selectEvent(selItem.GetText())
			with open('user//preferred','w') as mainpg:
				mainpg.write("{};{}".format(selItem.GetText(),self.GetPwdFromId(selItem.GetText())) )
			self.__PopupMessage("{} selectat, conecteaza-te apasand load.".format(selItem.GetText()))
			self.Hide()
		else:
			self.__PopupMessage("Nu ai ales niciun cont din lista.")

 

Add:

 

	def __OnSterge(self):
		selItem=self.fileListBox.GetSelectedItem()
		if selItem:
			if self.selectEvent:
				self.selectEvent(selItem.GetText())
			with open('user//credentials', 'r+') as f:
				data = ''.join([i for i in f if not i.lower().startswith(selItem.GetText())])
				f.seek(0)
				f.write(data)
				f.truncate()
			self.__PopupMessage("{} a fost sters.".format(selItem.GetText()))
			self.__RefreshFileList()
		else:
			self.__PopupMessage("Nu ai ales niciun cont din lista.")

 

 

Thanks a lot for sharing, works!

  • Good 1
Link to comment
Share on other sites

  • 1 year later...
  • 4 weeks later...

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.