Multi hosts and lag killerMain idea:
Ok u have a client and more then 1 host. or use 1 host and send to only certaint areasexampleA:
you have a host for each room or area. ( might reduce allot of lag )
you send a mplay message to the main host telling them your x,y then the host sends another message back to the client that sent the message telling him were he should be sending he messages.
so then he gets host2 so he sends his messages there about his x,y and this hosts sends them all the other players locations that are in the area/ player that are messaging this host.exampleB:
ok so if you already know were each hosts location is and it will always stay the same u can do this:
if the x,y are between 1,1 and 100,100
mplay_message blah blah id would be host1 ( wouldn’t be called this would most likely be a number.. )
so now for the other areas u just do the same thing
if the x,y are between 101,101 and 201,201
mplay_message blah blah id would be host2 ( wouldn’t be called this would most likely be a number.. )
then the servers would send a mplay message back to the user that is sent it its x,y that tells the other players x,y ( the ones that send messages to that host so basically it would only be the ones in that area)
Don’t or cant have more then 1 sever for the hosts?
simple use plan/example2B but rather then having it send to 1 host Do this:
mplay_message blah blah id would be host ( wouldn’t be called this would most likely be a number.. )
then depending on your x and y the server will send you the players messages that are within the range of x,y your in.WHY?
by having the server/host only sending mplay messages to people within the area of u it technically should create less lag since u would only be getting update from players within your area.
P.S i might release an example of this if/when i complete it
Edited by bobby2guns2003, 17 June 2004 - 04:46 AM.