[FIX] FollowAI Binek

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Hello, guys.
There was something that was annoying some people, including me, which was that Binek wasn't tracking correctly with the player who owned the Binek. This was annoying. For example, a player would stand next to a guard in the middle of the city, then walk about 3 meters, then look at Binek. He wasn't next to him, he was very far away. Then the player needed to move further to begin to comprehend the Binek and go directly after him.

This isn't a problem, but rather a simple adjustment that you should make to suit your needs. You can modify this from the system file in the source code according to your needs. It's not a problem, as each person sets a different distance from the other. For example, I set it at 300. Previously, the existing distance that the system was built on was 1400. There's a huge difference. When I walk, I have to go very far for the Binek to begin to comprehend that I've left.

Open the MountSystem.cpp file and search for

Kod:
bool CMountActor::_UpdateFollowAI()

Look inside for

Kod:
float    START_FOLLOW_DISTANCE = 300.0f;

Modify the number 300 to the number you want. Some systems have 1400 written on them, but the best is 300. I had 1400 previously, but I modified it to 300, and this is the ideal number.

243326_4a0019a333b5ce00dc302563a68b320d.png


Look, after the modification, the tracking has become more accurate.


Bye
[FIX] FollowAI Binek Sistemi Nedir?

Metin2 özel sunucularında gelişmiş PvP ve AI tabanlı sistemlerin geliştirilmesi, oyuncu deneyimini ciddi anlamda artırır. Bu sistemlerden birisi olan FollowAI Binek sistemi, oyuncuların bineklerinin belirli kurallara göre onları takip etmesini sağlar. Ancak bu sistemin bazı durumlarda takılma, takip etmeme gibi sorunlar yaşaması mümkündür. Bu yazıda [FIX] FollowAI Binek sisteminin nasıl düzeltileceğini detaylı olarak ele alacağız.

FollowAI Binek Sisteminin Temel Yapısı

Metin2 özel sunucularda binekler, hem estetik hem de işlevsel açıdan önemli roller üstlenir. FollowAI sistemi sayesinde binek karakterler, oyuncuyu belirli mesafede takip eder ve PvP savaşlarında daha gerçekçi bir atmosfer yaratılır. Ancak bu sistem, doğru yapılandırılmadığında veya C++ kaynak kodlarında hatalar varsa sorunlara neden olabilir.

Sorunların Kaynağı Nedir?

FollowAI sisteminde yaşanan sorunlar genellikle şu sebeplerden kaynaklanır:

- Game sunucu kodlarında hata
- Client tarafında eksik ya da yanlış yapılandırma
- DB ile senkronizasyon eksikliği
- Auth sunucusuyla iletişim hatası

Fix Uygulamaları

1. C++ Kaynak Kodlarında Gerekli Ayarlamalar
Game sunucu kaynak kodlarında binek sistemi ile ilgili fonksiyonlar kontrol edilmeli ve gerekli düzenlemeler yapılmalıdır. Özellikle follow_ai fonksiyonu üzerinde durulmalıdır. Martysama gibi deneyimli geliştiricilerin önerdiği kod parçacıkları incelenmelidir.

2. Client Tarafında UI Script Düzenlemesi
UIScript dosyalarında binek ile ilgili görsel öğelerin doğru çalıştığından emin olunmalıdır. Py Root ve Py GUI yapıları üzerinden Python tabanlı sistemlerle entegrasyon sağlanmalıdır.

3. Database (DB) ile Senkronizasyon
DB core kısmında binek verilerinin doğru şekilde tutulduğundan ve game sunucusuyla uyumlu olduğundan emin olunmalıdır. Auth sunucusu ile olan bağlantı da test edilmelidir.

Geliştirme Ortamı ve Araçlar[/BR]
Metin2 özel sunucu geliştirme sürecinde aşağıdaki araçlar büyük kolaylık sağlar:

- C++ derleyici ve IDE (örneğin Visual Studio)
- Python geliştirme ortamı (örneğin PyCharm)
- DB yönetim aracı (örneğin HeidiSQL)
- Pack dosyası yönetimi için Metin2 araçları

Sonuç

[FIX] FollowAI Binek sistemi, Metin2 özel sunucularında oyuncu deneyimini artırmak için güçlü bir özelliktir. Ancak bu sistemin sağlıklı çalışması için hem server hem de client tarafında titizlikle yapılandırma yapılması gerekir. C++, Python ve DB sistemleri arasındaki senkronizasyonun sağlanması, bu sistemin stabil çalışmasını sağlar.


[FIX] What is FollowAI Mount System?

In Metin2 private servers, developing advanced PvP and AI-based systems significantly enhances the player experience. One such system is the FollowAI Mount system, which allows players' mounts to follow them according to specific rules. However, this system may sometimes encounter issues such as freezing or not following properly. In this article, we will detail how to fix the [FIX] FollowAI Mount system.

Basic Structure of FollowAI Mount System

Mounts in Metin2 private servers serve both aesthetic and functional roles. Thanks to the FollowAI system, mount characters follow the player at a certain distance, creating a more realistic atmosphere during PvP battles. However, if this system is not configured correctly or there are errors in the C++ source code, problems can occur.

What Causes the Problems?

Issues with the FollowAI system typically arise from:

- Error in game server code
- Missing or incorrect configuration on the client side
- Lack of synchronization with DB
- Communication error with auth server

Fix Applications

1. Required Adjustments in C++ Source Code
Functions related to the mount system in the game server source code should be checked and necessary adjustments made. Special attention must be given to the follow_ai function. Code snippets recommended by experienced developers like Martysama should be reviewed.

2. Editing UI Scripts on Client Side
It must be ensured that visual elements related to mounts work correctly in the UIScript files. Integration via Py Root and Py GUI structures with Python-based systems must be provided.

3. Synchronization with Database (DB)
It must be ensured that mount data is stored correctly in the DB core part and is compatible with the game server. Connection with the auth server should also be tested.

Development Environment and Tools

The following tools provide great convenience during the Metin2 private server development process:

- C++ compiler and IDE (e.g., Visual Studio)
- Python development environment (e.g., PyCharm)
- DB management tool (e.g., HeidiSQL)
- Pack file management tools for Metin2

Conclusion

The [FIX] FollowAI Mount system is a powerful feature to enhance player experience in Metin2 private servers. However, for this system to work properly, meticulous configuration must be done on both server and client sides. Ensuring synchronization between C++, Python, and DB systems ensures stable operation of this system.
 

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

Benzer konular

Geri
Üst Alt