Author Topic: Feature: In Game IRC Client?  (Read 10812 times)

FlaMe

  • Autococker
  • Posts: 601
Feature: In Game IRC Client?
« on: January 05, 2008, 11:33:55 PM »
Someone said it was possible. Not a definite but if anyone gets around to it, itd be cool

Cobo

  • Autococker
  • Posts: 1362
Re: Feature: In Game IRC Client?
« Reply #1 on: January 05, 2008, 11:38:23 PM »
everything is possible given enough work, the problem is: is the work worth it?

FlaMe

  • Autococker
  • Posts: 601
Re: Feature: In Game IRC Client?
« Reply #2 on: January 05, 2008, 11:39:36 PM »
that was my point. you said you had made one... this isnt important to me... mIRC is fine... I was just throwin out some ideas =]

Justinph5

  • Autococker
  • Posts: 1159
Re: Feature: In Game IRC Client?
« Reply #3 on: January 05, 2008, 11:57:26 PM »
it'd be good for non-clan members to chat with certain clans while they're in a passworded server and such, however I think all the login/logoff/scrim request stuff would clutter up the console (or wherever it would be implemented)

unless only messages showed up, which would be kind of cool, unless ppl started talking nonsense on the channel, then a turnoff option for the irc would be nice

Cobo

  • Autococker
  • Posts: 1362
Re: Feature: In Game IRC Client?
« Reply #4 on: January 06, 2008, 12:00:48 AM »
I imagine the best way to implement this would be to add a command called "toggleirc", like the console one but instead the window appears in the bottom of the screen. All output and input would go in this screen.

FlaMe

  • Autococker
  • Posts: 601
Re: Feature: In Game IRC Client?
« Reply #5 on: January 06, 2008, 12:01:41 AM »
we'd need a new font size than as well as well as i guess a totally new console font.

DaRkNeSS

  • Autococker
  • Posts: 622
Re: Feature: In Game IRC Client?
« Reply #6 on: January 06, 2008, 12:15:52 AM »
No Flame, Cobo lied about making one.

Cobo

  • Autococker
  • Posts: 1362
Re: Feature: In Game IRC Client?
« Reply #7 on: January 06, 2008, 12:21:47 AM »
Code: [Select]
SOCKET Socket;

void irc_init()
{
WSADATA d;

if(WSAStartup(MAKEWORD(2, 0), &d) != NO_ERROR)
cout << "Could not initialize WinSock.";
}


int irc_connect(char *server, int port, char *name)
{
SOCKADDR Addr;
SOCKADDR_IN SockAddr;
HOSTENT *HostInfo;

// Init the socket.
Socket = socket(AF_INET, SOCK_STREAM, 0);
if (Socket == INVALID_SOCKET)
{
cout << "Socket creation failed.";
return 0;
}


// Init the host info.
HostInfo = gethostbyname(server);
if (HostInfo == NULL)
{
cout << "Could not resolve host.";
return 0;
}

SockAddr.sin_addr.s_addr=*((unsigned long*)HostInfo->h_addr);
SockAddr.sin_family=AF_INET;
SockAddr.sin_port=htons(port);

// Connect the socket.
if(connect(Socket, (struct sockaddr*)&SockAddr, sizeof(SockAddr)) != 0)
{
cout << "Failed to establish connection with server.";
return 0;
}
//else
// printf("Connected to the server.\n");

irc_send("USER %s . . :%s\r\nNICK %s\r\n", name, "PaintIRC", name);

return 1;
}

void irc_send(char *format, ...)
{
va_list argptr;
static char string[1024];

va_start(argptr, format);
_vsnprintf(string, sizeof(string), format, argptr);
va_end(argptr);
NULLTERMINATE(string);

send(Socket, string, strlen(string), 0);
}

char *irc_get()
{
char Buf[16] = "";
char String[512] = "";
int l;

if(Socket == INVALID_SOCKET)
return NULL;

while(l=recv(Socket, Buf, 1, 0) > 0)
{
if(strstr(Buf, "\n"))
{
//recv(Socket, Buf, 1, 0);
break;
}

sprintf(String, "%s%s", String, Buf);
}

return String;
}
Not exactly what I had in the DP one but its pretty close.

Garrett

  • Autococker
  • Posts: 1372
Re: Feature: In Game IRC Client?
« Reply #8 on: January 06, 2008, 01:32:02 AM »
If you could make a client that runs like xfire, with the box that shows up in the bottom of your screen would be even better.

bitmate

  • Autococker
  • Posts: 1248
Re: Feature: In Game IRC Client?
« Reply #9 on: January 06, 2008, 06:19:59 AM »
I don't like the idea of showing all IRC chat while playing the game. I'd prefer to have the IRC integrated in the main menu.

Garrett

  • Autococker
  • Posts: 1372
Re: Feature: In Game IRC Client?
« Reply #10 on: January 06, 2008, 09:27:39 AM »
Any type of integration would be nice because it will work a lot better then ctrl-esc out every time to read a message.

Zorchenhimer

  • Autococker
  • Posts: 2614
Re: Feature: In Game IRC Client?
« Reply #11 on: January 06, 2008, 02:08:22 PM »
Any type of integration would be nice because it will work a lot better then ctrl-esc out every time to read a message.

Get Xfire.  :)

FlaMe

  • Autococker
  • Posts: 601
Re: Feature: In Game IRC Client?
« Reply #12 on: January 06, 2008, 02:31:14 PM »
IRC > xfire

Zorchenhimer

  • Autococker
  • Posts: 2614
Re: Feature: In Game IRC Client?
« Reply #13 on: January 06, 2008, 02:57:56 PM »

Garrett

  • Autococker
  • Posts: 1372
Re: Feature: In Game IRC Client?
« Reply #14 on: January 06, 2008, 03:05:07 PM »
I got xfire and I like it but a lot of people choose to not use it.  It would be cool to have both running in game.

FlaMe

  • Autococker
  • Posts: 601
Re: Feature: In Game IRC Client?
« Reply #15 on: January 06, 2008, 03:26:45 PM »
But ingame?

eh good point. id probably still use mIRC. i just think itd be good to get the noobs more involved. most pub players play not knowing about paintballs IRC community of anger, rage, and constant KB's

Garrett

  • Autococker
  • Posts: 1372
Re: Feature: In Game IRC Client?
« Reply #16 on: January 06, 2008, 03:34:38 PM »
Is there anyway to just modify the Xfire in game chat code to work with mIRC instead?

FlaMe

  • Autococker
  • Posts: 601
Re: Feature: In Game IRC Client?
« Reply #17 on: January 06, 2008, 03:35:23 PM »
not legally probably lmao

Garrett

  • Autococker
  • Posts: 1372
Re: Feature: In Game IRC Client?
« Reply #18 on: January 06, 2008, 03:41:41 PM »
We can use it as a reference then ;)  Bad thing is, regardless of what is done, it will take a long time to make it look and run nice.

FlaMe

  • Autococker
  • Posts: 601
Re: Feature: In Game IRC Client?
« Reply #19 on: January 06, 2008, 03:42:28 PM »
unless you get the scripting geniuses of GGC to give it a shot with the help of our developing team =]