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 Gui no showing while bot is in bot store?

Always Buying/Selling RM Credits!
Joined
Dec 27, 2017
Messages
95
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>
 
12 year old normie
Joined
Jan 8, 2015
Messages
2,769
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.
 
Always Buying/Selling RM Credits!
Joined
Dec 27, 2017
Messages
95
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;
}
}
 
but my controller is in my fxml file so that may be the case
 
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.
look like that's not the case of the problem :C
 
Top