Fanny Posted September 15 Share Posted September 15 When I started out with OSBot scripts, I used this guide which was very helpful - thanks @Token I am still unfamiliar with intellij though really - I can output scripts, but that is about it - I am limited to a directory of classes, which has been OK so far However, moving forward, I would like to make a library similar to the osbot.jar file whereby I can import my classes in a similar way for example; import org.osbot.rs07.api.ui.Skill; import org.fanny.utils.whatever; How do I go about this in intellij idea? This is a pretty major step to producing scripts faster and more accurately Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted September 16 Share Posted September 16 15 hours ago, Fanny said: When I started out with OSBot scripts, I used this guide which was very helpful - thanks @Token I am still unfamiliar with intellij though really - I can output scripts, but that is about it - I am limited to a directory of classes, which has been OK so far However, moving forward, I would like to make a library similar to the osbot.jar file whereby I can import my classes in a similar way for example; import org.osbot.rs07.api.ui.Skill; import org.fanny.utils.whatever; How do I go about this in intellij idea? This is a pretty major step to producing scripts faster and more accurately Osbot has something called a dependency part that can be accessed from all scripts. Quote Link to comment Share on other sites More sharing options...
Fanny Posted September 16 Author Share Posted September 16 4 hours ago, Khaleesi said: Osbot has something called a dependency part that can be accessed from all scripts. Wow that does look very neat. Yeah, mine looks nothing like that. Not sure where I went wrong, the other classes are what should be my dependencies like you have it Also my script is the entire project? You seem to be able to access individual projects from the same screen Dunno about IntelliJ Idea, my setup is more like No Idea Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted September 16 Share Posted September 16 Ya I have 1 project with multiple modules, each script is a module -Khaleesi --Dependencies folder --ScriptName1 --Scriptname2 Quote Link to comment Share on other sites More sharing options...
dubai Posted September 17 Share Posted September 17 Do you mean more packages to organise your classes better? In intelliJ, Right click the project folder you want to add a new package > new > package Then when you want to use a class from that package you just call it like Import myPackage.classInPackage; Quote Link to comment Share on other sites More sharing options...
Fanny Posted September 18 Author Share Posted September 18 On 9/16/2024 at 4:01 PM, Khaleesi said: Ya I have 1 project with multiple modules, each script is a module This is what I was looking for, thanks so much! Working on my utils now, hopefully better and less effort scripts result 13 hours ago, dubai said: Right click the project folder you want to add a new package > new > package I had my environment set up so that each script is a project, when there should be one project with multiple modules for scripts - seems to work now, not tested it extensively yet Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted September 18 Share Posted September 18 57 minutes ago, Fanny said: This is what I was looking for, thanks so much! Working on my utils now, hopefully better and less effort scripts result I had my environment set up so that each script is a project, when there should be one project with multiple modules for scripts - seems to work now, not tested it extensively yet Glad to hear! If you have any other questions let me know Quote Link to comment Share on other sites More sharing options...
dubai Posted September 18 Share Posted September 18 9 hours ago, Fanny said: I had my environment set up so that each script is a project, when there should be one project with multiple modules for scripts - seems to work now, not tested it extensively yet Ah gotcha, easy fix 8 hours ago, Khaleesi said: Glad to hear! If you have any other questions let me know I have a question!!! How did you get that epic colourful display name badge thingo that changes colour Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted September 19 Share Posted September 19 6 hours ago, dubai said: Ah gotcha, easy fix I have a question!!! How did you get that epic colourful display name badge thingo that changes colour It's the donor rank 1 Quote Link to comment Share on other sites More sharing options...
Fanny Posted September 25 Author Share Posted September 25 On 9/16/2024 at 4:01 PM, Khaleesi said: Ya I have 1 project with multiple modules, each script is a module -Khaleesi --Dependencies folder --ScriptName1 --Scriptname2 Quick update: Spent a lot of time fleshing out my utility scripts Writing scripts is a breeze now, with all the complex logic handled in the utilities, no need for writing extensive checks on every action etc, Thanks for this, 10X developer overnight I just have a quick question; regards paid scripts, the guide says requires Scripter II, but it makes no indication of what that means or how to get it (but I see you have that badge) I seem to recall someone mentioning a test or something, but IDK, would be interested to know? Quote Link to comment Share on other sites More sharing options...