Jump to content

Overwriting previous script version


Recommended Posts

Posted

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

Posted
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.

 

Posted

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.

Posted (edited)
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 by ZX700

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...