Jump to content

Overwriting previous script version


ZX700

Recommended Posts

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

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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