- Thread Author
- #1
Hey, I need some help running what I have.
Here is what I am getting.
Runemate Spectre error
Main class of WolfIsland could not be initialized (com.beowolf.bots.Island)
IntelliJ error
Here is the code I am trying to run
here is the gradle settings
Here is what I am getting.
Runemate Spectre error
Main class of WolfIsland could not be initialized (com.beowolf.bots.Island)
IntelliJ error
[ERROR] [ RuneMate] Failed to create bot instancejava.lang.ClassNotFoundException: com.beowolf.bots.Island at java.lang.ClassLoader.findClass(ClassLoader.java:723) ~[?:?] at nul.iIIiIIiiiiIIiii.findClass(xpd:113) ~[runemate-client-4.13.7.0.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:592) ~[?:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:525) ~[?:?] at nul.iiiIiIiiiiIiIiI.iiiIiiiIIiiIiii(djd:91) ~[runemate-client-4.13.7.0.jar:?] at nul.IiiIiIiiiiiiIii.IiiiiiiIIiIiIiI(czd:171) ~[runemate-client-4.13.7.0.jar:?] at nul.IiiIiIiiiiiiIii.invoke(czd:171) ~[runemate-client-4.13.7.0.jar:?] at nul.IIIiiIiiiiiIIii.iIiiIiiIIiiiiii(czd:339) ~[runemate-client-4.13.7.0.jar:?] at nul.IIIiiIiiiiiIIii.run(czd:125) ~[runemate-client-4.13.7.0.jar:?] [ERROR] [ RuneMate] Failed to start sessioncom.runemate.client.bind.SessionInitializationException: Main class of WolfIsland could not be initialized (com.beowolf.bots.Island). at nul.IIIiiIiiiiiIIii.iIiiIiiIIiiiiii(czd:305) ~[runemate-client-4.13.7.0.jar:?] at nul.IIIiiIiiiiiIIii.run(czd:125) ~[runemate-client-4.13.7.0.jar:?] [INFO ] [ RuneMate] Main class of WolfIsland could not be initialized (com.beowolf.bots.Island).Here is the code I am trying to run
package com.beowolf.bots.wolfisland;import com.runemate.game.api.hybrid.entities.Player;import com.runemate.game.api.hybrid.region.Players;import com.runemate.game.api.script.framework.LoopingBot;public class Island extends LoopingBot { public Wolf wolf; @Override public void onLoop() { final Player player = Players.getLocal(); if (player == null) return; wolf.execute(); } @Override public void onStart(String... args) { this.wolf = new Wolf(this); this.setLoopDelay(300, 800); }}package com.beowolf.bots.wolfisland;import com.runemate.game.api.hybrid.entities.*;import com.runemate.game.api.hybrid.input.Keyboard;import com.runemate.game.api.hybrid.local.hud.interfaces.*;import com.runemate.game.api.hybrid.region.Players;import com.runemate.game.api.script.Execution;import java.util.Random;public class Wolf { Island island; public Player player; public Wolf(Island island) { this.island = island; } public void execute(){ player = Players.getLocal(); if(player == null){ return; } InterfaceComponent nameArea = Interfaces.newQuery().textContains("*").results().first(); if(nameArea != null){ Execution.delayUntil(nameArea::click, delay(500, 2500)); Keyboard.type("Batman", true); } } public int delay(int low, int high){ return new Random().nextInt(high-low) + low; }}here is the gradle settings
plugins { id("java") id("com.runemate") version "1.5.0"}runemate { devMode = true autoLogin = true manifests { create("WolfIsland") { //... manifest elements mainClass = "com.beowolf.bots.Island" tagline = "Gets you off the island" description = "Talks to people, does tasks and gets you off the island." version = "0.0.1" internalId = "beowolf-tutorialIsland" tags("tutorial", "island") //Optional: Enabling this will cause the plugin to skip this manifest during the generation phase skip = false //Optional: Enabling this will effectively delete the bot from the store hidden = true } }}group = "com.runemate.beowolf"version = "1.0-SNAPSHOT"repositories { mavenCentral()}dependencies { testImplementation(platform("org.junit:junit-bom:5.10.0")) testImplementation("org.junit.jupiter:junit-jupiter")}tasks.test { useJUnitPlatform()}


