From: Jim B. <jim...@ya...> - 2009-11-23 21:09:17
|
> Yes, the special value NEXT_PLAYER will do that. > save.filename.suffix=NEXT_PLAYER One aside on this current/next player for save files- ail's notion of current/next player is a little awkward for this, with pbem game, because it strongly depends on whether a player has hit 'Done' yet, or not. Once a players hits 'Done', current-player becomes next-player, next- player becomes the-guy-after-that, etc. If we were using this for save file names and token/next-player names, we'd have to be pretty disciplined about who presses "Done". But, along these lines- I know it's an odd idea, but is there any way to set the default so that it adds suffixes for BOTH current-player (well, more literally- the one who just moved), and, next-player (again more literally, the one who should move right-now) ? I'm thinking this might be the ideal way to have our cake and eat-it- too- Tom Dick and Harry were playing 18AL, I might imagine a folder listing like this: 1870_T000001_Tom_Dick 1870_T000002_Dick_Harry 1870_T000001_Harry_Tom 1870_T000001_Tom_Harry 1870_T000001_Harry_Tom 1870_T000001_Dick_Harry etc. The name on the left is the person saving the complete move- the name on the right is the current/next player, who needs to pick that up and move next. this would be convenient, because it would be easy to BOTH (a) find a specific player's previous moves, (b) see who's move it is next, with Rails help. Sorry to be longwinded, just thought I'd mention it. Thanks again for all the hard work on rails and this release- all the quick bug fixes, convenient options, etc. It's great. - jim On Nov 21, 2009, at 11:28 AM, Erik Vos wrote: > Yes, the special value NEXT_PLAYER will do that. > save.filename.suffix=NEXT_PLAYER > >> -----Original Message----- >> From: Chris Shaffer [mailto:chr...@gm...] >> Sent: Saturday 21 November 2009 20:11 >> To: Development list for Rails: an 18xx game >> Subject: Re: [Rails-devel] Save file names >> >> Would it be possible to set the save file name suffix to the >> variable >> "next player"? >> >> -- >> Chris Shaffer >> >> Please consider the environment before printing this email. >> >> On Nov 21, 2009, at 10:31 AM, "Erik Vos" <eri...@xs...> wrote: >> >>> On popular request, I have added two new entries to the customizable >>> configuration file my.properties. >>> Both affect the default file name proposed by the program: >>> >>> Timezone: >>> save.filename.date_time_zone=UTC >>> The date-time stamp is calculated using the given time zone >>> identifier. >>> Default is local time. >>> The time zone identifier must be a valid Java time zone name. >>> Fortunately, >>> that list is very long. >>> Java 1.6 supports names like "UTC", "EST", "EST5EDT", "Etc/GMT+5", >>> "Cuba", >>> "America/Montreal", "Europe/Amsterdam" etc. >>> A bit of googling might help. I found a Java applet that displays >>> the list >>> at http://mindprod.com/applet/tz.html, >>> but you must have Java 1.6 installed. >>> >>> Suffix: >>> save.filename.suffix=Me >>> The suffix is appended to the base file name (before extension), >>> separated >>> by an underscore, which is added automatically. >>> >>> A file name created by the above settings could be >>> 1830_20091121_1825_Me.rails >>> >>> For some reason that currently escapes me, a file can be >> saved only >>> after at >>> least one move has been done. >>> I suppose that is not too much of a limitation... >>> >>> Erik. >>> >>> >>> --- >>> --- >>> --- >>> >> --------------------------------------------------------------------- >>> 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 |