Hello everyone!
As i play on a server with an international community, there's a lot of languages involved. To make insulting others/understanding others insulting me easier, i've decided to make a program which will translate chat messages in real-time. I used Wireshark to capture packets coming from the server, and - after some digging - i found out which ones correspond to the chat messages. Sadly, it turns out MTA apparently uses some kind of encoding, as no two packets supposed to contain the same chat string, share the same byte series. I made a quick search through MTA source code, but i'm too dumb to find the piece of code responsible for decoding it into a usable format. I don't know if that's of any use, but i found this file:
https://github.com/multitheftauto/mtasa-blue/blob/1d66aad10cc68f44503fb0d618c78c4541ee6c52/Client/mods/deathmatch/logic/CPacketHandler.cpp
It's supposed to process the packets and it has a piece of code called "Packet_ChatEcho". I guess it's something related. Has anyone tried this before? Any help will be very much appreciated. I think it's a cool idea.
Regards,
Koksiasz