Qubit Posted January 7, 2016 Posted January 7, 2016 So.. I wrote a script. Exported it to scripts in Osbot folder. I try to start it in Osbot and nothing happens. Like i put log("Script started") at the top of onStart() and that doesnt show. I've looked over my code and overriden methods in my scripts and everything seems to be correct. if u can helps comment.. or mesage in me in chat box
Qubit Posted January 7, 2016 Author Posted January 7, 2016 do u have the manifest? show the code? yea.. i have everything, rather not share code publicly just because.
KEVzilla Posted January 7, 2016 Posted January 7, 2016 Alright then how are we supposed to help? By guessing your code? 2
Qubit Posted January 7, 2016 Author Posted January 7, 2016 (edited) Alright then how are we supposed to help? By guessing your code? asking for a pm for the code or teamviewr Edited January 7, 2016 by Qubit
Mysteryy Posted January 8, 2016 Posted January 8, 2016 yea.. i have everything, rather not share code publicly just because. You would rather not share log("Wtf??") Do you really think someone is gonna rip your log?
Qubit Posted January 8, 2016 Author Posted January 8, 2016 You would rather not share log("Wtf??") Do you really think someone is gonna rip your log? Im assuming he wants to see the whole script. Because the problem is not with onStart(). I said i put a log in there to test if the script even starts. Which it doesn't. Obviously if I was just giving the onStart() method I would have no problem with it.....
Paradox68 Posted January 8, 2016 Posted January 8, 2016 Qubit nobody who knows what they're doing cares about your script lol. We're all capable of recreating it anyways but if you don't feel comfortable posting code for us to analyze you're crap outta luck. Troubleshooting method: after each line in the onstart add a log so you can see what checkpoint the code stops at. If you're loading a GUI built with JFormDesigner and it's complex, you might have to redo the GUI because I had that same issue. example: @Override public void onStart() throws InterruptedException { log("a"); UI gui = new UI(this); log("b"); gui.setVisible(true); log("c"); while (gui.isVisible()) { sleep(100); } log("d"); apply method as needed to figure out where the code stops being called. 1
Mysteryy Posted January 8, 2016 Posted January 8, 2016 (edited) Im assuming he wants to see the whole script. Because the problem is not with onStart(). I said i put a log in there to test if the script even starts. Which it doesn't. Obviously if I was just giving the onStart() method I would have no problem with it..... If you want help post it, otherwise you will need to debug yourself. Nobody wants to steal your scripts, especially if its not even getting past onstart.. Edited January 8, 2016 by Mysteryy
Zappster Posted January 8, 2016 Posted January 8, 2016 (edited) Qubit nobody who knows what they're doing cares about your script lol. We're all capable of recreating it anyways but if you don't feel comfortable posting code for us to analyze you're crap outta luck. Troubleshooting method: after each line in the onstart add a log so you can see what checkpoint the code stops at. If you're loading a GUI built with JFormDesigner and it's complex, you might have to redo the GUI because I had that same issue. example: @Override public void onStart() throws InterruptedException { log("a"); UI gui = new UI(this); log("b"); gui.setVisible(true); log("c"); while (gui.isVisible()) { sleep(100); } log("d"); apply method as needed to figure out where the code stops being called. You can also run OSBot in debug mode to use breakpoint and other debug tools supplied in your IDE.(Open OSBot -> @login screen -> click about) Edited January 8, 2016 by ZappaScripts
Qubit Posted January 8, 2016 Author Posted January 8, 2016 (edited) FIXED.. Script wouldn't get past initializing BufferedImage.. found by Okabe Thanks for the attempted help for everyone. Mysteryy maybe you can be less of a dick? Edited January 8, 2016 by Qubit