You change packets clientsided?
The client is never wrong! Unless you've altered it.
Your server needs to match its packets with the server, not the other way around.
|
I have a packet problem, well my pi server uses packet 174 for following, but clientsided it uses packet 174 for sound.So i did change the client packet 174 for following, then i have no sound anymore cause i dont have packet what sends the sound, how could i fix them, should i create a new packet for sound ? i tried that but then only the packet174 would work incase that was following, but when i tried to use sound i get packet error.Could anyone help me?
Client packets:
I used apacket 86 for sound, but ingame i get a packet error when i try to use sound.
if(pktType == 174)
{
int i4 = inStream.readUnsignedWord();
int l11 = inStream.readUnsignedByte();
int k17 = inStream.readUnsignedWord();
if(aBoolean848 && !lowMem && anInt1062 < 50)
{
anIntArray1207[anInt1062] = i4;
anIntArray1241[anInt1062] = l11;
anIntArray1250[anInt1062] = k17 + Sounds.anIntArray326[i4];
anInt1062++;
}
pktType = -1;
return true;
}
if(pktType == 86)
{
followPlayer = 0;
followNPC = 0;
int l11z = inStream.readUnsignedWord();
int iq = inStream.readUnsignedByte();
followDistance = inStream.readUnsignedWord();
if (iq == 0)
{
followNPC = l11z;
}
else if (iq == 1)
{
followPlayer = l11z;
}
pktType = -1;
return true;
}
You change packets clientsided?
The client is never wrong! Unless you've altered it.
Your server needs to match its packets with the server, not the other way around.
You dont understand...my server uses packet 174 for following, and i changed clientsided packet174 to handle following, now if i take usless packe like 86 is and create it and make it to handle the sound it wont work.
Change your server instead of your client, unless you need to use a custom packet. But don't choose an existing one then.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |