hero3128 Posted March 20, 2015 Posted March 20, 2015 Okay so i build my .jar in IntelliJ and test out the script etc. When i want to build the .jar again it keeps saying Warning:Artifacts builder: Cannot delete file 'OSBot/Scripts/hScripts.jar' Is their a workaround for this? The script is not running while im trying to rebuild it. Its frustrating having to re-open the client each new build.
drutism Posted March 20, 2015 Posted March 20, 2015 You can select your script's root directory in the project's view, hit F4, go to Artifacts, and change the "Name" at the top and it overwrite your old jar. This issue stems from the fact that the client loads the local script jars into memory or constantly is using them somehow therefore Intellij cannot overwrite them.
drutism Posted March 20, 2015 Posted March 20, 2015 (edited) [Double Posted] Edited March 20, 2015 by drutism
hero3128 Posted March 20, 2015 Author Posted March 20, 2015 (edited) You can select your script's root directory in the project's view, hit F4, go to Artifacts, and change the "Name" at the top and it overwrite your old jar. This issue stems from the fact that the client loads the local script jars into memory or constantly is using them somehow therefore Intellij cannot overwrite them. Okay so by the logic, even if i do what you told me i still would have to restart the client each time i want to test out the script for bug fixes etc... So its OSBot's fault? Is there no workaround for this? Edited March 20, 2015 by hero3128
drutism Posted March 22, 2015 Posted March 22, 2015 Okay so by the logic, even if i do what you told me i still would have to restart the client each time i want to test out the script for bug fixes etc... So its OSBot's fault? Is there no workaround for this? Did you try my workaround I posted above?