Jump to content

Renegeade

Members
  • Posts

    34
  • Joined

  • Last visited

  • Feedback

    100%

Posts posted by Renegeade

  1. Sometimes it just goes randomly running and checking points or trying to buy something or when game starts it just stand at one spot close to boat whole game. And i dont really like the GUI, why u have to choose what u do with ur points before u can start it? tongue.png I would like to let this bot farm points without that it goes spend anything. Hope u can get those small bugs fixed ohmy.png

     

    Well, in PC, you cannot have more than 250 points, which means if you play more games while at 250 points, you don't get any more points - it becomes a waste of time. You can have the bot log off when it reaches 250 points. It doesn't make sense to keep playing if 250 points has been reached

     

    As for getting stuck behind the tree outside the boat, I'm looking to see how I can fix that, it's one spot in particular.

  2. Just don't bot at a hotspot lol. Even if it means sacrificing XP/hr, bot at a non-hotspot - you'll be able to bot much longer hours without detection. I currently bot 18 hours a day combat at a very nonstandard location. What you lose in XP/hr you can make up in "brute forcing" the time.

    • Like 1
  3. I ended up using a hacky solution to get the stacktrace from the bot thread. It looks like the NPE was getting thrown in a function called $$$setupUI$$$(), which is automatically generated by Intellij for the Swing designer.

     

    I had no clue as to why it wasn't working, so I ended up deleting the form and recreating it, and it worked.

    • Like 1
  4. is startconfig in your main class?  if so why are you passing an instance of PestControl(which i assume is your main class)

     

    No, PestControl is the main class. I designed the GUI with Intellij's Swing designer. StartConfig contains the control JPanel, which I add into a JFrame

    you can remove everything from on start. Closely add in each line and see which line give you the error.

     

    I have already pinpointed the constructor for StartConfig as the error, the rest of onStart works properly

  5. Hello,

     

    I'm working on a script for OSBot, but I've run into a bit of an issue that's driving me crazy

     

    I try to open up a JFrame in my onStart(), and I always get the error "Error in script onStart()". That would be fine and dandy if I got some kind of exception in the console, but I'm not, so I have no idea why the error is occurring. By printing out things via the logger, I've determined that the issue is occurring in a constructor of mine. However this constructor still causes an issue even if it's blank. 

    public void onStart() {
            this.getBot().getLogger().debug("Opening up JFrame...");
            config = new StartConfig(this);
            window = new JFrame("Start PestControlSucks");
            window.setSize(570, 330);
            window.add(config.getControlPane());
            window.pack();
            window.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
            Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
            window.setLocation(dim.width / 2 - window.getWidth() / 2, dim.height / 2 - window.getHeight() / 2);
            window.setVisible(true);
            this.getBot().getLogger().debug("JFrame opened, waiting on user input!");
        }
    

    Based on previous debug messages I left, it never gets past new StartConfig

    public StartConfig(PestControl instance) {
            this.instance = instance;
            try {
                instance.getBot().getLogger().debug("Setting up radio group");
                radioGroup.add(radioPurchaseXP);
                radioGroup.add(radioPurchaseVoid);
                radioGroup.add(radioLogOut);
                defaultColor = panelAttack.getBackground();
    
                instance.getBot().getLogger().debug("Starting to load icons");
    
                // Experience rewards
                labelAttack.setIcon(loadImageIcon("attack"));
                labelStrength.setIcon(loadImageIcon("strength"));
                labelDefence.setIcon(loadImageIcon("defence"));
                labelRange.setIcon(loadImageIcon("range"));
                labelMagic.setIcon(loadImageIcon("magic"));
                labelHitpoints.setIcon(loadImageIcon("hitpoints"));
                labelPrayer.setIcon(loadImageIcon("prayer"));
    
                // Void rewards
                labelVoidMace.setIcon(loadImageIcon("void_mace"));
                labelVoidBottom.setIcon(loadImageIcon("void_bottom"));
                labelVoidTop.setIcon(loadImageIcon("void_top"));
                labelVoidMelee.setIcon(loadImageIcon("void_melee"));
                labelVoidRange.setIcon(loadImageIcon("void_range"));
                labelVoidMage.setIcon(loadImageIcon("void_mage"));
                labelVoidGloves.setIcon(loadImageIcon("void_gloves"));
    
                buttonStart.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        StartConfig.this.instance.reallyStart();
                    }
                });
            } catch (Exception ex) {
                instance.getBot().getLogger().debug("Error: " + ex.toString());
                instance.getBot().getLogger().error(this, ex);
                ex.printStackTrace();
            }
        }
    

    However, it never even gets to "Setting up radio group"

     

    What's going on? Is there any way to enable stacktraces for onStart()

     

    Thanks!

  6. I added in a few new features and fixed a few bugs.

     

    - Fixed getting stuck on brawlers

    - Fixed pathfinding from spawn to center

    - Fixed running away from gangplank

    - Added spam-clicking gangplank to get on lander as fast as possible after games

    - Added ability to automatically purchase XP or void gear

    - Added paint

     

    I hope to release it later on today after I finish polishing up the GUI!

  7. aECx8R7.png

     

    Features

    • Intelligent Pathfinding: Can walk around the entire Pest Control map
    • Does Not Leech: PCS actually helps - it attacks downed portals and destroys spinners - never get called a leecher again!
    • Buys Rewards Automagically: Too lazy to even buy the reward? No matter, PCS can buy it for you!
    • Fast Game Joining: Enters the lander immediately after the round ends, ensuring you get in the next round ASAP

     

    Screenshots

    sXh8pWl.png

     

    lGaWLxp.png

     

    The script is pretty much flawless at this point - here's an 8.5 hour proggy, left running overnight. The points per-hour rate isn't too good, because the world is filled with bots overnight, but it has played humanly on every single round smile.png

    o4i7qw3.png

     

    Links

    • Like 3
×
×
  • Create New...