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 Import Area

Joined
Apr 21, 2015
Messages
389
I can't seem to import anything in the location package. It worked fine until yesterday. Any suggestions?

Below is a class where I'm using it. I just created a template to show that I can't seem to import it.

I also tried importing com.runemate.game.api.hybrid.location.*; which fixed my area issue but broke coordinate.

Code:
package galaxyScripts.branches;

import com.runemate.game.api.script.framework.tree.BranchTask;
import com.runemate.game.api.script.framework.tree.TreeTask;

/**
* Created by  on 1/29/2017.
*/
public class checkBankBranch extends BranchTask {
    public TreeTask successTask() {
        return null;
    }

    public TreeTask failureTask() {
        return null;
    }

    public boolean validate() {
     final com.runemate.game.api.hybrid.location.Area bank = new Area.Rectangular(new Coordinate(2952, 3312, 0), new Coordinate(3055, 3415, 0));
     return false;

    }
}
 
( ͡° ͜ʖ ͡°)
Joined
Mar 30, 2015
Messages
2,410
Wrong section, should post in dev support.

What do you mean it broke coordinate? You should be able to import it universally in your package as long as you don't have another class named the exact same thing (like if you had a personal class called "Bank" and then tried to import com.runemate.game.api.hybrid.region.Banks)
 
Joined
Apr 21, 2015
Messages
389
Wrong section, should post in dev support.

What do you mean it broke coordinate? You should be able to import it universally in your package as long as you don't have another class named the exact same thing (like if you had a personal class called "Bank" and then tried to import com.runemate.game.api.hybrid.region.Banks)

Sorry my bad. Can a mod please move this post?

It says that I can't use Coordinate inside an Area.Rectangle.

Code:
final Area bank = new Area.Rectangular(new Coordinate(2952, 3312, 0), new Coordinate(3055, 3415, 0));
If I import everything in location then I get an error on this line saying that Coodinate can't be used with Area.Rectangular
 
( ͡° ͜ʖ ͡°)
Joined
Mar 30, 2015
Messages
2,410
Shouldn't be the case. I just copy-pasted your code with the import and didn't get any errors o_O
Does your module have RM as one of it's dependencies? (guessing yes if you're not getting errors with importing anything else). Something similar happened to me earlier this week but just had to fix project structure in IntelliJ
 
Joined
Apr 21, 2015
Messages
389
Shouldn't be the case. I just copy-pasted your code with the import and didn't get any errors o_O
Does your module have RM as one of it's dependencies? (guessing yes if you're not getting errors with importing anything else). Something similar happened to me earlier this week but just had to fix project structure in IntelliJ
Yes, I have it in the dependencies which is why I can't figure out why...
What do you mean fix project structure? I don't think I've changed anything in the project structure.
 
Top