Giter Club home page Giter Club logo

attacktimer's Introduction

Attack Timer

A plugin to show an attack cooldown timer, like in other MMOs.

The plugin will automatically start a timer on attack. Not all weapons may be supported.

Ticks until next attack may be enabled over your player's head.

attack_timer_screenshot.png

attacktimer's People

Contributors

billslate avatar cdog2323 avatar lexer747 avatar ngraves95 avatar rokaskil avatar vikke1234 avatar yvesw avatar

Watchers

 avatar

attacktimer's Issues

NullPointer Exception in overlay AttackTimerMetronomeTileOverlay.java:67

2023-10-27 17:39:05 GST [Client] WARN n.r.c.ui.overlay.OverlayRenderer - Error during overlay rendering
java.lang.NullPointerException: null
at net.runelite.client.ui.overlay.OverlayUtil.renderTextLocation(OverlayUtil.java:97)
at com.attacktimer.AttackTimerMetronomeTileOverlay.render(AttackTimerMetronomeTileOverlay.java:67)
at net.runelite.client.ui.overlay.OverlayRenderer.safeRender(OverlayRenderer.java:734)
at net.runelite.client.ui.overlay.OverlayRenderer.renderOverlays(OverlayRenderer.java:328)
at net.runelite.client.ui.overlay.OverlayRenderer.renderOverlayLayer(OverlayRenderer.java:235)
at net.runelite.client.callback.Hooks.drawAboveOverheads(Hooks.java:502)
at jq.yn(jq.java:59765)
at jq.lc(jq.java:122)
at qy.jw(qy.java:5090)
at jh.lb(jh.java:10739)
at jh.lb(jh.java:10770)
at pb.lz(pb.java:10634)
at client.id(client.java:4675)
at client.bp(client.java:1130)
at bb.bd(bb.java:388)
at bb.run(bb.java:337)
at java.base/java.lang.Thread.run(Unknown Source)

Soulreaper axe

PLZ ADD SOULREAPER AXE. or better yet allow users to add their own IDs

Timer going increasingly negative when logged in without gear

Issue was incorrectly closed as completed. I can easily repro this on the version that just got merged to the hub (56e2a848).
To repro you can e.g. bank all worn equipment and inventory items => log out => log in => attack something. An item container can be null when logging in with an empty container AFAIK...

Demonstrated here:
https://files.catbox.moe/t8dx7s.mp4


Original post:

image

I just freshly logged in without anything on and an empty inventory. IIRC the ItemContainer can be null at that point, so that'd explain the problem.

NPE:
2023-02-05 20:28:41 [Client] WARN n.runelite.client.eventbus.EventBus - Uncaught exception in event subscriber java.lang.NullPointerException: Cannot invoke "net.runelite.api.ItemContainer.getItem(int)" because "container" is null at com.attacktimer.AttackTimerMetronomePlugin.getItemStatsFromContainer(AttackTimerMetronomePlugin.java:80) at com.attacktimer.AttackTimerMetronomePlugin.getWeaponStats(AttackTimerMetronomePlugin.java:85) at com.attacktimer.AttackTimerMetronomePlugin.getWeaponSpeed(AttackTimerMetronomePlugin.java:104) at com.attacktimer.AttackTimerMetronomePlugin.performAttack(AttackTimerMetronomePlugin.java:128) at com.attacktimer.AttackTimerMetronomePlugin.onGameTick(AttackTimerMetronomePlugin.java:205) at net.runelite.client.eventbus.EventBus$Subscriber.invoke(EventBus.java:70) at net.runelite.client.eventbus.EventBus.post(EventBus.java:223) at net.runelite.client.callback.Hooks.tick(Hooks.java:207) at client.ac(client.java:31956) at client.an(client.java) at an.ao(an.java:390) at an.run(an.java:369) at java.base/java.lang.Thread.run(Thread.java:833)

And the following ArrayIndexOutOfBoundsException but that was probably when I equipped a whip again.
2023-02-05 20:31:38 [Client] WARN n.r.c.ui.overlay.OverlayRenderer - Error during overlay rendering java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 0 at com.watsoncluetracker.WatsonOverlay.render(WatsonOverlay.java:40) at net.runelite.client.ui.overlay.OverlayRenderer.safeRender(OverlayRenderer.java:735) at net.runelite.client.ui.overlay.OverlayRenderer.renderOverlays(OverlayRenderer.java:328) at net.runelite.client.ui.overlay.OverlayRenderer.renderOverlayLayer(OverlayRenderer.java:235) at net.runelite.client.callback.Hooks.drawAboveOverheads(Hooks.java:496) at ht.uc(ht.java:51287) at ht.fy(ht.java:116) at bj.hb(bj.java:4730) at ay.kv(ay.java:10421) at ay.kv(ay.java:10452) at ay.kv(ay.java:10452) at ay.kv(ay.java:10452) at ce.ke(ce.java:10310) at client.hq(client.java:4330) at client.ab(client.java:1126) at an.am(an.java:416) at an.run(an.java:370) at java.base/java.lang.Thread.run(Thread.java:833)

Add Blazing Blowpipe

The Blazing Blowpipe is the blowpipe with the Trailblazer Reloaded ornament kit; I believe its animation ID to be 10656

Add Support For Leagues IV Relics

Is it possible to add support for tier 4 relics in League IV?

Example relic:
Relic Example

Crossbow attacks every 2 ticks but has a counter for 5:
Relic In Action

Timer going increasingly negative when logged in without gear

image

I just freshly logged in without anything on and an empty inventory. IIRC the ItemContainer can be null at that point, so that'd explain the problem.

