Commit Graph
100 Commits
Author SHA1 Message Date
Adam 575469a3cc timers: fix showMinigameTeleports check 2022-06-12 10:06:17 -04:00
Adam db0e56194e entity hider: fix hide pets
The check for this got accidentally inverted when moving it out of the mixins
2022-06-10 22:57:30 -04:00
Adam d4a3fe0069 party: send join on reconnect
If the server expires the membership before the client in the party
reconnects, it will falsely assume it is in a party when it isn't.

Additionally since users are resynced on reconnect, this was duplicating
members as it would get joins for already joined members.
2022-06-10 18:29:46 -04:00
Adam 169ec74a01 party: no longer use account session id
This is no longer required because the oauth responses don't come back via websocket anymore
2022-06-10 18:29:46 -04:00
Adam 05567739b9 spec counter: add config option for infoboxes 2022-06-10 18:29:46 -04:00
Adam 82c93f45da Move party messages from http-api 2022-06-10 14:42:59 -04:00
AdamandBonfire 3ef9095771 cannon: use varp for cannonball count
Co-authored-by: Bonfire <5704760+Bonfire@users.noreply.github.com>
2022-06-10 12:44:48 -04:00
Adam f8c27b680b runelite: set jagex.disableBouncyCastle=true 2022-06-10 09:40:03 -04:00
Adam 70ca9a7706 chat channel: use fc max size from container 2022-06-10 08:42:47 -04:00
Adam b9d9cab697 account: use http redirect for oauth login response 2022-06-09 19:03:34 -04:00
Adam 4aa1a3f6e8 hooks: raise exception logs to error level 2022-06-08 17:13:34 -04:00
Adam 5c319169d5 hooks: add exception handler for renderable draw listener 2022-06-08 17:10:22 -04:00
Adam 82d92b9953 Move entity hider logic to plugin 2022-06-08 16:23:51 -04:00
Adam 8be3210b87 chatfilter: fix matching lt/gt
These are encoded as <lt> and <gt> and so require the patterns to match those, which is unintuitive
2022-06-08 11:03:03 -04:00
Adam 8116098792 chat commands: add rifts closed to gotr bossnames
The hiscore skill name for gotr is rifts closed
2022-06-02 15:22:24 -04:00
Adam 672a57ebcd api: deprecate if1 usage 2022-06-02 15:01:09 -04:00
Adam 1c3ccdf3a9 chat commands: fix !lvl cox cm
The command could not work before because the capitalize in
longBossName would produce a capital Of causing the hiscore
skill name to not match.

This normalizes from the hiscore name by removing : to compare
it to our internal boss names.
2022-06-02 12:41:46 -04:00
Adam 10b84c803c worldmap: add akp and bjp fairy rings 2022-05-30 08:56:23 -04:00
Adam c2cc21da24 gpu: fix debug mode on macos
debug mode aggressively checks and throws whenever a gl error occurs.

The glBlitFramebuffer call is bizzare because with the alpha channel
enabled on the renderbuffer it appears to work correctly despite
causing an INVALID_OPERATION error. We have no use for the alpha channel
since the dst alpha value is always 1, so it can just be disabled on macos.
2022-05-30 07:58:01 -04:00
Adam 5fa08751a1 spec counter: add devmode check for spec command 2022-05-27 14:52:59 -04:00
Adam 282eab1a4c party: remove overlay
This is rarely used because the information is duplicated in the panel, and not very useful. Also the toggling behavior is confusing to people.
2022-05-27 14:45:09 -04:00
Adam eb0cbd5f49 party: use passphrases for party ids
These are easier to type and share than uuids.
2022-05-27 14:45:09 -04:00
Adam ff210a6b42 party: remove Discord requirement
Orginally the only way to form a party was via Discord invites. This has
changed semi-recently to allow sharing party ids instead.

The Discord invite system is finnicky since it doesn't work unless
Discord is detected, doesn't work right with multiple clients, or
multiple Discords. And, discord_rpc is deprecated without a suitable
replacement.

