08-21-2016, 04:24 PM
Hi,
im here because i've a big problem on my server.
The problems is that:
-When the leader leave room the battle stop work because leader no send all info of player to other player.
I don't understnad why.
When leader leave I send this:
-CM_REQUEST_HOST_CHANGE to battle server for battle server can change ip/port of room with new master info! (And this is ok)
-Packet 3347 for all player for the new host ip:
This is packet structure:
Please help because I don't understand what's the problem!
im here because i've a big problem on my server.
The problems is that:
-When the leader leave room the battle stop work because leader no send all info of player to other player.
I don't understnad why.
When leader leave I send this:
-CM_REQUEST_HOST_CHANGE to battle server for battle server can change ip/port of room with new master info! (And this is ok)
-Packet 3347 for all player for the new host ip:
This is packet structure:
Код:
H: 3347
D: New leader slot
foreach(Slot slot in room)
{
if(slot.getPlayer() != null)
{
B[4]: New leader ip
H: Room port
B[4]: New local leader ip
H: Room port
C: 0
}else{
B[13]
}
}