Jump to content

Script Development Setup


Token

Recommended Posts

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
Link to comment
Share on other sites

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/

Link to comment
Share on other sites

  • 1 year later...
  • 6 months later...

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
Link to comment
Share on other sites

  • 6 months later...
  • 4 weeks later...
  • 2 months later...
  • 5 months later...
  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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