Jump to content

Save Login Single Slot


Recommended Posts

  • Premium

M2 Download Center

This is the hidden content, please
( Internal )

Yo guys,


Since i decided to do the save login i`ll release the basic version i made, really simple.

If it`s already public i couldn`t care less, it`s just some bullshit i made in few minutes.
Here`s the guide:

This is the hidden content, please
!zuOdTMKBNeda-yy7HGG_3st9iTfSQy2tThfQjBhd6dY

have fun

  • Metin2 Dev 83
  • Eyes 2
  • Dislove 1
  • Angry 3
  • Sad 1
  • Think 2
  • Lmao 2
  • Good 25
  • muscle 1
  • Love 5
  • Love 42
Link to comment
Share on other sites

Quote

	def __OnClickLoadInfoButton(self):
		file_object = open("credentials", "r")
		id_da_file = file_object.readline()
		pwd_da_file = file_object.readline()
		id = id_da_file
		pwd = pwd_da_file
		file_object.close()
		self.Connect(id, pwd)

 

You not need to do it like this for read multiples lines from a file, already exixst method readlines() - returns a list containing the lines.

	def __OnClickLoadInfoButton(self):
		fileObject = open("credentials", "r").readlines()
		self.Connect(fileObject[0], fileObject[1])

 

  • Love 1
Link to comment
Share on other sites

  • Premium
3 minutes ago, Tasho said:

You not need to do it like this for read multiples lines from a file, already exixst method readlines() - returns a list containing the lines.


	def __OnClickLoadInfoButton(self):
		fileObject = open("credentials", "r").readlines()
		self.Connect(fileObject[0], fileObject[1])

 

Yup thanks for the tip, i wanted re-do it with the json library actually

Link to comment
Share on other sites

  • Premium
11 hours ago, xP3NG3Rx said:

Ahh no, leave the python alone.

i`m really open to suggestion to be better, if you can suggest me something go ahed i`ll not be ashamed of myself or shit like that, i didn`t want to copy paste something from the web because i like to do things on my own so if you can give me tips to improve they will be very welcome

Link to comment
Share on other sites

  • 2 years later...

Hi! I did everythings right and I got this errors:

 

0523 23:36:00877 :: Traceback (most recent call last):

0523 23:36:00878 ::   File "introLogo.py", line 60, in OnUpdate

0523 23:36:00878 ::   File "networkModule.py", line 177, in SetLoginPhase

0523 23:36:00878 ::   File "system.py", line 130, in __pack_import

0523 23:36:00878 ::   File "
0523 23:36:00878 :: introLogin.py
0523 23:36:00878 :: ", line 
0523 23:36:00878 :: 532   
0523 23:36:00879 :: self.saveLoginButton		= GetObject("SaveLoginButton")

0523 23:36:00881 :: IndentationError
0523 23:36:00881 :: : 
0523 23:36:00881 :: unindent does not match any outer indentation level
0523 23:36:00881 :: 

Please help to fix it! Thank you!

Edited by Nemesis23
Link to comment
Share on other sites

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.