Jump to content

Recommended Posts

  • Active+ Member

Python 2.7.18

 Hi everyone, today i wanna share Python 2.7.18 version that i made for MT2, it's edited top to bottom and ready for the use. You can either take the pre-compiled files and use them or build it yourself with modification, download the RaR and take a look at the README file, there is everything you are lookin for, have fun.

F.A.Q

// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ F.A.Q +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ " How To Build ? " ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[/* INFO: If you don't want to bother with the compilation process, you can get the precompiled versions from the folder named "precompiled".*/]

- Open "Change.cpp" file and do the neccesary changes.
- After that, open the "MT2_Include_Path.rar" file and copy that Python folder to your "Client/Srcs/Extern/Include" path.
- Go to "PCBuild / BUILD_PYTHON.sln" right click -> Build all (/*Do it both Release and Debug versions*/).
- After build, all the outputs (/* .lib, .dll etc */) will take place at "PCBuild/".
- Move .dll files to your binary path, move lib files to your "Client/Srcs/Extern/Library" path.
+ After the compilation process in "Release" mode is complete, the generated python.exe file automatically converts all py files in the lib to pyc.
+ You should add these new pyc and pyd files to the MT2 binary lib folder after the build process is complete.
+ (/* NOTE: When adding these pyc files to the Metin2 lib, you DO NOT NEED TO ADD THE FILES ; */
+  "compileall.pyc - py_compile.pyc - runpy.pyc - pkgutil.pyc - inspect.pyc - token.pyc - tokenize.pyc - dis.pyc - opcode.pyc"
+  /* These are ONLY required during the compilation phase! */)
----------------------------------------------------------------------------------------------------------------------------------------------------------
/* NOTE II: During the process of converting py files to pyc, the log of all stages is written to the "PCBuild/PYC_Compile.log" file,
            you can look here in case of errors while compile. */
----------------------------------------------------------------------------------------------------------------------------------------------------------
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ " What Is The Diffrence ? " ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

- All unnecessary Python features for MT2 have been deactivated, but a few new features have been added that might be useful.
+ For example, decimal, which can be used to increase damage limits, is also available, along with various other improvements like JSON and XML support.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ " Why We Need To Use This Version ? " ++++++++++++++++++++++++++++++++++++++++++++++++++++

- The short answer is that you dont have to use it, but it is a fact that it will provide you with certain advantages if you do use it, let's take a look at them.
+ Unnecessary files and codes (/* for MT2 */) were cleaned and the build warnings were also fixed.
+ This version is the most suitable version for MT2 in terms of both performance and security,
+    It is the last 2.7 version released and does not contain features that MT2 does not use (/* like ssl, socket, html etc */).
+    It is also important that it includes the security fixes made by Python up to this 2.7.18 version.
+    It is always best to use the most up-to-date version possible of any external libraries you use.

Download

This is the hidden content, please

 Best regards, MT2Dev.

Edited by MT2Dev
  • Metin2 Dev 29
  • kekw 1
  • Eyes 1
  • Good 6
  • Love 1
  • Love 10

spacer.png

©

Link to comment
https://metin2.dev/topic/33859-python-2718-update/
Share on other sites

  • 1 month later...
  • Active Member
3 hours ago, friendtm said:

Just curious, but why isnt there py3 in Metin yet? No one wants to commit to the hard work or is there a reason?

to make it harder for creating hacks, but is not worth the risks of bugs and hard work, and possible problems in the future. Better to detect hackers without their awareness.

  • Facepalm 1
Link to comment
https://metin2.dev/topic/33859-python-2718-update/#findComment-172008
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.