+Basarken "Pencere açık kalsın" sistemi

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Forumdaki fixi uyguladıysanız onu kaldırıp bunu ekleyin.
Tam olarak sorun şu a karakteri ve b karakteri partideler.
a karakteri grup lideri b karakteri oyundan çıktı.
a karakterine sürekli compute point çagırıyor.(forumdaki fixi uygular iseniz)
Bunu a karakterinin hp barına bakarak anlayabilirsiniz.
Uygulamazsanız bu seferde hp bugu ortaya çıkıyor.
Bu konu ikisininde çözümüdür.
Hayırlı kullanımlar..

/*** Güncelleme **/
Lider deaktif iken parti üyelerinden özellik silinmiyormuş.

Metin2'de Basarken 'Pencere Açık Kalsın' Sistemi

Metin2 özel sunucularında geliştirilen sistemlerden biri olan 'basarken pencere açık kalsın' sistemi, oyuncuların oyun içinde daha esnek hareket etmelerine yardımcı olur.

Bu sistemin temel amacı, oyuncunun bir işlem yaparken ana pencereyi kapattığında bile oyunun arka planda çalışmaya devam etmesidir. Özellikle PvP odaklı sunucularda, oyuncuların hızlıca menüye girip item kontrolü yapması veya script ayarları yapması gerekebilir. Bu durumda oyunun kapanmaması büyük bir avantaj sağlar.

Sistem Nasıl Çalışır?

Bu sistem genellikle C++ tabanlı server-side düzenlemelerle entegre edilir. Sunucu tarafında belirli event'ler yakalanarak, oyuncunun penceresi minimize edildiğinde veya başka bir programa geçildiğinde.disconnect olmaması sağlanır. Bu, client-side üzerinde yapılan küçük bir modifikasyonla da desteklenebilir.

Örnek Senaryo:
Oyuncu bir item kullanırken ani bir saldırıya uğrar. Hemen menüye geçmek ister ama pencereyi açıp kapattığında oyunun kapanmasını istemez. İşte bu noktada 'pencere açık kalsın' sistemi devreye girer ve oyun arka planda çalışmaya devam ederken oyuncu gerekli işlemleri hızlıca yapabilir.

Teknik Uygulama

Bu sistemin uygulanabilmesi için öncelikle game core üzerinde değişiklik yapılması gerekir. Özellikle channel yapılarında çalışan sunucularda, client-server iletişimi esnasında pencere durumu sürekli takip edilmelidir. Bu işlem genellikle uiscript ile desteklenen GUI üzerinden kullanıcıya bilgi verilerek yapılır.

Python Script Entegrasyonu:
Python GUI ile yazılmış arayüzlerle de bu sistem entegre edilebilir. Örneğin, bir py root üzerinden pencere durumu kontrol edilerek, oyuncunun aktif olup olmadığına dair bilgi alınabilir. Eğer oyuncu başka bir programa geçmişse, disconnect süresi uzatılabilir veya tamamen kapatılabilir.

Dikkat Edilmesi Gerekenler

Bu tür sistemlerde en çok dikkat edilmesi gereken konu, server src üzerinde yapılan değişikliklerin doğru test edilmesidir. Yanlış bir entegrasyon, oyuncuların hileli olarak oynamasına neden olabilir. Ayrıca, sistem performansını etkileyebilecek durumlara karşı dikkatli olunmalıdır.

Kaynak Kod Paylaşımı:
Metin2 Lobby olarak, bu sistemin örnek kaynak kodlarını Metin2 Lobby üzerinden paylaşmaktayız. Kaynak kodlar hem auth hem de game sunucuları için optimize edilmiştir. Ayrıca martysama tarafından geliştirilen metin2dev yapıları ile de uyumlu çalışmaktadır.

Sonuç

'Pencere açık kalsın' sistemi, oyuncu deneyimini artırmak için geliştiricilerin tercih ettiği etkili bir özelliktir. Hem PvP hem de development odaklı sunucularda kullanışlı olabilir. Doğru uygulandığında, hem sunucu güvenliği korunur hem de oyuncular daha rahat bir şekilde oyun içi işlemleri gerçekleştirebilir.


Window Stay Open System While Playing Metin2

The 'window stay open while playing' system is one of the features developed for Metin2 private servers that allows players more flexibility during gameplay.

The main purpose of this system is to ensure that the game continues running in the background even if the player closes or minimizes the main window. Particularly in PvP-focused servers, players might need to quickly access menus to check items or adjust settings. In such cases, preventing the game from closing provides a significant advantage.

How Does It Work?

This system is typically integrated via C++ based server-side modifications. Certain events are captured on the server side to prevent disconnection when the player minimizes the window or switches to another application. This can also be supported by minor client-side modifications.

Example Scenario:
A player is using an item when suddenly attacked. They want to quickly go to the menu, but don't wish the game to close upon opening or closing the window. At this point, the 'stay open' system kicks in, allowing the game to continue running in the background so the player can quickly perform necessary actions.

Technical Implementation

To implement this system, modifications must first be made to the game core. In particular, for servers operating on channel structures, the window state should be continuously monitored during client-server communication. This process is often supported via GUIs built with uiscript.

Python Script Integration:
GUI interfaces written in Python can also integrate this system. For instance, using a py root, the window status can be checked to determine whether the player is still active. If the player has switched to another program, the disconnect timeout can be extended or disabled entirely.

Considerations

One of the most important things to consider when implementing such systems is thoroughly testing changes made to the server src. Improper integration could allow players to cheat. Additionally, care should be taken to avoid performance impacts on the server.

Source Code Sharing:
Metin2 Lobby shares sample source codes for this system via Metin2 Lobby. The codes are optimized for both auth and game servers. They are also compatible with structures developed by martysama under metin2dev.

Conclusion

The 'window stay open' system is an effective feature chosen by developers to enhance player experience. It can be useful in both PvP and development-oriented servers. When properly implemented, it preserves server security while allowing players to perform in-game operations more comfortably.
 

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

Benzer konular

Geri
Üst Alt