Game Development Community

Chating & Sending Messages

by Yannis Sovolakis · in Technical Issues · 10/10/2006 (3:40 am) · 5 replies

Hi,

i want to implement a chat widget inside torque. Is there a relevant resource
or a general direction to go?

how can i send the messages to the server and how this message should be
sent to the clients afterwards? do you think that this can (should) be done
strictly with scripting?

thanks,
yannis

#1
10/10/2006 (4:48 am)
Since you didn't specify text chat or voice chat, it's hard to know exactly how to answer your question, but here goes . . .

There is already a text chat system built into Torque. If you've seen that one but want to build your own, you can look at the code for it and the associated scripts and use it as an example to try and build a better chat system. Or maybe you can just build onto the existing chat features.

However, having said all that, I've been very pleased with the current built-in Torque text chatting system.

Voice chat is another matter entirely though. That will be a lot of work to get running inside of Torque. Several people have attempted it. Two people I know of got different implementations of voice chat inside of Torque, but none of those have been released to the community and no guides have been published.

Currently, for voice chat, my Torque app loads up an external instance of Skype for the user to connect to and get voice functionality. An embedded Torque solution would be preferable, though.
#2
10/10/2006 (7:21 am)
Ok. thanks for the reply. consider me as a newbie!

i want just a text chat and as i guess i need to make slight modifications
to the current one of Torque's. Basically, i want to be able each sentence
that one writes to appear in a certain graphic box ONLY in the co-players
that are NEAR him/her.

Any directions, keywords to start with are highly appreciable.
yannis
#3
10/10/2006 (3:28 pm)
It sounds like you would like to have speech bubbles containing player/user text comments. Is that correct? I tried doing a search for it but I couldn't find anything. However, it is possible and some of the developers in the community have implemented it for their chat systems. I'm sorry I couldn't offer more help.
#4
10/11/2006 (3:15 am)
Hehe, it's exactly like that... actually i made the bubbles allright,
but i have to find my way in connecting these bubbles with the chat system.

But i am going to find my way... I took yesterday a look in MessageHud & ChatHud
in starter.fps and they seem to show the way. Now, i need to "link" the messages
with a properly made script for my bubbles.

thanks
yannis
#5
10/11/2006 (6:24 am)
I seem to remember someone adding chat functionality to the guishapenamehud stuff in playgui.gui. I could be wrong on that though. I think it tapped into the overhead name feature or the overhead health bar that's visible when your weapon crosshairs are over another player (or bot). I know there are examples of this somewhere on the GG site, but I can't seem to find them.