02-07-2011, 07:12 AM
I've been playing warsow recently and accidentally found out about it's neat feature: an IRC client integrated into the game. I've tried it out with my bouncer and thought I should get this feature into my favorite game by all means. A day of dirty engine hacking resulted into this:
Nexuiz screenshots: 1, 2, 3
Xonotic screenshots: 1
I made it mostly for my own needs, but thought someone might like it too. It's used with my ZNC on those screenshots, you can see my regular client (irssi) at the background (but of course it works with normal IRC servers). The client supports a single server at a time, and lacks many of advanced features (but hell, you're not going to IRC from the game at all, right?). Basic IRC features are supported, including hilights (with user-defined words). Most of it is controled with the console, all IRC commands and cvars have irc_ prefix and are documented. There's also a quick way to input messages by pressing a key (much like T for normal game chat or Y for teamchat), to use this you'll need to bind irc_messagemode to a key. IRC messages can be printed in 3 ways: in the console, in the game chat, or (default) hilights and privmsgs go to the chat area and the rest goes to console. Currently planned features are mIRC color support, channel watching and more irc-related commands (such as more and topic).
You can get the source at Xonotic GIT, akari/irc branch of darkplaces repository. You need this library in order to compile and run it. I haven't had a chance to test this on anything but x86 Linux. If you're building on another platform, please report your success or failure. And of course, any kind of feedback, suggestions or criticism is welcome and appreciated.
Nexuiz screenshots: 1, 2, 3
Xonotic screenshots: 1
I made it mostly for my own needs, but thought someone might like it too. It's used with my ZNC on those screenshots, you can see my regular client (irssi) at the background (but of course it works with normal IRC servers). The client supports a single server at a time, and lacks many of advanced features (but hell, you're not going to IRC from the game at all, right?). Basic IRC features are supported, including hilights (with user-defined words). Most of it is controled with the console, all IRC commands and cvars have irc_ prefix and are documented. There's also a quick way to input messages by pressing a key (much like T for normal game chat or Y for teamchat), to use this you'll need to bind irc_messagemode to a key. IRC messages can be printed in 3 ways: in the console, in the game chat, or (default) hilights and privmsgs go to the chat area and the rest goes to console. Currently planned features are mIRC color support, channel watching and more irc-related commands (such as more and topic).
You can get the source at Xonotic GIT, akari/irc branch of darkplaces repository. You need this library in order to compile and run it. I haven't had a chance to test this on anything but x86 Linux. If you're building on another platform, please report your success or failure. And of course, any kind of feedback, suggestions or criticism is welcome and appreciated.