Alt+F4 İle Kapat - ReisiCengiz

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Game.py Arat

def __SetQuickPageMode(self):

Kod Bloğu Sonuna Ekle

Kod:
if app.IsPressed(app.DIK_LALT) or app.IsPressed(app.DIK_RALT):             if localSlotIndex == 7:                 app.Exit()

Bu Şekilde

10019_c5b7ea3b0143719ceebbc8179bab84be.png

Alt+F4 İle Kapat - ReisiCengiz
Metin2 özel sunucularında oyun deneyimini zenginleştirmek, hem oyuncu hem de geliştirici perspektifinden birçok küçük detayın optimize edilmesini gerektirir. Bu detaylardan birisi de kullanıcı arayüzü üzerinde oynatıcının istemediği durumlarda kolayca oyunu kapatabilmesidir. Ancak bazı sunucularda bu işlem, özellikle PvP odaklı sistemlerde kontrollü olmalıdır. ReisiCengiz tarafından geliştirilen 'Alt+F4 İle Kapat' sistemi, tam da bu ihtiyaca cevap vermektedir. Bu sistem sayesinde, oyuncuların Alt+F4 kombinasyonu ile oyunu ani şekilde kapatması engellenerek, daha adil ve dengeli bir PvP ortamı sağlanır.

Alt+F4 Kapat Sisteminin Amacı
Metin2 özel sunucularında PvP savaşları sırasında bazı oyuncular, rakiplerini avantajlı konuma getirmemek için Alt+F4 kombinasyonu ile oyunu hızlıca kapatabilirler. Bu durum, hem oyun adilini bozar hem de diğer oyuncuların deneyimini olumsuz etkiler. ReisiCengiz’in geliştirdiği bu sistem, oyuncuların Alt+F4 tuşuna basmalarını engeller. Böylece, oyuncuların oyunu sadece oyun içi çıkış menüsü üzerinden kapatmaları sağlanır. Bu da oyun içinde daha adil bir mücadele ortamı yaratır.

Sistemin Özellikleri
ReisiCengiz’in geliştirdiği Alt+F4 kapat sistemi, Python GUI (Py Root) üzerinde çalışır. Uiscript ve Py Root dosyaları üzerinde yapılan küçük değişikliklerle sistemin entegrasyonu oldukça kolaydır. Sistem, kullanıcı dostu bir yapıya sahiptir ve sunucu sahipleri tarafından kolayca kurulabilir. Ayrıca, bu sistem C++ tabanlı sunucu tarafında herhangi bir değişiklik gerektirmez; sadece istemci tarafında yapılan küçük bir müdahale ile aktif hale gelir. Bu sayede hem geliştiriciler hem de oyun sunucusu sahipleri için büyük bir esneklik sağlar.

Teknik Yön
Python tabanlı sistemlerde, Windows işletim sistemi üzerinde çalışan uygulamaların belirli klavye kısayolları (örneğin Alt+F4) ile kapanması engellenebilir. ReisiCengiz bu amaçla, Metin2 istemcisinin Py Root kısmında gerekli Python komutlarını kullanarak, WM_CLOSE mesajını engelleyen bir fonksiyon yazmıştır. Bu sayede kullanıcılar Alt+F4 kombinasyonunu bastıklarında sistem tepki vermez. Bu işlem, Py GUI üzerinde tanımlanan event fonksiyonları ile kontrol edilir ve istenirse oyuncuya uyarı mesajı bile gösterilebilir.

Neden Bu Sistem Önemlidir?
PvP odaklı Metin2 sunucularında, oyuncuların ani çıkış yaparak savaş alanlarından kaçmaları, dengesiz oyun deneyimlerine neden olur. Özellikle turnuvalar ve savaşlar sırasında bu tür durumlar ciddi sorunlar yaratabilir. ReisiCengiz’in geliştirdiği bu sistem, bu soruna kalıcı bir çözüm sunar. Aynı zamanda, oyuncuların daha bilinçli ve kontrollü çıkış yapmalarını teşvik eder. Bu da hem oyun içindeki dengeleri korur hem de daha keyifli bir PvP atmosferi oluşturur.

