Рейтинг темы:
  • 0 Голос(ов) - 0 в среднем
  • 1
  • 2
  • 3
  • 4
  • 5
PROTOCOL_BATTLE_PREPARATION_ACK UdpState 3
#1
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 Tongue
Ответ
#2
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 Tongue

Well with UDP 2 should work all right
error may be elsewhere
because pbdeva have all worked on the UDP 2
Ответ
#3
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.
Ответ
#4
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?
Ответ
#5
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.
Ответ


Возможно похожие темы ...
Тема Автор Ответы Просмотры Последний пост
  UdpState Problem ManuelDev 4 2,227 04-03-2016, 02:44 PM
Последний пост: ManuelDev

Перейти к форуму:


Пользователи, просматривающие эту тему: 1 Гость(ей)