Jump to content

Local script isn't loading


gchle

Recommended Posts

Hey, I have a problem that's driving me insane. Local scripts isn't loading in OSBot...

I have done this:

1. Set up new project in intellij

2. Imported OSBot library

3. Created new class with a minimal osbot template

4. Added new artifact

5. Built artifact

The .jar is exported to ~/OSBot/Scripts folder but doesn't show up in the script list.

Screenshots of everything: https://imgur.com/a/X3win4U

 

Any help is appreciated! 

Link to comment
Share on other sites

11 hours ago, Proton said:

image.png.8a38f3d0ed557b7152b8d227a412f43d.png

Tick that box

I'm 99% sure that's not the issue considering mine works fine without it checked. @gchle You are missing your META-INF. Click on my-script.jar in the window as above in my quote from Proton; And then at the bottom where it says "Show content of elements" a couple option saying to create or use existing manifest should appear. Click "Create Manifest...". Then select the folder the jar file is in which your case it would be bot-test. Then click okay and rebuild the script. It should now show up.

Link to comment
Share on other sites

12 hours ago, Proton said:

Tick that box

Didn't work, thanks though...

 

3 hours ago, Czar said:

IntelliJ isn't any good for starting - I highly recommend Eclipse IDE, super easy to configure and you'll be scripting within a half an hour ^^ :D 

Android dev since 2016, so won't be happening 😛

 

1 hour ago, Gunman said:

I'm 99% sure that's not the issue considering mine works fine without it checked. @gchle You are missing your META-INF. Click on my-script.jar in the window as above in my quote from Proton; And then at the bottom where it says "Show content of elements" a couple option saying to create or use existing manifest should appear. Click "Create Manifest...". Then select the folder the jar file is in which your case it would be bot-test. Then click okay and rebuild the script. It should now show up.

Yep, missed the META-INF but it only created a manifest with one line

Manifest-Version: 1.0

shouldn't it contain definitions for classes and stuff like that?

Also, it still doesn't work..... :( 

 

  • Sad 1
Link to comment
Share on other sites

Don't listen to czar, he's the biggest noob in osbot.

You might be missing the script manifest:

@ScriptManifest(logo = "", version = 0.01, info = "", name = "AIO FM", author = "Dream")
public class Main extends Script {...}

 

If you're unsure about a jars contents, there's a cmd that can return classes found in the jar I believe to verify.

 

oh just realized there was more pics in that imgur link, rip.

 

Are you using java 11? Hard to tell but you need java 8

Edited by dreameo
  • Like 1
Link to comment
Share on other sites

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...