Thread: Why am I getting packet errors [126 - sendMessage]

Results 1 to 8 of 8
  1. #1 Why am I getting packet errors [126 - sendMessage] 
    Banned

    Join Date
    Jul 2011
    Age
    30
    Posts
    745
    Thanks given
    2,207
    Thanks received
    451
    Rep Power
    0
    Don't know why this is giving out packet errors :\

    It's the quest tab that's causing the shitt's
    Code:
    	public void handleLoginText() {
    		/** QUEST TAB NAMES **/
    		//sendFrame126("", ####); // 
    		//sendFrame126("", ####); // 
    		//sendFrame126("", ####); // 
    		//sendFrame126("", ####); // 
    		//sendFrame126("", ####); // 
    		sendFrame126("Information", 640); // 
    		sendFrame126("" +Config.SERVER_NAME+ "", 663); // 
    		sendFrame126("Server Information", 7332); // 
    		sendFrame126("Players Online:@whi@ " +PlayerHandler.getPlayerCount(), 7333); // 
    		sendFrame126("Time in-game:@whi@ " +c.getPlaytime(), 7334); // 
    		sendFrame126("Staff Members", 7336); // 
    		sendFrame126("Official Rules", 7383); // 
    		sendFrame126("In-Game", 7339); // 
    		sendFrame126("Task:@whi@ " +NPCHandler.getNpcListName(c.slayerTask), 7338); // 
    		sendFrame126("Amount:@whi@ ", 7340); // 
    		sendFrame126("P.C.P:@whi@ " +c.pcPoints, 7346); // 
    		sendFrame126("M.A.P" +c.magePoints, 7341); // 
    		sendFrame126("Kills:@whi@ " +c.KC, 7342); // 
    		sendFrame126("Deaths:@whi@ " +c.DC, 7337); // 
    		
    		sendFrame126("Donator", 7343); // 
    		sendFrame126("Teleport", 7335); // 
    		sendFrame126("Options", 7344); // 
    		sendFrame126("Vetran", 7345); // 
    		sendFrame126("Teleport", 7347); // 
    		sendFrame126("Options", 7348); // 
    		sendFrame126("Miscellaneous", 682); // 
    		sendFrame126("Home Page", 12772); // 
    		sendFrame126("Vote Page", 637); // 
    		sendFrame126("Donation Page", 7352); // 
    		sendFrame126("Forum Page", 17510); // 
    		sendFrame126("Staff", 7350); // 
    		sendFrame126("Teleport", 7351); // 
    		sendFrame126("Options", 13356); //
    		
    		/** TELEPORT NAMES **/
    		c.getPA().sendFrame126("Monster Teleport", 13037);
    		c.getPA().sendFrame126("Mini-Games Teleport", 13047);
    		c.getPA().sendFrame126("Boss Teleport", 13055);
    		c.getPA().sendFrame126("PKing Teleport", 13063);
    		c.getPA().sendFrame126("Skill Teleport", 13071);
    		c.getPA().sendFrame126("City Teleport", 1454);
    		/* TOOL TIPS */
    		c.getPA().sendFrame126("Monster Teleport", 1300);
    		c.getPA().sendFrame126("Mini-game Teleport", 1325);
    		c.getPA().sendFrame126("Boss Teleport", 1350);
    		c.getPA().sendFrame126("PK'ing Teleport", 1382);
    		c.getPA().sendFrame126("Skill Teleport", 1415);
    		c.getPA().sendFrame126("City Teleport", 13081);
    		c.getPA().sendFrame126("Coming Soon", 7457);
    	}
    I'll give rep and all my love for a verdict, am not getting errors when compiling

    TYz
    Reply With Quote  
     

  2. #2  
    🍕

    Linus's Avatar
    Join Date
    Dec 2008
    Age
    31
    Posts
    2,779
    Thanks given
    974
    Thanks received
    411
    Rep Power
    0
    Don't use that, use it client sided. Figuring as you have a PI-type of server you would have a REF client

    RSInterface
    Code:
    	public static void questTab(RSFont[] TDA){
    		RSInterface Interface = addInterface(638);
    		setChildren(4, Interface);
    		addText(29155, "Info", 0xFF981F, false, true, 52, TDA, 2);
    		AddInterfaceButton(29156, 1, "Interfaces/QuestTab/QUEST", 18, 18, "Swap to Command List!", 1);
    		addSprite(29157, 0, "Interfaces/QuestTab/QUEST");
    		setBounds(29155, 10, 5, 0, Interface);
    		setBounds(29156, 165, 5, 1, Interface);
    		setBounds(29157, 3, 24, 2, Interface);
    		setBounds(29160, 5, 29, 3, Interface);
    		Interface = addInterface(29160);
    		Interface.height = 214;
    		Interface.width = 165;
    		Interface.scrollMax = 400;
    		Interface.newScroller = false;
    		setChildren(105, Interface);
    		addHoverText(29161, "Developed by: Linus", "After two whole years we're finally done!", TDA, 0,0x4095DB, false, true, 150);
    		addHoverText(29162, "Owner(s): Linus", "Skype: Activiton", TDA, 0,0x4095DB, false, true, 150);
    		addHoverText(29163, "Dont forget to vote!", "This brings more players to the server!", TDA, 0,0x4095DB, false, true, 150);
    		addHoverText(29164, "Sign up on our forum!", "Enhances chances for getting staff.", TDA, 0,0x4095DB, false, true, 150);
    		//addHoverText(29165, "Suggest an update!", "Not to be abused, please only request once.", TDA, 0,0x4095DB, false, true, 150);
    		addHoverText(663, "","nope", TDA,0,0x000ff, false, true, 150);
    		setBounds(29161, 8, 4, 0, Interface);
    		setBounds(29162, 8, 19, 1, Interface);
    		setBounds(29163, 8, 34, 2, Interface);
    		setBounds(29164, 8, 49, 3, Interface);
    		//setBounds(29165, 8, 64, 3, Interface);
    		setBounds(663, 4, 90, 4, Interface);
    		int Ypos = 83;
    		int frameID = 5;
    		for(int iD = 29165; iD <= 29264;iD++){
    			addHoverText(iD, "", "View Quest"/*"View Quest Journal, "+iD*/, TDA, 0, 0xff0000, false, true, 150);
    			setBounds(iD, 8, Ypos, frameID, Interface);
    			frameID++;
    			Ypos += 15;
    			Ypos++;
    		}
    		Interface = addInterface(29265);
    		try {
    			setChildren(4, Interface);
    			addText(29266, "Command list", 0xFF981F, false, true, -1, TDA, 2);
    			AddInterfaceButton(29267, 2, "Interfaces/QuestTab/QUEST", 18, 18, "Swap to Quest Diary", 1);
    			addSprite(29269, 0, "Interfaces/QuestTab/QUEST");
    			setBounds(29266, 10, 5, 0, Interface);
    			setBounds(29267, 165, 5, 1, Interface);
    			setBounds(29269, 3, 24, 2, Interface);
    			setBounds(29268, 5, 29, 3, Interface);
    			Interface = addInterface(29268);
    			Interface.height = 214;
    			Interface.width = 165;
    			Interface.scrollMax = 400;
    			Interface.newScroller = false;
    			setChildren(20, Interface);
    			setBounds(29295, 8, 4, 0, Interface);
    			setBounds(29296, 8, 16, 1, Interface);
    			setBounds(29297, 8, 29, 2, Interface);
    			setBounds(29298, 8, 42, 3, Interface);
    			setBounds(29299, 8, 54, 4, Interface);
    			setBounds(29300, 8, 66, 5, Interface);
    			setBounds(29301, 8, 78, 6, Interface);
    			setBounds(29302, 8, 90, 7, Interface);
    			setBounds(29303, 8, 102, 8, Interface);
    			setBounds(29304, 8, 114, 9, Interface);
    			setBounds(29305, 8, 126, 10, Interface);
    			setBounds(29306, 8, 138, 11, Interface);
    			setBounds(29307, 8, 150, 12, Interface);
    			setBounds(29308, 8, 162, 13, Interface);
    			setBounds(29309, 8, 174, 14, Interface);
    			setBounds(29310, 8, 186, 15, Interface);
    			setBounds(29311, 8, 198, 16, Interface);
    			setBounds(29312, 8, 210, 17, Interface);
    			setBounds(29313, 8, 222, 18, Interface);
    			setBounds(29314, 8, 234, 19, Interface);
    			addHoverText(29295, "Home teleport", "Teleport", TDA, 0, 0xFF981F, false, true, 150);
    			addHoverText(29296, "Train teleport", "Teleport", TDA, 0, 0xFF981F, false, true, 150);
    			addHoverText(29297, "Skilling teleport", "Teleport", TDA, 0, 0xFF981F, false, true, 150);
    			addHoverText(29298, "Shops teleport", "Teleport", TDA, 0, 0xFF981F, false, true, 150);
    			addHoverText(29299, "Food", "Gives you some free Food.", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29300, "Potions", "Gives you some free Potions.", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29301, "Set Spellbook", "Choose the spellbook you wish to use.", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29302, "", "", TDA, 0, 0xFF981F, false, true, 150);
    			addHoverText(29303, "Quick runes", "Click and spawn, quite expensive though.", TDA, 0, 0xFF981F, false, true, 150);
    			addHoverText(29304, "100 Runes of each", "Buy for 100,000gp", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29305, "Barrage Runes (10 charges)", "Buy for 30,000gp", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29306, "Vengeance Runes (10 charges)", "Buy for 45,000gp", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29307, "", "", TDA, 0, 0xFF981F, false, true, 150);
    			addHoverText(29308, "", "", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29309, "", "", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29310, "", "", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29311, "", "", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29312, "", "", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29313, "", "", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29314, "", "", TDA, 0, 0xff0000, false, true, 150);
    			} catch(Exception e){
    				e.printStackTrace();
    		}	
    	}

    ╠╬╣
    ╦╦
    ╠╬╬╬╣
    ╠╬╬╬╬╬╬╣
    ╠╬╬╬╬╬╬╣
    ╚╩╩╩╩╩╩╝

    ╠╬╬╬╣



    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Sep 2008
    Posts
    4,833
    Thanks given
    894
    Thanks received
    1,439
    Rep Power
    2924
    Also how are you doing this? Is is being processed ? or is it in the initialize method?
    Might give your server an easier time putting it in initialize
    Reply With Quote  
     

  4. #4  
    Registered Member
    thim slug's Avatar
    Join Date
    Nov 2010
    Age
    28
    Posts
    4,132
    Thanks given
    1,077
    Thanks received
    1,137
    Rep Power
    5000
    T1 or T2? And why do you have two sendFrame126 methods?
    Reply With Quote  
     

  5. #5  
    Registered Member
    Whired's Avatar
    Join Date
    Aug 2007
    Posts
    2,126
    Thanks given
    238
    Thanks received
    500
    Rep Power
    822
    Would it make too much sense to post a stack trace?

    Not meaning to be a dick I'm just legitimately shocked that posting the error doesn't seem necessary..
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Jul 2011
    Age
    30
    Posts
    745
    Thanks given
    2,207
    Thanks received
    451
    Rep Power
    0
    Quote Originally Posted by Herpus Derpus View Post
    Don't use that, use it client sided. Figuring as you have a PI-type of server you would have a REF client

    RSInterface
    Code:
    	public static void questTab(RSFont[] TDA){
    		RSInterface Interface = addInterface(638);
    		setChildren(4, Interface);
    		addText(29155, "Info", 0xFF981F, false, true, 52, TDA, 2);
    		AddInterfaceButton(29156, 1, "Interfaces/QuestTab/QUEST", 18, 18, "Swap to Command List!", 1);
    		addSprite(29157, 0, "Interfaces/QuestTab/QUEST");
    		setBounds(29155, 10, 5, 0, Interface);
    		setBounds(29156, 165, 5, 1, Interface);
    		setBounds(29157, 3, 24, 2, Interface);
    		setBounds(29160, 5, 29, 3, Interface);
    		Interface = addInterface(29160);
    		Interface.height = 214;
    		Interface.width = 165;
    		Interface.scrollMax = 400;
    		Interface.newScroller = false;
    		setChildren(105, Interface);
    		addHoverText(29161, "Developed by: Linus", "After two whole years we're finally done!", TDA, 0,0x4095DB, false, true, 150);
    		addHoverText(29162, "Owner(s): Linus", "Skype: Activiton", TDA, 0,0x4095DB, false, true, 150);
    		addHoverText(29163, "Dont forget to vote!", "This brings more players to the server!", TDA, 0,0x4095DB, false, true, 150);
    		addHoverText(29164, "Sign up on our forum!", "Enhances chances for getting staff.", TDA, 0,0x4095DB, false, true, 150);
    		//addHoverText(29165, "Suggest an update!", "Not to be abused, please only request once.", TDA, 0,0x4095DB, false, true, 150);
    		addHoverText(663, "","nope", TDA,0,0x000ff, false, true, 150);
    		setBounds(29161, 8, 4, 0, Interface);
    		setBounds(29162, 8, 19, 1, Interface);
    		setBounds(29163, 8, 34, 2, Interface);
    		setBounds(29164, 8, 49, 3, Interface);
    		//setBounds(29165, 8, 64, 3, Interface);
    		setBounds(663, 4, 90, 4, Interface);
    		int Ypos = 83;
    		int frameID = 5;
    		for(int iD = 29165; iD <= 29264;iD++){
    			addHoverText(iD, "", "View Quest"/*"View Quest Journal, "+iD*/, TDA, 0, 0xff0000, false, true, 150);
    			setBounds(iD, 8, Ypos, frameID, Interface);
    			frameID++;
    			Ypos += 15;
    			Ypos++;
    		}
    		Interface = addInterface(29265);
    		try {
    			setChildren(4, Interface);
    			addText(29266, "Command list", 0xFF981F, false, true, -1, TDA, 2);
    			AddInterfaceButton(29267, 2, "Interfaces/QuestTab/QUEST", 18, 18, "Swap to Quest Diary", 1);
    			addSprite(29269, 0, "Interfaces/QuestTab/QUEST");
    			setBounds(29266, 10, 5, 0, Interface);
    			setBounds(29267, 165, 5, 1, Interface);
    			setBounds(29269, 3, 24, 2, Interface);
    			setBounds(29268, 5, 29, 3, Interface);
    			Interface = addInterface(29268);
    			Interface.height = 214;
    			Interface.width = 165;
    			Interface.scrollMax = 400;
    			Interface.newScroller = false;
    			setChildren(20, Interface);
    			setBounds(29295, 8, 4, 0, Interface);
    			setBounds(29296, 8, 16, 1, Interface);
    			setBounds(29297, 8, 29, 2, Interface);
    			setBounds(29298, 8, 42, 3, Interface);
    			setBounds(29299, 8, 54, 4, Interface);
    			setBounds(29300, 8, 66, 5, Interface);
    			setBounds(29301, 8, 78, 6, Interface);
    			setBounds(29302, 8, 90, 7, Interface);
    			setBounds(29303, 8, 102, 8, Interface);
    			setBounds(29304, 8, 114, 9, Interface);
    			setBounds(29305, 8, 126, 10, Interface);
    			setBounds(29306, 8, 138, 11, Interface);
    			setBounds(29307, 8, 150, 12, Interface);
    			setBounds(29308, 8, 162, 13, Interface);
    			setBounds(29309, 8, 174, 14, Interface);
    			setBounds(29310, 8, 186, 15, Interface);
    			setBounds(29311, 8, 198, 16, Interface);
    			setBounds(29312, 8, 210, 17, Interface);
    			setBounds(29313, 8, 222, 18, Interface);
    			setBounds(29314, 8, 234, 19, Interface);
    			addHoverText(29295, "Home teleport", "Teleport", TDA, 0, 0xFF981F, false, true, 150);
    			addHoverText(29296, "Train teleport", "Teleport", TDA, 0, 0xFF981F, false, true, 150);
    			addHoverText(29297, "Skilling teleport", "Teleport", TDA, 0, 0xFF981F, false, true, 150);
    			addHoverText(29298, "Shops teleport", "Teleport", TDA, 0, 0xFF981F, false, true, 150);
    			addHoverText(29299, "Food", "Gives you some free Food.", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29300, "Potions", "Gives you some free Potions.", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29301, "Set Spellbook", "Choose the spellbook you wish to use.", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29302, "", "", TDA, 0, 0xFF981F, false, true, 150);
    			addHoverText(29303, "Quick runes", "Click and spawn, quite expensive though.", TDA, 0, 0xFF981F, false, true, 150);
    			addHoverText(29304, "100 Runes of each", "Buy for 100,000gp", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29305, "Barrage Runes (10 charges)", "Buy for 30,000gp", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29306, "Vengeance Runes (10 charges)", "Buy for 45,000gp", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29307, "", "", TDA, 0, 0xFF981F, false, true, 150);
    			addHoverText(29308, "", "", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29309, "", "", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29310, "", "", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29311, "", "", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29312, "", "", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29313, "", "", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29314, "", "", TDA, 0, 0xff0000, false, true, 150);
    			} catch(Exception e){
    				e.printStackTrace();
    		}	
    	}
    Would prefer client sided, but I wouldn't have a clue on how to add childs and action ids

    Quote Originally Posted by Faris View Post
    Also how are you doing this? Is is being processed ? or is it in the initialize method?
    Might give your server an easier time putting it in initialize
    processed, never thought about initialized

    Quote Originally Posted by $am View Post
    T1 or T2? And why do you have two sendFrame126 methods?
    t1 and I do not know :\ I'll remove the second metod from player ass and convert the rest to client
    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    Sep 2008
    Posts
    4,833
    Thanks given
    894
    Thanks received
    1,439
    Rep Power
    2924
    Quote Originally Posted by Ambient View Post
    Would prefer client sided, but I wouldn't have a clue on how to add childs and action ids



    processed, never thought about initialized



    t1 and I do not know :\ I'll remove the second metod from player ass and convert the rest to client
    I highly recommend Initialising it, It does the exact same thing But without it being looped every 600ms, And i wouldent be surprised if it fixed your problem either
    "Know thy self, know thy enemy. A thousand battles, a thousand victories." - Sun Tzu
    GitHub: https://github.com/Faris-Mckay
    Reply With Quote  
     

  8. #8  
    Banned

    Join Date
    Jul 2011
    Age
    30
    Posts
    745
    Thanks given
    2,207
    Thanks received
    451
    Rep Power
    0
    Quote Originally Posted by Faris View Post
    I highly recommend Initialising it, It does the exact same thing But without it being looped every 600ms, And i wouldent be surprised if it fixed your problem either
    Now to think of a way of doing it
    Might use it like its being done already

    /Thread
    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. [562] SendMessage Packet
    By dragonkk in forum Configuration
    Replies: 13
    Last Post: 06-30-2011, 05:43 AM
  2. Help with SendMessage packet?
    By Brandyn in forum Help
    Replies: 4
    Last Post: 05-16-2010, 06:23 PM
  3. About the 459 sendMessage packet
    By blakeman8192 in forum Help
    Replies: 14
    Last Post: 03-28-2010, 06:32 PM
  4. Tierd of Sendmessage errors on delta
    By arrowzftw in forum Tutorials
    Replies: 11
    Last Post: 08-09-2009, 07:32 PM
  5. 474 sendMessage packet
    By +Jedi+ in forum Tutorials
    Replies: 38
    Last Post: 07-16-2008, 10:07 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
  •