Jump to content

CLI cant find script


wj7

Recommended Posts

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

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)

Link to comment
Share on other sites

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

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