Welcome to agoose77’s dynamic networking demo
Dynamic Networking Final (Slow)1.blend (1.17 MB)
(in the latest version, it alerts you if it’s out of date)
In this demo, a very barebones setup allows you to establish a server,
and connect unlimited* numbers of clients without typing any extra code^
Normally, in a multiplayer setup (the basic ones) you must set the default number of players, manually set each player’s port AND they must all be connected to let the game play.
Dynamic networking is dynamic! meaning that there is no specified number of clients, no specified ports and no specified code!
What this does is tell the client how to connect to the server, automatically set it up (the connection) and requires no user input.
This is by no means new - every major multiplayer game has dynamic networking of some means, but the problem here at blenderartists.org is that there are very few (that i know of) that know how networking works, and fewer still who have created a beginners tutorial.
Networking is Not difficult, it just requires some thought.
I will write the documentation soon.
OldJim created this concept in WSAG3x, but it is very hard to understand, as it is customized.
For me, it appears to lag with 2 clients connected, and i’m not quite
sure why at the moment; i think it may be related to multithreading or network usage.
At the moment, this demo is designed to work over lan, on your current network
1)open three instances of blender
2)start 1 server, 2 clients. (for the clients, specify the name for each one by typing them)
I will see if i can make my public ip forward to my pc.
In the mean time, use this and post on this thread
if you wish to use it the way it’s intended
(that way, it ought to lag less)
[If anyone wishes to help me create a plugin to make this more automatic, PM me]
credits to OldJim - http://oldjim.ch
*Until your network/computer overloads.
^obviously, some code is required XD