Build runelite and install custom plugin tutorial for runescape using Intellij IDEA
ฝัง
- เผยแพร่เมื่อ 22 ส.ค. 2024
- #runescape
This is a tutorial on how to build runelite using Intellig IDEA for runescape. the other part is installing a custom plugin to use in game. this is useful for runelite plugin development.
runelite source: github.com/run...
plugin source: github.com/sly...
intellij IDEA: www.jetbrains....
www.buymeacoff...
as soon as you hear the good ol' aussie accent you know it's gonna be a good tutorial. kudos!
Your desktop makes me anxious. Nice vid!
Thank you very much for this, I'm trying to get into programming and this is a fun way to do it.
Best of luck brother
Thank you so SO much for your video series!! I was getting started botting ORS using pyautogui a few months ago and then I moved onto using OpenCV directly, but then stopped for a while as I needed to do some thinking about things, had a lot of features I was struggling to implement, the main one was navigating.
Since finding your channel you've put the wind back in my sails! Resumed development on my OSRS bot now using Runelite, just followed your instructions got everything up and your plugin output the X Y world coordinates! Woo! Now onto building my navigation script :D It was pretty cool to get back into Java also I hadn't used Java since highschool heh
I'm consuming all of your videos haha thank you again so much! I'm subbed
Edit: Oh and I just got a PC with a graphics card for like the first time ever so I'm also super excited you've got content covering YOLOv5! Really keen to see more AI content if you have any
I noticed btw you had a more recent video where you use opencv instead of YOLOv5 though -- which do you think is faster? I have a very average GPU a 1050 ti 4gb only like 700 cuda cores but i have a nice CPU its like a i7-78xx series
PS: This works with OpenJDK if you don't want to register for Oracle
Thank you Zoe! much appreciated! I think yolov5 has more potential than opencv i just found it hard to annote the images to train. That was the most laborious part of the process, but with the yolo plugin in runelite that issue is now resolved so i reckon it will play a bigger part in my scripts for specific complex actions. yes your gpu and cpu will work great.
oh nice to know about openjdk thank you :)
You have an excellent tutorial voice
Thanks G. Time to send Her. Best wishes this Holiday season
I assume those of us with Jagex accounts can't run our own built client as it needs to launch from Jagex launcher, unless there is a way for us to overwrite the current Runelite .exe
quote from the runelite wiki, worked perfectly for me:
1. Make sure your RuneLite launcher is version 2.6.3 or newer
2. For Windows, run RuneLite (configure) from the start menu. Otherwise, pass --configure to the launcher (i.e. /Applications/RuneLite.app/Contents/MacOS/RuneLite --configure on Mac).
3. In the Client arguments input box add --insecure-write-credentials
4. Click Save
5. Launch RuneLite via the Jagex launcher. RuneLite will write your launcher credentials to .runelite/credentials.properties. Do not share this file with anyone.
6. Launch RuneLite client (eg. via the IDE) and it will use the saved credentials.
Once you've finished development you can delete the credentials.properties file to return your Runelite back to normal.
This is by adding it into a clone of the RuneLite client repo, but isn't it best nowadays to create a plugin using the pluginhub repo?
How would I point this towards a private server instead of OSRS?
Not very familiar with RuneScape stuff but great tutorial!
Do you know how to setup hot reloading of plugins within runelite? I hate I have to close out of the game and relaunch every time I make a plugin change.
sorry no idea, i have been wondering how to do the same too.
@@slyautomation I figured it out. Launch the code in debugging mode from vscode then within the editor that has your plugin code, right click and click compile in reload. Takes about 5 seconds to reload the plugin, really nice.
How did you view local host at the end of your video? Thanks for the detailed tutorial, very helpful :) i've been pulling all my data off color outlines alone, local host is game changing. Also, do you need to restart the client and login every time you change your code or is there another way to do this? Thanks!
type in the url bar: localhost:8080/events
yep restarting the client is the only way to use updated plugins
Question: So when I have made this plugin, can I then run the plugin by running runelite.exe or do i always have to open up intellij IDEA and run it through there? or how/where does it save?
Once its compiled, there's a jar file thats generated located in the project with your added plugins under runelite-client > target > called like client-1.9.14-SNAPSHOT-shaded.use that version which has shaded at the end.
run the jar file like an exe since you have a java development kit (JDK) installed with intellij it wil run without issues
Getting this error when installing or testing after updating:
"There are test failures.
Please refer to C:\Users\Bub\IdeaProjects\Runelight2
unelite\cache\target\surefire-reports for the individual test results.
Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream."
any idea on a fix?
Edit: this is me like 20 seconds later lol, In maven I did RuneLite/RuneLite Client/Lifecycle/install and that worked.
for whatever reason installing under RuneLite alone didnt work for me
Make sure in the project structure (use the top banner, select file then select project structure) you're using under project > SDK either openjdk-14 is used or oracle jdk 11 used in the tutorial. Next is to update the project in the top right hand corner click the blue arrow icon to update (or use ctrl + t) then on the popup prompt, select the merge option. Next use maven on the right side of the page and under lifecycle select 'clean' this will ensure the project doesn't have any weird legacy settings. then once thats complete use maven again on the right side of the page and under lifecycle select 'install'. Hope this helps!
sweet no worries! :)
Can I do this with a private server client as well? I'm trying to get into coding. Figured I'd look into doing something that I've been wanting to do. We're allowed to bot certain things so why not.
Yep! works the same way
Does this not work anymore or what? Ive done this 100 different times and tried everything. It says loading plugins and says 130+ but then when it opens none of the added plugins are actually there
Seeing it was updated yesterday,
posted in github aswell.
specifically this one spitting out a failure:
C:\Users\x\IdeaProjects
unelite2
unelite-client\target\surefire-reports\TEST-net.runelite.client.plugins.chatcommands.ChatCommandsPluginTest.xml
with this error message:
There are test failures.
Please refer to C:\Users\138336\IdeaProjects
unelite2
unelite-client\target\surefire-reports for the individual test results.
Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
doublechecked that the JDK is set accordingly in both project and module.
tried what the guy previously with the same error resolved it with without any success.
Hello, I am getting plenty of errors in your scripto such as:
Cannot resolve method 'getPlane' in 'WorldPoint'
Cannot resolve method 'getX' in 'Point'
'WorldPoint()' cannot be applied to '(int, int, int)'
Is this because I am using the latest RuneLight version?
how do i open 2 runelite clients in intellij
I keep getting error "Invalid flag - -release" everytime I run maven on the install, What's causing this?
if maven install comes with error. Try updating the project by using the keyboard shrtcut ctrl + t or in the top right hand corner click the blue arrow icon. Also try running maven 'clean' its the first option under maven > lifecycle.
Run that then try and run install again.
Are you trying to build runelite with a custom plugin or just the standard runelite?
Hope this helps.
I have a question the scripts that you provide can they run on multiple accs for example the auto mining ones
no it only works for 1 account at a time. but if you load a virtual machine with windows installed, pycharm and runelite you can run multiple accounts this way but thats alot of cpu and memory usage for a pc to handle multiple vms
hey, any ideas why the client running through intellj just gives me a frozen screen? Like its just stuck on a black screen once rl has loaded? Have tried different SDKs
So you could ideally make a script using the events from the local host plugin and run it through runelite? edit: I'm in unveristy for computer science going into my 2nd year and have always been curious about creating scripts, just finishing up a course on OOP with java coincidentally... are there any up to date resources available or discords?
yes exactly! in terms of creating plugins in runelite, there's the api documentation: static.runelite.net/api/runelite-api/index.html that will help with determining which methods and classes do in runelite. the discord for runelite is discord.com/invite/R4BQ8tU
scripts to cheat lol dont get me interested...im just learning runescape now for fun or what I noticed since just taking on a project for myself is, this is actually extremely useful for RSPS building. Instead of using tools this is actually a really good plug in to can check animations, object ID, coords & more. Which yeah I guess makes 100% sense why it would be useful for scripts. sorry to grave dig :D
Hi, another question, if i highlight a tile or obj and then close runelite, when i rerun it its not highlighted anymore, is there a way to load these properly? Thanks again :D
@SlyAutomation Is the HTTP plugin an illegal plugin? I run strictly color bots, and I worry that Jagex is able to detect the plugin. Does it use reflection to get the data?
No there no illegal actions that take place in that plugin. No reflection tasks are done as it doesn't interact with the client eg open inventory or click npc or change key binds. It only receives data.
@@slyautomation Awesome, thank you so much for responding. I appreciate it. I love your videos, they inspired me to create my own scripts. I have been successfully botting for a while now!
it says it cant find the interface id class
Sick!
08:21 you started speaking in digital tongues?
good tut btw
haha that part was sped up so the audio was sped up too.
Have you ever used luaJ for scripts for botting would love to see how luaj works as it seems simple for most part but not sure how to setup for osrs to learn it I've only used Java for creating scripts
No I haven't used luaJ before, it could be a good alternative but not sure where to start with it
@@slyautomation is it possible to install morghttp plugin on a rsps that doesn't have it?
Can playing on devmode get u banned?
No those plugins generally in Dev mode have signatures on them as approved by runelite and jagex. So no functions that break the rules.
you have discord? i have some pvp plugins that i wanna use on runelite . can you please help me?
Hey Stefan here it is: discord.gg/9ejb6AWR
no one knows wtf you said at 8:21 lol can you please add an annotation?? lol thx
Hi Sly, thank you for the video - beginner coding enthusiast here - do you have a Discord community I could join? I'm also based in Oz and would love to learn more from you! Cheers!
Hey Jesse much appreciated 🙂 here's the discord: discord.gg/55DXk4WU
@@slyautomation Does not work anymore :(
I can't seem to access the plugin hub. Also, most plugins I've found around GitHub both for Runelite and the legacy OpenOSRS error out when I try and add them. Could you do a run-through with a single larger plugin like the HD117?
UPDATE: I learned rewriting the current "1.X.X-Snapshot" with the current standard build restores the plugin hub. Still working on manually adding custom plugins.
hey Jacob, i'll do a turorial no worries, let me know which ones you're having trouble with.
@@slyautomation If i had to pick a single one it would be Ganom's One Click plugin. It was the biggest QOL plugin snuffed by the 3rd party crackdown. Anything from the Ganom and xKylee collections really. It's nice having a counter above Olms head keeping tabs on the cycle.
I'm trying to figure out the same things, so @SlyAutomation it would be amazing if you could make a tutorial! Gained a sub
Do you mind explaining how you restored the plugin hub?
@Omar H. read my "UPDATE". You have to rewrite the build version to match whatever runelite's current build is. It's been a while, but if you do a search for the snapshot version, then do something like right click and replace all with whatever text you want. Replace it with the current version.
Can you get banned for using your own plugins?
Depends on what you design, check the jagex rules but a summary is anything that tracks projectiles or alerts the next phase of an NPC (zulrah rotation change) or performs any do actions (does an action without human interaction) with the plugin that reduces clicks then they will be a red flag.
@@slyautomation But would this not mean that the plugin is undetectable? Overlays are undetectable no? And using the client through intelij should also be undetectable because its the same api as runelite itself no? Correct me if im wrong!
@@houssamassabahi6344 *pointing at head winking emote*
Can i use runelite from source and add the openosrs plugins
yes you can there are some packages/api functions that are named different and others that are not needed in runelite. so changing those in the java class files and the plugin should work in runelite
If i want to add old openosrs plugins to this how would i do it?
create a new folder in the plugins directory and add the java files. refactor the java files package at the top of the file code so it now references the folder path ie: package net.runelite.client.plugins. . Make sure they are the same format so a config file that extends config and the main plugin file where the class extends Plugin.
@@slyautomation god that sounds so confusing to me
@@slyautomation i will try to attempt this later thank you
@@Gematrinator Did you ever manage to figure it out?