Kurulum ve Entegrasyon
Bu sistemin kurulumu oldukça basittir. Sadece Py Root dosyasında gerekli Python komutlarının eklenmesi yeterlidir. Uiscript dosyalarında yapılacak küçük değişikliklerle de sistem tamamen aktif hale getirilebilir. Kurulum sırasında dikkat edilmesi gereken tek şey, sistemin doğru Python sürümü ile uyumlu olmasıdır. Geliştiriciler, bu sistemi kendi özel sunucularına entegre ederken, MARTY'SAMA gibi bilindik kaynaklardan faydalanabilirler. Sunucu üzerinde test aşaması mutlaka yapılmalıdır.

Sonuç
ReisiCengiz’in geliştirdiği 'Alt+F4 İle Kapat' sistemi, Metin2 özel sunucularında daha adil ve kontrollü bir oyun deneyimi sunmayı hedefler. Oyuncuların ani çıkışlarını önleyerek PvP sistemlerinde dengenin korunmasını sağlar. Bu sistem, Python tabanlı GUI düzenlemeleriyle kolayca entegre edilebilir ve sunucu sahipleri için değerli bir araçtır.


Close with Alt+F4 - ReisiCengiz
Enhancing the gaming experience on Metin2 private servers requires optimizing many small details from both player and developer perspectives. One such detail is allowing players to close the game quickly when they wish not to. However, in some servers, especially those focused on PvP systems, this action must be controlled. The 'Close with Alt+F4' system developed by ReisiCengiz addresses exactly this need. With this system, players are prevented from abruptly closing the game via the Alt+F4 combination, ensuring a fairer and more balanced PvP environment.

Purpose of the Close with Alt+F4 System
In Metin2 private servers, during PvP battles, some players might use the Alt+F4 shortcut to quickly exit the game without putting their opponents at an advantage. This behavior disrupts game fairness and negatively affects other players' experiences. The system developed by ReisiCengiz prevents players from pressing the Alt+F4 key combination. Thus, players can only close the game through the in-game exit menu. This creates a fairer battle environment within the game.

Features of the System
ReisiCengiz’s Close with Alt+F4 system operates on Python GUI (Py Root). Integration of the system is quite simple, requiring only minor changes to the Uiscript and Py Root files. The system has a user-friendly structure and can easily be installed by server owners. Additionally, the system does not require any changes on the C++ based server-side; activation is achieved through a minor adjustment on the client-side only. This provides great flexibility for both developers and server owners.

Technical Aspect
In Python-based systems, closing applications running on Windows OS via specific keyboard shortcuts (such as Alt+F4) can be prevented. For this purpose, ReisiCengiz wrote a function that blocks the WM_CLOSE message by using necessary Python commands in the Py Root section of the Metin2 client. Thus, when users press the Alt+F4 combination, the system does not respond. This process is controlled by event functions defined in Py GUI and, if desired, a warning message can be displayed to the player.

Why Is This System Important?
On PvP-focused Metin2 servers, sudden exits by players during combat can lead to imbalanced gameplay. Such situations can cause serious issues during tournaments and battles. The system developed by ReisiCengiz provides a permanent solution to this problem. At the same time, it encourages players to make conscious and controlled exits. This preserves in-game balances and creates a more enjoyable PvP atmosphere.

Installation and Integration
Installing this system is very simple. It only requires adding the necessary Python commands into the Py Root file. Minor changes to Uiscript files can fully activate the system. The only thing to consider during installation is ensuring compatibility with the correct Python version. Developers integrating this system into their own private servers may benefit from known sources like MARTY'SAMA. Testing the system on the server is mandatory.

Conclusion
The 'Close with Alt+F4' system developed by ReisiCengiz aims to provide a fairer and more controlled gaming experience on Metin2 private servers. By preventing sudden exits, it helps maintain balance in PvP systems. This system can be easily integrated using Python-based GUI adjustments and serves as a valuable tool for server owners.
 

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

Benzer konular

Geri
Üst Alt