Jump to content

Ubuntu CLI Parameter setup


Dragonsbreath

Recommended Posts

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

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

Edited by ThatGamerBlue
Link to comment
Share on other sites

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

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

 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

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