Jump to content

-allow nointerface


vztot

Recommended Posts

Hi guys, i am new to this community and dunno limitations for free users. When i try run OSBot client with "-allow nointerface" arg it log in and my test script works around 1 minute, then exit with error code 0. In normal mode it works fine. It is because i am not VIP user?

P.S. Does OSBot have discord? The old invite link (https://discord.gg/osbot) do not works for me.

Edited by vztot
Link to comment
Share on other sites

Here is my exec string:

Quote

java -jar OSBot\ 2.5.59.jar -login vztot:xxxxx -data 0 -allow nointerface,lowcpu,lowresourse,norender -bot 001@xxx.xxx:xxxxx:0000 -world 456 -script OSBotTest:test -debug 5005
 

And here is my script code:

Quote

import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;

@ScriptManifest(name = "OSBotTest", author = "vztot", version = 1.0, info = "", logo = "")

public class Main extends Script {

    @Override
    public void onStart() {
        log("Script started...");
    }

    @Override
    public int onLoop() {
        log("Looping...");
        return 1000;
    }
}

 

Bot works 55-65 seconds every time and then:

 

Cant find out.

Screenshot from 2019-10-27 13-49-34.png

Edited by vztot
Link to comment
Share on other sites

Quote

correct your lowresourse typo...

What typo? If u mean " , " here says that -allow permissions are separated by " , ". Or i should add "-allow" to every permission?

 

Quote

...try port 0

Ok. I'll use "-debug 0".

 

I made a few changes in .sh files and script. Lets look:

We have 2 exec strings that should run OSBot in normal state and nointerface. The strings:

normal.sh:

Quote

#!/bin/bash
java -jar OSBot\ 2.5.59.jar -login vztot:XXXXX -data 0 -allow lowcpu,lowresourse,norender -bot 001@osbot.com:XXXXX:0000 -world 455 -script OSBotTest:test -debug 0

nointerface.sh:

Quote

#!/bin/sh
java -jar OSBot\ 2.5.59.jar -login vztot:XXXXX -data 0 -allow nointerface,lowcpu,lowresourse,norender -bot 002@osbot.com:XXXXX:0000 -world 455 -script OSBotTest:test -debug 0

 

OSBot script (changed):

Quote

import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;

@ScriptManifest(name = "OSBotTest", author = "vztot", version = 1.1, info = "", logo = "")

public class Main extends Script {

    long startTime;

    @Override
    public void onStart() {
        System.out.println("Script started...");
        startTime = System.currentTimeMillis();
    }

    @Override
    public int onLoop() {
        System.out.println("Looping... " + (System.currentTimeMillis() - startTime)/ 1000 + " sec.");
        return 1000;
    }

    @Override
    public void onExit(){
        System.out.println("TTL Runtime: " + (System.currentTimeMillis() - startTime)/ 1000 + " sec.");
    }
}

 

 

 Lets see what is happening in my case:

https://streamable.com/vpibg

 

We see that normal.sh is working fine but nointerface.sh is closed with error code 0. What it could be?

P.S. nointerface is logged in 100% cos i hear sound of tutisland

Edited by vztot
Link to comment
Share on other sites

1 hour ago, vztot said:

What typo? If u mean " , " here says that -allow permissions are separated by " , ". Or i should add "-allow" to every permission?

 

Ok. I'll use "-debug 0".

 

I made a few changes in .sh files and script. Lets look:

We have 2 exec strings that should run OSBot in normal state and nointerface. The strings:

normal.sh:

nointerface.sh:

 

OSBot script (changed):

 

 

 Lets see what is happening in my case:

https://streamable.com/vpibg

 

We see that normal.sh is working fine but nointerface.sh is closed with error code 0. What it could be?

P.S. nointerface is logged in 100% cos i hear sound of tutisland

By typo I mean the word is spelled resource not resourse, which may be the reason why it selects world 3155 in the stdout. Also disable the remember username feature. Change the flag order according to requirements in that table so that every flag is preceded by its required flags. If all else fails, try the oracle jdk as OSBot does not support open jdk (I don't know if that deprecation message appears by default with oracle jdk when starting OSBot or from additional flags that you may have used).

If nothing works. it's best to ask the developers if there is any problem with nointerface in tutorial island as this is a special context, but it's highly unlikely.

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