Alright so after testing a little bit I've gotten this info so far.
After creating a message I include 2 variables
1) id of client
2) id of packet as a float
Every packet starts with this. Then this particular packet includes the amount of objects I'm about to send,
3) Height of this level
4) Amount of objects in this level
then i have a loop that collects the level data, the first level contains 200 randomly placed and rotating objects, each carrying
5) Object type used
6) X position
7) Y position
8) Z position
9) X Rotation
10) Y Rotation
11) Z Rotation
12) Rotation Rate.
Now on the other (client side) end I've set up a couple of Print functions and temp variables to see how much data is coming through.
We get the client id and packet id just fine then I have a loop that reads how many times the loop takes place (I've tried with both For and Do loops )
Now there's a counter in place inside of the loop that takes a look at the just received "Object type used " variable which will always either be 1, 2, 3 or 4.
and IF there is a value like that in that variable, it will add a +1 to the loop counter. This is just for redunduncy.
At the end i printed out that first unique packet variable for this particular packet - the "Amount of objects". This returns 200. As it should. But it's really only the 3rd piece of data we've added and received.
Then, however I only get about 45 of those loop ticks. So that's Only 45 times that the loop actually got the "Object type used " to have received a valid value.
Sooooooo that 45 loops times the 8 data pieces of each loop it reads (that is IF the last valid loop actually reads all the data slots) so that's 360 messages, Plus the Client ID, Message ID, and the other two variables. which makes about 370 messages.
Can't complain that's already amazing as it is. Just wish it was documented so I'd code in a help files. I'll have to segment the level sync between host and clients in multiple packets.
Eisenstadt Studio: Eisenstadtstudio.com
Composers Page: Milesthatch.net