3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1] 2

Author Topic: Chatterbox  (Read 2597 times)

jestermon

« on: May 19, 2010, 05:00:21 AM »
Ok you asked for it, Now I'm gonna give it to you... nope, not a smack..
The chatterbox.

Here's a fun little chatterbox that shows how to do client-server chat. not yet implemented for multiple client yet, but a "pass-through" the server can easily be done.. anyway, here it is.

You first run the server on your machine (preferably in a window)
then you run the client on the same machine (windowed so you can see both)

Then you just go ahead and talk to yourself, and because it's technology, no one will think you are silly.

One zip file contains both the compiled client and server
Another zip file contains the un-compiled projects for client and server

When using it in the editor, make sure to set the text size to 0.5, 0.5, as shown in the image.

Notes:
1.. Change the IP address in the client project to talk to another machine on the network.
2.. The projects crash when you close them, because I have not tidied up the disconnection part.. but i'll leave that to you :P
« Last Edit: May 19, 2010, 05:05:44 AM by jestermon »
« Reply #1 on: May 19, 2010, 06:30:31 AM »
Quote
Then you just go ahead and talk to yourself, and because it's technology, no one will think you are silly.

Great stuff  ;D

Nice resource ;)
Roll out!
http://www.youtube.com/watch?v=VD8MvMaPNO4

Do you have kids between the ages of 3 and 9?

http://www.amazon.com/dp/B007K1EFC6
« Reply #2 on: May 19, 2010, 09:12:04 AM »
Oh so that's how you spell 'thingamajig'! lolol
« Reply #3 on: May 19, 2010, 09:15:13 AM »
Multiplayer (with your chat) is DEFINITELY needed as a general object. :)
BTW, nice chat box. That is a very nice feature. Now if we could implement it into a game real-time in the same project...
« Last Edit: May 19, 2010, 09:21:22 AM by Selenaut_14 »
Have a 3DRad problem? There's a topic for that.
(And if there's not, you can always make one.)
My project: http://www.3drad.com/forum/index.php?topic=4337.0

jestermon

« Reply #4 on: May 19, 2010, 11:19:00 PM »
Oh so that's how you spell 'thingamajig'! lolol
I would guess so..  :o
« Reply #5 on: May 20, 2010, 02:33:59 PM »
Nice resource, thanks :)
« Reply #6 on: October 30, 2010, 11:22:17 AM »
I have no coding experience with anglescript , Jestermon.

Could you elaborate on whats needed in your chat script to fix the crashing on exit ?

jestermon

« Reply #7 on: October 30, 2010, 01:58:17 PM »
I have no coding experience with anglescript , Jestermon.

Could you elaborate on whats needed in your chat script to fix the crashing on exit ?
I found that removing the iNetStop(); call from the if (iDeinitializing()) block helps. It seems as if the call may be flawed.. but the network is closed when the program terminates anyway, so that seems to take care of  the problem.
« Reply #8 on: October 30, 2010, 05:55:22 PM »
Thankyou again :)

jestermon

« Reply #9 on: October 30, 2010, 09:07:34 PM »
Thankyou again :)
Hmm let me work out the cost ... That will be, 1 chocolate, and hm.. yea. that's it :P
« Reply #10 on: November 11, 2010, 12:17:38 PM »
nice chat box
See my web:
« Reply #11 on: January 04, 2011, 11:36:46 AM »
i have a problem with your chat project. i merged it with another project, and removed the iNetStop() like you said, but when i tested it in the editor, it worked once, but now its crashes on start  :P
this doesnt happen if i use the normal server start/stop script from the netball arena project

jestermon

« Reply #12 on: January 04, 2011, 09:43:25 PM »
i have a problem with your chat project. i merged it with another project, and removed the iNetStop() like you said, but when i tested it in the editor, it worked once, but now its crashes on start  :P
this doesnt happen if i use the normal server start/stop script from the netball arena project
I've had tons of problems over the last year; with the limited network stuff that is built it. Its all that one has available to work with, if you don't use 3rd party stuff.
I write my own tcp/ip socket functions in a dll, which I then call from Rad; so I have no answer to your question. sorry.
« Last Edit: January 04, 2011, 09:45:51 PM by jestermon »
« Reply #13 on: January 04, 2011, 10:25:51 PM »
no problem
« Reply #14 on: January 06, 2011, 07:44:57 PM »
hey, im not sure if you know this, but if you run iEscKeyDisable()
and use an EOI that starts an exitfade and stops your script, the project doesn't crash.  :)

you have to stop the script before closing the project
« Last Edit: January 06, 2011, 08:14:02 PM by noaaisaiah »
Pages: [1] 2