Commit Graph

8651 Commits

Author SHA1 Message Date
swazrgb
e23c6a0c46 Support loading external plugins from sources enabling hotswapping
Enables the pf4j [development mode](https://pf4j.org/doc/development-mode.html)
to support loading external plugins from sources, which enables java's
hotswap functionality.

To use this feature set the `plugin.development.path` property or
`PLUGIN_DEVELOPMENT_PATH` environment variable to the directories
containing your plugins, e.g. `../plugins;../my-custom-plugins`

Once set the `ExternalPluginManager` will ignore the configured
repositories and externalmanager directory, and instead load all
the built plugins from the specified directories.

Utilizing this feature does require some additional configuration
of the build of the plugins `build.gradle.kts`. Within the `subprojects`
section add:

```
tasks.register<Copy>("copyDeps") {
    into("./build/deps/")
    from(configurations["runtimeClasspath"])
}
```

See https://github.com/open-osrs/plugins/pull/260 for the `openosrs/plugins` change

This enables the following workflow:

0. Optional tip: Set the `external.system.substitute.library.dependencies` registry value to `true` to force classpath resolution within the project

1. Open the `runelite-client` project in IntelliJ

2. Add the `plugins` repository as a module (Gradle -> Plus symbol ->
`plugins/build.gradle.kts`)

3. Gradle build the client with: `build publishToMavenLocal :runelite-client:publishToMavenLocal :runelite-api:publishToMavenLocal :http-api:publishToMavenLocal`

4. Gradle build the plugins with: `build copyDeps`

5. Add the `PLUGIN_DEVELOPMENT_PATH` environment variable to the run
configuration

Once the above is done the edit -> reload -> edit cycle can begin:

1. Start the client in debug mode using the run goal

2. Edit the external plugin

3. Perform Build > Build Module

4. Observe hotswapping in action!

5. If hotswapping failed, or your change requires a plugin restart,
click the hotswap button in the plugin list to instantly restart it
2020-05-24 08:27:37 +02:00
Owain van Brakel
3a50e657fb NPCManager: Blacklist some NPCs from xp multiplier 2020-05-21 22:14:44 +02:00
Owain van Brakel
d33aff6a41 Merge remote-tracking branch 'runelite/master' 2020-05-21 18:30:38 +02:00
Tomas Slusny
63eab81d11 Use multiplicative color offsets for BackgroundComponent border (#11658)
Instead of fixed color offsets for outer and inner border colors switch
to multiplicative offsets. This also makes overlay color alpha
recoloring work properly with background component border.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2020-05-21 17:55:48 +02:00
Owain van Brakel
e690df0852 Merge remote-tracking branch 'runelite/master' 2020-05-21 13:34:48 +02:00
Hydrox6
00b65f4566 clues: add brutal green dragon variant to cryptic clue 2020-05-21 11:10:05 +01:00
TheStonedTurtle
794fba7176 Make background color of panel components configurable (#11619) 2020-05-20 17:54:31 +02:00
ThePharros
6208c3bee5 itemcharges: Add Magic Essence and Super Strength potion doses (#11634) 2020-05-20 06:09:56 +00:00
Trevor martz
6be6aacb35 cluescrolls: remove sara wizard from duel arena step (#11648)
In spite of being a hard coordinate clue, this clue step is an exception
to the rule that a Saradomin Wizard will spawn at all non-wilderness
locations. No enemy spawns at this spot.
2020-05-20 05:52:39 +00:00
loldudester
94482f5aed keyremapping: Don't remap f-keys when the bank pin interface is open 2020-05-19 19:51:29 +00:00
Adam
0615b7b9e6 minimap: use script event for hiding minimap 2020-05-16 14:12:51 -04:00
Adam
4da4979e48 attackstyles: use script event for hiding attack styltes 2020-05-16 14:12:51 -04:00
Adam
ba73d70433 npc indicators: don't memorize npcs in instances
I can't find any instances of npc indexes being reused in instances,
which just causes the respawn timers to incorrectly identify a random
npc later which happens to use the same id.

See 01f134795d
2020-05-16 14:11:35 -04:00
Adam
8ab929d001 Revert "npc indicators: verify compoistion id of tagged npcs"
This is breaking ammonite crabs due to them changing composition after
spawning

This reverts commit 01f134795d.
2020-05-16 14:11:35 -04:00
Broooklyn
9dd8c59d0a cluescrolls: Update Iron Man Tutor cipher clue (#11593)
A game update changed the Adam NPC's name to Iron Man Tutor, and with it
changed the cipher clue which referenced him.
2020-05-16 05:34:16 +00:00
Melky
37760c9775 agility plugin: add config for Prifddinas portal color 2020-05-14 22:46:47 -04:00
dekvall
6a63968ff5 interfacestyles: add support for menu alpha 2020-05-14 19:59:04 -04:00
Lucwousin
f231af9a4f Nag user (and sentry) if event handlers declare to throw an exception 2020-05-14 22:34:59 +02:00
Owain van Brakel
98e3351b6e Merge remote-tracking branch 'runelite/master' 2020-05-14 17:58:01 +02:00
Owain van Brakel
28a7157341 Merge remote-tracking branch 'runelite/master' 2020-05-14 17:43:53 +02:00
bfmoatbio
7dba7b58e6 menu manager: Remove bounty hunter emblem text from player name (#11541) 2020-05-14 06:47:31 +00:00
Jordan
a16d61c280 Merge pull request #11551 from melkypie/itemcharges-potions 2020-05-13 21:45:59 -07:00
Kyle Shepherd
473d7f45c3 itemidentification: Change Combat Potion short name from 'D' to 'C' (#11566) 2020-05-13 23:06:50 +02:00
Ron Young
9f8e967f91 object indicators: fix NPE thrown on logging in on a marked object 2020-05-13 22:44:43 +02:00
Damen
4817d8bdcd screenshot plugin: block untradeable drops within the Gauntlet
Co-authored-by: Jordan Atwood <jordan.atwood423@gmail.com>
2020-05-13 16:34:46 -04:00
zeruth
f984f72b78 hooks: expose lastGraphics for external drawing 2020-05-13 16:29:06 -04:00
Adam
7c9e193f80 client: add option to force client to front on notification 2020-05-13 15:02:42 -04:00
Owain van Brakel
abc6fbf3bd Merge pull request #2571 from Owain94/misc-config 2020-05-13 18:01:21 +02:00
Owain van Brakel
3fcb152504 Merge remote-tracking branch 'runelite/master' 2020-05-13 17:11:29 +02:00
Hydrox6
9f26bb67c1 ground items: add Notify >= Tier 2020-05-13 14:32:15 +02:00
Hydrox6
b95b30f606 ground items: remove Highlight > Value 2020-05-13 14:32:15 +02:00
Hydrox6
4a378817fd ground items: move repeated notify code into notifyHighlightedItem 2020-05-13 14:32:15 +02:00
bfmoatbio
d74fff1991 Allow non-degraded barrows equipment for clue step
One master clue step requires the player to wear "any full barrows set."
Previously the emote clue logic for this step allowed only levels of
degradation from 0-100, but not the non-degraded item (whose item ID is
disjoint from the others).

Wrap those item range checks with an 'any' clause which also allows the
non-degraded item.

Add tests for degraded and non-degraded barrows sets.
2020-05-13 14:19:05 +02:00
Kyle
06a18ce220 project: checkstyle fix (#2578)
project: checkstyle fix
2020-05-13 09:45:02 +01:00
zeruth
b2c9990aad hooks: track software mirror mouse 2020-05-13 02:56:37 -04:00
Tyler Bochard
baa0df85ba Merge pull request #2576 from open-osrs/api-mirror
api: add mirror api
2020-05-12 23:11:40 -04:00
zeruth
bd856728c0 api: add mirror api 2020-05-12 23:05:46 -04:00
Jordan
62ea2b9eb4 Merge pull request #10664 from loldudester/sidebar-hotkey 2020-05-12 19:53:00 -07:00
loldudester
15e0f1e5f2 client: Add configurable hotkey to toggle plugin panel 2020-05-12 19:45:41 -07:00
loldudester
7784395255 client: Make toggle sidebar hotkey configurable 2020-05-12 19:45:13 -07:00
Jordan
37643785c3 Merge pull request #11064 from jmm140330/screenshot-kick 2020-05-12 19:43:15 -07:00
Rachel M
3f48614ddc screenshot: Add option to take screenshot on clan chat kick 2020-05-12 19:36:57 -07:00
cscullen
af93dd242f loottracker: Add seed pack loot tracking 2020-05-12 19:29:06 -07:00
zeruth
56c2035916 hooks: expose overlay renderer 2020-05-12 21:01:58 -04:00
Adam
01f134795d npc indicators: verify compoistion id of tagged npcs
This fixes npc tags for dynamic npcs sometimes erronously tagging the
wrong npc if the npc index gets reused. This happens regularly when
tagging bloat manually a few times, since the Verzik webs are all npcs
and there are many of them, thus a high chance of index collision.
2020-05-12 15:23:36 -04:00
Rangvaldr
4243dce1b1 discord: Update activity message while playing PVP or DMM (#11522) 2020-05-12 21:11:03 +02:00
Kyle Shepherd
34158ebc99 worldhopper: Change showSidebar option name to 'Show world switcher sidebar' (#11537) 2020-05-12 21:08:13 +02:00
Jordan
38ef167aa3 Merge pull request #11535 from benstepp/add-nightmare-staff-mappings 2020-05-12 10:17:17 -07:00
Jesse Serrao
8a4ae01d5c itemstats: Add bounty hunter blighted food/pots (#11550) 2020-05-12 17:14:09 +00:00
Owain van Brakel
58651aee63 config: Pull support button to the top 2020-05-12 02:36:37 +02:00