Jump to content

CLI cant find script


Recommended Posts

Posted (edited)

This is the code that I'm using.

Spoiler

cd C:\Users\Gebruiker\Desktop\Farm
for /f "delims=" %%x in ('dir /s /od /b OSBot*.jar') do set recent=%%x
java -jar "osbot 2.5.51.jar" -debug 5005 -login wj7:password -bot username@outlook.com:password:0000 -script FishNetLooter:null
pause

My script is local. (the name is FishNetLooter) This is the path that it's set in

Spoiler

C:\Users\Gebruiker\OSBot\Scripts

CMD prompt gives me this error!

Spoiler

Starting local script with name: FishNetLooter
[DEBUG][06/22 01:09:04 PM]: Injected 2 field list filters
[DEBUG][06/22 01:09:04 PM]: Injected 2 field filters
[DEBUG][06/22 01:09:04 PM]: Injected 2 method list filters
[DEBUG][06/22 01:09:04 PM]: Injected 3 method filters
In debug mode!
Listening for transport dt_socket at address: 5005
Stealth injection class-filter enabled!
Successfully loaded OSBot!
[INFO][06/22 01:09:05 PM]: Loaded 0 RS accounts!
Loaded 1 local scripts and 23 SDN scripts.
[INFO][06/22 01:09:05 PM]: Welcome to OSBot 2.5.51!
[INFO][06/22 01:09:06 PM]: Updated injection hooks for client revision : 180!
[DEBUG][Bot #1][06/22 01:09:06 PM]: Initializing stealth injection bot...
[INFO][Bot #1][06/22 01:09:06 PM]: Downloading latest RS2 old-school client parameters...
[INFO][Bot #1][06/22 01:09:06 PM]: Downloading latest RS2 old-school client...
[DEBUG][Bot #1][06/22 01:09:08 PM]: Injected bot reference into client!
[DEBUG][Bot #1][06/22 01:09:09 PM]: Injected world accessors!
[DEBUG][Bot #1][06/22 01:09:09 PM]: Injected 37 class and 326 field accessors!
[DEBUG][Bot #1][06/22 01:09:09 PM]: Injected canvas!
[DEBUG][Bot #1][06/22 01:09:09 PM]: Injected 4 model update calls!
[DEBUG][Bot #1][06/22 01:09:09 PM]: Injected 8 definition calls!
[DEBUG][Bot #1][06/22 01:09:09 PM]: Injected 28 definition transformation calls!
[DEBUG][Bot #1][06/22 01:09:09 PM]: Injected random.dat patch for bot #1
[DEBUG][Bot #1][06/22 01:09:09 PM]: Injected 3 tooltip callbacks!
[DEBUG][Bot #1][06/22 01:09:09 PM]: Injected 4 config callbacks!
[DEBUG][Bot #1][06/22 01:09:09 PM]: Injected 16 head message callbacks!
[DEBUG][Bot #1][06/22 01:09:09 PM]: Injected 4 chatbox message callbacks!
[DEBUG][Bot #1][06/22 01:09:10 PM]: Injected 26 draw skip points!
[DEBUG][Bot #1][06/22 01:09:11 PM]: Injected 0 hit splat callbacks!
[DEBUG][Bot #1][06/22 01:09:11 PM]: Injected 3 equipment callbacks!
[DEBUG][Bot #1][06/22 01:09:11 PM]: Injected 1 login return code callbacks!
[DEBUG][Bot #1][06/22 01:09:12 PM]: Injected 8 analysis callbacks!
[DEBUG][Bot #1][06/22 01:09:12 PM]: Loading RS world : 31
[INFO][Bot #1][06/22 01:09:13 PM]: Initializing 38 API modules...
[INFO][06/22 01:09:13 PM]: Started bot #1
Waiting for the game to load before starting script...
Starting script...
Could not find script : FishNetLooter

So my question is, why cant it find the script and how do I make it load? I tried changing the name in the cmd file with the .jar extention but it still doesn't find the script.

Any help would greatly be appreciated, thank you!

Edited by wj7
forgot to edit the password out lol.
Posted
3 hours ago, Token said:

Make sure the command prompt was run by the local user (not admin) and delete the for loop

I only have one user on this laptop so I can't change with what user i run it with. Tried running the .bat file regularly and as an administrator but both dont work.

And what do you mean with delete the for loop? (sorry my script knowledge isn't all too well)

Posted
2 hours ago, wj7 said:

I only have one user on this laptop so I can't change with what user i run it with. Tried running the .bat file regularly and as an administrator but both dont work.

And what do you mean with delete the for loop? (sorry my script knowledge isn't all too well)

Delete the unnecessary code in your batch file, leave only the line that launches OSBot

Posted
7 minutes ago, Token said:

Delete the unnecessary code in your batch file, leave only the line that launches OSBot

I have. OSBot launches just fine but it doesn't log in and start the script because it cant find the script.

Posted
1 hour ago, Token said:

Then the script name is wrong, make sure it matches the script manifest

Can you explain the script manifest to me? I have no idea what that is 😜. I tried using a random SDN script with the script id and parameters given in the thread and that worked though.

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