Voice chat system

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
I don't speak turkish, don't dm me.

Due to unforeseen(but expected) circumstances -such as a very hungry little boy reselling my work- I have decided to make this version public.
The hungry little boy is Backtrace/Mercury/Assembly/FrenchForeignLegion(and 100 other accounts that he's using for scamming).

### This version's features:
- Proximity chat (local)
- Guild chat (in-map)
- Party chat (in-map)
- Global/Master volume
- Per-speaker volume handling (with the ability to pin speakers at the top of the list)
- Configurable sampling frequency and channels
(I still recommend sticking to 32kHz and 1 channel because of packet sizes.)
- You can not speak over a channel unless hearing is also enabled
- Sound reduction to prevent loud sounds from blasting your ears
- Basic but functional sound detection to avoid unnecessary packets
- FLAC encoding/decoding to reduce packet sizes wherever possible
- ?? Fuck knows, I can't remember.


### Notes:
- M2's networking doesn't handle partial packets.
- You'll have to either:
- Disable `IMPROVED_PACKET_ENCRYPTION`, or
- Implement that part yourself(I won't help you with this, don't DM me.)

- Don't bother with pull requests, this repo was released out of necessity, it won't receive any updates.
- If you want to make changes, feel free to fork it.

- The system has been live for over a year on multiple servers and tested by thousands of users.
- If it doesn't work on your server, you did something wrong.


#### QFlags
- `/e voice_chat_disable 1/0` to enable/disable
- `/e voice_chat_hear_yourself 1/0` to be able to hear yourself(only on test_server)


### Technologies used:
- [Miniaudio - An audio playback and capture library for C and C++](https://miniaud.io/)
- [FLAC - Free losless audio codec](https://xiph.org/flac/index.html)


All of my customers will receive an update with more features soon.
This version received its last update on `28.01.2025`
Good luck.


UI Picture
qovGPk9.png


Github:

Backtrace and his accomplice:
VT for archive:
Voice Chat System Nedir?
Metin2 özel sunucularında kullanıcılar arasında etkileşimi artırmak için sesli sohbet sistemleri büyük önem taşır. Özellikle PVP odaklı sunucularda oyuncuların hızlıca strateji paylaşması ve koordinasyon sağlanması açısından voice chat system, temel bir özelliktir. Bu sistem, oyuncuların birbirleriyle gerçek zamanlı olarak sesli iletişim kurmasını sağlar. Bu yazıda, Metin2 özel sunucularında nasıl bir voice chat sistemi entegre edilebileceğini, hangi teknolojilerin kullanılabileceğini ve C++ ya da Python tabanlı çözümleri ele alacağız.

Voice Chat Sisteminin Oyun İçindeki Yeri
Metin2, uzun yıllardır popülerliğini koruyan bir MMORPG'dir. Sunucu sahipleri, oyuncuların deneyimini zenginleştirmek için sürekli yenilikler getirmeye çalışır. PVP sistemleri güçlü olan sunucularda, takım içi iletişim kritik rol oynar. Bu nedenle bir voice chat çözümü, oyuncuların savaşlarda daha koordineli hareket etmesini sağlar. Bu, oyun içinde avantaj sağlar ve rekabet ortamını artırır.

C++ ile Sesli Sohbet Entegrasyonu
Metin2 sunucu tarafında genellikle C++ kullanılır. Eğer sesli sohbet sistemi doğrudan oyun sunucusuna entegre edilmek istenirse, C++ bilgisi oldukça faydalıdır. Ancak bu, oldukça gelişmiş düzeyde programlama bilgisi gerektirir. Sistem, game core ile uyumlu olacak şekilde tasarlanmalıdır. Bu bağlamda, client src üzerinde değişiklikler yapılarak mikrofon desteği eklenebilir. Ayrıca, auth[/BR] ve db core[/BR] ile uyumlu bir şekilde kullanıcı kimliği doğrulanabilir ve ses verileri güvenli bir kanal üzerinden aktarılabilir.

Python Tabanlı Alternatif Çözümler
C++’nın karmaşıklığından kaçınılmak isteniyorsa, Python tabanlı bir çözüm tercih edilebilir. Örneğin, Py GUI kullanarak basit bir sesli sohbet arayüzü oluşturulabilir. Bu arayüz, oyunla entegre çalışacak şekilde tasarlanabilir. Ayrıca, py root dizin yapısı ile ses verileri kolayca yönetilebilir. Bu yöntem, özellikle martysama gibi modifikasyonları kullanan sunucularda tercih edilebilir.

Voice Chat Sisteminin Kullanıcı Deneyimine Katkısı
Oyuncuların birbirleriyle daha rahat iletişim kurabilmesi, oyun içi etkileşimleri artırır. Özellikle channel bazlı sunucularda, her kanalda ayrı sesli sohbet kanalları açılması mümkündür. Bu sayede oyuncular, kendi seviyelerine uygun gruplarla iletişim kurabilir. Bu da hem sosyal hem de stratejik açıdan büyük bir avantaj sağlar. Metin2 development sürecinde bu tür sistemlerin entegrasyonu, sunucunuzun rekabet gücünü artıracaktır.

Sonuç
Voice chat sistemleri, Metin2 özel sunucularında kullanıcı deneyimini ciddi anlamda artırır. Hem C++ hem de Python tabanlı çözümlerle bu sistemi entegre etmek mümkündür. Metin2Dev toplulukları, bu tür geliştirmeler için bolca kaynak sunmaktadır. Sistemin doğru kurulması ve oyun yapısıyla uyumlu çalışması için detaylı planlama ve test aşaması çok önemlidir.


What is a Voice Chat System?
Voice chat systems are crucial for enhancing interaction among users in Metin2 private servers. Especially in PVP-focused servers, players need to quickly share strategies and coordinate, making voice chat system a fundamental feature. This system allows players to communicate with each other in real-time through voice. In this article, we will discuss how to integrate a voice chat system into Metin2 private servers, which technologies can be used, and examine C++ or Python-based solutions.

The Role of Voice Chat in the Game
Metin2 is an MMORPG that has maintained its popularity for many years. Server owners constantly strive to enhance player experience by introducing innovations. In servers with strong PVP systems, in-game team communication plays a critical role. Therefore, a voice chat solution allows players to act more cohesively during battles. This provides an advantage in the game and increases competitiveness.

Voice Chat Integration with C++
On Metin2 servers, C++ is generally used on the server side. If the voice chat system needs to be directly integrated into the game server, knowledge of C++ becomes highly beneficial. However, this requires advanced-level programming skills. The system must be designed to be compatible with game core. In this context, modifications can be made to the client src to add microphone support. Additionally, user authentication can be verified via auth[/BR] and db core[/BR], and voice data can be transmitted securely over a dedicated channel.

Alternative Solutions Based on Python
If one wishes to avoid the complexity of C++, a Python-based solution may be preferred. For instance, a simple voice chat interface can be created using Py GUI. This interface can be designed to work seamlessly with the game. Moreover, voice data can be easily managed through the py root directory structure. This method can be preferred especially in servers using modifications like martysama.

Contribution of Voice Chat System to User Experience
Allowing players to communicate more easily with each other enhances in-game interactions. Particularly in channel-based servers, separate voice chat channels can be opened per channel. This allows players to interact within groups matching their own levels. This provides both social and strategic advantages. Integrating such systems during Metin2 development will increase your server’s competitive edge.

Conclusion
Voice chat systems significantly enhance the user experience in Metin2 private servers. It is possible to integrate such systems using both C++ and Python-based solutions. Metin2Dev communities provide abundant resources for such developments. Detailed planning and testing phases are very important for correct setup and compatibility with the game structure.
 

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

Benzer konular

Geri
Üst Alt