Discussion:
Setting Robocode Window Size from External Application
mbesney
2012-04-08 01:18:51 UTC
Permalink
Hello,

I am running Robocode from Eclipse. No matter what the battlefield size is set to the Robocode window always comes up the same size (i.e. too small). Can anyone tell me how to control the window size externally without having to push a button or select a menu item once Robocode has launched? Is there a System property I can set? Thanks in advance for your answers...



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Robocode/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/Robocode/join
(Yahoo! ID required)

<*> To change settings via email:
Robocode-***@yahoogroups.com
Robocode-***@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
Robocode-***@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
flemmingnlarsen
2012-04-08 21:21:09 UTC
Permalink
In the robocode/config directory, you will find the windows.properties file, which is automatically created the first time Robocode is run. When you resize one of the "main" windows, like the RobocodeFrame, RobocodeEditor etc. this property file will automatically be updated so Robocode will know the size of these windows the next time it is started up.

You can set this property in the windows.properties:

net.sf.robocode.ui.dialog.RobocodeFrame=x,y,width,height

E.g.:

net.sf.robocode.ui.dialog.RobocodeFrame=336,72,1155,811

I am not sure if you can set it up from another application, e.g. thru robocode.control.RobocodeEngine, but it is worth a try. :-)

Regards,
- Flemming


If you want the original values back, you select Options -> Default window size from the menu of Robocode.
Post by mbesney
Hello,
I am running Robocode from Eclipse. No matter what the battlefield size is set to the Robocode window always comes up the same size (i.e. too small). Can anyone tell me how to control the window size externally without having to push a button or select a menu item once Robocode has launched? Is there a System property I can set? Thanks in advance for your answers...
------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Robocode/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/Robocode/join
(Yahoo! ID required)

<*> To change settings via email:
Robocode-***@yahoogroups.com
Robocode-***@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
Robocode-***@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
mbesney
2012-04-09 00:18:14 UTC
Permalink
Excellent information, thank you!
Post by flemmingnlarsen
In the robocode/config directory, you will find the windows.properties file, which is automatically created the first time Robocode is run. When you resize one of the "main" windows, like the RobocodeFrame, RobocodeEditor etc. this property file will automatically be updated so Robocode will know the size of these windows the next time it is started up.
net.sf.robocode.ui.dialog.RobocodeFrame=x,y,width,height
net.sf.robocode.ui.dialog.RobocodeFrame=336,72,1155,811
I am not sure if you can set it up from another application, e.g. thru robocode.control.RobocodeEngine, but it is worth a try. :-)
Regards,
- Flemming
If you want the original values back, you select Options -> Default window size from the menu of Robocode.
Post by mbesney
Hello,
I am running Robocode from Eclipse. No matter what the battlefield size is set to the Robocode window always comes up the same size (i.e. too small). Can anyone tell me how to control the window size externally without having to push a button or select a menu item once Robocode has launched? Is there a System property I can set? Thanks in advance for your answers...
------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Robocode/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/Robocode/join
(Yahoo! ID required)

<*> To change settings via email:
Robocode-***@yahoogroups.com
Robocode-***@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
Robocode-***@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/

Loading...