Menu

#81 Replay recording does not record paintings

1.6.2
closed
2
2012-10-12
2007-06-12
Anonymous
No

Steps to reproduce:

  1. Start battle with replays enabled and enable painting for one of the bots (click on its name on the right pane and click the "Paint" button)
  2. Try to see the replay (click the replay button after the battle ends), but nothing (not even robots) is visible. After disabling painting robots become visible again, but paintings are lost.

Discussion

  • Flemming N. Larsen

    Logged In: YES
    user_id=1249353
    Originator: NO

    With which version of Robocode have you seen this behavior?
    What system are you using? Windows, Linux, or something else?
    Are you running on a dual core CPU or one that has hyper-threading?

    I have tried to reproduce this bug on Windows XP, but here the robots are displayed as expected.

     
  • Nobody/Anonymous

    Logged In: NO

    Sorry for such late response, I missed your reply.

    Robocode 1.3.1 on Linux, no SMP, no multicore, no hyperthreading.

     
  • Flemming N. Larsen

    Logged In: YES
    user_id=1249353
    Originator: NO

    Regarding the the paintings performed by the onPaint() method, this feature has not been implemented yet, so the replay is not able to paint graphics painted by robots. This will require a redesign of the Replay feature, and it will cost additional space so save a snapshot of the drawing context for the Graphics2D instance for each robot and for each turn.

    Regarding the robots that are not painted. Is this still the case with the newest versions of Robocode?

     
  • Flemming N. Larsen

    Logged In: YES
    user_id=1249353
    Originator: NO

    Could you plese supply me with a some code for a robot that shows this behaviour. We need it for reproducing the problem, as we have a hard time reproducing it.

    With which version of Robocode do you see the problem, and which OS and Java version are you running Robocode on?

    Thanks in advance! :-)

     
  • Flemming N. Larsen

    Logged In: YES
    user_id=1249353
    Originator: NO

    The replay feature does not support robot painting, but a feature request has been made here:

    https://sourceforge.net/tracker/index.php?func=detail&aid=1829282&group_id=37202&atid=419489

    I am closing this bug report as it is redundant and not a bug, even though it is "missing" in the game.

     
  • Flemming N. Larsen

    Solved in version 1.6.2

     

Log in to post a comment.

MongoDB Logo MongoDB