Thread: [317 Hyperion]::interface

Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1 [317 Hyperion]::interface 
    (Official) Thanksgiver

    Arham's Avatar
    Join Date
    Jan 2013
    Age
    23
    Posts
    3,415
    Thanks given
    7,254
    Thanks received
    1,938
    Rep Power
    3905
    How would you go about using the Interface Listener to open an interface. Becuase I made a command and that crashes the server. I tried using the sendInterface method, and many other methods. How would you make a ::interface command then?

    Code:
                } else if (command.startsWith("interface")) {
                    if (args.length == 2) {
                        player.getActionSender().sendInterface(Integer.parseInt(args[1]));
                    }
                }
    ^ This causes the client to spit out a T2 error.

    Code:
    Error: T2 - 97,65,81 - 2,3199,3202 - 0,1,
    Thanks in advice,
    Arham
    Attached image
    Attached image
    Quote Originally Posted by MrClassic View Post
    Arham is the official thanker!
    List of my work here!
    Reply With Quote  
     

  2. #2  
    -Founder Off Returnofpk-


    Join Date
    Oct 2012
    Age
    28
    Posts
    655
    Thanks given
    97
    Thanks received
    211
    Rep Power
    303
    Quote Originally Posted by RelentlessPK View Post
    How would you go about using the Interface Listener to open an interface. Becuase I made a command and that crashes the server. I tried using the sendInterface method, and many other methods. How would you make a ::interface command then?

    Code:
                } else if (command.startsWith("interface")) {
                    if (args.length == 2) {
                        player.getActionSender().sendInterface(Integer.parseInt(args[1]));
                    }
                }
    ^ This causes the client to spit out a T2 error.

    Code:
    Error: T2 - 97,65,81 - 2,3199,3202 - 0,1,
    Thanks in advice,
    Arham
    wtf else if
    Code:
    } else if (command.startsWith("interface")) {
    should be like this

    Code:
    if (playerCommand.startsWith("interface")) {
    				if(args.length > 1) {
    					c.getPA().showInterface(Integer.parseInt(args[1]));
    					c.sendMessage("Showing interface id: " + args[1]);
    				} else
    					c.sendMessage("Incorrect use please use as ::interface id");
    			}
    Attached image
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member Frankie's Avatar
    Join Date
    Feb 2013
    Posts
    568
    Thanks given
    10
    Thanks received
    16
    Rep Power
    12
    Quote Originally Posted by sheepmonger View Post
    wtf else if
    Code:
    } else if (command.startswith("interface")) {
    should be like this

    Code:
    if (playercommand.startswith("interface")) {
    				if(args.length > 1) {
    					c.getpa().showinterface(integer.parseint(args[1]));
    					c.sendmessage("showing interface id: " + args[1]);
    				} else
    					c.sendmessage("incorrect use please use as ::interface id");
    			}
    lolololol.
    Reply With Quote  
     

  5. #4  
    (Official) Thanksgiver

    Arham's Avatar
    Join Date
    Jan 2013
    Age
    23
    Posts
    3,415
    Thanks given
    7,254
    Thanks received
    1,938
    Rep Power
    3905
    Quote Originally Posted by sheepmonger View Post
    wtf else if
    Code:
    } else if (command.startsWith("interface")) {
    should be like this

    Code:
    if (playerCommand.startsWith("interface")) {
    				if(args.length > 1) {
    					c.getPA().showInterface(Integer.parseInt(args[1]));
    					c.sendMessage("Showing interface id: " + args[1]);
    				} else
    					c.sendMessage("Incorrect use please use as ::interface id");
    			}
    You talk to me as if I know nothing. Obviously the else if is for the long chain of if statements in the CommandPacketHandler...
    Attached image
    Attached image
    Quote Originally Posted by MrClassic View Post
    Arham is the official thanker!
    List of my work here!
    Reply With Quote  
     

  6. #5  
    Registered Member RS From The 00s's Avatar
    Join Date
    Oct 2013
    Age
    34
    Posts
    169
    Thanks given
    63
    Thanks received
    26
    Rep Power
    1
    Quote Originally Posted by sheepmonger View Post
    wtf else if
    Code:
    } else if (command.startsWith("interface")) {
    should be like this

    Code:
    if (playerCommand.startsWith("interface")) {
    				if(args.length > 1) {
    					c.getPA().showInterface(Integer.parseInt(args[1]));
    					c.sendMessage("Showing interface id: " + args[1]);
    				} else
    					c.sendMessage("Incorrect use please use as ::interface id");
    			}
    that wouldn't give you a malformed packet 97 error. Silly PI user.

    Code:
    } else if (command.startsWith("interface")) {
            int interface = args[1];
            player.getActionSender().sendInterface(Integer.parseInt(interface));
    }
    Just try that. If not then try replacing the ActionSender sendInterface() method from the original Hyperion (you definitely using the 317 version)?
    Reply With Quote  
     

  7. Thankful user:


  8. #6  
    (Official) Thanksgiver

    Arham's Avatar
    Join Date
    Jan 2013
    Age
    23
    Posts
    3,415
    Thanks given
    7,254
    Thanks received
    1,938
    Rep Power
    3905
    Quote Originally Posted by RS From The 00s View Post
    that wouldn't give you a malformed packet 97 error. Silly PI user.

    Code:
    } else if (command.startsWith("interface")) {
            int interface = args[1];
            player.getActionSender().sendInterface(Integer.parseInt(interface));
    }
    Just try that. If not then try replacing the ActionSender sendInterface() method from the original Hyperion (you definitely using the 317 version)?
    Well, the sendInterface method is not in the original Hyperion. He (Graham) uses Containers to open interfaces.

    Let me try yours out and come back to you.

    P.S: Yes, the 317 version (revision 276 of Hyperion).
    Attached image
    Attached image
    Quote Originally Posted by MrClassic View Post
    Arham is the official thanker!
    List of my work here!
    Reply With Quote  
     

  9. #7  
    Banned
    Join Date
    Oct 2013
    Posts
    1
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    idiot
    Reply With Quote  
     

  10. #8  
    (Official) Thanksgiver

    Arham's Avatar
    Join Date
    Jan 2013
    Age
    23
    Posts
    3,415
    Thanks given
    7,254
    Thanks received
    1,938
    Rep Power
    3905
    The piece of code you provided me did not work. It still spits the T2 error out.

    Code:
    Error: T2 - 97,65,81 - 2,3199,3202 - 0,1,
    Attached image
    Attached image
    Quote Originally Posted by MrClassic View Post
    Arham is the official thanker!
    List of my work here!
    Reply With Quote  
     

  11. #9  
    Registered Member RS From The 00s's Avatar
    Join Date
    Oct 2013
    Age
    34
    Posts
    169
    Thanks given
    63
    Thanks received
    26
    Rep Power
    1
    Go to ActionSender and copy/paste all the sendInterface methods.
    Reply With Quote  
     

  12. Thankful user:


  13. #10  
    (Official) Thanksgiver

    Arham's Avatar
    Join Date
    Jan 2013
    Age
    23
    Posts
    3,415
    Thanks given
    7,254
    Thanks received
    1,938
    Rep Power
    3905
    Quote Originally Posted by RS From The 00s View Post
    It might be player.getActionSender().sendInterface(Integer.par seInt(interface), true); For 474 anyway, it has a boolean. Is the sendInterface method definitely packet 97 for 317?
    Dont worry, this 317 Hyperion is just a fun little thing for my pass time. I use 474 (RS2-Server ftw) and really was confused when I didint see that boolean either haha.

    The interface packet is packet 97 in 317, yes.

    P.S: You already know me on Mopar. I'm the person who said:
    After I started using 474, everyone started using it...
    Attached image
    Attached image
    Quote Originally Posted by MrClassic View Post
    Arham is the official thanker!
    List of my work here!
    Reply With Quote  
     

Page 1 of 3 123 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. Real 317 welcome interface
    By Luke in forum Snippets
    Replies: 12
    Last Post: 10-06-2009, 09:59 PM
  2. 317 style interface in 562?
    By James Mason in forum RS 503+ Client & Server
    Replies: 5
    Last Post: 09-29-2009, 04:18 PM
  3. Replies: 2
    Last Post: 09-27-2009, 06:17 PM
  4. [317] Shop Interface
    By iarespiff in forum Help
    Replies: 9
    Last Post: 08-08-2009, 04:30 AM
  5. Almost ALL 317-377 interface ID's
    By SlIpKn0t LoV3r in forum Configuration
    Replies: 29
    Last Post: 02-06-2009, 11:16 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
  •