Thread: Incoming Packets

Results 1 to 6 of 6
  1. #1 Incoming Packets 
    Registered Member
    Join Date
    Dec 2009
    Posts
    111
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    I have a question.

    How do i increase a case. Like for example case 53. (Use item on item) Because i need to add more stuff onder there but i keep getting the packet to large erroe or something.

    I tried just making a void and putting the


    Code:
    blahblahblah();
    under case 53. It compiles fine, but when i use the item on the item that i made the new void for. I get the error:


    Code:
    Exception encountered while parsing incoming packets from Bals of gold.
    java.lang.ArrayIndexOutOfBoundsException: 45621
            at client.SpiritShieldMaking(client.java:30)
            at client.parseIncomingPackets(client.java:13083)
            at client.packetProcess(client.java:19558)
            at PlayerHandler.process(PlayerHandler.java:342)
            at process.run(process.java:23)
            at java.lang.Thread.run(Unknown Source)If theres a quick explanation to this can you explain? :P I figured it would be quicker and easier to ask you rather than post a hole new topic.
    Reply With Quote  
     

  2. #2  
    Member Incoming Packets Market Banned


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    35
    Posts
    12,574
    Thanks given
    199
    Thanks received
    7,106
    Rep Power
    5000
    If you mean "Code too large", you can only have 64kb of code in one method, so you have to branch things off into other methods, for example..

    Code:
    case 53:
    item = stream.idk();
    sometingElse = stream.idk2();
    if (item == 7594) {
          method();
    }

    Attached imageAttached image
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2009
    Posts
    111
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Quote Originally Posted by Duke Lukem View Post
    If you mean "Code too large", you can only have 64kb of code in one method, so you have to branch things off into other methods, for example..

    Code:
    case 53:
    item = stream.idk();
    sometingElse = stream.idk2();
    if (item == 7594) {
          method();
    }
    Yes, thats exactly what i mean. Is there somewhere i can gain more knowlegde on doing this?
    Reply With Quote  
     

  4. #4  
    ⚓Manic-Owner⚓


    Join Date
    Nov 2007
    Posts
    2,711
    Thanks given
    47
    Thanks received
    9
    Rep Power
    650
    Quote Originally Posted by bals of gold View Post
    Yes, thats exactly what i mean. Is there somewhere i can gain more knowlegde on doing this?
    it's common sense...
    MY DISCORD:
    bluejay#1504
    Reply With Quote  
     

  5. #5  
    Registered Member
    Mister Maggot's Avatar
    Join Date
    Dec 2008
    Posts
    7,227
    Thanks given
    3,283
    Thanks received
    2,875
    Rep Power
    5000
    LOLNO It's called Google.. Google is all knowing.

    In today's world, you don't really need common sense as much as an internet connection.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Dec 2009
    Posts
    111
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Quote Originally Posted by minijesus View Post
    LOLNO It's called Google.. Google is all knowing.

    In today's world, you don't really need common sense as much as an internet connection.
    K Thanks.. I was actually doing that anyways.
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •