1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Question Gui no showing while bot is in bot store?

Discussion in 'Developer Support' started by faustis1337, Oct 27, 2018.

  1. faustis1337

    faustis1337 Always Buying/Selling RM Credits!

    Joined:
    Dec 27, 2017
    Messages:
    95
    Likes Received:
    8
    What can be gui not showing up causes while bot is in bot store? In development mode everything works as it should and i get 0 errors.

    Manifest file:
    <manifest>
    <main-class>com.faustis1337.bots.MasterFarmer.StartingRootTask</main-class>
    <name> Simple Master Farmer</name>
    <description>Thieves Master Farmer for best gp/hr in thieving. Supporting Draynor village and Ardougne Areas.</description>
    <version>1.0.0</version>
    <price>0.03</price>
    <tag-line>Master Farmer </tag-line>
    <description>
    -Thieving Master Farmer in Draynor Village and Ardougne.
    -Some of the anti-ban features to reduce ban rate.
    -Break handler.
    -Dodgy necklaces.
    -Select which seeds to keep, which seeds to drop.
    -Automatically walks to Draynor or Ardougne.
    -Supports many kinds of food, you're free to select.
    -Various trackers.
    And other features.
    Requirements:
    -Wield a bow.



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

    </compatibility>
    <internal-id>MasterFarmer</internal-id>

    <categories>
    <category>THIEVING</category>
    <category>MONEYMAKING</category>

    </categories>
    <tags>
    <tag>moneymaking</tag>
    <tag>thieving</tag>

    </tags>

    <resources>
    <resource>com/faustis1337/bots/MasterFarmer/Ui.fxml</resource>
    </resources>
    </manifest>
     
  2. Derk

    Derk 12 year old normie

    Joined:
    Jan 8, 2015
    Messages:
    2,766
    Likes Received:
    1,339
    If you accidentally set fx:root in the scenebuilder or controller in your fxml file manually it might break. Verify if these are all not set.

    It might be an issue of setEmbeddableUi(this) but i think this actually breaks locally too.
     
  3. faustis1337

    faustis1337 Always Buying/Selling RM Credits!

    Joined:
    Dec 27, 2017
    Messages:
    95
    Likes Received:
    8
    Not using fx:root.
    That's how i set up my Embeddable ui:

    public class StartingRootTask extends TreeBot implements EmbeddableUI, InventoryListener {
    private ObjectProperty<Node> botInterfaceProperty;

    public StartingRootTask() {
    time=new StopWatch();
    time.start();
    setEmbeddableUI(this);
    }

    @Override
    public ObjectProperty<? extends Node> botInterfaceProperty() {
    if (botInterfaceProperty == null) {
    try {
    FXMLLoader loader = new FXMLLoader();
    Node node = loader.load(Resources.getAsStream("com/faustis1337/bots/MasterFarmer/Ui.fxml"));
    botInterfaceProperty = new SimpleObjectProperty<>(node);
    return botInterfaceProperty;
    } catch (IOException e) {
    e.printStackTrace();
    }
    }
    return null;
    }
    }
    --- Double Post Merged, Oct 27, 2018, Original Post Date: Oct 27, 2018 ---
    but my controller is in my fxml file so that may be the case
    --- Double Post Merged, Oct 28, 2018 ---
    look like that's not the case of the problem :C
     

Share This Page

Loading...