Thread: [PI] Packet problem

Results 1 to 6 of 6
  1. #1 [PI] Packet problem 
    Registered Member Kristjan's Avatar
    Join Date
    Apr 2009
    Posts
    1,578
    Thanks given
    709
    Thanks received
    189
    Rep Power
    588
    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;
    }
    Spoiler for Signature:
    Previously known as: 508gu
    Quote Originally Posted by SamSoft View Post
    Vouch for Korra Legit, First pin Sold So now the 9m is off the table.
    Quote Originally Posted by Zoltz View Post
    vouch, quick trade very smooth will trade w/ again.
    Quote Originally Posted by Bundy View Post
    Very Legit Seller, Bought 170k Already, Still Buying More Of Him, Cheap Prices!
    Quote Originally Posted by Bundy View Post
    Vouch, Very Good Guy, Purchased Again !
    Quote Originally Posted by eduber1 View Post
    vouch service went fast and smoothly
    Quote Originally Posted by Jinrake View Post
    vouch bru
    Reply With Quote  
     

  2. #2  
    Registered Member
    Its paris's Avatar
    Join Date
    Apr 2009
    Posts
    1,141
    Thanks given
    56
    Thanks received
    234
    Rep Power
    689
    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.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Xynth's Avatar
    Join Date
    May 2009
    Posts
    2,222
    Thanks given
    226
    Thanks received
    259
    Rep Power
    1155
    Quote Originally Posted by TheChosenOne View Post
    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.
    This.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Purple's Avatar
    Join Date
    Feb 2010
    Age
    29
    Posts
    2,799
    Thanks given
    467
    Thanks received
    260
    Rep Power
    312
    You use packet 86 for sound? Packet 174 is sound. And just switch them back.
    Reply With Quote  
     

  5. #5  
    Registered Member Kristjan's Avatar
    Join Date
    Apr 2009
    Posts
    1,578
    Thanks given
    709
    Thanks received
    189
    Rep Power
    588
    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.
    Spoiler for Signature:
    Previously known as: 508gu
    Quote Originally Posted by SamSoft View Post
    Vouch for Korra Legit, First pin Sold So now the 9m is off the table.
    Quote Originally Posted by Zoltz View Post
    vouch, quick trade very smooth will trade w/ again.
    Quote Originally Posted by Bundy View Post
    Very Legit Seller, Bought 170k Already, Still Buying More Of Him, Cheap Prices!
    Quote Originally Posted by Bundy View Post
    Vouch, Very Good Guy, Purchased Again !
    Quote Originally Posted by eduber1 View Post
    vouch service went fast and smoothly
    Quote Originally Posted by Jinrake View Post
    vouch bru
    Reply With Quote  
     

  6. #6  
    Registered Member
    Its paris's Avatar
    Join Date
    Apr 2009
    Posts
    1,141
    Thanks given
    56
    Thanks received
    234
    Rep Power
    689
    Change your server instead of your client, unless you need to use a custom packet. But don't choose an existing one then.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [PI] Unhandled Packet Problem
    By HiImRusty in forum Help
    Replies: 1
    Last Post: 01-23-2011, 06:15 PM
  2. Emulous ItemOnItem packet problem
    By jordan641 in forum Help
    Replies: 0
    Last Post: 05-23-2010, 09:22 PM
  3. rs377d packet problem
    By Mrquarterx in forum Help
    Replies: 7
    Last Post: 01-02-2010, 06:14 PM
  4. Networking Packet problem with byte array
    By Andys1481 in forum Application Development
    Replies: 12
    Last Post: 11-11-2009, 10:40 PM
  5. Walking Packet Problem
    By Andys1481 in forum Help
    Replies: 8
    Last Post: 08-31-2009, 08:38 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •