From: Chris S. <chr...@gm...> - 2009-11-05 18:14:53
|
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. |
From: Jim B. <jim...@ya...> - 2009-11-05 18:33:39
|
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 |
From: Chris S. <chr...@gm...> - 2009-11-05 19:09:13
|
I'd also like to be able to o the click-save-file-to-play on Linux. -- 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 > |
From: Chris S. <chr...@gm...> - 2009-11-05 19:25:54
|
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 > |
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 |
From: Chris S. <chr...@gm...> - 2009-11-06 05:05:02
|
Where would one find the my.properties file? I've searched all the rails directories without success. -- Chris Please consider the environment before printing this e-mail. On Thu, Nov 5, 2009 at 11:44 AM, Erik Vos <eri...@hc...> wrote: > 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 >> > > > > ------------------------------------------------------------------------------ > 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 > > |
From: Erik V. <eri...@hc...> - 2009-11-06 20:55:15
|
Chris, If it isn't included in the jar file (IMO it should be), you can find it at the top level in the CVS source on sourceforge.net. If Rails can't find it after you have installed it, you can add the following option to the rails.bat startup script, immediately after java: -Dconfigfile=<path>/my.properties Erik. _____ From: Chris Shaffer [mailto:chr...@gm...] Sent: Friday 06 November 2009 06:05 To: Development list for Rails: an 18xx game Subject: Re: [Rails-devel] Opening save files directly Where would one find the my.properties file? I've searched all the rails directories without success. -- Chris Please consider the environment before printing this e-mail. On Thu, Nov 5, 2009 at 11:44 AM, Erik Vos <eri...@hc...> wrote: 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 ---------------------------------------------------------------------------- -- 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 |
From: Chris S. <chr...@gm...> - 2009-11-07 04:27:05
|
Not being a Java programmer, I'm not clear on how to check if something is in my jar. -- Chris Please consider the environment before printing this e-mail. On Fri, Nov 6, 2009 at 12:55 PM, Erik Vos <eri...@hc...> wrote: > Chris, > > If it isn't included in the jar file (IMO it should be), you can find it at > the top level in the CVS source on sourceforge.net. > > If Rails can't find it after you have installed it, you can add the > following option to the rails.bat startup script, immediately after *java*: > > -Dconfigfile=<path>/my.properties > > Erik. > > ------------------------------ > *From:* Chris Shaffer [mailto:chr...@gm...] > *Sent:* Friday 06 November 2009 06:05 > > *To:* Development list for Rails: an 18xx game > *Subject:* Re: [Rails-devel] Opening save files directly > > Where would one find the my.properties file? I've searched all the rails > directories without success. > > -- > Chris > > Please consider the environment before printing this e-mail. > > > On Thu, Nov 5, 2009 at 11:44 AM, Erik Vos <eri...@hc...> wrote: > >> 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 >>> >> >> >> >> ------------------------------------------------------------------------------ >> 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 > > |
From: Erik V. <eri...@hc...> - 2009-11-07 09:59:44
|
Chris, If you have WinZip or another zipper, you can open the .jar file with it (technically it's just a zip file) and extract my.properties from it. Brett, Perhaps we should do something on the Sourceforge site to provide instructions on how to do such simple customizations? A Windows installer that would extract my.properties and the startup script would be great, but that may be too far-fetched (at least I have never done such a thing). General question: Would it help if the program would use the program's working directory as the default place to save and load files (if no custom property is set) instead of My Documents? Erik. _____ From: Chris Shaffer [mailto:chr...@gm...] Sent: Saturday 07 November 2009 05:27 To: Development list for Rails: an 18xx game Subject: Re: [Rails-devel] Opening save files directly Not being a Java programmer, I'm not clear on how to check if something is in my jar. -- Chris Please consider the environment before printing this e-mail. On Fri, Nov 6, 2009 at 12:55 PM, Erik Vos <eri...@hc...> wrote: Chris, If it isn't included in the jar file (IMO it should be), you can find it at the top level in the CVS source on sourceforge.net. If Rails can't find it after you have installed it, you can add the following option to the rails.bat startup script, immediately after java: -Dconfigfile=<path>/my.properties Erik. _____ From: Chris Shaffer [mailto:chr...@gm...] Sent: Friday 06 November 2009 06:05 To: Development list for Rails: an 18xx game Subject: Re: [Rails-devel] Opening save files directly Where would one find the my.properties file? I've searched all the rails directories without success. -- Chris Please consider the environment before printing this e-mail. On Thu, Nov 5, 2009 at 11:44 AM, Erik Vos <eri...@hc...> wrote: 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 ---------------------------------------------------------------------------- -- 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 |
From: Chris S. <chr...@gm...> - 2009-11-07 11:06:14
|
> > Would it help if the program would use the program's working directory as > the default place > to save and load files (if no custom property is set) instead of My > Documents? > Yes, this would be a good default. -- Chris Please consider the environment before printing this e-mail. |
From: Chris S. <chr...@gm...> - 2009-11-07 11:25:35
|
So, having looked at the my.properties solution, I'm not sure it helps my particular solution. I have the entire program in a Dropbox folder. Sometimes I open it with my work Mac, sometimes with my home Linux box, and sometimes I open it from a guest Windows computer in the library. So the my.properties file is shared. Defaulting to the current directory would work well for this situation. In general, if there's a way we can keep the solution platform agnostic, that would be preferred. -- Chris Please consider the environment before printing this e-mail. |
From: brett l. <wak...@gm...> - 2009-11-05 19:37:56
|
On Thu, Nov 5, 2009 at 11:25 AM, Chris Shaffer <chr...@gm...> wrote: > 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? > I think there's a multiple things we can do to begin accommodating this. Adding the extra flags to the batch file and shell script that we ship is the easiest and fastest. This can probably slide into 1.0.7 if we can identify the appropriate settings. If you guys want to test using your own systems and send in patches, that would be ideal. Beyond that, we can probably look at building the support into Rails more directly. I know that registering an association with the .rails file extension is very platform specific. We'll need to investigate if Java has a platform agnostic way of doing this, or if we just need to figure out how to do this on each platform we want to support. In my mind, the primary targets are Windows XP or better, OS X (10.4 or 10.5 and beyond, I'd guess), and Linux (Gnome 2.25+ and KDE 4+). I personally have access to Windows XP, Windows Vista, and RHEL5 and Fedora 11/12 systems. > Also, is this something I should submit as a formal enhancement request? Yes, please submit this as a feature request. > > -- > Chris > > Please consider the environment before printing this e-mail. > ---Brett. > > 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 > > > ------------------------------------------------------------------------------ > 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 > > |
From: Erik V. <eri...@hc...> - 2009-11-06 20:47:02
|
> I know that registering an association with the .rails file extension > is very platform specific. We'll need to investigate if Java has a > platform agnostic way of doing this, or if we just need to figure out > how to do this on each platform we want to support. In my mind, the > primary targets are Windows XP or better, OS X (10.4 or 10.5 and > beyond, I'd guess), and Linux (Gnome 2.25+ and KDE 4+). Brett, I have checked in some code in an attempt to get this feature implemented. There is a new class rails.util.RunGame to replace rails.util.GameTest. Mostly because of the more appropriate name and package, but also to add a filename pickup feature: the first argument passed into main() will be considered a filepath of a Rails saved file to be loaded (the .rails extension is currently not checked). This works to some extent, the file gets loaded and the windows get displayed, but when laying a tile the program runs into tile finding problems. I don't know if this is a code or a classpath problem. To sort this out I would ask you if you create a new executable jar file (let's call it 1.0.7 alpha), with the added feature that an argument can get passed into RunGame.main(). In Windows, the Rails extension must then be bound to the script rails.bat that starts Rails and which must be updated to pass the filename to Rails. Other stuff I have checked in includes fixes to all recently reported bugs, and the much-wanted feature to draw bars over impassable hex sides. When this all works, I'd suggest to publish a beta 1.0.7 version first, to give people in this group a chance to find any remaining bugs (there is always something). Regards, Erik. |
From: brett l. <wak...@gm...> - 2009-11-06 20:52:27
|
On Fri, Nov 6, 2009 at 12:46 PM, Erik Vos <eri...@hc...> wrote: >> I know that registering an association with the .rails file extension >> is very platform specific. We'll need to investigate if Java has a >> platform agnostic way of doing this, or if we just need to figure out >> how to do this on each platform we want to support. In my mind, the >> primary targets are Windows XP or better, OS X (10.4 or 10.5 and >> beyond, I'd guess), and Linux (Gnome 2.25+ and KDE 4+). > > Brett, > > I have checked in some code in an attempt to get this feature implemented. > There is a new class rails.util.RunGame to replace rails.util.GameTest. > Mostly because of the more appropriate name and package, but also > to add a filename pickup feature: the first argument passed into > main() will be considered a filepath of a Rails saved file to be loaded > (the .rails extension is currently not checked). > > This works to some extent, the file gets loaded and the windows get > displayed, > but when laying a tile the program runs into tile finding problems. > I don't know if this is a code or a classpath problem. > > To sort this out I would ask you if you create a new executable jar file > (let's call it 1.0.7 alpha), with the added feature that an > argument can get passed into RunGame.main(). > In Windows, the Rails extension must then be bound to the script rails.bat > that starts Rails and which must be updated to pass the filename to Rails. > > > Other stuff I have checked in includes fixes to all recently reported bugs, > and the much-wanted feature to draw bars over impassable hex sides. > > When this all works, I'd suggest to publish a beta 1.0.7 version first, to > give > people in this group a chance to find any remaining bugs (there is always > something). > > Regards, > Erik. > Works for me. I'll get a 1.0.7-rc1 put together later tonight. ---Brett. |
From: Chris S. <chr...@gm...> - 2009-11-07 11:41:14
|
Sorry to spam the list on this - next time I'll do (most) of my testing and then report back. So, I was able to rename the rails.sh file to rails.command, use chmod+x and then execute it by double clicking in the Mac interface. It couldn't find the jar file. If I edit the file to have the fully qualified path to the jar file, it works but obviously that won't translate to my other Mac, where my home directory has a different path. Is there any way to specify "the current directory" in a Mac .command file? Again, defaulting to the current directory would be a great solution for this. -- Chris Please consider the environment before printing this e-mail. |
From: Erik V. <eri...@hc...> - 2009-11-07 12:08:29
|
Unfortunately I can't comment on Mac issues. The current directory default will be in the next release (it's Java's "user.dir" system property). Erik. _____ From: Chris Shaffer [mailto:chr...@gm...] Sent: Saturday 07 November 2009 12:41 To: Development list for Rails: an 18xx game Subject: Re: [Rails-devel] Opening save files directly Sorry to spam the list on this - next time I'll do (most) of my testing and then report back. So, I was able to rename the rails.sh file to rails.command, use chmod+x and then execute it by double clicking in the Mac interface. It couldn't find the jar file. If I edit the file to have the fully qualified path to the jar file, it works but obviously that won't translate to my other Mac, where my home directory has a different path. Is there any way to specify "the current directory" in a Mac .command file? Again, defaulting to the current directory would be a great solution for this. -- Chris Please consider the environment before printing this e-mail. |
From: brett l. <wak...@gm...> - 2009-11-07 17:08:27
|
Try setting it to "./rails-<version>.jar" ---Brett. On Sat, Nov 7, 2009 at 3:41 AM, Chris Shaffer <chr...@gm...> wrote: > Sorry to spam the list on this - next time I'll do (most) of my testing and > then report back. > > So, I was able to rename the rails.sh file to rails.command, use chmod+x and > then execute it by double clicking in the Mac interface. It couldn't find > the jar file. If I edit the file to have the fully qualified path to the > jar file, it works but obviously that won't translate to my other Mac, where > my home directory has a different path. Is there any way to specify "the > current directory" in a Mac .command file? > > Again, defaulting to the current directory would be a great solution for > this. > > -- > 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 > > |
From: Jim B. <jim...@ya...> - 2009-11-07 17:27:16
|
I agree that that using "the current directory" would work well- eventually I just moved my dropbox so that it lived where Rails insisted on setting the working directory. :-) Also, Chris asked me about that java user.dir setting- it turns out it doesn't work on windows either. Here's my mea culpa (indirectly): > > Doh! Sorry, gave you a bum steer on user.dir. That's a > java system property that I suggested trying w/out actually > trying it out in rails myself. Does not work for me in windows > either. > > On reflection, there's no real reason to think that should > have worked. rails starts that load dialog out in My Documents > even though I am starting rails from somewhere else, so the > path rails uses for that dialog is plainly not based on user.dir. > > If this was going to be added as a feature to rails, > it would probably be more appropriate for them to read > a property defined specifically for rails, rather than > trying to leverage user.dir. user.dir defaults to the > directory that java was started from and probably should > not be overwritten anyway. > > Sorry I made you guys waste time on that, should have tried > it out before making the suggestion. :-( > Which brings us all to the same conclusions on that, I think! Finally, chris wrote > Is there any way to specify "the current directory" in a Mac .command file? Well- depending on what you mean- it's a unix command shell, so you could try `pwd` (inside single-backquotes, just like that). Thanks Erik and everyone for the work and thoughts on some pragmatic tweaks/options here. regards, - jim On Nov 7, 2009, at 3:41 AM, Chris Shaffer wrote: > Sorry to spam the list on this - next time I'll do (most) of my > testing and then report back. > > So, I was able to rename the rails.sh file to rails.command, use > chmod+x and then execute it by double clicking in the Mac > interface. It couldn't find the jar file. If I edit the file to > have the fully qualified path to the jar file, it works but > obviously that won't translate to my other Mac, where my home > directory has a different path. Is there any way to specify "the > current directory" in a Mac .command file? > > Again, defaulting to the current directory would be a great solution > for this. > > -- > 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 |