October 9, 20178 yr Hi guys, Every time I update my script in IntelliJ, I naturally want to test it in OSBot. Problem is that if the client is already open then I can't overwrite the local script as it is loaded into the client. Is there a way to override this and delete the script anyway? It is a pain to keep closing and reopening the client every time. Thanks
October 9, 20178 yr it will still update it to see just change the versions and either log it or have it in your paint and you will see the difference
October 9, 20178 yr well when im using eclipse i just stop the script, then export over it and then just reload scripts and it works, im assuming it would have been the same in IntelliJ?
October 9, 20178 yr In Eclipse I make it export the class files straight to the osbot script folder and everytime I hit save the files gets updated Maybe it does the same in intelliJ?
October 9, 20178 yr Author 5 minutes ago, Deceiver said: it will still update it to see just change the versions and either log it or have it in your paint and you will see the difference I've given it a go and my paint hasn't changed . 6 minutes ago, Token said: Create a jar artifact that exports the script jar into the scripts directory I believe I've done that, Output directory: C:\Users\ZX700\OSBot\Scripts.
October 9, 20178 yr I think you have the jar within the directory and intelliJ has access to that, maybe that's why it thinks the .jar is being used and can't be deleted or updated.
October 9, 20178 yr Author The message I'm getting is this: Warning: Artifacts builder: Cannot delete file 'C:/Users/ZX700/OSBot/Scripts/ZX_Agility.jar' C:\Users\ZX700\IdeaProjects\ZX_Agility\src\main.java ! Information: java C:\Users\ZX700\IdeaProjects\ZX_Agility\src\main.java ! Information: java: Recompile with -Xint:unchecked for details. Like I say, if I terminate OSBot then I no longer get this warning.
October 9, 20178 yr Author Furthermore if I try to delete the .jar using file explorer I get the message File In Use: 'The action can't be completed because the file is open in Java(TM) Platform SE binary Close the file and try again.'
October 9, 20178 yr Author 36 minutes ago, Deceiver said: it will still update it to see just change the versions and either log it or have it in your paint and you will see the difference Oh it seems like you were right! I'm not sure what has changed, but it is suddenly working as you say! Thanks for the help guys! Edit: Perhaps the problem was not hitting refresh. Edited October 9, 20178 yr by ZX700
October 9, 20178 yr 18 minutes ago, ZX700 said: Oh it seems like you were right! I'm not sure what has changed, but it is suddenly working as you say! Thanks for the help guys! Edit: Perhaps the problem was not hitting refresh. no problem =]
October 10, 20178 yr 9 hours ago, Khaleesi said: In Eclipse I make it export the class files straight to the osbot script folder and everytime I hit save the files gets updated Maybe it does the same in intelliJ? Doeth thou use environment variablaroos? Edited October 10, 20178 yr by liverare
October 10, 20178 yr Author 19 minutes ago, liverare said: Doeth thou use environment variablaroos? Not from what I can work out.
October 10, 20178 yr 32 minutes ago, ZX700 said: Not from what I can work out. I did have a guide on how to set up Eclipse, but I can't find it. I'll probably write another up later.
October 10, 20178 yr Author 42 minutes ago, liverare said: I did have a guide on how to set up Eclipse, but I can't find it. I'll probably write another up later. It's okay, problem solved (although my understanding remains unclear), thanks anyway!
Create an account or sign in to comment