Page 5 of 5 FirstFirst ... 3 4 5
Results 41 to 48 of 48

Thread: Just for Kicks

  1. #41
    Dakka Dakka DCWarhound's Avatar
    Join Date
    Aug 2010
    Location
    I'm the 'who' when you ask 'who's there?'!!
    Posts
    3,711

    Default

    Having a little problem,what does this mean?
    SYSTEM: You have made 10000 calls to setXX methods without calling execute()
    SYSTEM: Robot disabled: : Too many calls to setXX methods
    I've striped my bot to the basics and it still happens
    package FirstyListy;
    import robocode.*;
    //import java.awt.Color;

    // API help : http://robocode.sourceforge.net/docs...ode/Robot.html

    /**
    * TestRobot - a robot by (your name here)
    */
    public class TestRobot extends AdvancedRobot{
    int turnGunDirection = 1;

    public void run() {

    setAdjustRadarForRobotTurn(true);
    while (true) {
    setTurnRadarRight(360);

    }
    }
    public void onScannedRobot(ScannedRobotEvent e) {

    }
    public void onHitByBullet(HitByBulletEvent e) {

    }
    public void onHitWall(HitWallEvent e) {

    }
    public void onHitRobot (HitRobotEvent e) {
    }
    }
    Connection to reality could not be established,please try again later

  2. #42

    Default

    Quote Originally Posted by DCWarhound View Post
    Having a little problem,what does this mean?


    I've striped my bot to the basics and it still happens
    The error is because your are overloading the action thread.
    You are using an advanced robot. Which means you need to use execute() to run your commands.
    For your radar here is a suggestion :

    In the run function put
    setAdjustGunForRobotTurn(true);
    setTurnRadarRight(Double.POSITIVE_INFINITY); // Radar Lock

    Then at the end of your onScannedRobot put
    setTurnRadarLeft(getRadarTurnRemaining());

    This creates a locking radar scan that will hit with great accuracy.
    The while loop is a bit of a misnomer. I got rid of it completely using that radar.
    The run() method actually runs in loop itself. So any actions in there will repeat every tick.
    猿も木から落ちる

  3. #43
    Dakka Dakka DCWarhound's Avatar
    Join Date
    Aug 2010
    Location
    I'm the 'who' when you ask 'who's there?'!!
    Posts
    3,711

    Default

    Thanks.

    10char
    Connection to reality could not be established,please try again later

  4. #44
    Banelight's Avatar
    Join Date
    May 2013
    Location
    Empangeni - KZN
    Posts
    426

    Default

    Just so you all know Im still in this thing...just making sure I understand it better, on that note, found some really nice videos for free on Java:

    https://www.udemy.com/java-tutorial/

    I hate podding around blindly on stuff like this :P So im busy taking some lessons


    Fear the Unknown.... Embrace the inevitable...

  5. #45

    Default

    Quote Originally Posted by Banelight View Post
    Just so you all know Im still in this thing...just making sure I understand it better, on that note, found some really nice videos for free on Java:

    https://www.udemy.com/java-tutorial/

    I hate podding around blindly on stuff like this :P So im busy taking some lessons
    Just so you know. Im still waiting to crush you with NanoCrusherOfHopesAndDreams.java
    猿も木から落ちる

  6. #46
    Banelight's Avatar
    Join Date
    May 2013
    Location
    Empangeni - KZN
    Posts
    426

    Default

    LOL...I promise to give it my best attempt, although feels like Im going into a cage fight with my hands tied behind my back


    Fear the Unknown.... Embrace the inevitable...

  7. #47

    Default

    Quote Originally Posted by Banelight View Post
    LOL...I promise to give it my best attempt, although feels like Im going into a cage fight with my hands tied behind my back
    My bark is worse than my bite, rule one is to psych your opponent :P
    猿も木から落ちる

  8. #48
    Banelight's Avatar
    Join Date
    May 2013
    Location
    Empangeni - KZN
    Posts
    426

    Default

    Rule 2: make them think you are weak when you are strong....


    Fear the Unknown.... Embrace the inevitable...

Similar Threads

  1. GOG Summer Sale kicks off
    By James in forum Gaming News Articles
    Replies: 7
    Last Post: 19-06-2013, 05:11 PM
  2. 2012 MyBroadband Conference kicks off
    By James in forum Gaming News Articles
    Replies: 0
    Last Post: 10-10-2012, 09:31 AM
  3. New ADSL pricing kicks in today
    By James in forum Gaming News Articles
    Replies: 3
    Last Post: 06-08-2012, 12:00 PM
  4. Call of Duty XP convention kicks off
    By James in forum Gaming News Articles
    Replies: 3
    Last Post: 03-09-2011, 08:02 AM
  5. First half of 2010 kicks first of of 2009's ass
    By Tinman in forum Gaming Discussions
    Replies: 1
    Last Post: 05-07-2010, 03:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •