Thread: Stream

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1 Stream 
    Banned
    Join Date
    Apr 2011
    Posts
    801
    Thanks given
    66
    Thanks received
    84
    Rep Power
    0
    This is really getting annoying, but now I am getting a Thread-6 exception
    Code:
    Exception in thread "Thread-6" java.lang.NullPointerException
            at Model.<init>(Model.java:392)
            at Model.method462(Model.java:1023)
            at ItemDef.method201(ItemDef.java:491)
            at ItemDef.getSprite(ItemDef.java:376)
            at client.drawInterface(client.java:8988)
            at client.drawTabArea(client.java:2398)
            at client.drawGameScreen(client.java:8783)
            at client.processDrawing(client.java:9538)
            at RSApplet.run(RSApplet.java:110)
            at client.run(client.java:5266)
            at java.lang.Thread.run(Unknown Source)
    Here is line 392:
    Code:
    if (is[is.length - 1] == -1 && is[is.length - 2] == -1)
    Reply With Quote  
     

  2. #2  
    Registered Member
    Mister Maggot's Avatar
    Join Date
    Dec 2008
    Posts
    7,246
    Thanks given
    3,283
    Thanks received
    2,874
    Discord
    View profile
    Rep Power
    5000
    That's readTriByte()
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jun 2010
    Age
    24
    Posts
    2,530
    Thanks given
    544
    Thanks received
    584
    Rep Power
    411
    Anywhere under public final class Stream extends NodeSub {
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Apr 2011
    Posts
    801
    Thanks given
    66
    Thanks received
    84
    Rep Power
    0
    What? lol can you please add it into my stream and post it here I am a novice at client developing

    EDIT: I will try that thanks alex
    Reply With Quote  
     

  5. #5  
    Banned
    Join Date
    Apr 2011
    Posts
    801
    Thanks given
    66
    Thanks received
    84
    Rep Power
    0
    Now I am getting some errors

    Code:
    client.java:1543: cannot find symbol
    symbol  : variable id
    location: class ItemDef
    
            menuActionCmd1[menuActionRow] = itemDef.id;
    
                                                   ^
    client.java:1555: cannot find symbol
    symbol  : variable id
    location: class ItemDef
    
            menuActionCmd1[menuActionRow] = itemDef.id;
    
                                                   ^
    client.java:1572: cannot find symbol
    symbol  : variable id
    location: class ItemDef
    
                            menuActionCmd1[menuActionRow] = itemDef.id;
    
                                                                   ^
    client.java:1581: cannot find symbol
    symbol  : variable id
    location: class ItemDef
    
                            menuActionCmd1[menuActionRow] = itemDef.id;
    
                                                                   ^
    client.java:1592: cannot find symbol
    symbol  : variable id
    location: class ItemDef
    
            menuActionCmd1[menuActionRow] = itemDef.id;
    
                                                   ^
    client.java:1611: cannot find symbol
    symbol  : variable id
    location: class ItemDef
    
                            menuActionCmd1[menuActionRow] = itemDef.id;
    
                                                                   ^
    client.java:1634: cannot find symbol
    symbol  : variable id
    location: class ItemDef
    
                            menuActionCmd1[menuActionRow] = itemDef.id;
    
                                                                   ^
    client.java:1644: cannot find symbol
    symbol  : variable id
    location: class ItemDef
    
    menuActionCmd1[menuActionRow] = itemDef.id;
    
                                           ^
    Note: client.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    8 errors
    Press any key to continue . . .
    Sorry for asking for so much help
    Reply With Quote  
     

  6. #6  
    Registered Member
    Mister Maggot's Avatar
    Join Date
    Dec 2008
    Posts
    7,246
    Thanks given
    3,283
    Thanks received
    2,874
    Discord
    View profile
    Rep Power
    5000
    Code:
        public byte readTriByte() {
            //YOUR CODE HEAR
        }
    Reply With Quote  
     

  7. #7  
    Donator


    Join Date
    Mar 2011
    Posts
    2,362
    Thanks given
    1,193
    Thanks received
    824
    Rep Power
    856
    Code:
    public byte readTriByte() {
            final int v(int i) {
    		currentOffset += 3;
    		return (0xff & buffer[currentOffset - 3] << 16) + (0xff & buffer[currentOffset - 2] << 8) + (0xff & buffer[currentOffset - 1]);
             }
        }
    That should do it.
    Reply With Quote  
     

  8. #8  
    Banned
    Join Date
    Apr 2011
    Posts
    801
    Thanks given
    66
    Thanks received
    84
    Rep Power
    0
    Updated op
    Reply With Quote  
     

  9. #9  
    Registered Member
    Mister Maggot's Avatar
    Join Date
    Dec 2008
    Posts
    7,246
    Thanks given
    3,283
    Thanks received
    2,874
    Discord
    View profile
    Rep Power
    5000
    The variable id isn't declared anywhere in your ItemDef class.

    Note that it must be initialised as well.
    Reply With Quote  
     

  10. Thankful user:


  11. #10  
    Registered Member
    Mister Maggot's Avatar
    Join Date
    Dec 2008
    Posts
    7,246
    Thanks given
    3,283
    Thanks received
    2,874
    Discord
    View profile
    Rep Power
    5000
    Post the code that the array is initialised in.
    Reply With Quote  
     

  12. Thankful user:


Page 1 of 2 12 LastLast

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. [554] Stream
    By The Lizard King in forum Help
    Replies: 4
    Last Post: 08-25-2009, 03:56 PM
  2. Stream Help :/
    By Blair' in forum Help
    Replies: 10
    Last Post: 07-25-2009, 01:09 AM
  3. last stream help...
    By Silicity in forum Help
    Replies: 2
    Last Post: 04-25-2009, 10:03 PM
  4. Stream methods? Can someone that knows the Stream class verify?
    By ZachHaley in forum RS 503+ Client & Server
    Replies: 12
    Last Post: 01-13-2009, 10:10 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •