cr0ne Posted February 24, 2014 Share Posted February 24, 2014 (edited) Hey guys, first of all I'd like to thank you for mumble, its a sick software and we are getting more into it every day. Now back in October we (me and my cousin) tried to implement emoticons in mumble chat. I know its not a big deal feature since mumble is VOIP, but we are using chat quite a lot so we thought it would be cool. So the idea was to type an alias e.g. Kappa in the chat box of your client and in the chat log a little http://www.chatslang.com/images/shortcuts/twitch/admins/kappa.png would appear. For that we used regex. Following the concept of TextMessage.cpp for html links and quotation marks we setup a regex for emoticons. Now the next problem was that, having the emoticons hardcoded in TextMessage.cpp is super lame and impractical so we needed a way for the server admin to be able to add emoticons on demand and preferably through the murmur.ini file. So the concept is that the server parses a list of emoticon aliases and their respective images (internet links) from murmur.ini and broadcasts them to the connecting clients through the server sync message (btw thank you for the mumble proto documentation, sick stuff, bible for bots as well). The clients then read that list, and setup regexes for each emoticon. We actually made it work, and now have emoticons in chat. Now I want to make this clear. Our programming knowledge is very basic. This means that, for example, our idea of putting another field in server sync is probably bad, or not a way you write software. So if we break any programming standards or mumble/mumble protocol standards (we most likely did) please be easy on us we were just messing around.As you can understand this concept requires both a custom client and server.The code is here, Mumble was in 1.2.4 back then.For linux I did as the wiki instructed, same for windows, but in windows I compiled with qmake CONFIG-=sse2 CONFIG+=no-asio CONFIG+=no-g15 CONFIG+=no-bonjour CONFIG+=no-elevation -recursive Btw I couldn't find the right G15 files so I gave up.Update (1.2.7): This fix of 1.2.7 was really nice.Warning: The windows msi installer has outdated OpenSSL, as I don't have the time right now to update it.Windows msi installer 1.2.7Linux Client 1.2.7Linux Server 1.2.7Sample murmur.ini fileTo add emoticons, look for the values emoticonnames and emoticonimages in the sample murmur.ini file. Replace the "Alias1, Alias2, ..." in emoticonnames with the names of the emoticons that you want and the "Link1, Link2, ..." with their respective links. For example if you want to have a Kappa emoticon you would:emoticonnames="Kappa"emoticonimages="http://www.chatslang.com/images/shortcuts/twitch/admins/kappa.png"So when I typehttp://i.imgur.com/oAzghiX.pngA Kappa will appear In the chat http://i.imgur.com/2Dakxsv.pngif you want two emoticons you would:emoticonnames="Kappa, BibleThump"emoticonimages="http://www.chatslang.com/images/shortcuts/twitch/admins/kappa.png, http://www.chatslang.com/images/shortcuts/twitch/admins/biblethump.png"You get the memo. The emoticon names and the links must be seperated with a comma and a space like shown in the examples above. Edited June 16, 2014 by cr0ne Link to comment Share on other sites More sharing options...
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now