Bu düzeltme yang banka offlineshop Artan sınırı olan kişiler için geçerlidir, vb alışveriş ..
Offline Shop Bug - MaviAy Hakkında Detaylı Bilgi
Metin2 özel sunucularında önemli konulardan birisi olan Offline Shop Bug konusu, özellikle MaviAy temalı sistemlerde sıkça karşılaşılan bir sorundur. Bu yazıda, Metin2 Lobby olarak bu hatayı nasıl tespit edebileceğinizi, neden oluştuğunu ve çözüm önerilerini detaylıca ele alacağız. Bu konu, C++ sistem[/COORD] ve Python GUI tabanlı yapılar üzerinde çalışan geliştiriciler için oldukça kritiktir.
MaviAy Teması Nedir?
MaviAy, Metin2 özel sunucularında yaygın olarak kullanılan bir UI temasıdır. Özellikle Martysama arayüzleriyle uyumlu çalışması sayesinde tercih edilmektedir. Ancak bazı durumlarda, bu tema üzerinden çalışan sistemlerde Offline Shop sistemi ile çakışmalar yaşanabilmektedir. Bu çakışmalar genellikle sunucu tarafında istemcinin çevrimdışı esnasında işlem yapamaması ya da veri tutarsızlığı gibi durumları beraberinde getirir.
Offline Shop Bug Neden Oluşur?
Bu hata genellikle aşağıdaki sebeplerden dolayı ortaya çıkar:
- Sunucu tarafında Py Root ve UIScript dosyalarında eksik veya yanlış yapılandırılmış fonksiyonlar.
- Game Server Programming sırasında veri akışının doğru şekilde kontrol edilmemesi.
- MaviAy temalı menü sistemleriyle Offline Shop arasında yapısal uyumsuzluklar.
- DB Core ile Game Core arasındaki veri senkronizasyonunda aksaklıklar.
Hatanın Belirtileri
Bu hatanın bazı belirtileri şunlardır:
- Oyuncu çevrimdışıyken mağaza açılamaz.
- Mağaza verileri doğru şekilde yüklenmiyor.
- Auth ve Game sunucusu arasında bağlantı kopuklukları meydana geliyor.
- Sunucu loglarında Metin2 Compile sürecinden sonra hata mesajları gözlemleniyor.
Çözüm Önerileri
Aşağıdaki adımlar, Offline Shop Bug ile mücadelede size yardımcı olacaktır:
1. Py Root dosyalarında bulunan offline shop fonksiyonlarını kontrol edin. Gerekirse Martysama dokümantasyonuna başvurun.
2. UIScript kısmında buton ve menü tanımlarını yeniden yapılandırın. Özellikle MaviAy temasında özel değişkenlerin doğru tanımlandığından emin olun.
3. DB tarafında mağaza verilerinin doğru şekilde saklandığından ve Core ile entegrasyonun sağlandığından emin olun.
4. Source Edit[/COORD] işlemleri sırasında game server programming prensiplerine sadık kalın. Metin2Dev topluluklarından destek alabilirsiniz.
Sonuç
Offline Shop Bug gibi teknik sorunlar, Metin2 özel sunucu geliştirme sürecinde zaman zaman geliştiricileri zorlasa da, doğru analiz ve yapılandırma ile kolayca çözülebilir. Metin2 Lobby olarak, bu tür sorunların çözümünde size yardımcı olacak kaynaklar sunmaya devam edeceğiz. Metin2 server src, C++ kaynak kod ve diğer sistemlerle ilgili sorularınız için forumumuza bekleriz.
Offline Shop Bug - MaviAy Detailed Information
One of the important topics in Metin2 private servers is the Offline Shop Bug, which frequently occurs in systems based on the MaviAy theme. In this article, we will detail how to detect this error, what causes it, and offer solution recommendations as Metin2 Lobby. This topic is critical for developers working with structures based on C++ systems and Python GUI.
What is the MaviAy Theme?
MaviAy is a widely used UI theme in Metin2 private servers. It is preferred due to its compatibility with Martysama interfaces. However, sometimes conflicts occur between this theme and the Offline Shop system, leading to issues such as inability to perform operations while the client is offline or data inconsistencies.
Why Does the Offline Shop Bug Occur?
This bug typically arises due to the following reasons:
- Missing or incorrectly configured functions in Py Root and UIScript files on the server side.
- Improper control of data flow during Game Server Programming.
- Structural incompatibilities between MaviAy-themed menu systems and Offline Shop.
- Data synchronization issues between DB Core and Game Core.
Symptoms of the Error
Some symptoms of this bug are:
- The shop cannot be opened while the player is offline.
- Shop data does not load correctly.
- Connection interruptions occur between Auth and Game servers.
- Error messages appear in logs after the Metin2 Compile process.
Solution Suggestions
The following steps can help you combat the Offline Shop Bug:
1. Check the offline shop functions in Py Root files. Refer to Martysama documentation if necessary.
2. Reconfigure button and menu definitions in the UIScript part. Ensure that special variables are properly defined in the MaviAy theme.
3. Ensure that shop data is stored correctly on the DB side and integration with Core is established.
4. Remain faithful to game server programming principles during Source Edit processes. You can seek support from Metin2Dev communities.
Conclusion
Although technical issues like Offline Shop Bug may occasionally challenge developers during the Metin2 private server development process, they can easily be resolved with correct analysis and configuration. As Metin2 Lobby, we will continue to provide resources to assist you in solving these kinds of issues. Visit our forums for questions related to Metin2 server src, C++ source code, and other systems.
Kod:
[COLOR=#FF0000][FONT=Tahoma][B]- [ Files: /Src/common/service.h ][/B][/FONT][/COLOR] [B]#1.) Add this:[/B] [COLOR=#880000][FONT=inherit]#define[/FONT][/COLOR][COLOR=#000000][FONT=inherit] __OFFLINE_SHOP_FIX_OPEN [/FONT][/COLOR] [COLOR=#880000][FONT=inherit]#define[/FONT][/COLOR][COLOR=#000000][FONT=inherit] __OFFLINE_SHOP_VALUE_MAX [/FONT][/COLOR][COLOR=#006666][FONT=inherit]2000000000[/FONT][/COLOR] [COLOR=#880000][FONT=inherit]#define[/FONT][/COLOR][COLOR=#000000][FONT=inherit] __OFFLINE_SHOP_WARNING [/FONT][/COLOR][COLOR=#008800][FONT=inherit]"[Protect Offline] Have more than 2.000.000.000 Yang!"[/FONT][/COLOR]
Kod:
[COLOR=#FF0000][FONT=Tahoma][B]- [ Files: /Src/game/src/char.cpp ][/B][/FONT][/COLOR] [B]#1.) Search function:[/B] [COLOR=#000088][FONT=inherit]if[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit](![/FONT][/COLOR][COLOR=#000000][FONT=inherit]LC_IsBrazil[/FONT][/COLOR][COLOR=#666600][FONT=inherit]())[/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR][COLOR=#666600][FONT=inherit]{[/FONT][/COLOR] [COLOR=#000000][FONT=inherit]DWORD nTotalMoney [/FONT][/COLOR][COLOR=#666600][FONT=inherit]=[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#006666][FONT=inherit]0[/FONT][/COLOR][COLOR=#666600][FONT=inherit];[/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR][COLOR=#000088][FONT=inherit]for[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#000000][FONT=inherit]BYTE n [/FONT][/COLOR][COLOR=#666600][FONT=inherit]=[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#006666][FONT=inherit]0[/FONT][/COLOR][COLOR=#666600][FONT=inherit];[/FONT][/COLOR][COLOR=#000000][FONT=inherit] n [/FONT][/COLOR][COLOR=#666600][FONT=inherit]<[/FONT][/COLOR][COLOR=#000000][FONT=inherit] bItemCount[/FONT][/COLOR][COLOR=#666600][FONT=inherit];[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit]++[/FONT][/COLOR][COLOR=#000000][FONT=inherit]n[/FONT][/COLOR][COLOR=#666600][FONT=inherit])[/FONT][/COLOR] [COLOR=#000000][FONT=inherit]nTotalMoney [/FONT][/COLOR][COLOR=#666600][FONT=inherit]+=[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#000000][FONT=inherit]pTable [/FONT][/COLOR][COLOR=#666600][FONT=inherit]+[/FONT][/COLOR][COLOR=#000000][FONT=inherit] n[/FONT][/COLOR][COLOR=#666600][FONT=inherit])->[/FONT][/COLOR][COLOR=#000000][FONT=inherit]price[/FONT][/COLOR][COLOR=#666600][FONT=inherit];[/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR][COLOR=#000088][FONT=inherit]if[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#000000][FONT=inherit]GOLD_MAX [/FONT][/COLOR][COLOR=#666600][FONT=inherit]-[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#006666][FONT=inherit]1[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit]<=[/FONT][/COLOR][COLOR=#000000][FONT=inherit] nTotalMoney[/FONT][/COLOR][COLOR=#666600][FONT=inherit])[/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR][COLOR=#666600][FONT=inherit]{[/FONT][/COLOR] [COLOR=#000000][FONT=inherit]sys_err[/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#008800][FONT=inherit]"[OVERFLOW_GOLD] Overflow (GOLD_MAX) id %u name %s"[/FONT][/COLOR][COLOR=#666600][FONT=inherit],[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#660066][FONT=inherit]GetPlayerID[/FONT][/COLOR][COLOR=#666600][FONT=inherit](),[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#660066][FONT=inherit]GetName[/FONT][/COLOR][COLOR=#666600][FONT=inherit]());[/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR][COLOR=#660066][FONT=inherit]ChatPacket[/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#000000][FONT=inherit]CHAT_TYPE_INFO[/FONT][/COLOR][COLOR=#666600][FONT=inherit],[/FONT][/COLOR][COLOR=#000000][FONT=inherit] LC_TEXT[/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#008800][FONT=inherit]"20&#50613; &#45285;&#51012; &#52488;&#44284;&#54616;&#50668; &#49345;&#51216;&#51012; &#50676;&#49688;&#44032; &#50630;&#49845;&#45768;&#45796;"[/FONT][/COLOR][COLOR=#666600][FONT=inherit]));[/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR][COLOR=#000088][FONT=inherit]return[/FONT][/COLOR][COLOR=#666600][FONT=inherit];[/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR][COLOR=#666600][FONT=inherit]}[/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR][COLOR=#666600][FONT=inherit]}[/FONT][/COLOR]
Kod:
[B]#2.) Replace function with this:[/B] [COLOR=#880000][FONT=inherit]#ifdef[/FONT][/COLOR][COLOR=#000000][FONT=inherit] __OFFLINE_SHOP_FIX_OPEN[/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR][COLOR=#660066][FONT=inherit]int64_t[/FONT][/COLOR][COLOR=#000000][FONT=inherit] sTotalMoneyVegas [/FONT][/COLOR][COLOR=#666600][FONT=inherit]=[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#006666][FONT=inherit]0[/FONT][/COLOR][COLOR=#666600][FONT=inherit];[/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR][COLOR=#000088][FONT=inherit]for[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#000088][FONT=inherit]int[/FONT][/COLOR][COLOR=#000000][FONT=inherit] n [/FONT][/COLOR][COLOR=#666600][FONT=inherit]=[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#006666][FONT=inherit]0[/FONT][/COLOR][COLOR=#666600][FONT=inherit];[/FONT][/COLOR][COLOR=#000000][FONT=inherit] n [/FONT][/COLOR][COLOR=#666600][FONT=inherit]<[/FONT][/COLOR][COLOR=#000000][FONT=inherit] bItemCount[/FONT][/COLOR][COLOR=#666600][FONT=inherit];[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit]++[/FONT][/COLOR][COLOR=#000000][FONT=inherit]n[/FONT][/COLOR][COLOR=#666600][FONT=inherit])[/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR][COLOR=#666600][FONT=inherit]{[/FONT][/COLOR] [COLOR=#000000][FONT=inherit]sTotalMoneyVegas [/FONT][/COLOR][COLOR=#666600][FONT=inherit]+=[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#000088][FONT=inherit]static_cast[/FONT][/COLOR][COLOR=#008800][FONT=inherit]<int64_t>[/FONT][/COLOR][COLOR=#666600][FONT=inherit](([/FONT][/COLOR][COLOR=#000000][FONT=inherit]pTable[/FONT][/COLOR][COLOR=#666600][FONT=inherit]+[/FONT][/COLOR][COLOR=#000000][FONT=inherit]n[/FONT][/COLOR][COLOR=#666600][FONT=inherit])->[/FONT][/COLOR][COLOR=#000000][FONT=inherit]price[/FONT][/COLOR][COLOR=#666600][FONT=inherit]);[/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR][COLOR=#666600][FONT=inherit]}[/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR] [COLOR=#000000][FONT=inherit]std[/FONT][/COLOR][COLOR=#666600][FONT=inherit]::[/FONT][/COLOR][COLOR=#000000][FONT=inherit]auto_ptr[/FONT][/COLOR][COLOR=#666600][FONT=inherit]<[/FONT][/COLOR][COLOR=#660066][FONT=inherit]SQLMsg[/FONT][/COLOR][COLOR=#666600][FONT=inherit]>[/FONT][/COLOR][COLOR=#000000][FONT=inherit] pMsg[/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#660066][FONT=inherit]DBManager[/FONT][/COLOR][COLOR=#666600][FONT=inherit]::[/FONT][/COLOR][COLOR=#000000][FONT=inherit]instance[/FONT][/COLOR][COLOR=#666600][FONT=inherit]().[/FONT][/COLOR][COLOR=#660066][FONT=inherit]DirectQuery[/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#008800][FONT=inherit]"SELECT money FROM player.player WHERE id = %u"[/FONT][/COLOR][COLOR=#666600][FONT=inherit],[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#660066][FONT=inherit]GetPlayerID[/FONT][/COLOR][COLOR=#666600][FONT=inherit]()));[/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR][COLOR=#000088][FONT=inherit]if[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#000000][FONT=inherit]pMsg[/FONT][/COLOR][COLOR=#666600][FONT=inherit]->[/FONT][/COLOR][COLOR=#660066][FONT=inherit]Get[/FONT][/COLOR][COLOR=#666600][FONT=inherit]()->[/FONT][/COLOR][COLOR=#000000][FONT=inherit]uiNumRows [/FONT][/COLOR][COLOR=#666600][FONT=inherit]==[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#006666][FONT=inherit]0[/FONT][/COLOR][COLOR=#666600][FONT=inherit])[/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR][COLOR=#000088][FONT=inherit]return[/FONT][/COLOR][COLOR=#666600][FONT=inherit];[/FONT][/COLOR][COLOR=#000000][FONT=inherit][/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR] [COLOR=#000000][FONT=inherit]DWORD dwCurrentMoney [/FONT][/COLOR][COLOR=#666600][FONT=inherit]=[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#006666][FONT=inherit]0[/FONT][/COLOR][COLOR=#666600][FONT=inherit];[/FONT][/COLOR] [COLOR=#000000][FONT=inherit]MYSQL_ROW row [/FONT][/COLOR][COLOR=#666600][FONT=inherit]=[/FONT][/COLOR][COLOR=#000000][FONT=inherit] mysql_fetch_row[/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#000000][FONT=inherit]pMsg[/FONT][/COLOR][COLOR=#666600][FONT=inherit]->[/FONT][/COLOR][COLOR=#660066][FONT=inherit]Get[/FONT][/COLOR][COLOR=#666600][FONT=inherit]()->[/FONT][/COLOR][COLOR=#000000][FONT=inherit]pSQLResult[/FONT][/COLOR][COLOR=#666600][FONT=inherit]);[/FONT][/COLOR] [COLOR=#000000][FONT=inherit]str_to_number[/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#000000][FONT=inherit]dwCurrentMoney[/FONT][/COLOR][COLOR=#666600][FONT=inherit],[/FONT][/COLOR][COLOR=#000000][FONT=inherit] row[/FONT][/COLOR][COLOR=#666600][FONT=inherit][[/FONT][/COLOR][COLOR=#006666][FONT=inherit]0[/FONT][/COLOR][COLOR=#666600][FONT=inherit]]);[/FONT][/COLOR][COLOR=#000000][FONT=inherit][/FONT][/COLOR] [COLOR=#000000][FONT=inherit]sTotalMoneyVegas [/FONT][/COLOR][COLOR=#666600][FONT=inherit]+=[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#000088][FONT=inherit]static_cast[/FONT][/COLOR][COLOR=#008800][FONT=inherit]<int64_t>[/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#000000][FONT=inherit]dwCurrentMoney[/FONT][/COLOR][COLOR=#666600][FONT=inherit]);[/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR][COLOR=#000088][FONT=inherit]if[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#000000][FONT=inherit]__OFFLINE_SHOP_VALUE_MAX [/FONT][/COLOR][COLOR=#666600][FONT=inherit]<=[/FONT][/COLOR][COLOR=#000000][FONT=inherit] sTotalMoneyVegas[/FONT][/COLOR][COLOR=#666600][FONT=inherit])[/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR][COLOR=#666600][FONT=inherit]{[/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR][COLOR=#660066][FONT=inherit]ChatPacket[/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#000000][FONT=inherit]CHAT_TYPE_INFO[/FONT][/COLOR][COLOR=#666600][FONT=inherit],[/FONT][/COLOR][COLOR=#000000][FONT=inherit] __OFFLINE_SHOP_WARNING[/FONT][/COLOR][COLOR=#666600][FONT=inherit]);[/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR][COLOR=#000088][FONT=inherit]return[/FONT][/COLOR][COLOR=#666600][FONT=inherit];[/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR][COLOR=#666600][FONT=inherit]}[/FONT][/COLOR] [COLOR=#880000][FONT=inherit]#else[/FONT][/COLOR][COLOR=#000000][FONT=inherit][/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR][COLOR=#000088][FONT=inherit]if[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit](![/FONT][/COLOR][COLOR=#000000][FONT=inherit]LC_IsBrazil[/FONT][/COLOR][COLOR=#666600][FONT=inherit]())[/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR][COLOR=#666600][FONT=inherit]{[/FONT][/COLOR] [COLOR=#000000][FONT=inherit]DWORD nTotalMoney [/FONT][/COLOR][COLOR=#666600][FONT=inherit]=[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#006666][FONT=inherit]0[/FONT][/COLOR][COLOR=#666600][FONT=inherit];[/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR][COLOR=#000088][FONT=inherit]for[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#000000][FONT=inherit]BYTE n [/FONT][/COLOR][COLOR=#666600][FONT=inherit]=[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#006666][FONT=inherit]0[/FONT][/COLOR][COLOR=#666600][FONT=inherit];[/FONT][/COLOR][COLOR=#000000][FONT=inherit] n [/FONT][/COLOR][COLOR=#666600][FONT=inherit]<[/FONT][/COLOR][COLOR=#000000][FONT=inherit] bItemCount[/FONT][/COLOR][COLOR=#666600][FONT=inherit];[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit]++[/FONT][/COLOR][COLOR=#000000][FONT=inherit]n[/FONT][/COLOR][COLOR=#666600][FONT=inherit])[/FONT][/COLOR] [COLOR=#000000][FONT=inherit]nTotalMoney [/FONT][/COLOR][COLOR=#666600][FONT=inherit]+=[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#000000][FONT=inherit]pTable [/FONT][/COLOR][COLOR=#666600][FONT=inherit]+[/FONT][/COLOR][COLOR=#000000][FONT=inherit] n[/FONT][/COLOR][COLOR=#666600][FONT=inherit])->[/FONT][/COLOR][COLOR=#000000][FONT=inherit]price[/FONT][/COLOR][COLOR=#666600][FONT=inherit];[/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR][COLOR=#000088][FONT=inherit]if[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#000000][FONT=inherit]GOLD_MAX [/FONT][/COLOR][COLOR=#666600][FONT=inherit]-[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#006666][FONT=inherit]1[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit]<=[/FONT][/COLOR][COLOR=#000000][FONT=inherit] nTotalMoney[/FONT][/COLOR][COLOR=#666600][FONT=inherit])[/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR][COLOR=#666600][FONT=inherit]{[/FONT][/COLOR] [COLOR=#000000][FONT=inherit]sys_err[/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#008800][FONT=inherit]"[OVERFLOW_GOLD] Overflow (GOLD_MAX) id %u name %s"[/FONT][/COLOR][COLOR=#666600][FONT=inherit],[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#660066][FONT=inherit]GetPlayerID[/FONT][/COLOR][COLOR=#666600][FONT=inherit](),[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#660066][FONT=inherit]GetName[/FONT][/COLOR][COLOR=#666600][FONT=inherit]());[/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR][COLOR=#660066][FONT=inherit]ChatPacket[/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#000000][FONT=inherit]CHAT_TYPE_INFO[/FONT][/COLOR][COLOR=#666600][FONT=inherit],[/FONT][/COLOR][COLOR=#000000][FONT=inherit] LC_TEXT[/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#008800][FONT=inherit]"20&#50613; &#45285;&#51012; &#52488;&#44284;&#54616;&#50668; &#49345;&#51216;&#51012; &#50676;&#49688;&#44032; &#50630;&#49845;&#45768;&#45796;"[/FONT][/COLOR][COLOR=#666600][FONT=inherit]));[/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR][COLOR=#000088][FONT=inherit]return[/FONT][/COLOR][COLOR=#666600][FONT=inherit];[/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR][COLOR=#666600][FONT=inherit]}[/FONT][/COLOR] [COLOR=#000000][FONT=inherit][/FONT][/COLOR][COLOR=#666600][FONT=inherit]}[/FONT][/COLOR] [COLOR=#880000][FONT=inherit]#endif[/FONT][/COLOR]
Offline Shop Bug - MaviAy Hakkında Detaylı Bilgi
Metin2 özel sunucularında önemli konulardan birisi olan Offline Shop Bug konusu, özellikle MaviAy temalı sistemlerde sıkça karşılaşılan bir sorundur. Bu yazıda, Metin2 Lobby olarak bu hatayı nasıl tespit edebileceğinizi, neden oluştuğunu ve çözüm önerilerini detaylıca ele alacağız. Bu konu, C++ sistem[/COORD] ve Python GUI tabanlı yapılar üzerinde çalışan geliştiriciler için oldukça kritiktir.
MaviAy Teması Nedir?
MaviAy, Metin2 özel sunucularında yaygın olarak kullanılan bir UI temasıdır. Özellikle Martysama arayüzleriyle uyumlu çalışması sayesinde tercih edilmektedir. Ancak bazı durumlarda, bu tema üzerinden çalışan sistemlerde Offline Shop sistemi ile çakışmalar yaşanabilmektedir. Bu çakışmalar genellikle sunucu tarafında istemcinin çevrimdışı esnasında işlem yapamaması ya da veri tutarsızlığı gibi durumları beraberinde getirir.
Offline Shop Bug Neden Oluşur?
Bu hata genellikle aşağıdaki sebeplerden dolayı ortaya çıkar:
- Sunucu tarafında Py Root ve UIScript dosyalarında eksik veya yanlış yapılandırılmış fonksiyonlar.
- Game Server Programming sırasında veri akışının doğru şekilde kontrol edilmemesi.
- MaviAy temalı menü sistemleriyle Offline Shop arasında yapısal uyumsuzluklar.
- DB Core ile Game Core arasındaki veri senkronizasyonunda aksaklıklar.
Hatanın Belirtileri
Bu hatanın bazı belirtileri şunlardır:
- Oyuncu çevrimdışıyken mağaza açılamaz.
- Mağaza verileri doğru şekilde yüklenmiyor.
- Auth ve Game sunucusu arasında bağlantı kopuklukları meydana geliyor.
- Sunucu loglarında Metin2 Compile sürecinden sonra hata mesajları gözlemleniyor.
Çözüm Önerileri
Aşağıdaki adımlar, Offline Shop Bug ile mücadelede size yardımcı olacaktır:
1. Py Root dosyalarında bulunan offline shop fonksiyonlarını kontrol edin. Gerekirse Martysama dokümantasyonuna başvurun.
2. UIScript kısmında buton ve menü tanımlarını yeniden yapılandırın. Özellikle MaviAy temasında özel değişkenlerin doğru tanımlandığından emin olun.
3. DB tarafında mağaza verilerinin doğru şekilde saklandığından ve Core ile entegrasyonun sağlandığından emin olun.
4. Source Edit[/COORD] işlemleri sırasında game server programming prensiplerine sadık kalın. Metin2Dev topluluklarından destek alabilirsiniz.
Sonuç
Offline Shop Bug gibi teknik sorunlar, Metin2 özel sunucu geliştirme sürecinde zaman zaman geliştiricileri zorlasa da, doğru analiz ve yapılandırma ile kolayca çözülebilir. Metin2 Lobby olarak, bu tür sorunların çözümünde size yardımcı olacak kaynaklar sunmaya devam edeceğiz. Metin2 server src, C++ kaynak kod ve diğer sistemlerle ilgili sorularınız için forumumuza bekleriz.
Offline Shop Bug - MaviAy Detailed Information
One of the important topics in Metin2 private servers is the Offline Shop Bug, which frequently occurs in systems based on the MaviAy theme. In this article, we will detail how to detect this error, what causes it, and offer solution recommendations as Metin2 Lobby. This topic is critical for developers working with structures based on C++ systems and Python GUI.
What is the MaviAy Theme?
MaviAy is a widely used UI theme in Metin2 private servers. It is preferred due to its compatibility with Martysama interfaces. However, sometimes conflicts occur between this theme and the Offline Shop system, leading to issues such as inability to perform operations while the client is offline or data inconsistencies.
Why Does the Offline Shop Bug Occur?
This bug typically arises due to the following reasons:
- Missing or incorrectly configured functions in Py Root and UIScript files on the server side.
- Improper control of data flow during Game Server Programming.
- Structural incompatibilities between MaviAy-themed menu systems and Offline Shop.
- Data synchronization issues between DB Core and Game Core.
Symptoms of the Error
Some symptoms of this bug are:
- The shop cannot be opened while the player is offline.
- Shop data does not load correctly.
- Connection interruptions occur between Auth and Game servers.
- Error messages appear in logs after the Metin2 Compile process.
Solution Suggestions
The following steps can help you combat the Offline Shop Bug:
1. Check the offline shop functions in Py Root files. Refer to Martysama documentation if necessary.
2. Reconfigure button and menu definitions in the UIScript part. Ensure that special variables are properly defined in the MaviAy theme.
3. Ensure that shop data is stored correctly on the DB side and integration with Core is established.
4. Remain faithful to game server programming principles during Source Edit processes. You can seek support from Metin2Dev communities.
Conclusion
Although technical issues like Offline Shop Bug may occasionally challenge developers during the Metin2 private server development process, they can easily be resolved with correct analysis and configuration. As Metin2 Lobby, we will continue to provide resources to assist you in solving these kinds of issues. Visit our forums for questions related to Metin2 server src, C++ source code, and other systems.
