Online

Blitz3D Forums/Blitz3D Beginners Area/Online

Jerome Squalor(Posted 2007) [#1]
Can someone give me a detailed tutorial on how the hec im supposed to use the multiplayer functions. I just cannot figure out what im supposed to do with them.

Thnx in advance


Ross C(Posted 2007) [#2]
If you look in the toolbox, you should find some helpful libs.

http://www.blitzbasic.com/toolbox/toolbox.php?cat=17

I used Rottnet for a while and found it pretty straighforward to use :o) It's a lot easier than coding a whole system for yourself.


Moraldi(Posted 2007) [#3]
I don't think that he is looking for a lib (at the moment) but how to use a lib


Dreamora(Posted 2007) [#4]
You are meant to send messages from client to host and host to client that the other side interprets and gets its needed data out.

Normally they are quite simple

ID (Byte)
Data (String)

The ID are unique and predefined so the other side knows what data are there.
For example there is ID 28, which could be Position, then the data could be

ObjectID%,X#,Y#,Z# but binary


The main point is that you must share the objectIDs from host with clients in some way. At simplest this is done through an array on the client where the host objectID is simply the index in the array on the client.


Ross C(Posted 2007) [#5]
Helps then, if we know what lib he's using :o)