Thread: Welcome interface

Results 1 to 8 of 8
  1. #1 Welcome interface 
    .supersyn

    myK-'s Avatar
    Join Date
    Aug 2008
    Posts
    1,781
    Thanks given
    22
    Thanks received
    40
    Rep Power
    399
    Code:
    	public void welcomeInterface() {
    		getPA().showInterface(15244);
    		getPA().sendFrame126("Welcome to RuneScape!", 15259);
    		getPA().sendFrame126("", 15260);
    		getPA().sendFrame126(" ", 15261);
    		getPA().sendFrame126(" ", 15262);
    		getPA().sendFrame126("CLICK HERE TO PLAY", 15263);
    		getPA().sendFrame126(" ", 15264);
    		getPA().sendFrame126(" ", 15265);
    		getPA().sendFrame126(" ", 15266);
    		getPA().sendFrame126(" ", 15270); 
    	}
    The welcome interface code.


    I get this error:
    Code:
    Exception in thread "Thread-6" java.lang.NullPointerException
            at client.drawHoverBox(client.java:8091)
            at client.drawInterface(client.java:8453)
            at client.drawGameScreen(client.java:7925)
            at client.processDrawing(client.java:8766)
            at RSApplet.run(RSApplet.java:108)
            at client.run(client.java:4658)
            at java.lang.Thread.run(Unknown Source)
    It just freezes at "loading please wait" black screen.
    Reply With Quote  
     

  2. #2  
    If you read this you're gay!
    Infexis's Avatar
    Join Date
    Aug 2009
    Age
    28
    Posts
    4,557
    Thanks given
    1,158
    Thanks received
    1,174
    Rep Power
    2949
    You maybe do not have the welcome interface client sided?

    "If you can't explain it simply, you don't understand it well enough." - Albert Einstein
    Reply With Quote  
     

  3. #3  
    .supersyn

    myK-'s Avatar
    Join Date
    Aug 2008
    Posts
    1,781
    Thanks given
    22
    Thanks received
    40
    Rep Power
    399
    Do you have it? I don't think I ever had it.
    Reply With Quote  
     

  4. #4  
    Respected Member


    Join Date
    Jan 2009
    Posts
    5,743
    Thanks given
    1,162
    Thanks received
    3,603
    Rep Power
    5000
    Do Stewie's fullscreen interface tutorial
    Reply With Quote  
     

  5. #5  
    .supersyn

    myK-'s Avatar
    Join Date
    Aug 2008
    Posts
    1,781
    Thanks given
    22
    Thanks received
    40
    Rep Power
    399
    I did it. Still nothing
    Reply With Quote  
     

  6. #6  
    If you read this you're gay!
    Infexis's Avatar
    Join Date
    Aug 2009
    Age
    28
    Posts
    4,557
    Thanks given
    1,158
    Thanks received
    1,174
    Rep Power
    2949
    If you did the tutorial the interface probably has an different id, try to find it out and then try.

    "If you can't explain it simply, you don't understand it well enough." - Albert Einstein
    Reply With Quote  
     

  7. #7  
    .supersyn

    myK-'s Avatar
    Join Date
    Aug 2008
    Posts
    1,781
    Thanks given
    22
    Thanks received
    40
    Rep Power
    399
    To implement the tut he said to put this:

    Code:
        protected ScreenManager screen;
        private static final DisplayMode POSSIBLE_MODES[] = {
            new DisplayMode(800, 600, 32, 0),
            new DisplayMode(800, 600, 24, 0),
            new DisplayMode(800, 600, 16, 0),
            new DisplayMode(640, 480, 32, 0),
            new DisplayMode(640, 480, 24, 0),
            new DisplayMode(640, 480, 16, 0)
        };
            screen = new ScreenManager();
            DisplayMode displayMode =
                screen.findFirstCompatibleMode(POSSIBLE_MODES);
            screen.setFullScreen(displayMode);
    somewhere.

    Where do I put this?

    After all is done how would I still use the fullscreen just by using the same command to get interfaces out?
    Reply With Quote  
     

  8. #8  
    Donator

    Tringan's Avatar
    Join Date
    Feb 2011
    Age
    27
    Posts
    2,101
    Thanks given
    381
    Thanks received
    334
    Rep Power
    297
    Quote Originally Posted by hoOkz View Post
    To implement the tut he said to put this:

    Code:
        protected ScreenManager screen;
        private static final DisplayMode POSSIBLE_MODES[] = {
            new DisplayMode(800, 600, 32, 0),
            new DisplayMode(800, 600, 24, 0),
            new DisplayMode(800, 600, 16, 0),
            new DisplayMode(640, 480, 32, 0),
            new DisplayMode(640, 480, 24, 0),
            new DisplayMode(640, 480, 16, 0)
        };
            screen = new ScreenManager();
            DisplayMode displayMode =
                screen.findFirstCompatibleMode(POSSIBLE_MODES);
            screen.setFullScreen(displayMode);
    somewhere.

    Where do I put this?

    After all is done how would I still use the fullscreen just by using the same command to get interfaces out?
    loooool thats for fullscreen mode, not for fullscreen interfaces .
    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. Replies: 3
    Last Post: 12-25-2010, 11:18 AM
  2. Replies: 10
    Last Post: 10-29-2010, 08:35 PM
  3. [interface] 95% barbarian assault reward interface
    By Robin Spud in forum Snippets
    Replies: 39
    Last Post: 08-07-2010, 01:23 AM
  4. My lunar interface (prayer interface makeover)
    By ncarug02 in forum RS2 Client
    Replies: 27
    Last Post: 08-21-2008, 03:18 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
  •