This changes the party system to instead always require sharing party
ids instead.
2022-05-27 14:45:09 -04:00
Adam 307459e071 api: add player id accessor 2022-05-25 22:35:56 -04:00
Adam 95988db47f fix race loading modicons
It can't be assumed the array passed to setModIcons is still correct in
the async image callbacks. Instead, fetch the current modicons array in
the callback and use that.
2022-05-25 13:34:41 -04:00
Adam 663d79d6dc attackstyles: add weapon types 28 and 29 2022-05-25 09:25:28 -04:00
Adam 5367d225bf api: add player accessor to menuentry 2022-05-23 17:58:58 -04:00
Adam 7a1d958ee0 api: add npc accessor to menuentry 2022-05-23 17:26:45 -04:00
Adam c64fc72f9e events: add tostring/equalsandhashcode to menuoption clicked 2022-05-23 17:26:45 -04:00
Adam 94fc38f05b api: pass menu entry to menu add event and forward accessors 2022-05-23 17:26:45 -04:00
Adam 9ceabc5e47 prayer: don't return dimension for dynamic overlays
The returned dimension is only used for layoutable or movable overlays
2022-05-19 21:50:24 -04:00
Adam bea1c6cb83 overlay: prevent moving non-movable overlays 2022-05-19 17:53:18 -04:00
Adam 004d321c15 widget overlay: use setForcedPosition
The inventory can be moved pre-interface tick by the tli subchange
listener, as well as post-our client tick event from script events
running.

This makes it difficult to correctly and generically move the interface,
since it would have to be moved pre-interface tick and also pre-frame.

Currently the code moves the interface pre-frame, which looks okay, but
since it is ticking the interface when it is a different position,
clicks on it do not work correctly.

We do not have events for pre-interface tick, so use forced position to
reliably set the position
2022-05-19 13:43:10 -04:00
Adam cbf00f6c41 api: add setForcedPosition widget method 2022-05-19 13:42:51 -04:00
Adam b9da0435d2 gpu: initialize scene uploader scene id with nanotime
Multiple gpu plugins initializing the scene id to the current time can cause conflicts. This makes that less likely.
2022-05-19 13:23:35 -04:00
Adam ebd8483a37 overlay manager: remove spurious position reset logs 2022-05-18 21:02:05 -04:00
Adam 09949d344e overlay: use hovered overlay for picking managed overlay
Hovered overlay already accounts for render order, with the exception of
the vanilla WidgetOverlays which are drawn prior to any of our overlays
being drawn. Instead we order them in render-order, which works for the
dynamic-layer ones.

