Create an account


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IRC client in the game (working prototype)

#1
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.
Reply

#2
O_O

^Initial reaction


O____________O

^Reaction 5 minutes later



NO MORE RCON2IRC YAYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY

It probably needs work though, so we'll see what divVerent says -- But, with GENUINE IRC support for DP we could do a lot of fun things. For one: It would be MUCH easier to do notifications such as flag caps and such in the game code -- Hell, tons of things could be done with it. As said on #xonotic, i'll maybe add some "ircprint" function and implement the same functionality of rcon2irc if this is accepted ^_^

Cool work Tongue
Reply

#3
Wow, that looks really awesome Big Grin

I love the IRC from Warsow, and if Xonotic had that it would be great.

Just a note: probably overkill, but perhaps libpurple might be handy to anyone who wants to write a full featured chat plugin? I'd probably only use xmpp+irc, but for the sake of completeness it might be worth it if it plays nice with DP.
[Image: vN3NkMA]
(Idea stolen from Mr. Bougo. Hehehehe)
Reply

#4
(02-09-2011, 03:26 AM)clanclanclan Wrote: Wow, that looks really awesome Big Grin

I love the IRC from Warsow, and if Xonotic had that it would be great.

Then I suggest to start using it and tell me how well it works Smile I am in need of testing, especially for Windows and OSX (which I have never even used)

(02-09-2011, 03:26 AM)clanclanclan Wrote: Just a note: probably overkill, but perhaps libpurple might be handy to anyone who wants to write a full featured chat plugin? I'd probably only use xmpp+irc, but for the sake of completeness it might be worth it if it plays nice with DP.

And add a web browser, an IDE and a terminal emulator as well, so I would never want to leave the game Tongue

Seriously though, if we supported full featured multiprotocol chat (or even just multiserver IRC), it would be a pain to use with such a user interface. And also I never intended to write a chat monster, I just needed a way to instantly see my hilights in the chat area, watch some channels like #minsta.pickup and the #thebadasschoobs (our clan channel), drop quick responses to privmsgs, etc. But if you really need IM support in DP, you could use something like bitlbee with this client. I'm actually curious to see how well would it work.
Reply

#5
Here is an even crazier idea, an achievements and notifications system using xmpp.
Reply



Possibly Related Threads...
Thread Author Replies Views Last Post
  Help with Client for Machine Learning QuakingInFearOfQuakeC 1 693 04-17-2019, 05:51 PM
Last Post: BuddyFriendGuy
  Game Server's Packet to XonStats Antares* 2 1,437 04-30-2017, 10:33 AM
Last Post: Antibody
  How can i add a Game mode? HirnloserHering 2 2,325 08-29-2015, 06:33 AM
Last Post: HirnloserHering
  Rcon client Sl@va 1 1,701 05-26-2015, 04:25 PM
Last Post: -z-
  Getting Position of Other Players/Bots Client-Side ehrenbrav 7 4,782 05-10-2015, 12:42 PM
Last Post: ehrenbrav
  development and life cycle of a game community BuddyFriendGuy 9 5,666 04-04-2015, 01:58 AM
Last Post: BuddyFriendGuy
  Xonotic Game Engine, Mapping, Development - General Developer Questions p14r 6 6,398 08-04-2014, 10:24 AM
Last Post: p14r
Rainbow Colorful in-game chat Melanosuchus 13 9,516 09-05-2013, 12:49 PM
Last Post: Mr. Bougo
  [plan] A single-player game creation toolkit using the Xonotic framework MirceaKitsune 21 21,757 06-18-2013, 10:15 AM
Last Post: Zeo
  To Xonotic developers about their game... noobermin 17 10,677 06-17-2013, 01:39 PM
Last Post: frostwyrm333

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-