Рейтинг темы:
  • 0 Голос(ов) - 0 в среднем
  • 1
  • 2
  • 3
  • 4
  • 5
UDP3 Send-back packet
#1
Hi,
i'm working on packet 4 (answer to packet 3).

I've make it working just "copying" all the content between the Header and the Footer of the packet (And this work in a part, I see player move and so on)

Then, I've start to write the content between the Header and the Footer of the packet with the PosRotation event but that's not working. I've get the sending data, and i've see a problem
Код:
[color=Red]ae [/color]4f [color=red]b2 [/color]44 [color=red]6f [/color]be [color=red]9e [/color]50 [color=red]0e [/color]49 [color=red]10 [/color]00 //This is PosRotation wrong      
0[color=red]a e[/color]4 f[color=red]b 2[/color]4 4[color=red]6 f[/color]b e[color=red]9 e[/color]5 0[color=red]0 e[/color]4 9[color=red]1 0[/color]0 //This is PosRotation correct

If you check them, you can the that the wrong one is all moved of one, I've colored 2 by 2 for make it more clearly

This is the no-working code
Код:
byte subHead = read.readByte();
int subHead_Slot = read.readShort();
int subHead_Length = read.readShort();
int subHead_Flag = read.readInt();

if ((subHead_Flag & 0x01) > 0) //..
if ((subHead_Flag & 0x02) > 0) //..
if ((subHead_Flag & 0x04) > 0)
{
        posX = read.readUnsignedShort();
    posY = read.readUnsignedShort();
    posZ = read.readUnsignedShort();
    camX = read.readUnsignedShort();
    camY = read.readUnsignedShort();
    area = read.readUnsignedShort();
    event.event += 0x04;
    pSize += 12;
}

event.data.buffer.writeHeader();
event.data.buffer.writeByte(subHead);
event.data.buffer.writeByte(subHead_Slot);
event.data.buffer.writeByte(pSize);
if((event.event & 0x04) > 0){
        //This part is the HEX buffer showed up
    event.data.buffer.writeShort(posX);
    event.data.buffer.writeShort(posY);
    event.data.buffer.writeShort(posZ);
    event.data.buffer.writeShort(camX);
    event.data.buffer.writeShort(camY);
    event.data.buffer.writeShort(area);
}

This is the working code
Код:
//.. header
Data = new byte[Length - 13];
Receive.readBytes(Data);
Reader = Unpooled.copiedBuffer(Data).order(ByteOrder.LITTLE_ENDIAN);
BitShift.onlyDecrypt(Reader, Length);

send.buffer.writeBytes(Packet.Data.clone());
Ответ
#2
Problem solved Smile
Ответ
#3
ManuelDev Написал:Problem solved Smile
help me
how to fix ?

Добавлено через 19 минут
@PROGRAMMATOR help me please
Ответ
#4
bmzproject Написал:help me
how to fix ?

Добавлено через 19 минут
@PROGRAMMATOR help me please

I'm not sure, but I think it was a shift problem
Ответ


Возможно похожие темы ...
Тема Автор Ответы Просмотры Последний пост
  UDP3 MomzGames - Auth Protected (v42) vinne 0 3,437 01-08-2020, 03:02 AM
Последний пост: vinne
  [Source] UDP3 MoMz Auth Protected vinne 0 3,029 01-08-2020, 03:01 AM
Последний пост: vinne
  Packet Encrypt ManuelDev 1 3,110 09-04-2019, 06:46 PM
Последний пост: ManuelDev
  UDP3 Helicopter animation nikolen 0 2,098 09-01-2019, 08:46 PM
Последний пост: nikolen
  [Help] Point blank UDP3 ON indows 0 1,912 07-04-2019, 03:41 AM
Последний пост: indows
  how to descrypt packet pb client version current bmzproject 6 2,081 03-04-2019, 04:17 AM
Последний пост: bmzproject
  UDP3 Grenade problem zOne62 5 2,115 12-16-2018, 12:03 PM
Последний пост: zOne62
  How to fix Packet Ping Opcode 97 Udp 3 BallDev 0 1,404 11-28-2018, 08:42 PM
Последний пост: BallDev
  UDP3 POSITION ERROR Comandante9901 13 5,335 10-10-2018, 09:20 AM
Последний пост: ChunkyHunt
  help me UDP3 DeathDataForClient Event Id 2048 bmzproject 2 1,692 07-20-2018, 07:04 AM
Последний пост: battleBugado

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


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