Thread history

From User talk:Beaming
Viewing a history listing
Jump to navigation Jump to search
Time User Activity Comment
10:17, 21 November 2013 Chase-san (talk | contribs) New reply created (Reply to what to do with about printing to much?)
04:34, 21 November 2013 Beaming (talk | contribs) New reply created (Reply to what to do with about printing to much?)
04:04, 21 November 2013 Voidious (talk | contribs) Comment text edited (edit / to-do)
04:02, 21 November 2013 Voidious (talk | contribs) New reply created (Reply to what to do with about printing to much?)
03:54, 21 November 2013 Beaming (talk | contribs) New reply created (Reply to what to do with about printing to much?)
21:01, 20 November 2013 Rednaxela (talk | contribs) New reply created (Reply to what to do with about printing to much?)
18:42, 20 November 2013 Voidious (talk | contribs) New reply created (Reply to what to do with about printing to much?)
05:13, 20 November 2013 Beaming (talk | contribs) New reply created (Reply to what to do with about printing to much?)
20:13, 19 November 2013 Voidious (talk | contribs) New reply created (Reply to what to do with about printing to much?)
19:48, 19 November 2013 Beaming (talk | contribs) New reply created (Reply to what to do with about printing to much?)
17:06, 19 November 2013 Voidious (talk | contribs) New reply created (Reply to what to do with about printing to much?)
16:57, 19 November 2013 Beaming (talk | contribs) New reply created (Reply to what to do with about printing to much?)
16:56, 19 November 2013 Beaming (talk | contribs) New reply created (Reply to what to do with about printing to much?)
16:37, 19 November 2013 Voidious (talk | contribs) New reply created (Reply to what to do with about printing to much?)
16:26, 19 November 2013 Rednaxela (talk | contribs) New reply created (Reply to what to do with about printing to much?)
15:55, 19 November 2013 Beaming (talk | contribs) New thread created  

what to do with about printing to much?

I am trying to print quite a lot while I am debugging my bot. But I see

SYSTEM: This robot is printing too much between actions.  Output stopped until next action.

I would like to see the whole output. Is there a way to force robocode to print everything, something analogous to debug mode where all graphics events are plotted.

Beaming (talk)15:55, 19 November 2013

One option would be to write to a file instead of printing debug output, particularly if you adjust the per-bot disk quota in the config file.

Rednaxela (talk)16:26, 19 November 2013

Do we have a code sniplet anywhere for writing into a file?

Beaming (talk)16:57, 19 November 2013

Kind of a weird link, but PEZ recently posted all his bots to a GitHub repo so that's fresh in my mind. See the robot.getDataFile() stuff: [1]

Voidious (talk)17:06, 19 November 2013

Thanks, I will look at it.

Is there a way to see if bot run with GUI or through a rumble client? So one can disable all of the debugs during rumbling matches to save on CPU and quotas.

One more questions, why rumble client needs a display under x11 environment? It does not use gui so it should run just fine.

Beaming (talk)19:48, 19 November 2013

I don't think Robocode exposes anything about the environment (app vs control API, graphics or not). You can tell if graphical debugging is enabled, though, because onPaint() will be called. You could use that as your debug switch. I mainly use graphical debugging and log severe stuff to file.

As for X11, I don't know, I would guess it's due to using some java.awt code internally or something. I have run RoboRumble over a terminal quite a bit, but maybe my terminal has the X stuff setup. (Mac OS X Terminal connecting to Ubuntu.)

Voidious (talk)20:13, 19 November 2013
 
 
 
 

Not sure if it's useful, but a secondary suggestion is to try debugging graphics. Some info that takes a lot of text is very simple and clear in graphical form.

Voidious (talk)16:37, 19 November 2013

I am slowly drifting in the direction of graphics debug. But it certainly harder to do right compared to simple text output.

Beaming (talk)16:56, 19 November 2013