From: Erik V. <eri...@hc...> - 2009-11-05 19:45:08
|
There is an option in the user-customizable properties file (default name my.properties) that you can set to your save-file directory: save.directory=c:/projects/rails/save By default this is commented out. Erik. _____ From: Chris Shaffer [mailto:chr...@gm...] Sent: Thursday 05 November 2009 20:26 To: Development list for Rails: an 18xx game Subject: Re: [Rails-devel] Opening save files directly My friend says this: I've also spent the last half hour or so trying to implement Mr. Black's suggestion for -Duser.dir, without success. After several trials, I was able to get Rails to start with that switch in place, but it always starts out in "My Documents," regardless of what directory I specify for user.dir. Any suggestions? Also, is this something I should submit as a formal enhancement request? -- Chris Please consider the environment before printing this e-mail. On Thu, Nov 5, 2009 at 10:33 AM, Jim Black <jim...@ya...> wrote: Chris, I might be able to help with the working directory- a Windows user told me to use java's "-Duser.dir" argument to set the working directory. (I think that's -Duser.dir=/foo/bar, then- whatever the typical java cmd-line syntax is.) This is working for windows users, apparently, but it doesn't work for me on my mac. Incidentally, to get consistent time stamps in filenames (like GMT time- independent of players' local timezones), start up rails like this- java -Duser.timezone=UTC -jar rails-1.0.6.jar That way, all timestamps will be in UTC format, and consistent. Like you, I would also like to know how to associate the file type to load java/rails- so I can just 'doubleclick' on someone's saved move. It would be a little different windows vs mac, I guess, since it's batch args to the java cmd line in either case (the association is to java, I assume). - jim On Nov 5, 2009, at 10:14 AM, Chris Shaffer wrote: > Is there any way to associate the .rails extension with the program, > so you can open a save file directly? Failing that, is there a way > to change the default location in which Rails looks for files? I > have a friend using Windows and it always defaults to opening his My > Documents folder, instead of the Dropbox folder in which we're > keeping the files. > > -- > Chris > > Please consider the environment before printing this e-mail. > ---------------------------------------------------------------------------- -- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july_______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel ---------------------------------------------------------------------------- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Rails-devel mailing list Rai...@li... https://lists.sourceforge.net/lists/listinfo/rails-devel |