Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved Loading local scripts

Joined
May 4, 2018
Messages
7
I'm new here so I'm not too sure. How do I load my local scripts? Can I use the .jar file or does it have to be class files? Also in what folder should I put the scripts at?

I already have a script I just want to test it out.
 
Joined
May 4, 2018
Messages
7
see last steps off Tutorial - Setting up IntelliJ for RuneMate on Windows - Tutorial 1

Add the -sdk parameter and beyond that.

I get an error when I run the client.
Code:
[Debug] Java Home: C:\Program Files\Java\jdk1.8.0_25\jre
Invalid login syntax. The correct syntax is -login=USERNAME:PASSWORD
[Debug] Java Version: 8u25 x64 (Oracle Corporation)
[Debug] Maximum Heap Size: 1800MB
[Debug] RuneMate Version: 2.84.1
[Debug] Operating System: Windows 8.1 x64

Exception in thread "RuneMate Login" java.lang.IllegalStateException: Not on FX application thread; currentThread = RuneMate Login
    at com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:204)
    at com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:364)
    at javafx.scene.Scene.addToDirtyList(Scene.java:485)
    at javafx.scene.Node.addToSceneDirtyList(Node.java:424)
    at javafx.scene.Node.impl_markDirty(Node.java:415)
    at javafx.scene.Node.notifyParentsOfInvalidatedCSS(Node.java:8709)
    at javafx.scene.Node.requestCssStateTransition(Node.java:8639)
    at javafx.scene.Node.pseudoClassStateChanged(Node.java:8680)
    at javafx.scene.Node$8.invalidated(Node.java:1634)
    at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:109)
    at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:143)
    at javafx.scene.Node.setDisabled(Node.java:1617)
    at javafx.scene.Node.updateDisabled(Node.java:1659)
    at javafx.scene.Node.access$500(Node.java:383)
    at javafx.scene.Node$MiscProperties$8.invalidated(Node.java:6520)
    at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:109)
    at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:143)
    at javafx.scene.Node.setDisable(Node.java:1539)
    at nul.iiiIIiiIiiiii.false(pob:40)
    at nul.iiiIIiiIiiiii$$Lambda$330/986726281.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:745)

Process finished with exit code 0
I know it has to do with the login config. But I'm not sure what's wrong with it. I used my unsername with and without space, and I tried my email. I tried to remove the OSRS part and it didn't work.

-sdk -login=Miami 369:pASSWORD:OSRS
 
@Cloud
 
cuppa.drink(java);
Joined
Mar 13, 2018
Messages
6,966
I get an error when I run the client.
Code:
[Debug] Java Home: C:\Program Files\Java\jdk1.8.0_25\jre
Invalid login syntax. The correct syntax is -login=USERNAME:PASSWORD
[Debug] Java Version: 8u25 x64 (Oracle Corporation)
[Debug] Maximum Heap Size: 1800MB
[Debug] RuneMate Version: 2.84.1
[Debug] Operating System: Windows 8.1 x64

Exception in thread "RuneMate Login" java.lang.IllegalStateException: Not on FX application thread; currentThread = RuneMate Login
    at com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:204)
    at com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:364)
    at javafx.scene.Scene.addToDirtyList(Scene.java:485)
    at javafx.scene.Node.addToSceneDirtyList(Node.java:424)
    at javafx.scene.Node.impl_markDirty(Node.java:415)
    at javafx.scene.Node.notifyParentsOfInvalidatedCSS(Node.java:8709)
    at javafx.scene.Node.requestCssStateTransition(Node.java:8639)
    at javafx.scene.Node.pseudoClassStateChanged(Node.java:8680)
    at javafx.scene.Node$8.invalidated(Node.java:1634)
    at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:109)
    at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:143)
    at javafx.scene.Node.setDisabled(Node.java:1617)
    at javafx.scene.Node.updateDisabled(Node.java:1659)
    at javafx.scene.Node.access$500(Node.java:383)
    at javafx.scene.Node$MiscProperties$8.invalidated(Node.java:6520)
    at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:109)
    at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:143)
    at javafx.scene.Node.setDisable(Node.java:1539)
    at nul.iiiIIiiIiiiii.false(pob:40)
    at nul.iiiIIiiIiiiii$$Lambda$330/986726281.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:745)

