A downloadable tool

This is a source code for my UDP server and client that i use with Coppercube to make multiplayer game.

I provide it for free but any donation will be appreciated and will help me to make even cooler projects.

(I included simple Coppercube game and script with it also that shows how to use it)
(but you can make your own way for it)

NB this is not meant for making real game out of it but just for testing and for haveing fun .
[if you want to make real multiplayer game then just buy studio version and you are able to add networking to your game]



StatusReleased
CategoryTool
Rating
Rated 5.0 out of 5 stars
(2 total ratings)
Author5v3n
Tagscoppercube, lan, Multiplayer, udp

Download

Download
UDP_multiplayer_source.zip 1 MB
Download
VER.zip 4 MB
Download
MultiplayerCC.zip 4 MB

Comments

Log in with itch.io to leave a comment.

(+1)

Didn't you have a third person UDP? where each player use another skin? Can you reupload that? I try to code it myself but it keeps failing

A question, how do I make an object invisible to the entire server if picked up by a player?

You need to setup command for this.. its actually simple. if object picked up you send out command so object will set invisible for others -object can be idenified by its name.. so command can be "oVisible,nodename,false" 
Script will parse this line as 3 parameters..
command:oVisible
par1:nodename
par2:value
setScenenodeProperty(getNodebyname(par1) ,"Visible",par2);

I have example for this actually .. i will upload example with many commands soon.

Thanks

can  do  for web Browser

How should I use it? I am a Chinese, so is this still useful? The method of using it is not two computers, one is to start the server and client, then open the EXE file, the other is to start the client, and then execute the EXE file. If it's two computers in China, can they be online?

Yes you can use it in China. its LAN multiplayer so if you have two computers connected to the same network then you can connect them.. 

This local area network is a great attempt, but there are still a few issues

1. Frequent connection failures on the server side

2. It is best for this client to have a fixed ID

Suggestion:

1. Try modifying the code on the client side

2. Attempting intranet penetration

Because it uses files to communicate with coppercube game it is more just for testing and for fun ( constant file read/write probably not good for hard drive either so this method is not good) , for real multiplayer developer must code networking part in c++ with Coppercube Studio version. 

client and server code can be modified so it will be healthy to use for turn based or rts  games. 

(1 edit)

thanks.