Mr def nerd Posted July 31, 2013 Share Posted July 31, 2013 Okay, so I just started scripting for OSBot, and I have realized that I have to restart the whole client everytime I update my script (Yes, I have the output folder set to the scripts folder). This means that if lets say I want to add another ID to an array I have to restart the whole bot to make the changes happen.. (And yes again I tried using the refresh button in the script selector) Is there something I am doing wrong or is it the bot itself? Thanks in advance! Link to comment Share on other sites More sharing options...
Led Zeppelin Posted July 31, 2013 Share Posted July 31, 2013 Delete the old script file, then open the client and hit refresh it should no longer be there, then close the client, move the script into the folder and open your client it should be there freshly updated! Also make sure it has the right extension like .groovy or .jar not .java or .groovy.txt Link to comment Share on other sites More sharing options...
Mr def nerd Posted July 31, 2013 Author Share Posted July 31, 2013 (edited) Delete the old script file, then open the client and hit refresh it should no longer be there, then close the client, move the script into the folder and open your client it should be there freshly updated! Also make sure it has the right extension like .groovy or .jar not .java or .groovy.txt That is the problem, do I really have to restart the client every time I make a change to my script? It is quite tedious to have to close the client then log back in again just to apply a small change Edited July 31, 2013 by mrsdefnerd Link to comment Share on other sites More sharing options...
Led Zeppelin Posted July 31, 2013 Share Posted July 31, 2013 Delete the old script file, then open the client and hit refresh it should no longer be there, then close the client, move the script into the folder and open your client it should be there freshly updated! Also make sure it has the right extension like .groovy or .jar not .java or .groovy.txt That is the problem, do I really have to restart the client every time I make a change to my script? Yes, when i try to delete or move local scripts with the client running it says "Sorry - This action cannot be performed as the file(s) you are trying to delete are currently in use" So with that being said, if your exporting to the script folder with the client going it most likely wont export properly. Link to comment Share on other sites More sharing options...
Mr def nerd Posted July 31, 2013 Author Share Posted July 31, 2013 Delete the old script file, then open the client and hit refresh it should no longer be there, then close the client, move the script into the folder and open your client it should be there freshly updated! Also make sure it has the right extension like .groovy or .jar not .java or .groovy.txt That is the problem, do I really have to restart the client every time I make a change to my script? Yes, when i try to delete or move local scripts with the client running it says "Sorry - This action cannot be performed as the file(s) you are trying to delete are currently in use"So with that being said, if your exporting to the script folder with the client going it most likely wont export properly. Hmm, okay, it just felt so weird since this is the first bot I have tried scripting for that doesnt allow you to update scripts while its running Link to comment Share on other sites More sharing options...
Kati2 Posted August 1, 2013 Share Posted August 1, 2013 If you don't use a jar and used the compiled .class files directly it will update live. No point in constantly making a jar just for testing purposes anyway. Link to comment Share on other sites More sharing options...
BotRS123 Posted August 1, 2013 Share Posted August 1, 2013 Okay, so I just started scripting for OSBot, and I have realized that I have to restart the whole client everytime I update my script (Yes, I have the output folder set to the scripts folder). This means that if lets say I want to add another ID to an array I have to restart the whole bot to make the changes happen.. (And yes again I tried using the refresh button in the script selector) Is there something I am doing wrong or is it the bot itself? Thanks in advance! Press the "Refresh" button after you copy it over. Link to comment Share on other sites More sharing options...
Mr def nerd Posted August 1, 2013 Author Share Posted August 1, 2013 I am doing what you are saying.. Link to comment Share on other sites More sharing options...