LAN Chat

BlitzPlus Forums/BlitzPlus Programming/LAN Chat

Kyler(Posted 2007) [#1]
Hi, I'm trying to make a 4 player shooter game, but that many people on one computer gets a little crowded. I've been trying to get it so you can play on 2 computers with each other. But i cant even make a simple chat program. I've read tons of examples, but they don't make any sence to me. If anyone could help me get a working LAN chat program, with an explaination, I would be very oblidged.

Thank you


b32(Posted 2007) [#2]
In this topic, there is an example of using StartNetGame:
http://www.blitzbasic.com/Community/posts.php?topic=71113
The second parameter of SendNetMsg is a string, which could be the chat message that should be sent.


Kyler(Posted 2007) [#3]
Um... This example doesn't seem to work. I have a working wireless connection, but the client still can't see the server's game. I even tried typing in the IP address.


semar(Posted 2007) [#4]
Check out my internet chat program:
http://www.blitzbasic.com/codearcs/codearcs.php?code=28

It's full documented and should provide you a valid base where to start from.

Hope it helps,
Sergio.


Kyler(Posted 2007) [#5]
Nice, I finally got the computers to recognize eachother, but the messages don't show up on the other computer for some reason. Thank you for the code though. :)