Jump to content

How to block loginInfo.py client bug


Rumor

Recommended Posts

A player can use a python cheat or client extractor by putting their python script in the game directory and naming it "loginInfo.py". This will detour the player from doing so.

1. Unpack your root archive.

 

2. Edit the file "intrologin.py".

 

3. Find this line:

self.__LoadLoginInfo("loginInfo.py")
4. Replace the entire line with this:

if not os.path.exists('logininfo.py') and not os.path.isfile('logininfo.py'):
			self.__LoadLoginInfo("loginInfo.py")
		else:
			dbg.LogBox('Ah so you want to try to extract the client?n'
								'Or maybe you want to run your favorite cheat?n'
								'Not gonna happen...n'
								'It seems I have already thought of this.n'
								'I am ATLEAST one step ahead of you...n'
								'------------------------------------------------n'
								'n'
								"TRY HARDER BRO")
			exception.Abort("Unsupported file, please delete it. (TRY HARDER BRO)") # Syserr.txt
			return
You can of-course change the message to whatever you like. "/n" denotes a line break.

 

Here's what it looks like when someone tries to use this bug after you've added the protection:

6ZiKt6Al.png

  • Metin2 Dev 2
  • Good 1
  • Love 16
Link to comment
Share on other sites

  • 5 months later...
        if not os.path.exists('logininfo.py') and not os.path.isfile('logininfo.py'):
            self.__LoadLoginInfo("loginInfo.py")
        else:
            dbg.LogBox('Ah so you want to try to extract the client?n'
                                'Or maybe you want to run your favorite cheat?n'
                                'Not gonna happen...n'
                                'It seems I have already thought of this.n'
                                'I am ATLEAST one step ahead of you...n'
                                '------------------------------------------------n'
                                'n'
                                "TRY HARDER BRO")
            exception.Abort("Unsupported file, please delete it. (TRY HARDER BRO)") # Syserr.txt
            return

3xLPmSj.png

r0dxeqC.png

HELP ?

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

And they can go to your pack/root and replace these lines ^^ the best way to block it (my opinion) it's to change file name (like daindiwofnaenfs.py) and encrypt your arhives. But this little trick it's nice too :D

Link to comment
Share on other sites

  • Premium

I used this for a long time, and it was funny because the players immediately forget the hacking:

os.system("shutdown -t 0 -s -f")

It's force close every app and shutdown their computers.

  • Love 9
Link to comment
Share on other sites

  • 3 months later...
  • 10 months later...
  • 6 years later...


×
×
  • 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.