Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Overwriting previous script version

Featured Replies

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

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 

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?

Create a jar artifact that exports the script jar into the scripts directory

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

 

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. 

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

  • 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.'

  • 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 by ZX700

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 =]

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 :D
Maybe it does the same in intelliJ?

Doeth thou use environment variablaroos? :)

Edited by liverare

  • Author
19 minutes ago, liverare said:

Doeth thou use environment variablaroos? :)

Not from what I can work out. :)

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.

  • 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

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.