Thread: .jar from eclipse has weird common bug

Results 1 to 9 of 9
  1. #1 .jar from eclipse has weird common bug 
    Registered Member
    Join Date
    Jan 2015
    Posts
    15
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Hey, so I just figured out that I could compress my client into a .jar, and after I got everything working smoothly and running, I finally got in-game through the .jar and when I right click on things, it's as if I am using left click, so there is no right clicking at all in-game. Any ideas? While waiting I plan to check some settings within the client.java, and constants. Thanks
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Nov 2014
    Posts
    611
    Thanks given
    180
    Thanks received
    156
    Rep Power
    0
    Tell us step by step how you jarred your client.

    Also, did you check if it works in the original client?

    Note that there's also a option ingame that allows you to change your left click into right click.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jan 2015
    Posts
    15
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Thrallix View Post
    Tell us step by step how you jarred your client.

    Also, did you check if it works in the original client?

    Note that there's also a option ingame that allows you to change your left click into right click.
    Followed this to a T: https://www.rune-server.ee/runescape...g-eclipse.html

    Basically export client to a JAR file, set classpath and project, then did manifest screen and lastly set the main class. Did that all how I would run it (Yes, running it within eclipse and externally within just the run.bat in the client has it working right click and left click.) and it still didn't work.

    Additionally, I can't use that click button setting for some reason! :/
    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
    Quote Originally Posted by ZeusFlare View Post
    Followed this to a T: https://www.rune-server.ee/runescape...g-eclipse.html

    Basically export client to a JAR file, set classpath and project, then did manifest screen and lastly set the main class. Did that all how I would run it (Yes, running it within eclipse and externally within just the run.bat in the client has it working right click and left click.) and it still didn't work.

    Additionally, I can't use that click button setting for some reason! :/
    https://www.rune-server.ee/runescape...-java-9-a.html do this
    Reply With Quote  
     

  5. Thankful user:


  6. #5  
    Banned
    Join Date
    Dec 2017
    Posts
    47
    Thanks given
    47
    Thanks received
    30
    Rep Power
    0
    Quote Originally Posted by ZeusFlare View Post
    Hey, so I just figured out that I could compress my client into a .jar, and after I got everything working smoothly and running, I finally got in-game through the .jar and when I right click on things, it's as if I am using left click, so there is no right clicking at all in-game. Any ideas? While waiting I plan to check some settings within the client.java, and constants. Thanks
    try and use a lower verison of java when you compile / jar , as java 9 is still not used that much if you really need to use Java 9 through use

    https://www.rune-server.ee/runescape...-java-9-a.html, as posted by Stuart but using a lower version of Java 9, would be the best thing
    Reply With Quote  
     

  7. #6  
    Blurite

    Corey's Avatar
    Join Date
    Feb 2012
    Age
    26
    Posts
    1,491
    Thanks given
    1,245
    Thanks received
    1,729
    Rep Power
    5000
    Quote Originally Posted by Abyssal_ View Post
    try and use a lower verison of java when you compile / jar , as java 9 is still not used that much if you really need to use Java 9 through use

    https://www.rune-server.ee/runescape...-java-9-a.html, as posted by Stuart but using a lower version of Java 9, would be the best thing
    If they just use a lower version of java then any players who have java 9 or above won't be able to right click.
    I've seen a lot of people ignore the error and downgrade to java 8 instead of taking 30 seconds to fix the issue. Don't be one of those people
    Attached image
    Reply With Quote  
     

  8. #7  
    Banned
    Join Date
    Dec 2017
    Posts
    47
    Thanks given
    47
    Thanks received
    30
    Rep Power
    0
    Quote Originally Posted by Tesla View Post
    If they just use a lower version of java then any players who have java 9 or above won't be able to right click.
    I've seen a lot of people ignore the error and downgrade to java 8 instead of taking 30 seconds to fix the issue. Don't be one of those people
    I mean I personally have the fix in myself but a lot of people seem resistant to going to java 9
    Reply With Quote  
     

  9. #8  
    Registered Member
    Join Date
    Jan 2015
    Posts
    15
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Tesla View Post
    If they just use a lower version of java then any players who have java 9 or above won't be able to right click.
    I've seen a lot of people ignore the error and downgrade to java 8 instead of taking 30 seconds to fix the issue. Don't be one of those people
    I'm using Vencillio source + client, where is this file? I've searched everywhere lol.

    Quote Originally Posted by Stuart View Post
    I tried following this, but Vencillio is different. Here is the program I have for mouseclicks

    Code:
    public int clickType;
    	public final int LEFT = 0;
    	public final int RIGHT = 1;
    	public final int DRAG = 2;
    	public final int RELEASED = 3;
    	public final int MOVE = 4;
    	public int releasedX;
    	public int releasedY;
    	public boolean mouseWheelDown;
    
    	public final void mousePressed(MouseEvent e) {
    		int x = e.getX();
    		int y = e.getY();
    		int type = e.getButton();
    		if (gameFrame != null) {
    			Insets insets = gameFrame.getInsets();
    			x -= insets.left;// 4
    			y -= insets.top;// 22
    		}
    		idleTime = 0;
    		clickX = x;
    		clickY = y;
    		aLong29 = System.currentTimeMillis();
    		if (type == 2) {
    			mouseWheelDown = true;
    			mouseWheelX = x;
    			mouseWheelY = y;
    			return;
    		}
    		if (e.isMetaDown()) {
    			clickType = RIGHT;
    			clickMode1 = 2; //was 2
    			clickMode2 = 2;
    		} else {
    			clickType = LEFT;
    			clickMode1 = 1; //was 1
    			clickMode2 = 1;
    		}
    	}
    
    	public final void mouseReleased(MouseEvent e) {
    		int x = e.getX();
    		int y = e.getY();
    		if (gameFrame != null) {
    			Insets insets = gameFrame.getInsets();
    			x -= insets.left;// 4
    			y -= insets.top;// 22
    		}
    		releasedX = x;
    		releasedY = y;
    		idleTime = 0;
    		clickMode2 = 0;
    		clickType = RELEASED;
    		mouseWheelDown = false;
    		Client.instance.isExtendingChatArea = false;
    	}
    
    	public final void mouseClicked(MouseEvent mouseevent) {
    	}
    
    	public final void mouseEntered(MouseEvent mouseevent) {
    	}
    
    	public final void mouseExited(MouseEvent mouseevent) {
    		idleTime = 0;
    		mouseX = -1;
    		mouseY = -1;
    	}
    
    	public int mouseWheelX;
    	public int mouseWheelY;
    
    	public final void mouseDragged(MouseEvent e) {
    		int x = e.getX();
    		int y = e.getY();
    		if (gameFrame != null) {
    			Insets insets = gameFrame.getInsets();
    			x -= insets.left;
    			y -= insets.top;
    		}
    	     if (System.currentTimeMillis() - aLong29 >= 250L || Math.abs(saveClickX - x) > 5 || Math.abs(saveClickY - y) > 5) {
    	         idleTime = 0;
    	         mouseX = x;
    	         mouseY = y;
    	     }
    		if (mouseWheelDown) {
    			y = mouseWheelX - e.getX();
    			int k = mouseWheelY - e.getY();
    			mouseWheelDragged(y, -k);
    			mouseWheelX = e.getX();
    			mouseWheelY = e.getY();
    			return;
    		}
    		idleTime = 0;
    		mouseX = x;
    		mouseY = y;
    		clickType = DRAG;
    	}
    
    	void mouseWheelDragged(int param1, int param2) {
    
    	}
    
    	public final void mouseMoved(MouseEvent mouseevent) {
    		int x = mouseevent.getX();
    		int y = mouseevent.getY();
    		if (gameFrame != null) {
    			Insets insets = gameFrame.getInsets();
    			x -= insets.left;// 4
    			y -= insets.top;// 22
    		}
    	     if (System.currentTimeMillis() - aLong29 >= 250L || Math.abs(saveClickX - x) > 5 || Math.abs(saveClickY - y) > 5) {
    	         idleTime = 0;
    	         mouseX = x;
    	         mouseY = y;
    	     }
    		idleTime = 0;
    		mouseX = x;
    		mouseY = y;
    		clickType = MOVE;
    	}
    Reply With Quote  
     

  10. #9  
    Registered Member
    Join Date
    Dec 2017
    Posts
    1
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Infrared View Post
    I'm using Vencillio source + client, where is this file? I've searched everywhere lol.



    I tried following this, but Vencillio is different. Here is the program I have for mouseclicks

    Code:
    public int clickType;
    	public final int LEFT = 0;
    	public final int RIGHT = 1;
    	public final int DRAG = 2;
    	public final int RELEASED = 3;
    	public final int MOVE = 4;
    	public int releasedX;
    	public int releasedY;
    	public boolean mouseWheelDown;
    
    	public final void mousePressed(MouseEvent e) {
    		int x = e.getX();
    		int y = e.getY();
    		int type = e.getButton();
    		if (gameFrame != null) {
    			Insets insets = gameFrame.getInsets();
    			x -= insets.left;// 4
    			y -= insets.top;// 22
    		}
    		idleTime = 0;
    		clickX = x;
    		clickY = y;
    		aLong29 = System.currentTimeMillis();
    		if (type == 2) {
    			mouseWheelDown = true;
    			mouseWheelX = x;
    			mouseWheelY = y;
    			return;
    		}
    		if (e.isMetaDown()) {
    			clickType = RIGHT;
    			clickMode1 = 2; //was 2
    			clickMode2 = 2;
    		} else {
    			clickType = LEFT;
    			clickMode1 = 1; //was 1
    			clickMode2 = 1;
    		}
    	}
    
    	public final void mouseReleased(MouseEvent e) {
    		int x = e.getX();
    		int y = e.getY();
    		if (gameFrame != null) {
    			Insets insets = gameFrame.getInsets();
    			x -= insets.left;// 4
    			y -= insets.top;// 22
    		}
    		releasedX = x;
    		releasedY = y;
    		idleTime = 0;
    		clickMode2 = 0;
    		clickType = RELEASED;
    		mouseWheelDown = false;
    		Client.instance.isExtendingChatArea = false;
    	}
    
    	public final void mouseClicked(MouseEvent mouseevent) {
    	}
    
    	public final void mouseEntered(MouseEvent mouseevent) {
    	}
    
    	public final void mouseExited(MouseEvent mouseevent) {
    		idleTime = 0;
    		mouseX = -1;
    		mouseY = -1;
    	}
    
    	public int mouseWheelX;
    	public int mouseWheelY;
    
    	public final void mouseDragged(MouseEvent e) {
    		int x = e.getX();
    		int y = e.getY();
    		if (gameFrame != null) {
    			Insets insets = gameFrame.getInsets();
    			x -= insets.left;
    			y -= insets.top;
    		}
    	     if (System.currentTimeMillis() - aLong29 >= 250L || Math.abs(saveClickX - x) > 5 || Math.abs(saveClickY - y) > 5) {
    	         idleTime = 0;
    	         mouseX = x;
    	         mouseY = y;
    	     }
    		if (mouseWheelDown) {
    			y = mouseWheelX - e.getX();
    			int k = mouseWheelY - e.getY();
    			mouseWheelDragged(y, -k);
    			mouseWheelX = e.getX();
    			mouseWheelY = e.getY();
    			return;
    		}
    		idleTime = 0;
    		mouseX = x;
    		mouseY = y;
    		clickType = DRAG;
    	}
    
    	void mouseWheelDragged(int param1, int param2) {
    
    	}
    
    	public final void mouseMoved(MouseEvent mouseevent) {
    		int x = mouseevent.getX();
    		int y = mouseevent.getY();
    		if (gameFrame != null) {
    			Insets insets = gameFrame.getInsets();
    			x -= insets.left;// 4
    			y -= insets.top;// 22
    		}
    	     if (System.currentTimeMillis() - aLong29 >= 250L || Math.abs(saveClickX - x) > 5 || Math.abs(saveClickY - y) > 5) {
    	         idleTime = 0;
    	         mouseX = x;
    	         mouseY = y;
    	     }
    		idleTime = 0;
    		mouseX = x;
    		mouseY = y;
    		clickType = MOVE;
    	}

    Hey man if you need help fixing your right click please message me and I can help you fix it.I just fixed it on my source after I updated to Java 9 (was forced to).
    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. Weird Hair Bug?
    By Incipio in forum Help
    Replies: 7
    Last Post: 11-06-2011, 11:10 PM
  2. Interesting and weird model bug
    By waffl3z0wnu in forum Help
    Replies: 2
    Last Post: 01-21-2010, 01:06 AM
  3. Open Jar from button
    By Ishana in forum Application Development
    Replies: 1
    Last Post: 06-22-2009, 06:41 PM
  4. RuneScape.jar from 31-10-06.
    By Brown in forum Requests
    Replies: 17
    Last Post: 05-19-2009, 04:32 PM
  5. Fix a common bug/glitch
    By almost died in forum Tutorials
    Replies: 10
    Last Post: 01-03-2009, 06:29 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
  •