The client is offline due to RuneScape update. You may see instance errors but this is due to the update and not actual instance errors. This should be resolved soon. Join our Discord for more information.

Can not get GUI to show



  • The first part of my CheckSystem() is called and logs me in, but the UI wont show for the life of me tried all ways

    @Override
    public void onStart() {
    CheckSystem();

    }
    
    public boolean CheckSystem() {
    
        if(!Game.isLoggedIn()) {
            Log.info("Start logged in.");
            return false;
        }
        if(Game.isLoggedIn() && !gui.isVisible()) {
            try {
                SwingUtilities.invokeAndWait(new Runnable() {
                    public void run() {
                        gui.setVisible(true);
                    }
                });
            } catch (Throwable e) {
            }
        }
        for(int i = 0; i < Data.ALL_SEED_NAMES.length ;i++)
            seedArray[i] = new Seed(Data.ALL_SEED_NAMES[i] , Data.ALL_SEED_IDS[i]);
    
        for(int i = 0; i < Data.KEEP_NAMES.length ;i++)
            highSeedArray[i] = new Seed(Data.KEEP_NAMES[i] , Data.KEEP_IDS[i]);
    
        new PriceThread().start();
        Data.GUI_WAIT = true;
        try {
            Data.CARRIED_FOOD = Utils.getFood();
            Data.FOOD_ID = Data.CARRIED_FOOD.getId();
        } catch (Exception e) {}
        closeWindows();
        lastLocation = Players.getLocal().getPosition();
        if (Skills.getLevel(Skill.HUNTER) >= Data.GLOVES_REQ_LVL){
            Data.CAN_WEAR_GLOVES = true;
            handID = EquipmentSlot.HANDS.getItemId();
            if(Data.GLOVES_TO_KEEP == 0)
                Data.GLOVES_TO_KEEP = 1;
            if(!Data.HIGH_END_SEEDS)
                Data.GLOVES_TO_KEEP = 0;
    
        }else
            Data.GLOVES_TO_KEEP = 0;
    
        if(Data.FOOD_TO_WITHDRAW == 0)
            Data.USE_FOOD = false;
    
    
    
        if(Data.HIGH_END_SEEDS){
            Data.FOOD_TO_WITHDRAW = 28 - (Data.GLOVES_TO_KEEP + Data.KEEP_IDS.length);
            Data.USE_FOOD = true;
            Data.ADJUST_FOOD = false;
            Data.DROP_SEEDS = false;
        }
        if(Data.GLOVES_TO_KEEP >= 18){
            Data.GLOVES_TO_KEEP = 18;
            Data.USE_FOOD = false;
            Data.FOOD_TO_WITHDRAW = 0;
        }
    
        if ((Data.FOOD_TO_WITHDRAW > 25 || Data.FOOD_TO_WITHDRAW < 0) && Data.USE_BANKING){
            Log.info("You can only withdraw food between 1 and 25");
            return false;
        }
    
        try {
            Data.CARRIED_FOOD = Utils.getFood();
            Data.FOOD_ID = Data.CARRIED_FOOD.getId();
        } catch (Exception e) {}
    
        if(Data.FOOD_ID == 0 && Data.CARRIED_FOOD == null && Data.USE_BANKING && Data.USE_FOOD){
            Log.info("Either start with food in your inventory or enter Food Override");
            return false;
        }
    
        return true;
    }

 

36
Online

17.5k
Users

1.5k
Topics

19.6k
Posts