Jump to content

Script Development Setup


Recommended Posts

Posted (edited)

Guide is still pretty accurate on the setup process. One thing I had to do though, was on step 4.4, I had to click "Ok"  (before putting file into output root since it was greyed out) and then return to the menu and right click on the available elements and put into output root (in case it helps someone else).

Also, where do we request git access formally?

Edited by darkblitz
clarification
Posted
50 minutes ago, darkblitz said:

Guide is still pretty accurate on the setup process. One thing I had to do though, was on step 4.4, I had to click "Ok"  (before putting file into output root since it was greyed out) and then return to the menu and right click on the available elements and put into output root (in case it helps someone else).

Also, where do we request git access formally?

https://osbot.org/forum/forum/181-sdn-requests/

  • 1 year later...
  • 6 months later...
Posted (edited)

If after the last step of part 1 your script is not appearing in the client or folder: 
Simply search your system for the classname
Then drag the file into osbot/scripts

And you are all set !

Spoiler

I'm using jdk.1.8.0_371

My manifest is right there !

Can you spot why my examplescript is not uploading into my osb client?

Build log:

Executing pre-compile tasks...
Running 'before' tasks
Checking sources
Parsing java… [scripts]
Writing classes… [scripts]
Checking dependencies… [scripts]
Dependency analysis found 0 affected files
Updating dependency information… [scripts]
Adding nullability assertions… [scripts]
Adding threading assertions… [scripts]
Adding pattern assertions… [scripts]
Building artifact 'scripts_jar'…
Deleting outdated files…
Building artifact 'scripts_jar': copying files…
Building archives…
Building ${user.home}/OSBot/Scripts//scripts_jar.jar…
Copying archives…
Running 'after' tasks
javac 8 was used to compile java sources
Finished, saving caches…
Executing post-compile tasks...
Finished, saving caches…
Synchronizing output directories...
01/06/2023, 18:32 - Build completed successfully in 4 sec, 108 ms

 

 

ExampleScript.java class:

import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;

@ScriptManifest(author = "Me", info = "Test", logo = "", name = "Example Script", version = 1)
public class ExampleScript extends Script {
@Override
public int onLoop() throws InterruptedException {
return 0;
}
 
 
Edited by BackToRS
  • 6 months later...
  • 4 weeks later...
  • 2 months later...
  • 5 months later...
  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...