NPE:
2023-02-05 20:28:41 [Client] WARN n.runelite.client.eventbus.EventBus - Uncaught exception in event subscriber java.lang.NullPointerException: Cannot invoke "net.runelite.api.ItemContainer.getItem(int)" because "container" is null at com.attacktimer.AttackTimerMetronomePlugin.getItemStatsFromContainer(AttackTimerMetronomePlugin.java:80) at com.attacktimer.AttackTimerMetronomePlugin.getWeaponStats(AttackTimerMetronomePlugin.java:85) at com.attacktimer.AttackTimerMetronomePlugin.getWeaponSpeed(AttackTimerMetronomePlugin.java:104) at com.attacktimer.AttackTimerMetronomePlugin.performAttack(AttackTimerMetronomePlugin.java:128) at com.attacktimer.AttackTimerMetronomePlugin.onGameTick(AttackTimerMetronomePlugin.java:205) at net.runelite.client.eventbus.EventBus$Subscriber.invoke(EventBus.java:70) at net.runelite.client.eventbus.EventBus.post(EventBus.java:223) at net.runelite.client.callback.Hooks.tick(Hooks.java:207) at client.ac(client.java:31956) at client.an(client.java) at an.ao(an.java:390) at an.run(an.java:369) at java.base/java.lang.Thread.run(Thread.java:833)

And the following ArrayIndexOutOfBoundsException but that was probably when I equipped a whip again.
2023-02-05 20:31:38 [Client] WARN n.r.c.ui.overlay.OverlayRenderer - Error during overlay rendering java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 0 at com.watsoncluetracker.WatsonOverlay.render(WatsonOverlay.java:40) at net.runelite.client.ui.overlay.OverlayRenderer.safeRender(OverlayRenderer.java:735) at net.runelite.client.ui.overlay.OverlayRenderer.renderOverlays(OverlayRenderer.java:328) at net.runelite.client.ui.overlay.OverlayRenderer.renderOverlayLayer(OverlayRenderer.java:235) at net.runelite.client.callback.Hooks.drawAboveOverheads(Hooks.java:496) at ht.uc(ht.java:51287) at ht.fy(ht.java:116) at bj.hb(bj.java:4730) at ay.kv(ay.java:10421) at ay.kv(ay.java:10452) at ay.kv(ay.java:10452) at ay.kv(ay.java:10452) at ce.ke(ce.java:10310) at client.hq(client.java:4330) at client.ab(client.java:1126) at an.am(an.java:416) at an.run(an.java:370) at java.base/java.lang.Thread.run(Thread.java:833)

Scythe off by one tick

image

Here are my settings. It is always ready to attack when the bar is still one tick from full. Kicking and other attack cooldowns seem to work fine. Idk if it's just the red scythe or also the default scythe. I use the red scythe. This seems to be a new issue, I wasn't experiencing this when running tob last week but all this week it's been happening.

Timer is always off by 1 tick

Since a few runelite updates ago, the timer has been off by 1 tick.
So when I attack with a 4 tick weapon, instead of (attack) 4 3 2 1 (attack) as expected, it goes (attack) 1 4 3 2 (attack) 1 4 3 2, so I need to flick on the 2 instead of the 1

Request: Adamant darts

I'm not sure if other darts work or if it is intentionally disabled for them, but I would like a lot if they were added.

Request - Timer that is detached from player model

First of all thank you for this plugin, it's really helpful!

I'd like to request an option to show the timer anywhere but near the player model, for example an infobox in the top left would work, or something else that is maybe draggable. This is useful for people who already have too much visual clutter near the player model. Also if you're using this plugin for offensive prayers, it might be useful to have something near the inventory instead of near the player.

I hope you people have time to implement this, thanks in advance!

Request - Ice Barrage Timer

Casting ice barrage with an ahrims staff (at least in LMS) shows 6 tick timer but it should only be 5 ticks.

Sanguinesti staff

Hello, this mod helps a lot, enjoying it so far however everytime I use the staff it messes up the tick counter.

a fix would be really appreciated.

thanks !

COUNTER LOSING TICKS

Not sure what happened. And multiple people are reporting the issue. But using most weapons (bowfa and trident). It will go 4 then 3 then glitch out and go back to 4... have no idea why and haven't found any solutions. It was working fine a week ago

Add chins

Chins seem to be missing from the metrome.

Request - enter custom timer value

Excellent plugin! I have a rather niche request, but I think it serves a useful purpose that may benefit others too.

When fighting KQ there is a flinching method. It would be awesome to enter a custom weapon delay to correspond to the down-time between flinch hits. Normally, one would just look at the health bar of the monster. When it disappears you may flinch. But when using a thrall, the healthbar always remains active.

I think this would be especially useful when flinching any monster while using a thrall. And it would still serve a purpose even when not using a thrall, as a more detailed indicator of how long before flinch hits, as opposed to the healthbar binary not-flinchable (present) versus flinchable (absent).

Thanks!

Timer broken in ToA Wardens P1

While attacking the obelisk, it seems like only the first attack after clicking the obelisk triggers the timer. After the first attack, the timer counts down from 4 to 1 as normal, but instead of looping back to 4 with the next attack, it disappears as if I had stopped attacking. The timer than doesn't reappear until I click to move and then click the obelisk again (unknown if it restarts properly with just clicking the obelisk). This was done using the Bow of Faerdhinen, a weapon which had been working perfectly with this plugin before the latest update.

A slightly less noticeable (but likely related) issue has with the Keris Partisan of Breaching. While the timer now functions properly, it seems to occasionally desync. I'll need to poke around more to figure out exactly what caused this, but it was happening fairly consistently at Kephri.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.