Welcome!

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

Sign up now!

Bug Very new to developing! - Noob needs help please!

Joined
Apr 23, 2024
Messages
3
Hey guys, i have a very base level knowledge of all of this, and im just trying to play around and learn, figured runemate would be the best platform to try. I have literally spent HOURS trying to set up Intellij properly so i can deploy a very basic bot script, but i just keep running into erros (like i said im a noob)

Can some legend please explain how I set up intellij properly? What ive tried so far:
Making sure im using Java 8
importing what i 'think' is the runemate sdk into my project (file name is just java.exe located in my bin folder, within temp)
and writing out the dependencies for the build kit as well as a simple script that just cuts some logs and banks them.

this is my build kit code:

plugins {
kotlin("jvm") version "1.8.20"
id("org.jetbrains.compose") version "1.4.0"
}

repositories {
mavenCentral()
maven {
url = uri("https://repo.runemate.com/releases")
credentials {
password = "rmp_yTaPqgL0YKlfiZODeVAEmwvAZRBU8N2rWmkU"
}
}
}

dependencies {
implementation("com.runemate.game.api:runemate-api:1.0.0")
implementation("com.runemate.game.api:runemate-framework:1.0.0")
}

group = "com.mycompany"
version = "1.0-SNAPSHOT"

tasks.withType<JavaCompile> {
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
}

and this is my build code:


import com.runemate.game.api.script.framework.task.TaskScript;
import com.runemate.game.api.script.framework.task.TaskScriptManifest;
import com.runemate.game.api.script.framework.task.Task;
import com.runemate.game.api.script.framework.tree.TreeTask;
import com.runemate.game.api.script.framework.tree.TreeTaskNode;
import com.runemate.game.api.script.framework.tree.TreeTaskScript;
import com.runemate.game.api.script.framework.tree.TreeTask;
import com.runemate.game.api.client.input.Mouse;
import com.runemate.game.api.script.framework.frameworkbot;


@TaskScriptManifest(name = "MyWoodcuttingBot", desc = "Cuts wood and banks it at Draynor village.", version = 1.0)
public class MyWoodcuttingBot extends TaskScript {

@Override
public void onStart() {
System.out.println("Starting the Woodcutting Bot!");
}

@Override
public void onStop() {
System.out.println("Stopping the Woodcutting Bot!");
}

@Override
public TreeTask<?> getRootTask() {
return new WoodcuttingTask();
}

public class WoodcuttingTask extends TreeTask {
@Override
public boolean validate() {
return true;
}

@Override
public void execute() {
// Perform the action (e.g., cutting a willow tree)
System.out.println("Cutting willow trees!");
}
}

// Additional tasks for banking and equipment checks can go here
}
ive tried to get chatgpt to help me but i feel like maybe AI has made it worse lol. Like i said im a complete noob, but this stuff really interests me and im keen to give it a red hot crack. any help would be absolutely awesome. Ill attach a photo of my folder layout also. TIA


1744984525367.png
 
cuppa.drink(java);
Joined
Mar 13, 2018
Messages
7,743
Howdy youngn :)

ChatGPT definitely might lead you a bit astray depending on exactly what you're asking. It'll be good for general questions but I wouldn't really ask it anything specific to Runemate, especially setup.

There's a lot of outdated tutorials on Runemate and the best one to follow would be Welcome to RuneMate | RuneMate Documentation

Offhand there's a couple potential issues I'm seeing here. Runemate uses Java 17 now, not 8. Also you really shouldn't put your dev token here which I think you did. Importing java.exe also sounds incorrect.

It's a bit hard to walk through exactly here but fiddling with it off the gitbook info would be best.

Also overall you're best asking dev questions on the runemate discord, Join the RuneMate Discord Server!, #development channel. You can request access to #development in #general.
 
Joined
Apr 23, 2024
Messages
3
Howdy youngn :)

ChatGPT definitely might lead you a bit astray depending on exactly what you're asking. It'll be good for general questions but I wouldn't really ask it anything specific to Runemate, especially setup.

There's a lot of outdated tutorials on Runemate and the best one to follow would be Welcome to RuneMate | RuneMate Documentation

Offhand there's a couple potential issues I'm seeing here. Runemate uses Java 17 now, not 8. Also you really shouldn't put your dev token here which I think you did. Importing java.exe also sounds incorrect.

It's a bit hard to walk through exactly here but fiddling with it off the gitbook info would be best.

Also overall you're best asking dev questions on the runemate discord, Join the RuneMate Discord Server!, #development channel. You can request access to #development in #general.
The legend himself! Thank you very much for your reply sir, I appreciate it and I will join the discord and check out that link and give it another crack!
 
Top