Jump to content

Ubuntu CLI Parameter setup


Recommended Posts

Posted (edited)

I am setting up my script to work in Ubuntu 17.04 Server as follows:

java -jar "/OSBot 2.5.3.jar" -login  -bot  -proxy  -script 671:1;2;1;0

Example from Scripter

Usage:

-script 671:LecternID;TabID;BankingID;Host;Hostname

Example usage:

-script 671:2;2;6;0


This is the result:

Terminal & Bot Logger

Starting SDN script with id: 671
[DEBUG][04/06 02:10:37 PM]: Injected 2 field list filters
[DEBUG][04/06 02:10:37 PM]: Injected 2 field filters
[DEBUG][04/06 02:10:37 PM]: Injected 2 method list filters
[DEBUG][04/06 02:10:37 PM]: Injected 3 method filters
2: command not found
1: command not found
0: command not found
[INFO][Bot #1][04/06 02:11:11 PM]: Welcome to Khal Tab maker!
[INFO][Bot #1][04/06 02:11:11 PM]: Loaded font
[INFO][Bot #1][04/06 02:11:13 PM]: Random solver exited : Welcome Screen
[INFO][Bot #1][04/06 02:11:16 PM]: Wrong amount of parameters
Edited by Dragonsbreath
Posted
31 minutes ago, Dragonsbreath said:

No, this is my command with the login details removed.
 


sudo java -jar "/OSBot 2.5.3.jar" -login  -bot  -proxy  -world 302 -script 671:1,2,1,0

It starts up perfectly, however anything past 671:1 is not passed into osbot

you need to use semicolons instead of commas

 

Posted (edited)
23 minutes ago, ThatGamerBlue said:

try wrapping the command in quotes, 


sudo "java -jar \"/OSBot 2.5.3.jar\" -login  -bot  -proxy  -world 302 -script 671:1,2,1,0"

also you shouldn't have to use sudo

edit: nvm that wont work, escape the commas with backslashes

java -jar "/OSBot 2.5.3.jar" -login -bot -proxy -world 302 -script 671:1\,2\,1\,0

When I do this OSBOT goes into Low Resouce Mode and the proxy is removed. It's almost as if the Params are sent as OSbot commands instead of -Script parameters 
LlPm1TP.png

When I try the backslashes with semi-colons the bot will not start.

Edited by Dragonsbreath
Posted
4 minutes ago, Muffins said:

try adding -script before proxy and world

Thank you for your suggestion however I get the same error & proxy is removed from client :(
 

java -jar "OSBot 2.5.3.jar" -login  -bot  -script 671:1;2;1;0 -proxy  
Starting SDN script with id: 671
[DEBUG][04/06 03:14:31 PM]: Injected 2 field list filters
[DEBUG][04/06 03:14:31 PM]: Injected 2 field filters
[DEBUG][04/06 03:14:31 PM]: Injected 2 method list filters
[DEBUG][04/06 03:14:31 PM]: Injected 3 method filters
2: command not found
1: command not found
0: command not found
[INFO][Bot #1][04/06 03:15:04 PM]: Welcome to Khal Tab maker!
[INFO][Bot #1][04/06 03:15:04 PM]: Loaded font
[INFO][Bot #1][04/06 03:15:06 PM]: Random solver exited : Welcome Screen
[INFO][Bot #1][04/06 03:15:09 PM]: Wrong amount of parameters

 

Posted
Just now, Dragonsbreath said:

Thank you for your suggestion however I get the same error & proxy is removed from client :(
 


java -jar "OSBot 2.5.3.jar" -login  -bot  -script 671:1;2;1;0 -proxy  
Starting SDN script with id: 671
[DEBUG][04/06 03:14:31 PM]: Injected 2 field list filters
[DEBUG][04/06 03:14:31 PM]: Injected 2 field filters
[DEBUG][04/06 03:14:31 PM]: Injected 2 method list filters
[DEBUG][04/06 03:14:31 PM]: Injected 3 method filters
2: command not found
1: command not found
0: command not found

[INFO][Bot #1][04/06 03:15:04 PM]: Welcome to Khal Tab maker!
[INFO][Bot #1][04/06 03:15:04 PM]: Loaded font
[INFO][Bot #1][04/06 03:15:06 PM]: Random solver exited : Welcome Screen
[INFO][Bot #1][04/06 03:15:09 PM]: Wrong amount of parameters

 

are you sure your parameters in your script are configured correctly?

Posted
5 minutes ago, Dragonsbreath said:

I am almost certain I have checked it 10 times for this fear. 

Example from Scripter


Usage:

-script 671:LecternID;TabID;BankingID;Host;Hostname

Example usage:

-script 671:2;2;6;0

forgive me for possible retard moment, but for example usage wouldnt you do

 

-script 671 18765;525;188;Friend;99conFTWHOUSE

 

or something like that? I'm not too familiar with params/setup

Posted (edited)
5 minutes ago, Muffins said:

forgive me for possible retard moment, but for example usage wouldnt you do

 

-script 671 18765;525;188;Friend;99conFTWHOUSE

 

or something like that? I'm not too familiar with params/setup

It could, but only if it were designed like that. 


The params are built into the script by ID

Example usage:

-script 671:2;2;6;0

(Use Eagle lectern, varrock tabs, unnote at rimmington, no Host)


 

Edited by Dragonsbreath
Posted
Just now, Dragonsbreath said:

It could, but only if it were designed like that. 


The params are built into the script by ID

So -script 671 tells OSBot to open the script 671 on SDN


Example usage:

-script 671:2;2;6;0

(Use Eagle lectern, varrock tabs, unnote at rimmington, no Host)


 

I see, it could be broken due to an update from Thursday, I reckon you post on the tabmaker (I presume khalessi) thread asking him to look it over.

  • Like 1

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