wj7 Posted June 22, 2019 Share Posted June 22, 2019 (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 June 22, 2019 by wj7 forgot to edit the password out lol. Quote Link to comment Share on other sites More sharing options...
Token Posted June 22, 2019 Share Posted June 22, 2019 Make sure the command prompt was run by the local user (not admin) and delete the for loop Quote Link to comment Share on other sites More sharing options...
wj7 Posted June 22, 2019 Author Share Posted June 22, 2019 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) Quote Link to comment Share on other sites More sharing options...
Token Posted June 22, 2019 Share Posted June 22, 2019 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 Quote Link to comment Share on other sites More sharing options...
wj7 Posted June 22, 2019 Author Share Posted June 22, 2019 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. Quote Link to comment Share on other sites More sharing options...
Token Posted June 22, 2019 Share Posted June 22, 2019 16 minutes ago, wj7 said: I have. OSBot launches just fine but it doesn't log in and start the script because it cant find the script. Then the script name is wrong, make sure it matches the script manifest Quote Link to comment Share on other sites More sharing options...
wj7 Posted June 22, 2019 Author Share Posted June 22, 2019 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. Quote Link to comment Share on other sites More sharing options...
Hybris Posted June 26, 2019 Share Posted June 26, 2019 https://osbot.org/forum/topic/115124-explvs-scripting-101/ Script manifest is explained under the "Script Skeleton" part Quote Link to comment Share on other sites More sharing options...