- Mesaj
- 530
- Çözümler
- 38
- Beğeni
- 1.391
- Puan
- 1.149
- Ticaret Puanı
- 0
Selamlar, MT2 için düzenleyip derlediğim Python 2.7.18 sürümünü paylaşacağım. Baştan sona ufak tefek düzenlemeler içermekte ayrıca MT2 için gereksiz olan tüm Python eklentileri de orijinale sadık kalacak şekilde kapatıldı (GF hala eski bir sürümü kullanıyor ama oyunun binary/lib klasöründen görebileceğiniz üzere kullanmayacakları her şeyi kapatmışlar, başlıca sebebi güvenlik tabii ki) bunun haricinde kullanışlı olabilecek decimal, JSON ve XML gibi destekleri aktif bıraktım çünkü işe yarayacakları senaryolar mevcut, zaten tüm kaynak kodunu paylaşıyorum kendiniz istediğinizi açıp kapatabilirsiniz fakat ben bu haliyle sorunsuz şekilde kullanıyorum kendi projemde, iyi eğlenceler.
README Dosyasından ufak kesit; (Çeşitli yerlerde paylaştığım için, ayrı ayrı uğraşmamak adına İngilizce yazdım kusura bakmayın)
İndirme Linkleri;
README Dosyasından ufak kesit; (Çeşitli yerlerde paylaştığım için, ayrı ayrı uğraşmamak adına İngilizce yazdım kusura bakmayın)
C++:
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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.
İndirme Linkleri;
Burayı görüntülemek için üye girişi yapmalı veya kayıt olmalısınız.