Neler yeni

Foruma hoş geldin, Ziyaretçi

Metin2Lobby.com Metin2 Private Server Tanıtım Advertising Ve Geliştirme Forumudur.Metin2 pvp serverler,1-99,1-105,1-120,55-120 global serverları paylaş yada ara.
Forum içeriğine ve tüm hizmetlerimize erişim sağlamak için foruma kayıt olmalı ya da giriş yapmalısınız. Foruma üye olmak tamamen ücretsizdir.

Gece - Gündüz Ekleme

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Konular
48,291
Mesajlar
48,601
Tepkime puanı
75
M2 Yaşı
3 yıl 11 ay 10 gün
Trophy Puan
48
Konum
Web sitesi
M2 Yang
488,879
Ticaret : 1 / 0 / 0
Ticaret Oranı : 100%
GECE GÜNDÜZ ŞIK EKLEME
[/FONT] 1. uigameoption.py:

Kodu:
İthalat interfaceModule
Daha sonra bu aşağıdakini ekleyin:

Kodu:
ithalat arka plan
arayın:

Kodu:
kendini . RefreshShowSalesText ()
Bu aşağıdakini ekleyin:

Kodu:
kendini . RefreshShowNightText ()
arayın:

Kodu:
kendini . showsalesTextButtonList = [*]
Bu aşağıdakini ekleyin:

Kodu:
kendini . showNightButtonList = [*]
arayın:

Kodu:
self . showsalesTextButtonList . append ( GetObject ( "salestext_on_button" ))
self . showsalesTextButtonList . append ( GetObject ( "salestext_off_button" ))
Bu aşağıdakini ekleyin:

Kodu:
self . showNightButtonList . append ( GetObject ( "showNight_on_button" ))
self . showNightButtonList . append ( GetObject ( "showNight_off_button" ))
arayın:

Kodu:
self . showsalesTextButtonList [ 0 ]. SAFE_SetEvent ( self . __OnClickSalesTextOnButton )
self . showsalesTextButtonList [ 1 ]. SAFE_SetEvent ( self . __OnClickSalesTextOffButton )
Bu aşağıdakini ekleyin:

Kodu:
self . showNightButtonList [ 0 ]. SAFE_SetEvent ( self . __OnClickShowNightOnButton )
self . showNightButtonList [ 1 ]. SAFE_SetEvent ( self . __OnClickShowNightOffButton )
arayın

Kodu:
def __OnClickSalesTextOnButton ( self ):
systemSetting . SetShowSalesTextFlag ( TRUE )
self . RefreshShowSalesText ()
uiPrivateShopBuilder . UpdateADBoard ()

def __OnClickSalesTextOffButton ( self ):
systemSetting . SetShowSalesTextFlag ( FALSE )
self . RefreshShowSalesText ()
Bu aşağıdakini ekleyin:

Kodu:
def __OnClickShowNightOnButton ( self ):
background . RegisterEnvironmentData ( 1 , constInfo . ENVIRONMENT_NIGHT )
background . SetEnvironmentData ( 1 )
constInfo . Night = 1
self . RefreshShowNightText ()

def __OnClickShowNightOffButton ( self ):
background . SetEnvironmentData ( 0 )
constInfo . Night = 0
self . RefreshShowNightText ()
arayın:

Kodu:
def RefreshShowSalesText ( self ):
if systemSetting . IsShowSalesText ():
self . showsalesTextButtonList [ 0 ]. Down ()
self . showsalesTextButtonList [ 1 ]. SetUp ()
else :
self . showsalesTextButtonList [ 0 ]. SetUp ()
self . showsalesTextButtonList [ 1 ]. Down ()
Bu aşağıda ekleyin:

Kodu:
def RefreshShowNightText ( self ):
if constInfo . Night == 1 :
self . showNightButtonList [ 0 ]. Down ()
self . showNightButtonList [ 1 ]. SetUp ()
else :
self . showNightButtonList [ 0 ]. SetUp ()
self . showNightButtonList [ 1 ]. Down ()
2) Açın constInfo.pye arama için:

Kodu:
ENVIRONMENT_NIGHT = "d: / Ymir iş / çevre / moonlight04.msenv"
Bu aşağıdakini ekleyin:

Kodu:
Gece = 0
3) Açın gameoptiondialog.py ve içindeki başlangıçıââdeğiştirin:

Kodu:
TEMPORARY_X = + 14
BUTTON_TEMPORARY_X = 5
PVP_X = - 10

