Welcome!

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

Sign up now!

Question Intellij Setup error

Joined
Nov 27, 2015
Messages
3
EDIT:
Problem has been fixed. The issue was (most likely with my manifest) and user @Bertrand was able to help me solve it over remote access. Thanks again!





Hi guys,
I want to start writing scripts, so I've decided to join the community and give it a go. I initially wanted to get some more practice with coding, and thought that this would be a very cool way to do it. I normally use Eclipse (for my small amount of programming experience with java), but I would like to use Intellij. It seems like a very handy IDE to at least be familiar with for the future.
Without further ado, I'll get into my question.

Okay, so currently I'm at a standstill. I'm not sure what to do from here:
I watched the guide:
To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
(This is the video tutorial for setting up Intellij by Eagles13)

I've set up my manifest and have this problem. It's probably something super stupid, but hopefully someone knows.
So when I try to load up dev mode, even after changing the file location exactly as specified I have nothing under my "bots" tab
lBn6F.png

(as you might notice, there is an error with the main-class section. It's only a typo though.. So I'm not sure what's going on here).
lBnm5.png

lBnex.png

Code:
<manifest>
    <main-class>
        com.imnotarobot.bots.testbot.testbot
    </main-class>

    <name>
        Test bot
    </name>

    <description>
        This is a test bot, it tests tests.
    </description>

    <version>
        0.0.1
    </version>

    <compatibility>
        <game-type>
            OSRS
        </game-type>
    </compatibility>

    <categories>
        <category>
            WOODCUTTING
        </category>
    </categories>
</manifest>


I also have one very small thing I'd like to implement which would be very nice if I could get it to work (although it's definitely not as important as the previous problem I've pointed out):

I want to add the online API documentation. I'm not sure how to go about this currently:
lBlcE.png


Towards the bottom of the first page of this post:
Tutorial - Setting up IntelliJ for RuneMate | Community | RuneMate
@ciresiuol made a post about this, and I feel like I could make a guess on how to do this, but I don't want to accidentally mess up my libraries since I'm not super familiar with this IDE).
 
Bump...
 
Last edited:
Joined
Nov 27, 2015
Messages
3
Does testbot extend LoopingScript?

Yeah. Is that all that it needs to extend?


Code:
package com.imnotarobot.bots.testbot;

import com.runemate.game.api.script.framework.LoopingScript;

/**
* Created by Carter on 11/27/2015.
*/
public class testbot extends LoopingScript
{

    @Override
    public void onLoop()
    {

    }

    @Override
    public void onStart(String... args)
    {
        System.out.println("This is a bot, and it is alive!");
    }
}
 
Top