RuneMate Beta 5 Bug Reports

Discussion in 'Client & Site Support' started by Arbiter, Mar 24, 2014.

Thread Status:
Not open for further replies.
  1. You guys know the drill by now. Dump all your Beta 5 bugs and stack traces here and we will respond/patch ASAP. Love ya guys!
     
  2. Code (Text):
    1.  
    2. java.lang.NullPointerException
    3.     at com.runemate.game.api.hybrid.util.calculations.Distance.euclidean(bib:151)
    4.     at com.runemate.f.b.nUl.int(kjb:18)
    5.     at com.runemate.f.b.cON.move(nhb:262)
    6.     at com.runemate.game.api.hybrid.input.Mouse.move(ogb:43)
    7.     at com.runemate.game.api.osrs.c.NUl.interact(bjb:185)
    8.     at com.runemate.game.api.osrs.c.NUl.interact(bjb:248)
    9.     at com.sjbijzitter.runemate.script.yak.Yaks.attackNext(Yaks.java:43)
    10.     at com.sjbijzitter.runemate.script.yak.YakSalvation.onLoop(YakSalvation.java:91)
    11.     at com.runemate.game.api.script.framework.LoopingScript.try(fkb:155)
    12.     at com.runemate.game.api.script.framework.LoopingScript.int(fkb:76)
    13.     at com.runemate.game.api.script.framework.LoopingScript$1.run(fkb:232)
    14.     at java.lang.Thread.run(Unknown Source)
    15.  
    Code on line 43 (Yaks.java):
    Code (Text):
    1.  
    2. npc.interact(String, String);
    3.  
    Note that npc cannot be null.
     
  3. @Cloud
     
  4. Also,
    Code (Text):
    1.  
    2.     private final Filter<Npc> alert_filter = new Filter<Npc>() {
    3.  
    4.         @Override
    5.         public boolean accepts(final Npc n) {
    6.             final Actor a = n.getInteractingEntity();
    7.             return a != null && a.equals(player) && !n.getName().contains("Yak");
    8.         }
    9.     };
    10.  
    I was wonder why Npcs.getNearest(alert_filter) always returned null, until I started listing all npcs on screen and noticed that Npc.getInteractingEntity() returns null at all times, might be worth looking into asap as this is an essential method to detect random events!
     
  5. @Cloud helps if you tag urgent stuff to him directly. He'll take a look and if he doesn't I'll break his knee cap. <3
     
  6. npc.getName() seems to return null every now and then too. This wouldn't be an issue normally... except when Npcs.getNearest(String... names) (and similar) throw NPEs all around the place.
    I'm not a person to rush people <3
     
  7. null o_O Jagex should make the text be "Null" when it's not available. Interesting.
     
  8. When I open developer toolkit I get this error
    Gamepack ID: 1454977
    Code (Text):
    1.  
    2. Error switching tabs in development toolkit
    3. java.lang.IllegalArgumentException: Argument is not an array
    4.    at java.lang.reflect.Array.getLength(Native Method)
    5.    at com.runemate.game.api.a.a.aUX.int(fhb:126)
    6.    at com.runemate.game.api.rs3.a.nUl.int(rjb:126)
    7.    at com.runemate.game.api.hybrid.region.Players.getLoaded(ybb:245)
    8.    at com.runemate.a.i.CoM3.update(gkb:387)
    9.    at com.runemate.a.i.coM5.handle(jbb:46)
    10.    at com.runemate.a.i.coM5.handle(jbb:134)
     
    #8 Viewer, Mar 28, 2014
    Last edited: Mar 28, 2014
  9. @Salvation fixed
     
  10. @Cloud
    You dont fixed the toplevel_v2_contextwindow_full_close 1 debug message error
     
  11. It's a message that's being displayed from within RS itself.
     
  12. Code (Text):
    1.  
    2. java.lang.NullPointerException
    3.     at com.runemate.game.api.hybrid.util.calculations.Distance.euclidean(bib:151)
    4.     at com.runemate.f.b.nUl.int(kjb:18)
    5.     at com.runemate.f.b.cON.move(nhb:262)
    6.     at com.runemate.game.api.hybrid.input.Mouse.move(ogb:43)
    7.     at com.runemate.game.api.osrs.c.NUl.interact(bjb:185)
    8.     at com.runemate.game.api.osrs.c.NUl.interact(bjb:248)
    9.     at com.sjbijzitter.runemate.script.yak.YakSalvation.onLoop(YakSalvation.java:89)
    10.     at com.runemate.game.api.script.framework.LoopingScript.try(fkb:155)
    11.     at com.runemate.game.api.script.framework.LoopingScript.int(fkb:76)
    12.     at com.runemate.game.api.script.framework.LoopingScript$1.run(fkb:232)
    13.     at java.lang.Thread.run(Unknown Source)
    14.  
    Edit: happens when the (in this case npc im interacting with) is not visible.
     
    #14 Salvation, Mar 30, 2014
    Last edited: Mar 30, 2014
  13. No stack trace but the clients camera rotation to entity, use to work in BETA 4, however when BETA-5 came out it will consistently try to rotate around one point and never any further, not sure if that's clear enough...

    Here's the code:

    [​IMG]
     
  14. Rotating is indeed a bit messed up every now and then haha
     
  15. @Cloud Another bug, item.interact(String), works for a period of items and then throws an exception:

    [​IMG]

    Line throwing exception:

    [​IMG]
     
  16. Regarding:
    Code (Text):
    1.  
    2. Environment.getStorageDirectory()
    3.  
    I recommend appending the author's name, instead of the scriptid. This has several advantages aside from its better pleasing aesthetics.

    Imagine I have two scripts bots: A and B, both scripts bots have individual needs but also share several needs, such as a locally stored image for the mouse, or perhaps an icon for the GUI. I would believe the following solution would work best:

    <RuneMate home>\bots\storage\salvation\a\settings.ini
    <RuneMate home>\bots\storage\salvation\b\settings.ini
    <RuneMate home>\bots\storage\salvation\mouse.png
    <RuneMate home>\bots\storage\salvation\icon.png

    Next to that, #getStorageDirectory currently does not ensure the directory exists, which is a bit annoying. Please let it create the required directories (#mkdirs) before returning the File instance. After that, the script bot author will be left with a valid directory:
    <RuneMate home>\bots\storage\salvation\

    @Cloud <3?
     
    Arbiter likes this.
  17. Strange box random event is identified correctly, but is not being solved.
    Next to that, the event solver activates while the player is in combat, which is a terrible situation.
     
  18. Not actually written because I suck at randoms, just made it be detected.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...