Сообщений: 49
Тем: 21
Зарегистрирован: Apr 2016
Репутация:
0
Hi, im a PB developer, i've a server 90% fixed, i miss to fix only 1 big bug.
The problem is that: im use UdpState 2 for the pvp battle, but when the players in battle is more then 4 the room start lag and I see player fly ecc.., so i think the problem is because i must use UdpState 3
UdpState:
Tutorial = 1, AI = 2, Other = 3
I've try add UdpState 3 and I've make a battle server(UDP). When the battle start i get a signal on the battle server, i think is the request for accept room, what i need send back?
Please help me, because if i no send back opcode after 10 seconds room leave and all player is stop on spawn!
Thanks in advance!
Sorry for my bad english, im Italian
Сообщений: 538
Тем: 76
Зарегистрирован: Aug 2012
Репутация:
7
ManuelDev Написал:Hi, im a PB developer, i've a server 90% fixed, i miss to fix only 1 big bug.
The problem is that: im use UdpState 2 for the pvp battle, but when the players in battle is more then 4 the room start lag and I see player fly ecc.., so i think the problem is because i must use UdpState 3
UdpState:
Tutorial = 1, AI = 2, Other = 3
I've try add UdpState 3 and I've make a battle server(UDP). When the battle start i get a signal on the battle server, i think is the request for accept room, what i need send back?
Please help me, because if i no send back opcode after 10 seconds room leave and all player is stop on spawn!
Thanks in advance!
Sorry for my bad english, im Italian
Well with UDP 2 should work all right
error may be elsewhere
because pbdeva have all worked on the UDP 2
Сообщений: 6,450
Тем: 262
Зарегистрирован: Nov 2007
Репутация:
44,165
When client connects to BattleServer he sends a packet with opcode 0x41 and he recieves back a packet with opcode 0x42. You can just send this data:
[SRC="csharp"]var packet = new byte[] { 0x42, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08 }
[/SRC]
But you need to compare the size of header. In my pattern it's indicated as 0x0e, but in your case the size can another.
Сообщений: 49
Тем: 21
Зарегистрирован: Apr 2016
Репутация:
0
PROGRAMMATOR Написал:When client connects to BattleServer he sends a packet with opcode 0x41 and he recieves back a packet with opcode 0x42. You can just send this data:
[SRC="csharp"]var packet = new byte[] { 0x42, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08 }
[/SRC]
But you need to compare the size of header. In my pattern it's indicated as 0x0e, but in your case the size can another.
I need your help, i've send back the accept packet but I continue see player stopped. But battle server get a packet with opcode 3(I think is coordinate x y z of player), what i need send back?
Сообщений: 6,450
Тем: 262
Зарегистрирован: Nov 2007
Репутация:
44,165
Depending on the current event the structure is dynamic. More details about events I have already described in the following topic https://forum.zone-game.info/showthread.php?t=39546
A packet with opcode 0x03 can contain a plenty of events.
|