The minimap must be top_right so that our overlays layout around it
correctly, which currently causes it to be picked up first over dynamic
overlays due to the way overlay sorting is done.
2022-05-17 11:41:48 -04:00
AdamandMax Weber 573a66abf1 devtools: allow pgup/down to cycle through previous commands
Co-authored-by: Max Weber <mii7303@gmail.com>
2022-05-17 11:41:47 -04:00
Adam 6b81e0c7d1 overlay: worldmap: prefer rect2d as g2d clip shape 2022-05-16 11:39:46 -04:00
Adam b90d793eb7 overlay: set g2d clip per layer 2022-05-16 11:39:46 -04:00
Adam 30fb555809 overlay: disallow transformPosition with dynamic/tooltip 2022-05-16 11:39:46 -04:00
Adam 11ce994b72 overlay: add movable and snappable overlay flags
This merges DETACHED and DYNAMIC into one position, DYNAMIC. And, allows
detached/dynamic overlays to be snappable.
2022-05-16 11:39:46 -04:00
Adam 5732e3f6bd widget overlay: change minimap position back to top_right
Otherwise layouted overlays don't get layouted around the minimap
2022-05-16 11:39:46 -04:00
Adam b8188d27e3 menu swapper: removetags npc name on reset swap 2022-05-14 18:32:26 -04:00
Adam 77ccf68739 menu swapper: removetags object/npc names 2022-05-14 16:29:23 -04:00
Adam 570907ea11 overlay: better handle picking up overlapping overlays
findManagedOverlay needs to iterate in roughly the reverse drawing
order. Also adjust the moveable tli layers to be by priority in render
oder.
2022-05-13 13:48:57 -04:00
Adam 4f4c502b17 overlay: make alt drag hotkey configurable 2022-05-11 12:57:05 -04:00
Adam 5c98c47803 compost tracking: fix tracking fertile soil with ash covered tome 2022-05-11 12:10:42 -04:00
Adam 901cfa4192 client: remove setupJxAuth 2022-05-11 04:38:26 -06:00
Adam 7d5bc2bd31 api: update Jagex API 2022-05-11 04:38:22 -06:00
Adam 71d0885024 widgetoverlay: add chatbox and inventory layers 2022-05-11 05:56:49 -04:00
Adam 50af007e94 chat commands: fix matching random event rewards as kill messages 2022-05-10 23:49:49 -04:00
Adam 59b60655f7 status bars: fix npe if sprites aren't loaded yet 2022-05-10 22:29:07 -04:00
Adam cab126c6bb timers: remove unused tzhaar complete matcher
The usage of matches() vs find() is incorrect, but the timer is already removed when teleported from the arena
2022-05-09 21:10:16 -04:00
Adam bb1f49b0b4 friendnotes: clean up modicons loading
This just needs to be run after modicons is initialized, and doesn't
need to be checked on gamestate change.
2022-05-07 10:23:16 -04:00
Adam 44de746d5b emoji: clean up modicons loading
This just needs to be run after modicons is initialized, and doesn't
need to be checked on gamestate change.
2022-05-07 10:23:16 -04:00
Adam 026395fad5 chat commands: fix loading pets modicons
The asyncbufferedimage may not be loaded at the time the modicons is setup, so a listener must be added to assign the final image
2022-05-07 10:23:16 -04:00
Adam 2fa6eb1dc3 cache: update indextype names 2022-05-07 10:23:12 -04:00
Adam b5515075ef chatfilter: add config option for stripping accents 2022-05-06 15:03:29 -04:00
Adam d6260f247f api: add object composition cache accessor 2022-05-05 20:02:14 -04:00
Adam 230db67f07 api: add post object composition event 2022-05-05 20:02:14 -04:00
Adam d110a3c28e api: add object composition map setters 2022-05-05 19:26:29 -04:00
Adam a551464180 cache: make slf4j-simple an optional dependency 2022-05-01 22:22:14 -06:00
AdamandExplv 54da56e7b1 map image dumper: add main method
Co-authored-by: Explv <explv@osbot.org>
2022-05-01 22:22:14 -06:00
AdamandExplv 75e23b9a3e map image dumper: use BigBufferedImage
This redudces the memory consumption significantly since it requires
less of the image to be in memory at one time

