net game, advice

Blitz3D Forums/Blitz3D Beginners Area/net game, advice

Santiworld(Posted 2009) [#1]
hi, what is the best and EASY way to write a game with multiplayer option...? a game style like Command & conquer.

i noticed some libs are hard to make them work, and allways have problems to connect one computer to another, or more computers...

i want to make a server, and no more than four player connect to server to play the game.

what is the best option UDP or TCP ?


neos300(Posted 2009) [#2]
It really depends. For C&C UDP might be better, but I would still say TCP as UDP is a bit hard to do in B3d


Matty(Posted 2009) [#3]
UDP is not hard to do in B3D. UDP is your best bet for real time games, TCP is more appropriate for a turn based game - but UDP can be used with that no problems as well.

There are plenty of examples in the code archives of various libs .... the netblitz lib is pretty good.


Santiworld(Posted 2009) [#4]
thanks...


Santiworld(Posted 2009) [#5]
i see the netblitz and works in my computer, but allways have some problems to connect two computer usin a lan.

i have a linkssys router and windows XP, i need to make something to use udp with blitz aplications?


Matty(Posted 2009) [#6]
You may need to switch your firewall off.
Other than that I can't think of anything else.