LINE_LABEL_X = 30
LINE_DATA_X = 90
LINE_STEP = 0
SMALL_BUTTON_WIDTH = 45
MIDDLE_BUTTON_WIDTH = 65
arayın:

Kodu:
26 * 11 + 8 , ya da 25 * 11 + 8 ,
için değiştirin:

Kodu:
28 * 11 + 8 ,
Ve bunu ekleyin:

Kodu:
{
"name" : "showNight_on_off" ,
"tip" : "metin" ,

"X" : LINE_LABEL_X ,
"y" : 265 + 2 ,

"Metin" : "Çevre" ,
},
{
"name" : "showNight_on_button" ,
"tip" : "radio_button" ,

"X" : LINE_DATA_X ,
"y" : 265 ,

"Metin" : "Night" ,

"default_image" : ROOT_PATH + "middle_button_01.sub" ,
"over_image" : ROOT_PATH + "middle_button_02.sub" ,
"down_image" : ROOT_PATH + "middle_button_03.sub" ,
},
{
"name" : "showNight_off_button" ,
"type" : "radio_button" ,

"X" : LINE_DATA_X + MIDDLE_BUTTON_WIDTH ,
"y" : 265 ,

"Metin" : "Gün" ,

"default_image" : ROOT_PATH + "middle_button_01.sub" ,
"over_image" : ROOT_PATH + "middle_button_02.sub" ,
"down_image" : ROOT_PATH + "middle_button_03.sub" ,
},
Alıntıdır Denedim Çalısıyor Eger oyun içinden foto atarsanız koyabilirim .
Gece - Gündüz Sistemi Nedir?
Metin2 özel sunucularında oyun deneyimini zenginleştirmek ve stratejik derinlik katmak amacıyla birçok geliştirici, oyun içi zaman sistemlerinden yararlanmaktadır. Bu sistemlerden birisi olan Gece - Gündüz sistemi, oyuncuların oyun dünyasında zamanın günün farklı saatlerine göre değişen atmosferlerle karşılaşmasını sağlar. Bu sistem sayesinde geceler daha karanlık ve tehlikeli, gündüzler ise daha güvenli ya da farklı etkinliklerin yoğunlaştığı dönemler haline gelir. Özellikle Metin2 PvP sunucularında bu tür dinamikler oyun dengesini etkileyebilecek kadar önemlidir.

Gece - Gündüz Sisteminin Avantajları
Bu sistem, oyuncuların belirli zamanlarda belirli stratejiler geliştirmesine olanak tanır. Örneğin bazı bonus etkinlikler sadece gece saatlerinde aktif olabilir. Ya da bazı canavarlar sadece gece ortaya çıkabilir. Ayrıca PvP savaşları geceleyin daha riskli hale gelir çünkü görsellik ve güvenlik açısından farklar doğar. Bu da hem oyun içi sosyal etkileşimi artırır hem de sunucu sahipleri için yeni içerik planlama imkanları sunar.

Sistem Nasıl Uygulanır?
Gece - Gündüz sistemi genellikle C++ ile yazılmış Metin2 sunucu kaynak kodlarında zaman tabanlı event yönetimi üzerinden entegre edilir. Bu işlem sırasında server-side scriptler, zamanlayıcılar ve render motoru ile uyumlu görsel efektler düzenlenmelidir. Sistem, genellikle auth ve game sunucuları arasında senkronize çalışacak şekilde ayarlanır. Zamanın sunucu tarafında doğru algılanması, istemci tarafında ise uygun görsel dönüşümlerle yansıtılması gerekir.

Python ile Geliştirilen GUI Araçları
Geliştiriciler, bu gibi sistemleri daha kolay yönetebilmek için Python tabanlı GUI arayüzlerinden faydalanabilir. Bu tür araçlar, zaman dilimi ayarlarını, efekt seviyelerini ve aktiflik periyotlarını kolayca değiştirmeyi sağlar. PyRoot veya UIScript ile yapılmış bu arayüzler, hem yeni başlayan hem de ileri düzey geliştiriciler için büyük kolaylıklar sunar. Bu sistemler aynı zamanda DB-Core ile de entegre çalışarak, sunucu veritabanında bulunan zaman tabanlı olayların yönetimini kolaylaştırır.

