Help saving data?

Fragment of a discussion from Talk:Saving Gun Data
Jump to navigation Jump to search

You can use AdvancedRobot.getDataDirectory() to get the path you're allowed to write in. Alternatively, you can use AdavancedRobot.getDataFile(String filename)

To enforce the write quota, Robocode also requires that you write to the file using RobocodeFileOutputStream or RobocodeFileWriter (instead of FileOutputStream or OutputStreamWriter)

(and is mentioned on Saving Gun Data of course you can adjust the write quota)

Rednaxela (talk)07:18, 21 December 2013

Thanks.

Straw (talk)10:59, 21 December 2013
Edited by author.
Last edit: 23:30, 21 December 2013

Straw the write quota has to be 200 kb or below in order to roborumble P.S what data is saved P.P.S what K-D-tree are you using

Tmservo (talk)20:44, 21 December 2013

This doesn't have anything to roborumble. I'm sure Straw understands that non-default quotas only apply to one's own robocode install.

Rednaxela (talk)23:14, 21 December 2013

Yeah I am only using this to get data for experimentation and debugging, not to save data between battles in the rumble.

Straw (talk)23:24, 21 December 2013
 

I am using a modified version of Skilgannon's kD-Tree which supports dynamic reweighting.

Straw (talk)23:29, 21 December 2013

can you open source that version

Tmservo (talk)23:34, 21 December 2013