Co-authored-by: Explv <explv@osbot.org>
2022-05-01 22:22:14 -06:00
Adam 1c99cce336 loottracker: fix tracking imp jars
event.getItemId() is not valid after the next tick, so can't be called in the inv change callback
2022-04-30 12:16:28 -04:00
Adam d04a261630 maven: update surefire plugin to 2.22.2 2022-04-30 10:03:43 -04:00
Adam cb20644145 script assembler: remove runelite-api dependency 2022-04-29 22:02:33 -04:00
Adam 62c0af064d crowdsourcing: don't include menuoptionclicked event in movementdata
Serializing the event no longer works as expected, but is also not a good idea in general
2022-04-29 14:16:02 -04:00
Adam c40b33a1e9 Don't overwrite okhttp ua if already set
If the request has its own UA set, don't overwrite it with the default
RuneLite one. This has to be an interceptor and not a network
interceptor so that it runs prior to the okhttp BridgeInteceptor, which
is what sets the default okhttp ua.
2022-04-28 18:56:02 -04:00
Adam 8ac8cd3cdd clues: add Necropolis mine coordinate clue hint 2022-04-27 16:28:45 -04:00
Adam e9474a86bb fairy ring: add Necropolis 2022-04-27 15:54:17 -04:00
Adam 1cfdc86a5c clues: update guardian mummy cryptic clue 2022-04-27 09:22:27 -04:00
AdamandEliasLahham 2d01ea2fb7 bank plugin: add quantity search
Co-authored-by: EliasLahham <eliaslahham@yahoo.com>
2022-04-26 20:41:43 -04:00
Adam 7cdbe6faab chat commands: support parsing team size pbs off adventure log 2022-04-25 09:55:37 -04:00
Adam d7f1681e6a util: use error log level for exception loggers 2022-04-24 19:15:45 -04:00
Adam fc1c12c0e3 infobox: consistently require non-negative timer durations 2022-04-24 19:15:45 -04:00
Adam c4055e765a ci: disable maven-shade-plugin 2022-04-24 16:44:18 -04:00
Adam 36730dccbc client: update pmd 2022-04-24 13:46:42 -04:00
Adam 6a4544ed2e cl: set pmd cache location 2022-04-24 13:46:42 -04:00
Adam 1edd417336 api: remove Nullable on getLocalPlayer
While this can be null, in the vast majority of events and also in every overlay it cannot be, and just triggers unncessary warnings from IDE inspections
2022-04-23 19:32:10 -04:00
Adam 1149a5a0e7 examine: remove unused import 2022-04-22 21:39:37 -04:00
Adam e6d83c8322 examine: fix examining ground items
Remove support for examining npcs/objects which has been unused for a long time. All examines I see go through this examine_item script, so we can assume the ITEM_EXAMINE chat message type is used for all examines.
2022-04-22 21:31:41 -04:00
Adam 9bd36db0c9 chat commands: update gotr kill message 2022-04-22 20:03:19 -04:00
Adam 8746c09354 interact highlight: fix detecting spell attacks on npc click
This was counting any widget use as an attack, when only spell use
should be
2022-04-22 13:12:05 -04:00
Adam 20d2566471 interact highlight: fix using npc attack color on item use 2022-04-21 14:23:01 -04:00
Adam f8e754b62f examine: fix item examine message recolor 2022-04-21 09:41:03 -04:00
Adam d533285a32 timers: update for if3 inv 2022-04-21 09:41:02 -04:00
Adam 96fbdda03d runelite: remove otl requester
This is being replaced with a different api signature later
2022-04-20 17:50:19 -04:00
Adam edbc723b20 statusbars: update for if3 inv 2022-04-20 13:57:15 -04:00
Adam 4fc6466e4f clues: fix tracking cluescroll 2022-04-20 13:57:14 -04:00
Adam 1c0a0f43ef mes: fix item swaps with op4 and op5
Since the client does menu sorting after our tick event but before
rendering, it currently renders the wrong menu action. This prevents the
sorting when doing item swaps.
2022-04-20 13:57:14 -04:00
Adam 3c7582f629 item stats: update for if3 inv 2022-04-20 11:50:32 -04:00
Adam 71886515a9 antidrag: update for if3 inv 2022-04-20 08:48:58 -04:00
Adam 3b18042785 inv grid: fix for if3 inv 2022-04-20 08:48:58 -04:00
Adam 97580ac6f6 api: add dragTime accessor 2022-04-20 08:48:58 -04:00
Adam a6f955ac87 client: update for if3 inventory 2022-04-20 03:39:42 -06:00
Adam c683e41c01 api: add item op menu api 2022-04-20 03:39:40 -06:00
Adam eb0bbc6426 external plugin client: use verificationexception for security exceptions 2022-04-19 19:53:59 -04:00
Adam aca22f13c0 fatal error dialog: work with substance laf
Changing the laf from substance to system breaks the client the next
time it paints
2022-04-18 12:43:44 -04:00