Görsellik ve Atmosfer Değişimleri
Gece - Gündüz sisteminin etkili bir şekilde kullanılabilmesi için görsel değişikliklerin de doğru uygulanması gerekir. Gecelerde ortam ışıklarının kısılması, gölgelerin daha belirgin hale gelmesi gibi detaylar, oyuncunun atmosfere daha fazla bağlanmasını sağlar. Bu tür değişiklikler genellikle client-side düzenlemelerle yapılır ve server-side ile uyumlu çalışmalıdır. Sunucu geliştiricileri, bu işlemleri yaparken Martysama gibi kaynaklardan da destek alabilirler.

Oyun Deneyimini Artırmada Rolü
Bu sistem, sadece görsel olarak değil, aynı zamanda oyun mekaniği açısından da büyük avantajlar sağlar. Oyuncular, hangi zaman diliminde daha aktif olacaklarına karar verirken strateji geliştirmek zorunda kalırlar. Bu da PvP sunucularında rekabeti daha da artırır. Aynı zamanda, oyun içindeki NPC’lerin davranışları da bu sisteme göre değiştirilebilir. Örneğin bazı görevler sadece gece yapılabilir hale getirilebilir.

Sonuç
Gece - Gündüz sistemi, Metin2 özel sunucularında kullanıcı deneyimini ciddi anlamda artıran etkili bir özelliktir. Doğru uygulandığında, oyuncuların sürece daha fazla dahil olmasını ve stratejik düşünmelerini teşvik eder. Bu sistemin uygulanmasında C++ bilgisi, Python GUI araçları ve server-side event yönetimi büyük rol oynar. Metin2Lobby.com olarak, bu tür gelişmiş sistemlerin nasıl entegre edileceği konusunda kaynaklar ve destekler sunmaya devam ediyoruz.


What is the Day-Night System?
In order to enrich the gaming experience and add strategic depth, many developers in Metin2 private servers utilize in-game time systems. One of these systems is the Day-Night system, which allows players to encounter different atmospheres based on different times of day within the game world. Thanks to this system, nights become darker and more dangerous, while days may become safer or periods where certain activities are concentrated. Especially in Metin2 PvP servers, such dynamics can be important enough to affect game balance.

Advantages of the Day-Night System
This system allows players to develop strategies at specific times. For example, some bonus events might only be active during nighttime hours. Or some monsters might only appear at night. Additionally, PvP battles may become more risky at night due to visual and security-related differences. This increases social interaction within the game and also provides server owners with new content planning opportunities.

How Is the System Implemented?
The Day-Night system is typically integrated into Metin2 server source codes written in C++ through time-based event management. During this process, server-side scripts, timers, and visual effects compatible with the rendering engine must be adjusted. The system is usually configured to work synchronously between auth and game servers. Time must be correctly interpreted on the server side and visually reflected on the client side.

GUI Tools Developed with Python
Developers can use Python-based GUI interfaces to manage such systems more easily. These tools allow for easy adjustment of time period settings, effect levels, and activity periods. Interfaces made with PyRoot or UIScript provide great convenience for both beginner and advanced developers. These systems also work seamlessly with DB-Core, making it easier to manage time-based events stored in the server database.

Visual and Atmospheric Changes
To effectively implement the Day-Night system, visual changes must also be applied correctly. Dimming ambient lighting and increasing shadow visibility during nights helps immerse players more deeply into the atmosphere. Such changes are generally made through client-side modifications and must work in harmony with the server-side. Developers working on these implementations can also seek support from sources like Martysama.

Role in Enhancing Gameplay
This system not only enhances visuals but also provides significant advantages in terms of gameplay mechanics. Players must strategize when deciding during which time periods they will be most active. This further intensifies competition in PvP servers. Meanwhile, the behaviors of NPCs in the game can also be modified according to this system. For instance, certain quests could be restricted to nighttime completion only.

Conclusion
The Day-Night system is an effective feature that significantly improves user experience in Metin2 private servers. When implemented correctly, it encourages players to engage more with the game and think strategically. Implementing this system relies heavily on knowledge of C++, Python GUI tools, and server-side event management. At Metin2Lobby.com, we continue to offer resources and support on how to integrate such advanced systems.
 

Forumdan daha fazla yararlanmak için giriş yapın yada üye olun!

Forumdan daha fazla yararlanmak için giriş yapın veya kayıt olun!

Kaydol

Forumda bir hesap oluşturmak tamamen ücretsizdir.

Üye ol
Giriş Yap

Eğer bir hesabınız var ise lütfen giriş yapın

Giriş Yap

Tema düzenleyici

Tema özelletirmeleri