HIZMLI MENÜYE NASIL SİSTEM EKLENİR MANTIĞINI ANLATIYORUM !

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Kod:
#arat 1            self.shopsearch.SetEvent(ui.__mem_func__(self.search_btn)) #altına ekle             self.fonksiyondakinick.SetEvent(ui.__mem_func__(self.(fonksiyonismi))) ( fonksiyon örneği misal fonksiyon game.py den alınır. )     def search_btn(self):         import uisearchshop         self.shopsearch = uisearchshop.SearchWindow()         self.shopsearch.Open()             #arat             self.shopsearch = self.GetChild("ara_button") #altınaekle             self.fonksiyondanick = self.GetChild("(systemswindow.py yazılacak name ismi )ara_button")             Sonra systemswindow.py açılır                             "name" : "ara_button",                             "type" : "button",                             "x" : X,                             "y" : 8+34*7,                             "tooltip_text" : "Ticaret Camı",                                                         "default_image" : "icons/tic_cam1.tga",                             "over_image" : "icons/tic_cam2.tga",                             "down_image" : "icons/tic_cam3.tga",                         },                          uygun yere yerleştilrilir x y sini kendinize göre ayarlıyorsunuz Çoğu Kişide self Getchild2 olabilir yapamayan olursa yardımcı olabilirim. verdiğim örnekler var benim uiinventory.py ile uyumlu sadece mantığını anlayın diye anlatmak istedim yapamayan olursa yardımcı olurum.

Yakında İcon.rar Paylaşılacaktır Hızlı Menü İçin Özel İconlar .
Hızlı Menüye Nasıl Sistem Eklenir? Mantığını Anlatıyorum!

Metin2 özel sunucu geliştirme sürecinde, kullanıcı deneyimini artırmak için birçok sistem eklenir. Bunlardan birisi de hızlı menü sistemidir. Hızlı menü, oyuncuların belirli işlemleri kolayca gerçekleştirmesini sağlar. Bu menüye özel sistemler eklemek, hem oyun içi akışı artırır hem de oyuncular için daha pratik bir kullanım sunar. Bu yazıda, Metin2 hızlı menüye nasıl sistem eklenir, mantığı nedir, neler dikkate alınmalıdır gibi konulara değineceğiz.

1. Hızlı Menü Nedir ve Ne İşe Yarar?
Hızlı menü; oyuncunun klavyeden F1-F12 tuşları veya menü üzerinden eriştiği, belirli komutları ya da sistemleri hızlıca çalıştırabilmesini sağlayan bir arayüzdür. Genellikle PvP sistemleri, GUI kontrolleri, item yönetimi gibi işlemler burada barındırılır. Bu menüye kendi geliştirdiğiniz sistemleri entegre ederek, oyuncuların daha verimli kullanmasını sağlayabilirsiniz.

2. Hızlı Menüye Sistem Ekleme Mantığı
Hızlı menüye sistem eklemek için öncelikle hangi dosyaların düzenleneceği bilinmelidir. Genellikle bu işlem, uiscript ve py root dosyalarında yapılır. Uygulamada kullanılan GUI arayüzü Python tabanlıdır. Oyuna entegre edilecek sistemlerin Python üzerinden çağrılması gerekir.

Örneğin, bir PvP sistemini hızlı menüye eklemek istiyorsanız, öncelikle bu sistemi py root klasöründe tanımlamalısınız. Ardından, bu sistemin çalışması için gerekli fonksiyonu uiscript dosyasında tanımlayıp, menüye buton olarak eklersiniz.

3. Python ve C++ Entegrasyonu
Metin2 özel sunucularında, bazı sistemler doğrudan C++ tarafında yazılmıştır. Bu durumda, Python tarafında bir GUI oluşturup, C++ ile haberleşmeniz gerekir. Bu haberleşme genellikle pack dosyaları üzerinden sağlanır. Python üzerinden bir komut gönderildiğinde, C++ tarafında tanımlı olan fonksiyon devreye girer ve işlem gerçekleştirilir.

Bu yapı sayesinde, hem güvenli hem de esnek sistemler oluşturulabilir. Örneğin, bir kanal değiştirme sistemi yazıldıysa, Python GUI ile butona basıldığında C++ tarafında kanal değiştirme komutu çalıştırılır.

4. Olası Hatalar ve Dikkat Edilmesi Gerekenler
Hızlı menüye sistem eklerken bazı önemli detaylara dikkat etmek gerekir:
- Py root ve uiscript dosyalarının doğru konfigürasyonu yapılmalıdır.
- Python kodlarında sözdizimi hatalarından kaçınılmalıdır.
- C++ ile Python arasında doğru paket alışverişi sağlanmalıdır.
- Sunucu tarafında yetkilendirme kontrolleri yapılmalıdır.

Sonuç
Metin2 özel sunucularında hızlı menüye sistem eklemek, gelişmiş bir Metin2 development becerisi gerektirir. Bu süreçte hem Python hem de C++ bilgisi önemlidir. Hızlı menüye eklenecek sistemler, kullanıcı dostu olacak şekilde tasarlanmalı ve test edilmelidir. Bu sayede, sunucu kaliteniz artar ve oyuncularınız daha keyifli vakit geçirir.


How to Add Systems to Quick Menu? I Explain the Logic!

In the process of developing Metin2 private servers, many systems are added to enhance the user experience. One of these is the quick menu system. The quick menu allows players to easily perform certain operations. Adding custom systems to this menu increases in-game flow and provides more practical usage for players. In this article, we will discuss how to add systems to the Metin2 quick menu, what the logic is, and what should be considered.

1. What Is the Quick Menu and What Does It Do?
The quick menu is an interface that allows players to access specific commands or systems quickly via keys like F1-F12 or through a menu. Usually, PvP systems, GUI controls, item management processes, etc., are placed here. By integrating your own developed systems into this menu, you can allow players to use them more efficiently.

2. Logic Behind Adding Systems to the Quick Menu
To add systems to the quick menu, first, you need to know which files need to be modified. Generally, this process occurs in uiscript and py root files. The application uses a Python-based GUI interface. Systems integrated into the game must be called via Python.

For example, if you want to add a PvP system to the quick menu, you must first define this system in the py root folder. Then, you define the function required for this system to run in the uiscript file and add it as a button to the menu.

3. Python and C++ Integration
In Metin2 private servers, some systems are written directly in C++. In such cases, you must create a GUI in Python and communicate with C++. This communication is usually done via pack files. When a command is sent from Python side, the function defined on the C++ side executes and the operation is performed.

Thanks to this structure, secure and flexible systems can be created. For example, if a channel switching system is written, when a button is pressed through the Python GUI, the channel switching command runs on the C++ side.

4. Possible Errors and Points to Consider
When adding systems to the quick menu, there are several important details to consider:
- Configuration of py root and uiscript files must be correct.
- Syntax errors in Python code must be avoided.
- Proper packet exchange between C++ and Python must be ensured.
- Authorization checks must be implemented on the server side.

Conclusion
Adding systems to the quick menu in Metin2 private servers requires advanced Metin2 development skills. During this process, knowledge of both Python and C++ is essential. Systems added to the quick menu should be designed and tested to be user-friendly. This way, your server quality improves and players enjoy their time more.
 

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

Geri
Üst Alt