Metin2 serverimde (CTRL Q) ile depo açılmıyor.

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Sorunlarınıaz memnuniyet ile cevap vermek beni çok mutlu ediyor.
Soru1: Hocam oyunda ctrl q ile depoyu açmak istiyorum ama açılmıyor ne yapmalıyım.
Doom: hemen çözelim kardeeeş.

Filezzila veyatta winSCP ye bağlanıyoruz ve şu dizini takip ediyoruz.
usr/game/share/locale/turkey/quest (her server değişiklik gösterir)

İçerisinde depoyuac.quest klasörüne giriyoruz.


Kod:
quest depo_ac begin         state start begin             when letter begin             send_letter ( "Doom Sunar " )         end             when button or info begin             if pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 then             syschat("Bu bölgede depo açamazsın.")             else         game.open_safebox()         end         send_letter ( "Depo Aç " )         end           end end

Attıktan sonra PuTTy bağlanıyoruz.

cd/usr/game/share/locale/turkey/quest enter
./qc depoac.quest enter

Oyuna girip reload da çekebilirsiniz isterseniz, reboot ta sorununuz çözülmüştür iyi oyunlar.
------------------------------------------------------------------


------------------------------------------------------------------
Başınıza gelen sorunlar için bir alıntı yaparak sorabilirsiniz ben zorlanmayın diye kolay yoldan anlattım.
Çözümü net bir şekilde alamazsanız Yorumlarda belirtiniz.

Serverinize binek item ve boss ekletmek için discord adresimize gelebilirsiniz!
Metin2 serverlerinde karşılaşılan yaygın sorunlardan birisi de oyuncuların depoyu açamamasıdır. Özellikle CTRL+Q kısayolu ile hızlıca depo açma işlemi yapılamadığında, oyuncuların oyun deneyimi ciddi anlamda etkilenir. Bu durum genellikle Metin2 quest sistemine ya da client-server iletişimine bağlı olarak ortaya çıkar. Bu yazıda, Metin2 serverinizde CTRL+Q ile depo açılamamasının nedenlerini ve çözüm yollarını detaylıca ele alacağız.

Öncelikle, depoyu açma mekanizmasının nasıl çalıştığını anlamak gerekir. Metin2'de depo açma işlemi genellikle bir quest script veya lua komutu ile yönetilir. Eğer bu scriptlerde hata varsa ya da client-side ile server-side arasında uyumsuzluk varsa, depo açma komutu doğru şekilde çalışmayabilir.

Olası Hatalar ve Nedenleri:
1. Quest Script hatası: Depo açma komutu genellikle game_event üzerinden tetiklenir. Eğer quest dosyası içinde depo açma komutu eksik ya da hatalı tanımlanmışsa, CTRL+Q tuş kombinasyonu işe yaramaz.
2. Client-side ayarları: Oyuncu tarafındaki tuş ataması ya da uiscript içindeki komutlar doğru değilse, komut sunucuya ulaşmaz.
3. Server-side ayarlar: Sunucuda quest sistemi doğru şekilde ayarlanmamışsa, komut işlenemez.
4. Lua dosyalarında eksiklik: Depo açma fonksiyonunu gerçekleştiren lua fonksiyonu eksik ya da hatalıysa, komut çalıştırılamaz.

Çözüm Adımları:
1. Quest dosyanızda cmd_depot komutunun doğru şekilde tanımlandığından emin olun. Örnek olarak:
Kod:
when login begin[BR][/BR]    say('Depo acmak icin CTRL+Q tuslayin')[BR][/BR]end[BR][/BR][BR][/BR]when command 'q'[BR][/BR]    cmd_depot()[BR][/BR]end


2. Client tarafında uiscript içinde FKeyProcess.py dosyasında CTRL+Q komutunun doğru şekilde tanımlandığından emin olun.

3. Server loglarını kontrol edin. Eğer quest çalışırken hata alınıyorsa, loglarda error mesajları olacaktır. Bu mesajlar üzerinden hatayı tespit edebilirsiniz.

4. Gerekiyorsa, martysama gibi quest geliştirme araçlarını kullanarak test edin. Metin2Dev forumları üzerinden örnek quest dosyaları indirip karşılaştırabilirsiniz.

Gelişmiş Ayarlar ve Optimizasyon:
Bazı server sahipleri özel quest sistemleri kurar. Bu sistemlerde, flag ve state kontrolleri önemlidir. Depo açma işlemi için begin ve end etiketleri arasındaki süreç doğru şekilde tanımlanmalıdır. Ayrıca, daily quest gibi sistemlerde depo erişimi engellenmiş olabilir. Bu durumda, quest içindeki trigger kontrollerini gözden geçirin.

Hata Ayıklama İpuçları:
- Quest debug yaparken, komutun çalışıp çalışmadığını sys_log yardımıyla takip edin.
- Timer veya event tabanlı işlemlerde, komutun zamanlamasını kontrol edin.
- NPC üzerinden depo açılması planlanmışsa, NPC'nin script dosyasında ilgili komutun tanımlandığından emin olun.

Metin2Lobby.com olarak, Metin2 serverları için destek sağlıyoruz. Sorunlarınızda bize ulaşabilir, quest hatalarınızı birlikte çözebiliriz.


One of the common issues encountered on Metin2 servers is players being unable to open the depot. When the quick depot opening function via CTRL+Q does not work, it significantly affects the gaming experience. This issue often stems from problems related to the Metin2 quest system or client-server communication. In this article, we will examine the causes and solutions for why CTRL+Q does not open the depot on your Metin2 server.

Firstly, it is essential to understand how the depot opening mechanism works. In Metin2, the depot opening process is usually managed by a quest script or a lua command. If there are errors in these scripts or if there is a mismatch between client-side and server-side configurations, the depot opening command may fail to work properly.

Possible Issues and Causes:
1. Quest script error: Depot opening is typically triggered through game_event. If the depot command is missing or incorrectly defined within the quest file, the CTRL+Q key combination will not work.
2. Client-side settings: If the key mapping on the player's side or the commands in uiscript are incorrect, the command won't reach the server.
3. Server-side configuration: If the quest system on the server is not configured correctly, the command cannot be processed.
4. Missing components in Lua files: If the lua function responsible for opening the depot is incomplete or faulty, the command cannot be executed.

Solution Steps:
1. Ensure that the cmd_depot command is correctly defined in your quest file. For example:
Kod:
when login begin[BR][/BR]    say('Press CTRL+Q to open depot')[BR][/BR]end[BR][/BR][BR][/BR]when command 'q'[BR][/BR]    cmd_depot()[BR][/BR]end


2. On the client side, ensure that the CTRL+Q command is correctly mapped in the FKeyProcess.py file located in uiscript.

3. Check the server logs. If errors occur while running the quest, there will be error messages in the logs, which can help you identify the problem.

4. If needed, use tools like martysama to test your quests. You can download sample quest files from Metin2Dev forums and compare them with yours.

Advanced Settings and Optimization:
Some server owners implement custom quest systems. In such systems, flag and state checks are crucial. The process between begin and end tags must be correctly defined for depot access. Additionally, depot access might be disabled during daily quest activities. In such cases, review the trigger checks in the quest.

Debugging Tips:
- While debugging your quest, track whether the command executes using sys_log.
- In timer or event-based operations, verify the timing of the command execution.
- If depot access is intended via an NPC, ensure the relevant command is defined in the NPC's script file.

As Metin2Lobby.com, we provide support for Metin2 servers. Feel free to contact us regarding your issues, and we can resolve your quest errors together.
 

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

Geri
Üst Alt