Process finished with exit code 0
I know it has to do with the login config. But I'm not sure what's wrong with it. I used my unsername with and without space, and I tried my email. I tried to remove the OSRS part and it didn't work.

-sdk -login=Miami 369:pASSWORD:OSRS
 
@Cloud

So it works when you don't use the login parameter and just login manually? My assumption is that it has to do with the space in your username.

Try:
Code:
-sdk -login="Miami 369":mysekretpazzwurd

Replacing your pass, and without the OSRS at the end (I've never used that).

Also, just for the record, you have the wrong version of java for runemate -- runemate sometimes has problems with 64 bit java, works better with 32 bit. So if you have problems with running a bot in the future, try uninstalling all 64 bit java on your computer and get 32 bit.
 
Joined
May 4, 2018
Messages
7
So it works when you don't use the login parameter and just login manually? My assumption is that it has to do with the space in your username.

Try:
Code:
-sdk -login="Miami 369":mysekretpazzwurd

Replacing your pass, and without the OSRS at the end (I've never used that).

Also, just for the record, you have the wrong version of java for runemate -- runemate sometimes has problems with 64 bit java, works better with 32 bit. So if you have problems with running a bot in the future, try uninstalling all 64 bit java on your computer and get 32 bit.

the log in worked but I still cant find my local script. I have the script and manifest ready.
 
cuppa.drink(java);
Joined
Mar 13, 2018
Messages
6,966
Joined
Jun 28, 2018
Messages
7
What did you do to get it to work? Mines not working. I thought I had everything correct. Its just not showing up.
 
cuppa.drink(java);
Joined
Mar 13, 2018
Messages
6,966
What did you do to get it to work? Mines not working. I thought I had everything correct. Its just not showing up.
Do you have your manifest set up correctly and you're selecting the bin folder correctly etc? Check the guide a few posts up and if you're still having a problem you'll have to be more specific.
 
Joined
Jun 28, 2018
Messages
7
My manifest is correct. What bin folder should I choose? Also I am developing with JDK 10 then running it in JRE 8 would that cause a problem?

Edit1: I am currently not home. I will send some shots and make a new thread if needed. I've been trying to figure it out myself as it is the best way to learn. It is just starting to drive me up the wall.

Also the bot I'm trying to use is tiny. Just something simple so I can get the concept of intellij and Spectre communication.
 
cuppa.drink(java);
Joined
Mar 13, 2018
Messages
6,966
My manifest is correct. What bin folder should I choose? Also I am developing with JDK 10 then running it in JRE 8 would that cause a problem?

Edit1: I am currently not home. I will send some shots and make a new thread if needed. I've been trying to figure it out myself as it is the best way to learn. It is just starting to drive me up the wall.

Also the bot I'm trying to use is tiny. Just something simple so I can get the concept of intellij and Spectre communication.
You should choose the bin folder of the project you're running.

Basic steps:
- ensure proper structure eg treebot/loopingbot class, manifest etc
- run java program in sdk mode using RuneMate.boot.Boot; or whatever
- in settings of RuneMate in sdk mode, select destination folder of bin folder you just compiled
- bot appears, select and run

TL;dr follow guide linked above and tell me what step you get stuck on
 
Joined
Jun 28, 2018
Messages
7
I'm getting this error

Exception in thread "Thread-15" java.lang.UnsupportedClassVersionError: com/Zehix/bots/DoorToggleTest/CheckDoorOpen has been compiled by a more recent version of the Java Runtime (class file version 54.0), this version of the Java Runtime only recognizes class file versions up to 52.0


Edit1: I'm working on getting JDK 8 installed. Hopefully when I get that running and get the code compiled through that everything will work.
 
I got it working. It was my java version that was messing things up. Make sure you are running it in Java 8. Also if you are using the tree visualizer you have to run that in 8 as well or it will give you the wrong class files.
 
Top