jhakonen / wot-teamspeak-mod

Mod for integrating TeamSpeak into World of Tanks
GNU Lesser General Public License v2.1
36 stars 8 forks source link

User cache #5

Closed jhakonen closed 9 years ago

jhakonen commented 9 years ago

For the mod to remember which TS user and which WOT player are matched together (even if someone changes his WOT nickname (2.5k gold!) or his TeamSpeak nickname) the mod should match player/user by their unique ID values and store them to cache file.

The cache file should also be human readable and modifyable in order to fix mappings that might have gone wrong.

Mod settings should also have an option where you can enable caching when playing a replay. It should be disabled by default. If enabled, the cache would incorrectly match your TeamSpeak user to whoever's replay file you're currently playing.

The existing mapping and extracting rules should be modified so that they act as cache's input when someone speaks. The final conversion from speaking TeamSpeak user to WOT nickname should be queried from the cache.

The cache file should also reload automatically if user modifies the cache file by hand, even if WOT is running.

The cache should be prepopulated with user's friends and clan members from WOT. Also anyone in user's channel in TeamSpeak should be added to the cache.

This was originally suggested by nixxxie at: http://forum.worldoftanks.eu/index.php?/topic/433614-094-tessumod-wotteamspeak-integration-mod-v034-5112014/page__st__60__pid__9219492#entry9219492