Multiplayer Lobby - Messages Translator - Additional Information

New EE2 Government (since: 01.03.2014), everything about the EE2 management. You can report other players here.
Post Reply
User avatar
High Representative
Posts: 7430
Joined: 17 Jun 2010, 11:21
Location: Poland

Multiplayer Lobby - Messages Translator - Additional Information

Post by Dr.MonaLisa » 25 May 2019, 18:34

Good afternoon.
As most of active Multiplayer users noticed, on 11th of May 2019 I added a new Messages Translator which helps players from different countries communicate.

Manual Translation:
Since the beginning, the Translator is able to translate messages using the following methods:

1. @Message - translates the Lobby or Private message to English. Example:
~eW`~>♔Dr.MonaLisa: @Deine mutter habst keine kinder
[de-en]~eW`~>♔Dr.MonaLisa: Your mother does not have any children
2. @l1-l2 Message - translates the Lobby or Private message from Language 1 to Language 2. Example:
~eW`~>♔Dr.MonaLisa: @en-es What Mona doesn't know won't hurt her
[en-es]~eW`~>♔Dr.MonaLisa: Lo que Mona no sabe no la lastimará.
The list of available language codes can be found at:

Automatic Translation:
A few days after the Manual Translator release, I prepared Automatic Translator which is currently in BETA stage and is enabled for all Lobby and Private Messages. It is currently impossible to disable the Automatic Translator for your Lobby account.

How does it work?
A function called "MonaAI" learns if individual players use different languages and automatically translates them to English. The algorithm is a little bit complicated, but in General:
- Every Player has a "weight", a number from -Infinity to 5. If the number is greater than 5, no more player messages are translated to English for the next 15 minutes.
- The default "weight" is 0. If "weight" is greater than -1 and a player sends message longer than 9 characters it's being sent to Google Cloud. If detected language is English the weight grows (+1), if the other Language is detected, the weight decreases (-1).
- If the weight is less than 0, a message is being sent to Google Cloud, no matter how many characters it has. Again: if detected language is English the weight grows (+1), if the other Language is detected, the weight decreases (-1).
Thanks to that the Auto-Translator doesn't get mistaken by short messages, which could trigger some exotic languages. When it's sure that the player used a different language before - it translates all new messages.

The Auto-Translator only prints messages which are non-English. If the sent message is in English, the translator might still send it to the Google Cloud (to check what language it is), but will not print it as [en-en].

1. Message - If the Message length is greater than 9 or player used the different language before that, it's getting translated to English.
~eW`~>♔Dr.MonaLisa: Hola amigos!
[es-en]*~eW`~>♔Dr.MonaLisa: Hello friends!
~eW`~>♔Dr.MonaLisa: Hell yeah, it works!
Nothing is printed there
The Manual and Automatic Translation only works for messages sent on the Lobby Chat or in Private Messages. Since EE2 is a peer-to-peer game, the messages sent in the Hosted Game Room or Game (after launch) are not stored in the database and can not be checked by periodical Translator script.

The Translator has anti-spam limits to not generate extra costs on Google Cloud. In case of messages spam some of them might get ignored.

Lobby and Private Messages are (as usual) stored in Database and sent to Google Cloud for translations (with exceptions of messages which reached translation limits).

I believe it's a great feature which makes our community and Multiplayer Services even more unique than on the other games! Non-English speaking players can finally communicate with others, without minimizing game.

Have a great day!
Best regards,
Ministry of Game Affairs
Department of Control and Complains

Post Reply

Return to “Ministry of Game Affairs of the Empire Earth II Community”