vztot Posted October 27, 2019 Share Posted October 27, 2019 (edited) 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 October 27, 2019 by vztot Quote Link to comment Share on other sites More sharing options...
Token Posted October 27, 2019 Share Posted October 27, 2019 The invite link is at the top of the page I'm not aware of any restrictions on CLI arguments for non-VIP users, it's most likely something else which requires further debugging in the script code 1 Quote Link to comment Share on other sites More sharing options...
vztot Posted October 27, 2019 Author Share Posted October 27, 2019 (edited) 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. Edited October 27, 2019 by vztot Quote Link to comment Share on other sites More sharing options...
Token Posted October 27, 2019 Share Posted October 27, 2019 1 hour ago, vztot said: Here is my exec string: And here is my script code: Bot works 55-65 seconds every time and then: Cant find out. It's working fine for me, correct your lowresourse typo and try port 0 1 Quote Link to comment Share on other sites More sharing options...
vztot Posted October 27, 2019 Author Share Posted October 27, 2019 (edited) 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 October 27, 2019 by vztot Quote Link to comment Share on other sites More sharing options...
Token Posted October 27, 2019 Share Posted October 27, 2019 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. 1 Quote Link to comment Share on other sites More sharing options...