+ Basarken basit Bilgi Python Version

  • Konbuyu başlatan Konbuyu başlatan Admin
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 0
  • Görüntüleme Görüntüleme 83

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
İşlem yapılıcak pack root

aç uirefine.py


arat:


Kod:
self.targetItemPos = targetItemPos         self.vnum = nextGradeItemVnum
ekle:

Kod:
constInfo.write1 = nextGradeItemVnum-1         constInfo.write2 = nextGradeItemVnum

aç constInfo.py

ekle

Kod:
write1 = 0 write2 = 0



aç game.py

arat:

Kod:
def RefineSuceededMessage(self):         snd.PlaySound("sound/ui/make_soket.wav")         self.PopupMessage(localeInfo.REFINE_SUCCESS)
değiştir:



Kod:
def RefineSuceededMessage(self):         import constInfo         import chat         snd.PlaySound("sound/ui/make_soket.wav")         self.PopupMessage(localeInfo.REFINE_SUCCESS)         item1 = int(constInfo.write1)         item2 = int(constInfo.write2)         item.SelectItem(item1)         item1name = item.GetItemName()         item.SelectItem(item2)         item2name = item.GetItemName()                  chat.AppendChat(chat.CHAT_TYPE_INFO, "Tebrikler " +player.GetName()+" yükseltme başarılı "+str(item1name)+"->"+str(item2name))
kanit :




Başarısız olduğunda mesaj yazmak için


aç game.py


arat:


Kod:
def RefineFailedMessage(self):         snd.PlaySound("sound/ui/jaeryun_fail.wav")         self.PopupMessage(localeInfo.REFINE_FAILURE)
Değiştir:


Kod:
def RefineFailedMessage(self):         snd.PlaySound("sound/ui/jaeryun_fail.wav")           self.PopupMessage(localeInfo.REFINE_FAILURE)                item1 = int(constInfo.write1)         item2 = int(constInfo.write2)         item.SelectItem(item1)         item1name = item.GetItemName()         item.SelectItem(item2)         item2name = item.GetItemName()         chat.AppendChat(chat.CHAT_TYPE_INFO, "Üzgünüm " +player.GetName()+" yükseltme başarısız "+str(item1name)+"->"+str(item2name))

+ Basarken basit Bilgi Python Version


Metin2 Lobby olarak, Metin2 özel sunucu geliştirme sürecinde kullanılan teknolojilerden biri olan Python diline odaklanıyoruz. Özellikle Metin2 özel sunucularında PvP sistemleri, C++ ve Python tabanlıdır. Bu yazıda Python versiyonlarının Metin2 sistemlerindeki rolüne değineceğiz.

Python Versiyonu Nedir?
Python, son derece popüler ve okunabilirliği yüksek bir programlama dilidir. Metin2 özel sunucularında genellikle Python 2.7 veya Python 3.x sürümleri kullanılır. Ancak Metin2 sistemleri çoğunlukla Python 2.7 üzerine inşa edilmiştir. Bu nedenle, Metin2 geliştiricileri bu versiyona uyumlu çalışmalıdır.

Python ve Metin2 Entegrasyonu
Metin2 özel sunucularında Python, genellikle UI Script (uiscript), Py Root ve GUI sistemleri için kullanılır. Py GUI arayüzleri, oyuncuların etkileşimde bulunduğu menüleri oluşturmada önemli bir rol oynar. Python sayesinde bu menüler dinamik olarak değiştirilebilir ve özelleştirilebilir.

Python Versiyon Uyumluğu Neden Önemlidir?
Python 3.x ile Python 2.7 arasında bazı farklar vardır. Örneğin yazdırma komutu (print) Python 2.7’de fonksiyon değil iken, Python 3’te fonksiyon halindedir. Bu farklar, Metin2 sistemlerinde hata oluşmasına sebep olabilir. Bu nedenle Metin2 özel sunucu geliştiricileri, doğru Python versiyonunu seçmelidir.

Metin2 Development ve Python
Metin2 geliştirme süreçlerinde Python yalnızca arayüz değil, aynı zamanda game core ile entegre çalışan sistemler için de önemlidir. Game server programming sırasında Python yardımıyla DB işlemleri, auth sistemi ve server src üzerinde değişiklikler yapılabilir. Martysama gibi sistemler de Python temelli çalıştığı için bu konu kritik öneme sahiptir.

Python Versiyonu Kontrolü Nasıl Yapılır?
Komut satırında şu komutu girerek Python versiyonunuzu kontrol edebilirsiniz:
Kod:
python --version

Bu komut, sisteminizde yüklü olan Python sürümünü gösterir. Metin2 özel sunucularında Python 2.7 kullanmanız önerilir.

Sonuç
Metin2 özel sunucu geliştirme sürecinde Python versiyonunun doğru seçilmesi, sistemin sağlıklı çalışması açısından hayati öneme sahiptir. Python 2.7 kullanarak hem mevcut sistemlerle uyum sağlayabilir hem de Metin2 geliştirme araçlarını daha verimli kullanabilirsiniz. Metin2 Lobby olarak, tüm Metin2 geliştiricilerine başarılar dileriz!


+ Simple Info on Python Version While Pressing


Metin2 Lobby team focuses on technologies used in Metin2 private server development, one of which is the Python language. Particularly in Metin2 private servers, PvP systems are based on C++ and Python. In this article, we will discuss the role of Python versions in Metin2 systems.

What Is a Python Version?
Python is a highly popular and readable programming language. In Metin2 private servers, usually Python 2.7 or Python 3.x versions are used. However, Metin2 systems are mostly built upon Python 2.7. Therefore, Metin2 developers must ensure compatibility with this version.

Integration of Python and Metin2
Python is commonly used in Metin2 private servers for UI scripts (uiscript), Py Root, and GUI systems. Py GUI interfaces play an important role in creating menus that players interact with. Thanks to Python, these menus can be dynamically changed and customized.

Why Is Python Version Compatibility Important?
There are differences between Python 3.x and Python 2.7. For instance, the print command was not a function in Python 2.7, but it is in Python 3. These differences can cause errors in Metin2 systems. Thus, Metin2 private server developers must select the correct Python version.

Metin2 Development and Python
In Metin2 development processes, Python is not only used for interfaces but also essential for systems integrated with the game core. With the help of Python, DB operations, auth systems, and modifications to server src can be performed during game server programming. Systems like Martysama also rely heavily on Python, making this topic critical.

How to Check Your Python Version?
You can check your Python version by entering the following command in the command line:
Kod:
python --version

This command shows the Python version installed on your system. It is recommended to use Python 2.7 in Metin2 private servers.

Conclusion
Correctly selecting the Python version in the process of developing Metin2 private servers is crucial for the system's smooth operation. By using Python 2.7, you can maintain compatibility with existing systems and utilize Metin2 development tools more efficiently. Metin2 Lobby wishes all Metin2 developers success!
 

Şuan Bu Konuyu Görüntüleyen Kullanıcılar (Toplam : 0, Üye : 0, Misafir : 0)

Benzer konular

Geri
Üst Alt