Stripping out the networking code for a console based chat


(ry70) #1

Hi all!

I want to make a console type chat app that lets me connect to a server just so I can send/receive chat without having to load up the full game, is this possible, could you just seperate the network code and build something or is it all too integrated together to be able to do this?

If you can can you give me some help/tips etc?


(stealth6) #2

I think the easiest way would be to connect to an IRC server. There is a bot that reads the chat and posts it to W:ET and vice versa. You could probably code it in LUA.


(ry70) #3

I quite fancy the challenge of working with the source though, I would have though it is doable??

It’s just fairly straightforward server->client commands back and forth, I would just have to intialize a client that connects and parses out all the text to some kind of basic GUI, what issues am I likley to run into with this simplistic approach?

I understand that you have many cvar commands and gamestates snapshots being sent back and forth, but as I said I would have though it viable to just wotk with the ‘text’ chat coming back and forth and disregard the rest, or will the server reject this?


(Micha) #4

etadmin mod guys made a perl script for et servers which can connect to a irc chat.
http://www.aes-team.fr.cr/ETADMIN_MOD_WIKI/Installation_der_TCP-Schnittstelle_und_der_Benutzung_mit_IRC.htm
The original side is down so the guys from the website could only save the german doc. version.

This shows that it could work to do something like you want.


(stealth6) #5

[QUOTE=ry70;492257]I quite fancy the challenge of working with the source though, I would have though it is doable??

It’s just fairly straightforward server->client commands back and forth, I would just have to intialize a client that connects and parses out all the text to some kind of basic GUI, what issues am I likley to run into with this simplistic approach?

I understand that you have many cvar commands and gamestates snapshots being sent back and forth, but as I said I would have though it viable to just wotk with the ‘text’ chat coming back and forth and disregard the rest, or will the server reject this?[/QUOTE]

Well I don’t know enough about C or the SDK, but I guess this would be possible (just gutting the whole thing so it’s just a terminal) the only problem I forsee is that you will see a client in your server. (like a connected player)

That’s why I suggested a different approach.


(ETJump-Zero) #6

What you guys are suggesting requires admin access to the server. What he’s asking (atleast what I believe he’s asking) is if it’s possible to make a client that follows ET protocol and let’s him chat to the server with just a console. I guess it might be possible (thought about this myself before) but I suppose you’d have to implement quite a lot for all the pk3 hash checks etc.


(ry70) #7

Exactly, if you want to help out feel free.


(twt_thunder) #8

Putty and screen aproach program, should be possible for someone with the brain to it. of course if you want to connect to any ET server its a probem though


(solchanel) #9

You have to do all of these things that ET makes until CL_InitCGame function additionally you have to set cl.state to CA_PRIMED then you should be able to receive & send messages without any mods, that’s the trick.