Thread: Right click not working - Valius release Vencillio Base

Results 1 to 3 of 3
  1. #1 Right click not working - Valius release Vencillio Base 
    Registered Member
    Join Date
    May 2016
    Posts
    16
    Thanks given
    10
    Thanks received
    0
    Rep Power
    11
    Today whilst working on my copy of Valius i seem to have lost the option to right click, trying to do so is functioning as a left click. I've check the in-game mouse options, reinstalling all installed copies of Java. It's particularly strange as it's functioning correctly on different client/servers and OSRS. Anybody got any ideas?

    Thanks a lot.

    UPDATE:

    I've found another client that has the same problem and noticed a new error message which i think it could be related to, but i'm struggling to understand what it's meaning as it's referencing a dropbox which is sever specific so i can't see how that could effect a different client for a completely different server.. Any ideas?


    Attached image

    UPDATE:

    So i've messed around in client/updatecache/versionfile (the file i found that was looking for the cacheversion.txt and it looks to me like this is part of the updater for when a new cache was released, i tried pointing these to local directories where my cache.zip and cacheversion.bat was located but i still don't seem to have the cacheversion.txt file so this seemed futile and i just ended up with a completely different error.. I think i'm looking in the wrong place? How could a cacheversion.txt file missing cause the right click not to work? Hmm


    UPDATE:

    Here's the same error on a different client, they both seem to be having an issue with cachversion.txt, could this be the source of the issue?

    Attached image

    UPDATE

    So i've solved it, though i'm not completely sure how. I'll list what i did should anyone else have the same problem ever. Note: I'm still getting this error message i posted earlier so it's safe to say they're unrelated, which makes sense really.

    Uninstalled all versions of Java, 32 and 64 bit versions through add/remove programs, and then completely deleted the java directories from both program files and pfx86 respectively. I then reinstalled 64bit JDK and JRE 8 (1.8.0.144) which isn't the most up to date version (JDK 9 is out). I then had to point eclipse to the new JRE i was using, as it was looking for a previously deleted version, simply done in preferences > Java > JRE > Search > search pfx86/java and it will find your current JRE. I then pointed my client compiler to my new JDK, (right click edit compiler.bat etc) fixing the compiler, but now the run.bat wasn't recognising java as an internal or external command, again this was simply fixed by adding the directory of your java\bin into enviromental variables, My Computer > Properties > Advanced System Settings > Advanced > Enviromental Variables then find Path under System Variables and add your directory at the top of that list, mine was for example C:\Program Files (x86)\Java\jdk1.8.0_144\bin

    I hope if you're stuck with this problem this is of use to you. As annoying as these issues were as someone with a little Java experience and fairly new to the RSPS scene this situation has actually taught me quite a lot and i'm looking forward to solving the rest of the errors i may encounter!

    Thanks, Good luck!
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Sep 2014
    Posts
    1
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    Compatibility for detecting right mouse clicks in AWT broke from Java 8 to Java 9. Once I've updated to Java 9 all bets were off with getting this compatible. However, if you have direct access to the client source and just want to fix the issue you can do it by handling the
    Code:
    mousePressed()
    event in whatever class
    Code:
    implements MouseListener
    (this varies from client to client). A simple grep tool and a couple seconds of time will fix this issue.

    When you find the mousePressed() method, look for the call to
    Code:
    isMetaDown()
    and replace with
    Code:
    getModifiersEx() & InputEvent.BUTTON3_DOWN_MASK != 0
    .

    Spoiler for More details for developers:

    Java 9 deprecated
    Code:
    InputEvent.getModifiers()
    You can see this in: https://docs.oracle.com/javase/9/doc...getModifiers--

    Reference JDK Code:
    isMetaDown() looks like
    Code:
    public boolean isMetaDown() {
            return (modifiers & META_MASK) != 0;
        }
    JavaDoc suggests NOT to use META_MASK and instead to use META_DOWN_MASK
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member

    Join Date
    Nov 2014
    Posts
    337
    Thanks given
    47
    Thanks received
    12
    Rep Power
    187
    Thank you very much such a big help!
    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. right click not working rsps
    By znaation in forum Help
    Replies: 3
    Last Post: 10-19-2017, 08:26 PM
  2. Replies: 1
    Last Post: 06-21-2017, 06:44 AM
  3. Replies: 0
    Last Post: 01-02-2015, 06:45 PM
  4. Player rights 3 not working
    By dawson11 in forum Help
    Replies: 1
    Last Post: 10-21-2012, 05:20 AM
  5. Making right click ban work
    By Eternal Darknes in forum Tutorials
    Replies: 2
    Last Post: 05-31-2008, 12:07 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
  •