You can subscribe to this list here.
2005 |
Jan
|
Feb
(25) |
Mar
(84) |
Apr
(76) |
May
(25) |
Jun
(1) |
Jul
(28) |
Aug
(23) |
Sep
(50) |
Oct
(46) |
Nov
(65) |
Dec
(76) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(60) |
Feb
(33) |
Mar
(4) |
Apr
(17) |
May
(16) |
Jun
(18) |
Jul
(131) |
Aug
(11) |
Sep
(1) |
Oct
|
Nov
(1) |
Dec
(5) |
2007 |
Jan
(71) |
Feb
|
Mar
|
Apr
|
May
(6) |
Jun
(19) |
Jul
(40) |
Aug
(38) |
Sep
(7) |
Oct
(58) |
Nov
|
Dec
(10) |
2008 |
Jan
(17) |
Feb
(27) |
Mar
(12) |
Apr
(1) |
May
(50) |
Jun
(10) |
Jul
|
Aug
(15) |
Sep
(24) |
Oct
(64) |
Nov
(115) |
Dec
(47) |
2009 |
Jan
(30) |
Feb
(1) |
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
(5) |
Aug
|
Sep
|
Oct
(4) |
Nov
(132) |
Dec
(93) |
2010 |
Jan
(266) |
Feb
(120) |
Mar
(168) |
Apr
(127) |
May
(83) |
Jun
(93) |
Jul
(77) |
Aug
(77) |
Sep
(86) |
Oct
(30) |
Nov
(4) |
Dec
(22) |
2011 |
Jan
(48) |
Feb
(81) |
Mar
(198) |
Apr
(174) |
May
(72) |
Jun
(101) |
Jul
(236) |
Aug
(144) |
Sep
(54) |
Oct
(132) |
Nov
(94) |
Dec
(111) |
2012 |
Jan
(135) |
Feb
(166) |
Mar
(86) |
Apr
(85) |
May
(137) |
Jun
(83) |
Jul
(54) |
Aug
(29) |
Sep
(49) |
Oct
(37) |
Nov
(8) |
Dec
(6) |
2013 |
Jan
(2) |
Feb
|
Mar
(1) |
Apr
(14) |
May
(5) |
Jun
(15) |
Jul
|
Aug
(38) |
Sep
(44) |
Oct
(45) |
Nov
(40) |
Dec
(23) |
2014 |
Jan
(22) |
Feb
(63) |
Mar
(43) |
Apr
(60) |
May
(10) |
Jun
(5) |
Jul
(13) |
Aug
(57) |
Sep
(36) |
Oct
(2) |
Nov
(30) |
Dec
(27) |
2015 |
Jan
(5) |
Feb
(2) |
Mar
(14) |
Apr
(3) |
May
|
Jun
(3) |
Jul
(10) |
Aug
(63) |
Sep
(31) |
Oct
(26) |
Nov
(11) |
Dec
(6) |
2016 |
Jan
|
Feb
(11) |
Mar
|
Apr
|
May
(1) |
Jun
(16) |
Jul
|
Aug
(4) |
Sep
|
Oct
(1) |
Nov
(4) |
Dec
(1) |
2017 |
Jan
(2) |
Feb
|
Mar
(1) |
Apr
|
May
(1) |
Jun
(20) |
Jul
(4) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(6) |
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
(10) |
May
(10) |
Jun
(1) |
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
(3) |
Apr
(9) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(7) |
Dec
(4) |
2021 |
Jan
(5) |
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Stefan F. <ste...@we...> - 2012-03-04 07:56:02
|
Further updates to the config mechanism: * I have added the mechanism to store config information inside of subfolders inside the rails configuration directory: Use SystemOS.get().getConfigurationFolder(String sub, boolean create) This returns a file object that points to the subfolder. If create is set to true, it is created if it does not exist before. It it does not exist or fails due to other reasons it returns null. I used that to store all user profiles in a subfolder called profiles. Erik: Please copy your "my" profile into that subfolder! * Profiles are now sorted in the selection box first on type (predefined first followed by user) and second by name. * A recent mechanism was added, that is essentially a property file that is loaded at the start of rails automatically and that gets saved as soon as the properties object gets changed. Use Config.getRecent(String key) to retrieve a value and Config.storeRecent(String key, String value) to store a value, which triggers the storage. The file that is saved is rails.recent in the top rails configuration folder. This is used to keep the profile selection persistent. However it can still be overwritten by a cli setting (-Dprofile=...) Stefan |
From: Erik V. <eri...@xs...> - 2012-03-01 20:52:28
|
Thanks, Frederick. I'm not sure if this feature is really useful (no feedback either way), but I have fixed it anyway. Your change works fine (after declaring selectedFile as final). Erik. > -----Original Message----- > From: Frederick Weld [mailto:fre...@go...] > Sent: Tuesday, February 28, 2012 7:07 AM > To: Development list for Rails: an 18xx game > Subject: Re: [Rails-devel] Rails configuration profiles > > Erik: > > The crash seems to be related to the new SplashWindow: > > That's correct. For the load recent, I've overlooked to put the call to > loadAndStartGame into a separate (non-EDT) thread. If you don't want to > remove this functionality, you would just need to replace: > > 328 if (selectedFile != null) { > 329 loadAndStartGame(selectedFile.getPath(), > selectedFile.getParent()); > 330 } else { // cancel pressed > 331 return; > 332 } > > with > > 328 if (selectedFile != null) { > 329 new Thread() { > public void run() { > > loadAndStartGame(selectedFile.getPath(), selectedFile.getParent()); > } > }.start(); > 330 } else { // cancel pressed > 331 return; > 332 } > > -- Frederick > > ---------------------------------------------------------------------------- -- > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers is > just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro > Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel |
From: Erik V. <eri...@xs...> - 2012-03-01 20:48:14
|
OK, it now works. Thanks, Stefan. Erik. > -----Original Message----- > From: Stefan Frey [mailto:ste...@we...] > Sent: Wednesday, February 29, 2012 11:45 PM > To: rai...@li... > Subject: Re: [Rails-devel] New configuration system + new release is delayed > > Erik: > sorry as stated below I was not sure if you should add profile.parent=root > inside your profile, as I did send the mail from my phone. > > It turns out that you should NOT add that line (or remove it now). > > I forgot to add the cli option, it is available now (simply add -Dprofile=MY as > argument). Your profile starts on my system now it only looks weird because > of the usual encoding issues for the money symbol. |
From: Stefan F. <ste...@we...> - 2012-02-29 23:38:55
|
Erik: sorry as stated below I was not sure if you should add profile.parent=root inside your profile, as I did send the mail from my phone. It turns out that you should NOT add that line (or remove it now). I forgot to add the cli option, it is available now (simply add -Dprofile=MY as argument). Your profile starts on my system now it only looks weird because of the usual encoding issues for the money symbol. ALL: I am currently on vacation and I had hoped for WLAN here, but no luck. How can someone create an apartment park in 2008 and forget to add that feature :-( So I am not able to upload the new release until my return next week. Unless someone else wants to volunteer, there is another release delay. But maybe it allows to fix some remaining issues. Stefan On 02/28/2012 01:53 PM, Erik Vos wrote: > Stefan, > > That doesn’t work yet. > > First, ‘pbem’ is always preselected in the startup screen. How can I > make it default to my profile? > > Second, when I select ‘My’, I’m getting an exception: > > DEBUG: Trying to locate InputStream: data/Properties.xml > > DEBUG: Opened config xml, filename = Properties.xml > > INFO : Loading properties from file data/profiles/LIST_OF_PROFILES > > INFO : Loading properties from file data/profiles/root > > INFO : Loading properties from file data/profiles/pbem.predefined > > INFO : Loading properties from file version.number > > DEBUG: Trying to locate InputStream: data/GamesList.xml > > DEBUG: Language=en, country=US, locale=en_US > > INFO : Loading properties from file > C:\Users\Erik\AppData\Roaming\rails\My.rails_profile > > Exception in thread "AWT-EventQueue-0" _java.lang.NullPointerException_ > > at rails.common.ConfigProfile.setParent(_ConfigProfile.java:147_) > > at rails.common.ConfigProfile.setParent(_ConfigProfile.java:152_) > > at rails.common.ConfigProfile.load(_ConfigProfile.java:215_) > > at rails.common.ConfigManager.changeProfile(_ConfigManager.java:218_) > > etc. > > The profile has the profile.parent=root line. > > It seems I have to do something in data/profile as well. > > Erik. > > *From:*Stefan Frey [mailto:ste...@we...] > *Sent:* Tuesday, February 28, 2012 8:38 AM > *To:* Development list for Rails: an 18xx game > *Subject:* Re: [Rails-devel] New configuration system > > Erik: > you should first save a new config file. This creates the rails > directory in your application data folder. > Then copy your existing file there and change the filename extension to > .rails_profile > This should work. If it does not you can add profile.parent = root as an > additional line inside your file. > Hope that works. > Stefan > > > > Erik Vos <eri...@xs... <mailto:eri...@xs...>> schrieb: > > Stefan, > Is there an option to import my current configuration, or can I move it > manually, or must I completely recreate it? > Erik. > >> -----Original Message----- >> From: Stefan Frey[mailto:ste...@we...] <mailto:[mailto:ste...@we...]> >> Sent: Monday, February 27, 2012 10:54 AM >> To: Development list for Rails: an 18xx game >> Subject: [Rails-devel] New configuration system >> >> I have rewritten the Configuration system for rails. >> >> I intend to release 1.7.0 today, so it would be great to get some feedback >> soon if the OS specific storage solution works without hassles for Windows >> and Mac >> >> Stefan >> >> Major changes: >> >> There are two major changes for users: >> >> * The configuration settings are stored in OS specific directories: >> >> A) Unix-Systems (except Mac): >> ~/.rails (with ~ equals content of system property user.home) >> >> B) Mac OS-Systems: ~/Library/Preferences/net.sourceforge.rails >> (again with ~ equals system property user.home) >> >> C) Windows-System: >> First it tries to locate the common application data folder (something > like >> C:\\Documents and Settings\\username\\Application Data). There it uses >> the subfolder rails. >> This is done using System.getEnv("APPDATA"). >> >> If this fails the user directory is found using > System.getEnv("USERPROFILE"), >> as user.home has a known unfixed bug on Windows system (see >> http://bugs.sun.com/view_bug.do?bug_id=4787931 >> >> * The profile system is (hopefully) easier to use now: >> >> There are predefined profiles: pbem equal to the previous default) and >> prettyUI and ORDocking. >> >> If a user changes the settings and wants to apply them, the new profile > will >> be stored inside the configuration folder and will be available for > selection (in >> addition to the predefined) at the next start. >> >> * Internally it was rewritten from scratch and the profiles are a tree > which >> has the root profile at the top. All profiles below only store the delta > to its >> parent. >> >> User profiles will always link to a predefined profile as a parent to > avoid users >> building deep structures. >> >> >> > > ------------------------------------------------------------------------ > > > -- >> Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-dev2 >> > > ------------------------------------------------------------------------ > > >> Rails-devel mailing list >> Rai...@li... <mailto:Rai...@li...> >> https://lists.sourceforge.net/lists/listinfo/rails-devel > > ------------------------------------------------------------------------ > > > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > > ------------------------------------------------------------------------ > > > Rails-devel mailing list > Rai...@li... <mailto:Rai...@li...> > https://lists.sourceforge.net/lists/listinfo/rails-devel > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > > > > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel |
From: Erik V. <eri...@xs...> - 2012-02-28 12:53:42
|
Stefan, That doesn’t work yet. First, ‘pbem’ is always preselected in the startup screen. How can I make it default to my profile? Second, when I select ‘My’, I’m getting an exception: DEBUG: Trying to locate InputStream: data/Properties.xml DEBUG: Opened config xml, filename = Properties.xml INFO : Loading properties from file data/profiles/LIST_OF_PROFILES INFO : Loading properties from file data/profiles/root INFO : Loading properties from file data/profiles/pbem.predefined INFO : Loading properties from file version.number DEBUG: Trying to locate InputStream: data/GamesList.xml DEBUG: Language=en, country=US, locale=en_US INFO : Loading properties from file C:\Users\Erik\AppData\Roaming\rails\My.rails_profile Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at rails.common.ConfigProfile.setParent(ConfigProfile.java:147) at rails.common.ConfigProfile.setParent(ConfigProfile.java:152) at rails.common.ConfigProfile.load(ConfigProfile.java:215) at rails.common.ConfigManager.changeProfile(ConfigManager.java:218) etc. The profile has the profile.parent=root line. It seems I have to do something in data/profile as well. Erik. From: Stefan Frey [mailto:ste...@we...] Sent: Tuesday, February 28, 2012 8:38 AM To: Development list for Rails: an 18xx game Subject: Re: [Rails-devel] New configuration system Erik: you should first save a new config file. This creates the rails directory in your application data folder. Then copy your existing file there and change the filename extension to .rails_profile This should work. If it does not you can add profile.parent = root as an additional line inside your file. Hope that works. Stefan Erik Vos < <mailto:eri...@xs...> eri...@xs...> schrieb: Stefan, Is there an option to import my current configuration, or can I move it manually, or must I completely recreate it? Erik. > -----Original Message----- > From: Stefan Frey [mailto:ste...@we...] > Sent: Monday, February 27, 2012 10:54 AM > To: Development list for Rails: an 18xx game > Subject: [Rails-devel] New configuration system > > I have rewritten the Configuration system for rails. > > I intend to release 1.7.0 today, so it would be great to get some feedback > soon if the OS specific storage solution works without hassles for Windows > and Mac > > Stefan > > Major changes: > > There are two major changes for users: > > * The configuration settings are stored in OS specific directories: > > A) Unix-Systems (except Mac): > ~/.rails (with ~ equals content of system property user.home) > > B) Mac OS-Systems: ~/Library/Preferences/net.sourceforge.rails > (again with ~ equals system property user.home) > > C) Windows-System: > First it tries to locate the common application data folder (something like > C:\\Documents and Settings\\username\\Application Data). There it uses > the subfolder rails. > This is done using System.getEnv("APPDATA"). > > If this fails the user directory is found using System.getEnv("USERPROFILE"), > as user.home has a known unfixed bug on Windows system (see > http://bugs.sun.com/view_bug.do?bug_id=4787931 > > * The profile system is (hopefully) easier to use now: > > There are predefined profiles: pbem equal to the previous default) and > prettyUI and ORDocking. > > If a user changes the settings and wants to apply them, the new profile will > be stored inside the configuration folder and will be available for selection (in > addition to the predefined) at the next start. > > * Internally it was rewritten from scratch and the profiles are a tree which > has the root profile at the top. All profiles below only store the delta to its > parent. > > User profiles will always link to a predefined profile as a parent to avoid users > building deep structures. > > > _____ -- > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _____ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel _____ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _____ Rails-devel mailing list Rai...@li... https://lists.sourceforge.net/lists/listinfo/rails-devel |
From: Stefan F. <ste...@we...> - 2012-02-28 07:38:15
|
Erik: you should first save a new config file. This creates the rails directory in your application data folder. Then copy your existing file there and change the filename extension to .rails_profile This should work. If it does not you can add profile.parent = root as an additional line inside your file. Hope that works. Stefan Erik Vos <eri...@xs...> schrieb: Stefan, Is there an option to import my current configuration, or can I move it manually, or must I completely recreate it? Erik. > -----Original Message----- > From: Stefan Frey [mailto:ste...@we...] > Sent: Monday, February 27, 2012 10:54 AM > To: Development list for Rails: an 18xx game > Subject: [Rails-devel] New configuration system > > I have rewritten the Configuration system for rails. > > I intend to release 1.7.0 today, so it would be great to get some feedback > soon if the OS specific storage solution works without hassles for Windows > and Mac > > Stefan > > Major changes: > > There are two major changes for users: > > * The configuration settings are stored in OS specific directories: > > A) Unix-Systems (except Mac): > ~/.rails (with ~ equals content of system property user.home) > > B) Mac OS-Systems: ~/Library/Preferences/net.sourceforge.rails > (again with ~ equals system property user.home) > > C) Windows-System: > First it tries to locate the common application data folder (something like > C:\\Documents and Settings\\username\\Application Data). There it uses > the subfolder rails. > This is done using System.getEnv("APPDATA"). > > If this fails the user directory is found using System.getEnv("USERPROFILE"), > as user.home has a known unfixed bug on Windows system (see > http://bugs.sun.com/view_bug.do?bug_id=4787931 > > * The profile system is (hopefully) easier to use now: > > There are predefined profiles: pbem equal to the previous default) and > prettyUI and ORDocking. > > If a user changes the settings and wants to apply them, the new profile will > be stored inside the configuration folder and will be available for selection (in > addition to the predefined) at the next start. > > * Internally it was rewritten from scratch and the profiles are a tree which > has the root profile at the top. All profiles below only store the delta to its > parent. > > User profiles will always link to a predefined profile as a parent to avoid users > building deep structures. > > > _____________________________________________ -- > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 >_____________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel _____________________________________________ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _____________________________________________ Rails-devel mailing list Rai...@li... https://lists.sourceforge.net/lists/listinfo/rails-devel |
From: Frederick W. <fre...@go...> - 2012-02-28 06:06:42
|
Erik: > The crash seems to be related to the new SplashWindow: That's correct. For the load recent, I've overlooked to put the call to loadAndStartGame into a separate (non-EDT) thread. If you don't want to remove this functionality, you would just need to replace: 328 if (selectedFile != null) { 329 loadAndStartGame(selectedFile.getPath(), selectedFile.getParent()); 330 } else { // cancel pressed 331 return; 332 } with 328 if (selectedFile != null) { 329 new Thread() { public void run() { loadAndStartGame(selectedFile.getPath(), selectedFile.getParent()); } }.start(); 330 } else { // cancel pressed 331 return; 332 } -- Frederick |
From: Oliver H. <oli...@gm...> - 2012-02-27 22:15:10
|
Hi, I found the instructions on the rails wiki and managed to compile and run the latest version. :-) Cheers Oliver Am 27.02.2012 21:30, schrieb Oliver Heck: > Help! I am not into programming at all. I tried to install all this > Eclipse, Git and Java stuff but did not manage to build the code. > Anybody who could build the JAR from the latest version for me? > > Cheers > Oliver |
From: Oliver H. <oli...@gm...> - 2012-02-27 20:30:40
|
Help! I am not into programming at all. I tried to install all this Eclipse, Git and Java stuff but did not manage to build the code. Anybody who could build the JAR from the latest version for me? Cheers Oliver Am 23.02.2012 15:50, schrieb Erik Vos: > > The saved game files consist of a list of serialized java objects, in > particular all executed player actions. It does not contain the > current game state. > > Rails contains a standalone program class named ListAndFixSavedFiles, > with which saved files can be inspected and (to some extent) edited. > > While I was at it, I have added a very simple menu option to dump the > Game Status panel contents into a text file. From the commit text: > > Added StatusWindow File menu action to dump the (transposed) contents > > of the GameStatus panel > > into a semicolon-separated text file with ".status" extension. > > Any tooltips (with additional info) are included between braces. > > You’ll get a file chooser popup that allows to you set the location > and name of the saved file, but it’s not yet intelligent enough to > remember previous choices: it’ll always starts with a default file > name. I can change that default if you like. > > I hope you can use this file format. It will not get much better than > this. The tooltips have already been cleaned up a little. > > Regards, > > Erik. > > *From:*Oliver Heck [mailto:oli...@gm...] > *Sent:* Thursday, February 23, 2012 3:02 PM > *To:* Erik Vos > *Subject:* Re: [Rails-users] Game status as text file > > I found that at rails.sourceforge.net/javadoc/index.html > <http://rails.sourceforge.net/javadoc/index.html> > > The physical savegame files are not XML-files, they are in some > proprietary format or am I wrong? > > Viele Grüße > > Oliver > > > > > Am 22.02.2012 um 16:19 schrieb "Erik Vos" <eri...@xs... > <mailto:eri...@xs...>>: > > Thinking about it, a straight copy of the text in each element > of the JComponent[][] fieldsmatrix in class GameStatus > (inherited from GridPanel) might be exactly what you need. > > I would start with dumping that matrix into a CSV file. > > > Erik. > |
From: Erik V. <eri...@xs...> - 2012-02-27 14:44:27
|
> -----Original Message----- > From: Stefan Frey [mailto:ste...@we...] > > Another observation (most likely for Erik): > The "Load Recent" function fails on my system with a > java.lang.ArrayIndexOutOfBoundsException. However I have to admit that it > never seemed to work correctly (often it did not show the most recently > used file). In this context, "recent" means "recently modified", not "recently used". I suppose that's confusing, but it's the best I can do without building a list-of-most-recently-used files in Rails. Is this feature, in whatever form, useful at all for anyone? Otherwise I can better remove it. The crash seems to be related to the new SplashWindow: Exception in thread "AWT-EventQueue-0" java.lang.Error: Cannot call invokeAndWait from the event dispatcher thread at java.awt.EventQueue.invokeAndWait(EventQueue.java:1026) at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1326) at rails.ui.swing.SplashWindow.<init>(SplashWindow.java:204) at rails.ui.swing.GameSetupWindow.loadAndStartGame(GameSetupWindow.java:231) Maybe Frederick can take a look? Erik. |
From: Erik V. <eri...@xs...> - 2012-02-27 14:11:50
|
Stefan, Is there an option to import my current configuration, or can I move it manually, or must I completely recreate it? Erik. > -----Original Message----- > From: Stefan Frey [mailto:ste...@we...] > Sent: Monday, February 27, 2012 10:54 AM > To: Development list for Rails: an 18xx game > Subject: [Rails-devel] New configuration system > > I have rewritten the Configuration system for rails. > > I intend to release 1.7.0 today, so it would be great to get some feedback > soon if the OS specific storage solution works without hassles for Windows > and Mac > > Stefan > > Major changes: > > There are two major changes for users: > > * The configuration settings are stored in OS specific directories: > > A) Unix-Systems (except Mac): > ~/.rails (with ~ equals content of system property user.home) > > B) Mac OS-Systems: ~/Library/Preferences/net.sourceforge.rails > (again with ~ equals system property user.home) > > C) Windows-System: > First it tries to locate the common application data folder (something like > C:\\Documents and Settings\\username\\Application Data). There it uses > the subfolder rails. > This is done using System.getEnv("APPDATA"). > > If this fails the user directory is found using System.getEnv("USERPROFILE"), > as user.home has a known unfixed bug on Windows system (see > http://bugs.sun.com/view_bug.do?bug_id=4787931 > > * The profile system is (hopefully) easier to use now: > > There are predefined profiles: pbem equal to the previous default) and > prettyUI and ORDocking. > > If a user changes the settings and wants to apply them, the new profile will > be stored inside the configuration folder and will be available for selection (in > addition to the predefined) at the next start. > > * Internally it was rewritten from scratch and the profiles are a tree which > has the root profile at the top. All profiles below only store the delta to its > parent. > > User profiles will always link to a predefined profile as a parent to avoid users > building deep structures. > > > ---------------------------------------------------------------------------- -- > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel |
From: Stefan F. <ste...@we...> - 2012-02-27 09:54:25
|
I have rewritten the Configuration system for rails. I intend to release 1.7.0 today, so it would be great to get some feedback soon if the OS specific storage solution works without hassles for Windows and Mac Stefan Major changes: There are two major changes for users: * The configuration settings are stored in OS specific directories: A) Unix-Systems (except Mac): ~/.rails (with ~ equals content of system property user.home) B) Mac OS-Systems: ~/Library/Preferences/net.sourceforge.rails (again with ~ equals system property user.home) C) Windows-System: First it tries to locate the common application data folder (something like C:\\Documents and Settings\\username\\Application Data). There it uses the subfolder rails. This is done using System.getEnv("APPDATA"). If this fails the user directory is found using System.getEnv("USERPROFILE"), as user.home has a known unfixed bug on Windows system (see http://bugs.sun.com/view_bug.do?bug_id=4787931 * The profile system is (hopefully) easier to use now: There are predefined profiles: pbem equal to the previous default) and prettyUI and ORDocking. If a user changes the settings and wants to apply them, the new profile will be stored inside the configuration folder and will be available for selection (in addition to the predefined) at the next start. * Internally it was rewritten from scratch and the profiles are a tree which has the root profile at the top. All profiles below only store the delta to its parent. User profiles will always link to a predefined profile as a parent to avoid users building deep structures. |
From: Schnell, V. <vol...@ar...> - 2012-02-26 08:29:42
|
Hi Oliver download the latest published version from here: http://rails.sourceforge.net/ with eclipse and Git you have always the actual version of the developers. the setup is described here: http://sourceforge.net/apps/mediawiki/rails/index.php?title=Development_environment_setup Greetings Volker Am 25.02.2012 23:49, schrieb Erik Vos: > > Install Eclipse and a Git repository and build the code. I suppose > Sourceforge has info in Git, but I'm no expert on that. > > Better ask such questions to the group. > > Erik. > > *From:*Oliver Heck [mailto:oli...@gm...] > *Sent:* Saturday, February 25, 2012 4:23 PM > *To:* Erik Vos > *Subject:* Re: [Rails-users] Game status as text file > > Hi Erik, > > How do I get an executable of the latest version? I have never worked > with Sourceforge. > > Viele Grüße > > Oliver > > > Am 23.02.2012 um 15:50 schrieb "Erik Vos" <eri...@xs... > <mailto:eri...@xs...>>: > > The saved game files consist of a list of serialized java objects, > in particular all executed player actions. It does not contain > the current game state. > > Rails contains a standalone program class named > ListAndFixSavedFiles, with which saved files can be inspected and > (to some extent) edited. > > While I was at it, I have added a very simple menu option to dump > the Game Status panel contents into a text file. From the commit > text: > > Added StatusWindow File menu action to dump the (transposed) > contents > > of the GameStatus panel > > into a semicolon-separated text file with ".status" extension. > > Any tooltips (with additional info) are included between braces. > > You'll get a file chooser popup that allows to you set the > location and name of the saved file, but it's not yet intelligent > enough to remember previous choices: it'll always starts with a > default file name. I can change that default if you like. > > I hope you can use this file format. It will not get much better > than this. The tooltips have already been cleaned up a little. > > Regards, > > Erik. > > *From:*Oliver Heck [mailto:oli...@gm...] > <mailto:[mailto:oli...@gm...]> > *Sent:* Thursday, February 23, 2012 3:02 PM > *To:* Erik Vos > *Subject:* Re: [Rails-users] Game status as text file > > I found that at rails.sourceforge.net/javadoc/index.html > <http://rails.sourceforge.net/javadoc/index.html> > > The physical savegame files are not XML-files, they are in some > proprietary format or am I wrong? > > Viele Grüße > > Oliver > > > > > > Am 22.02.2012 um 16:19 schrieb "Erik Vos" <eri...@xs... > <mailto:eri...@xs...>>: > > Thinking about it, a straight copy of the text in each > element of the JComponent[][] fieldsmatrix in class > GameStatus (inherited from GridPanel) might be exactly > what you need. > > I would start with dumping that matrix into a CSV file. > > > Erik. > > > > ------------------------------------------------------------------------------ > Virtualization& Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel -- Volker Schnell email: vol...@ar... homepage: home.arcor.de\volker_schnell |
From: Erik V. <eri...@xs...> - 2012-02-25 22:49:57
|
Install Eclipse and a Git repository and build the code. I suppose Sourceforge has info in Git, but I’m no expert on that. Better ask such questions to the group. Erik. From: Oliver Heck [mailto:oli...@gm...] Sent: Saturday, February 25, 2012 4:23 PM To: Erik Vos Subject: Re: [Rails-users] Game status as text file Hi Erik, How do I get an executable of the latest version? I have never worked with Sourceforge. Viele Grüße Oliver Am 23.02.2012 um 15:50 schrieb "Erik Vos" <eri...@xs...>: The saved game files consist of a list of serialized java objects, in particular all executed player actions. It does not contain the current game state. Rails contains a standalone program class named ListAndFixSavedFiles, with which saved files can be inspected and (to some extent) edited. While I was at it, I have added a very simple menu option to dump the Game Status panel contents into a text file. From the commit text: Added StatusWindow File menu action to dump the (transposed) contents of the GameStatus panel into a semicolon-separated text file with ".status" extension. Any tooltips (with additional info) are included between braces. You’ll get a file chooser popup that allows to you set the location and name of the saved file, but it’s not yet intelligent enough to remember previous choices: it’ll always starts with a default file name. I can change that default if you like. I hope you can use this file format. It will not get much better than this. The tooltips have already been cleaned up a little. Regards, Erik. From: Oliver Heck [mailto:oli...@gm...] Sent: Thursday, February 23, 2012 3:02 PM To: Erik Vos Subject: Re: [Rails-users] Game status as text file I found that at rails.sourceforge.net/javadoc/index.html The physical savegame files are not XML-files, they are in some proprietary format or am I wrong? Viele Grüße Oliver Am 22.02.2012 um 16:19 schrieb "Erik Vos" < <mailto:eri...@xs...> eri...@xs...>: Thinking about it, a straight copy of the text in each element of the JComponent[][] fields matrix in class GameStatus (inherited from GridPanel) might be exactly what you need. I would start with dumping that matrix into a CSV file. Erik. |
From: Erik V. <eri...@xs...> - 2012-02-23 14:50:45
|
The saved game files consist of a list of serialized java objects, in particular all executed player actions. It does not contain the current game state. Rails contains a standalone program class named ListAndFixSavedFiles, with which saved files can be inspected and (to some extent) edited. While I was at it, I have added a very simple menu option to dump the Game Status panel contents into a text file. From the commit text: Added StatusWindow File menu action to dump the (transposed) contents of the GameStatus panel into a semicolon-separated text file with ".status" extension. Any tooltips (with additional info) are included between braces. You’ll get a file chooser popup that allows to you set the location and name of the saved file, but it’s not yet intelligent enough to remember previous choices: it’ll always starts with a default file name. I can change that default if you like. I hope you can use this file format. It will not get much better than this. The tooltips have already been cleaned up a little. Regards, Erik. From: Oliver Heck [mailto:oli...@gm...] Sent: Thursday, February 23, 2012 3:02 PM To: Erik Vos Subject: Re: [Rails-users] Game status as text file I found that at rails.sourceforge.net/javadoc/index.html The physical savegame files are not XML-files, they are in some proprietary format or am I wrong? Viele Grüße Oliver Am 22.02.2012 um 16:19 schrieb "Erik Vos" < <mailto:eri...@xs...> eri...@xs...>: Thinking about it, a straight copy of the text in each element of the JComponent[][] fields matrix in class GameStatus (inherited from GridPanel) might be exactly what you need. I would start with dumping that matrix into a CSV file. Erik. |
From: Erik V. <eri...@xs...> - 2012-02-23 13:33:57
|
Thanks for your analysis. I have followed your first suggestion and pushed a fix. Erik. > -----Original Message----- > From: Frederick Weld [mailto:fre...@go...] > Sent: Thursday, February 23, 2012 7:49 AM > To: Development list for Rails: an 18xx game > Subject: Re: [Rails-devel] Problem with game init (was: Problem with 1835 > PfB) > > Stefan: > > To 99% this must have been something to do with Frederick's change of > > the NDC mechanism. > > Having taken a look at the online git repos, I confirm this. But since I do not > have access to my local git clone for the next days, please feel free to push a > fix to this according to the following analysis: > > (1) Game's add to the report buffer is called in Game's constructor but the > new GameManager instance is only created in Game's setup method (called > later). > > (2) ReportBuffer retrieves the game manager instance (yielding the old one). > Before the NDC change, it was returned null and would buffer the added > message. > > Two options to fix this: > > (1) Postpone the ReportBuffer add to Game's setup (after the new game > manager is initialized). But from static analysis, it's unclear whether follow-up > issues would arise. > > (2) Clear game manager singleton instance in game's constructor (would > require an additional method to GameManager calling > "gameManagerMap.put(GM_KEY, null);") > > -- Frederick > > ---------------------------------------------------------------------------- -- > Virtualization & Cloud Management Using Capacity Planning Cloud computing > makes use of virtualization - but cloud computing also focuses on allowing > computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel |
From: Frederick W. <fre...@go...> - 2012-02-23 06:48:54
|
Stefan: > To 99% this must have been something to do with Frederick's change of > the NDC mechanism. Having taken a look at the online git repos, I confirm this. But since I do not have access to my local git clone for the next days, please feel free to push a fix to this according to the following analysis: (1) Game's add to the report buffer is called in Game's constructor but the new GameManager instance is only created in Game's setup method (called later). (2) ReportBuffer retrieves the game manager instance (yielding the old one). Before the NDC change, it was returned null and would buffer the added message. Two options to fix this: (1) Postpone the ReportBuffer add to Game's setup (after the new game manager is initialized). But from static analysis, it's unclear whether follow-up issues would arise. (2) Clear game manager singleton instance in game's constructor (would require an additional method to GameManager calling "gameManagerMap.put(GM_KEY, null);") -- Frederick |
From: Stefan F. <ste...@we...> - 2012-02-22 17:34:58
|
Bill & Jerry, thanks for your input. My proposed solution is the following: Depending on the OS detected (using system property os.name) configuration files will be stored to the following folders: A) Unix-Systems (except Mac): ~/.rails (with ~ equals content of system property user.home) B) Mac OS-Systems: ~/Library/Preferences/net.sourceforge.rails (again with ~ equals system property user.home) C) Windows-System: First it tries to locate the common application data folder (something like C:\\Documents and Settings\\username\\Application Data). There it uses the subfolder rails. This is done using the Java Library WinFolderPath (http://code.google.com/p/winfolderpath/) If this fails the user directory is found using System.getEnv("USERPROFILE"), as user.home has a known unfixed bug on Windows system (see http://bugs.sun.com/view_bug.do?bug_id=4787931) Questions: * I do no know which name I should use for the rails subfolder for the Windows case (either user or application data folder)? Should I use 'rails' or '.rails' (as for Unix) or 'net.sourceforge.rails' (as for Mac OS)? * Is there still a need for an option to provide a command line overwrite? Stefan On 02/22/2012 07:03 AM, Bill Rosgen wrote: > > On 2012-02-22, at 1:07 , Stefan Frey wrote: >> What would you think about adding a default directory to store rails >> application data and settings. Something like ~/.rails on a Unix system. >> The major advantage would be that the settings would survive new >> releases without providing an installer that searches for the >> application data. > > ... > >> Another question is how does this work on a Mac system? As the Mac OS is >> built on a BSD I would assume that the Unix way of things should work, >> but is that true? > > In order to be difficult, Mac OS provides at least three places to store this data. The defaults are: > > ~/Library/Preferences/org.rails.rails for 'preferences', like the size and position of windows. > ~/Library/Rails for 'irreplacable' user data: I am not sure that Rails has any such data > ~/Library/Application Support/Rails for 'nonessential' user data like templates, plugins, etc. > > In practice, most apps store small preference files in ~/Library/Preferences and larger pieces of data in ~/Library/Application Support. Finding the user's home directory can be done with System.getProperty("user.home"), or at least this is what the docs say, and it seems to be appropriate to hardcode the rest of the chosen path. > > All of this information comes from https://developer.apple.com/library/mac/#qa/qa1170/_index.html . > > Many mac programs do just follow the Unix way and throw things into, for example, ~/.rails , but this behaviour is somewhat inappropriate and can confuse users who are not happy with the command line, which is pretty much the only way to access these directories. Programs that do things like this are usually things like ssh, git, and emacs, which can usually assume that their users are somewhat sophisticated. > > Bill > > > ------------------------------------------------------------------------------ > Virtualization& Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel |
From: Stefan F. <ste...@we...> - 2012-02-22 15:36:17
|
Erik & Frederick: in fact all but the first run fail, a clear indication that running several games in sequence is the issue: The GameIs message is produced in line 91 of rails.game.Game: ReportBuffer.add(LocalText.getText("GameIs", name)); The message is written to the current gameManager's reportBuffer. This reportBuffer is that of the previous gameManager instead of the new one. To 99% this must have been something to do with Frederick's change of the NDC mechanism. As I do not know what has been changed, it might be easier for Frederick to track that bug. Stefan > BTW all test cases now fail because the first "GameIs" report line has > disappeared from the test report. But this line still appears in the report > window. > Something must have changed in the game initialization process. > > Erik. |
From: Phil D. <de...@gm...> - 2012-02-22 10:47:51
|
Players can't use the D&H special power, it's only available to companies after they have bought the private in. The private can't be bought in until the 3's are purchased. If NYC buys to the 3 on it's turn, then on it's next turn it can use the D&H power to lay the tile (although it will be able to build there normally by that point. On 22 February 2012 10:29, Russell J. Alphey <Ra...@mt...> wrote: > At 08:27 PM 22/02/2012, Phil Davies wrote: > >> Have you got a save file? It always makes finding any issues easier >> > > Oops, sorry. > > With this file it's Mark's turn, and he would like to lay the special D&H > tile. > > R. > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > > |
From: Russell J. A. <Ra...@Mt...> - 2012-02-22 10:33:10
|
At 08:27 PM 22/02/2012, Phil Davies wrote: >Have you got a save file? It always makes finding any issues easier Oops, sorry. With this file it's Mark's turn, and he would like to lay the special D&H tile. R. |
From: Phil D. <de...@gm...> - 2012-02-22 09:27:27
|
Have you got a save file? It always makes finding any issues easier On 21 February 2012 21:55, Russell J. Alphey <Ra...@mt...> wrote: > NYC player is trying to lay the special D&H tile but Rails is saying > the tile cannot be upgraded now. > > The hex isn't connected to the NYC's network, but the rules do say > that the station does NOT have to be connected to the remainer of the > route. > > Is this interpreted as meaning you can lay the tile any time, or that > you can only lay the tile when it would be valid to do so but don't > have to connect the track to your route? I susepct the latter is what > Rails is doing??? > > R. > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > |
From: Erik V. <eri...@xs...> - 2012-02-22 09:10:27
|
Volker, The question is asked when the green tile is laid on L6. That's what the rule says that you sent me, and that's how it works now. You have to Undo twice to get there. Erik. > -----Original Message----- > From: Schnell, Volker [mailto:vol...@ar...] > Sent: Wednesday, February 22, 2012 9:49 AM > To: rai...@li... > Subject: Re: [Rails-devel] Problem with 1835 PfB > > hi Erik, > > sorry, but the change doesn't work, see attached file. > There is no question, to lay the Bad-Token. > > Volker > > Am 21.02.2012 23:42, schrieb Erik Vos: > > OK, the fix is to always address the president of the company of which > > the token must be laid in the token placement prompt. > > This is a one-liner, but it breaks the architecture, as the UI > > (client) is not supposed to have direct access to the identity of a > > company president (which is a server state variable). > > So this still is a provisional fix. > > > > Anyway, the effect on this game will be that the prompt becomes the BY > > president will now get the prompt "<BA-president>, select a station on > > hex > > L6 for the BA home base token". > > > > BTW all test cases now fail because the first "GameIs" report line has > > disappeared from the test report. But this line still appears in the > > report window. > > Something must have changed in the game initialization process. > > > > Erik. > > > >> -----Original Message----- > >> From: Erik Vos [mailto:eri...@xs...] > >> Sent: Tuesday, February 21, 2012 6:50 PM > >> To: vol...@ar...; 'Development list for Rails: an 18xx game' > >> Subject: Re: [Rails-devel] Problem with 1835 PfB > >> > >> Aha, thanks, that clarifies it sufficiently. > >> > >> All I have to do then is to undo most of a change that I did three > >> months > > ago. > >> That change was more a workaround than a fix for the reported problem > >> that placing the BA home token was asked to the wrong player. The > >> workaround was to move the BA home token placement to the first BA > OR turn. > >> > >> Now it turns out that this change precludes correct play in some > >> cases, so > > it > >> must be reverted. > >> > >> The question asked to the NY president was (and will become again): > >> "<BY-president>, select a station on hex L6 for the BA home base token". > >> I will see if I can put the correct name (of the BA president) into > >> that question, but it will still be asked to the BY-president. > >> Stay tuned. > >> > >> Erik. > >> > >> > >>> -----Original Message----- > >>> From: Schnell, Volker [mailto:vol...@ar...] > >>> Sent: Tuesday, February 21, 2012 3:26 PM > >>> To: rai...@li... > >>> Subject: Re: [Rails-devel] Problem with 1835 PfB > >>> > >>> Hi Erik, > >>> > >>> the english translation is missing an important sentence. > >>> chapter 5.5.10 3rd Sentence. (VII.10 in the english rules)"Wird das > >>> Feld bebaut, nachdem dort bereits der Baden-Bahnhof liegt, dann muß > >>> der Baden-Direktor sofort eine der beiden Städte für seinen > >>> Heimatbahnhof auswählen, der andere Bahnhof kann dann schon von > der > >>> gerade bauenden Gesellschaft errrichtet werden. > >>> "if the Tile is built, when the baden Home-token already exists, the > >>> baden Director must choose immediately one of the cities as the > >>> homestation. The other one can be used by the building Company." > >>> The Baden-Token is placed on the Yellow Field, like the Wt-Token and > >>> has > >> to > >>> assigned to a city, when a tile is placed. > >>> > >>> The hometokens are laid in the stockround, when the company is > >>> floated (sometimes a problem, when Baden and Hessen opens in the > >>> same stockround and a Bayern-Token exist in Frankfurt. No Chance for > >>> the Baden to get throu Frankfurt). > >>> > >>> the Simple approach, that the current Player lays the Bad-token, is > >>> for me > >> ok. > >>> Volker > >>> > >>> Am 21.02.2012 14:33, schrieb Erik Vos: > >>>> Martin, > >>>> > >>>>> 1. the Map Definition of the Hex is wrong... > >>>> I suppose you refer to 'unlaidHomeBlocksTokens="yes" '. That > >>>> indeed > >>> causes the behaviour that Volker is complaining about. > >>>> Strictly spoken this attribute is still valid: BA must lay its home > >> token before > >>> BY can add its token. > >>>> The question is: exactly WHEN must BA lay its home token in such a > > case? > >>>> The rules (English v2) say: "... the new Baden director decides in > >>>> the > >> next > >>> operating round which of the two stations to occupy with its station > >> marker." > >>>> But the rules don't say *when* in that OR he must take that decision. > >>>> Possibilities I see: (1) at the start of the OR, or (2) in its own > >>>> turn, > >> or (3) in its > >>> own turn or earlier as soon as another company wants to lay a second > >>> token on L6 (either using PfB, or by a normal token lay). > >>>> Current implementation is (2), as is correct for Erie(1830) and THB > >> (1856). > >>> There the hex remains blocked until after the home token has been > >>> laid normally. > >>>> If this interpretation would hold for the BA as well, there is no > >> problem at > >>> all. BY must wait until BA has had a turn. > >>>> Now Volker appears to favour interpretation (3). I'm actually not > >>>> sure > >> if > >>> that interpretation is correct. Any other opinions? > >>>> I have been working to implement (3) by actually giving the BA > >>>> director > >> an > >>> intervening turn, but that turns out to be rather complex and > >>> tricky, and > >> I > >>> think I'll abandon that approach. > >>>> We need a generic solution for such problems, but such a solution > >>>> will > >> not > >>> fit well into the current architecture. Let's await which direction > >>> Rails > >> will take > >>> in the near future before trying again. > >>>> A simpler approach would be to have the current player (the BY > >> president) > >>> place the BA token. So these players (if different) must consult > >>> each > >> other, > >>> but that is not uncommon in Dropbox Rails. That approach sounds > >>> doable now, but let's first discuss what the real need is. > >>>>> 2. the method to move a token on a hex after that token has been > >>>>> laid > >> is > >>> not yet implemented i am afraid. > >>>> I'm not sure what you mean here. Tokens can never be moved. > >>>> In some cases, initial token placement is provisional. That is the > >>>> case > >> if the > >>> tile hasn't any tracks yet. As soon as a tile with tracks is > >>> placed, > >> actual token > >>> placement follows. > >>>> That has been implemented and it works (at least it did last time I > >> looked). > >>>>> 3. if you alter the map definition for that hex in 1835/Map.xml > >>>>> the > >> game > >>> declares the save file invalid because it expects a different action... > >>>> Then game loading breaks down in an earlier stage. I'm not sure > >>>> exactly > >>> why, but meddling with the course of events often (if not always) > >>> renders saved files invalid. > >>>> Erik. > >>>> > >>>> > >>>> ------------------------------------------------------------------- > >>>> - > >>>> -- > >>>> -------- Keep Your Developer Skills Current with LearnDevNow! > >>>> The most comprehensive online learning library for Microsoft > >>>> developers is just $99.99! Visual Studio, SharePoint, SQL - plus > >>>> HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases > >>>> when > >>> you subscribe now! > >>>> http://p.sf.net/sfu/learndevnow-d2d > >>>> _______________________________________________ > >>>> Rails-devel mailing list > >>>> Rai...@li... > >>>> https://lists.sourceforge.net/lists/listinfo/rails-devel > >>> -- > >>> Volker Schnell > >>> email: vol...@ar... > >>> homepage: home.arcor.de\volker_schnell > >>> > >>> > >>> > > ---------------------------------------------------------------------- > > ------ > >> -- > >>> Keep Your Developer Skills Current with LearnDevNow! > >>> The most comprehensive online learning library for Microsoft > >>> developers is just $99.99! Visual Studio, SharePoint, SQL - plus > >>> HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases > when > >> you subscribe now! > >>> http://p.sf.net/sfu/learndevnow-d2d > >>> _______________________________________________ > >>> Rails-devel mailing list > >>> Rai...@li... > >>> https://lists.sourceforge.net/lists/listinfo/rails-devel > >> > >> > > ---------------------------------------------------------------------- > > ------ > > -- > >> Keep Your Developer Skills Current with LearnDevNow! > >> The most comprehensive online learning library for Microsoft > >> developers is just $99.99! Visual Studio, SharePoint, SQL - plus > >> HTML5, CSS3, MVC3, > > Metro > >> Style Apps, more. Free future releases when you subscribe now! > >> http://p.sf.net/sfu/learndevnow-d2d > >> _______________________________________________ > >> Rails-devel mailing list > >> Rai...@li... > >> https://lists.sourceforge.net/lists/listinfo/rails-devel > > > > ---------------------------------------------------------------------- > > -------- Keep Your Developer Skills Current with LearnDevNow! > > The most comprehensive online learning library for Microsoft > > developers is just $99.99! Visual Studio, SharePoint, SQL - plus > > HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when > you subscribe now! > > http://p.sf.net/sfu/learndevnow-d2d > > _______________________________________________ > > Rails-devel mailing list > > Rai...@li... > > https://lists.sourceforge.net/lists/listinfo/rails-devel > > -- > Volker Schnell > email: vol...@ar... > homepage: home.arcor.de\volker_schnell |
From: Schnell, V. <vol...@ar...> - 2012-02-22 08:49:11
|
hi Erik, sorry, but the change doesn't work, see attached file. There is no question, to lay the Bad-Token. Volker Am 21.02.2012 23:42, schrieb Erik Vos: > OK, the fix is to always address the president of the company of which the > token must be laid in the token placement prompt. > This is a one-liner, but it breaks the architecture, as the UI (client) is > not supposed to have direct access to the identity of a company president > (which is a server state variable). > So this still is a provisional fix. > > Anyway, the effect on this game will be that the prompt becomes the BY > president will now get the prompt "<BA-president>, select a station on hex > L6 for the BA home base token". > > BTW all test cases now fail because the first "GameIs" report line has > disappeared from the test report. But this line still appears in the report > window. > Something must have changed in the game initialization process. > > Erik. > >> -----Original Message----- >> From: Erik Vos [mailto:eri...@xs...] >> Sent: Tuesday, February 21, 2012 6:50 PM >> To: vol...@ar...; 'Development list for Rails: an 18xx game' >> Subject: Re: [Rails-devel] Problem with 1835 PfB >> >> Aha, thanks, that clarifies it sufficiently. >> >> All I have to do then is to undo most of a change that I did three months > ago. >> That change was more a workaround than a fix for the reported problem that >> placing the BA home token was asked to the wrong player. The workaround >> was to move the BA home token placement to the first BA OR turn. >> >> Now it turns out that this change precludes correct play in some cases, so > it >> must be reverted. >> >> The question asked to the NY president was (and will become again): >> "<BY-president>, select a station on hex L6 for the BA home base token". >> I will see if I can put the correct name (of the BA president) into that >> question, but it will still be asked to the BY-president. >> Stay tuned. >> >> Erik. >> >> >>> -----Original Message----- >>> From: Schnell, Volker [mailto:vol...@ar...] >>> Sent: Tuesday, February 21, 2012 3:26 PM >>> To: rai...@li... >>> Subject: Re: [Rails-devel] Problem with 1835 PfB >>> >>> Hi Erik, >>> >>> the english translation is missing an important sentence. >>> chapter 5.5.10 3rd Sentence. (VII.10 in the english rules)"Wird das >>> Feld bebaut, nachdem dort bereits der Baden-Bahnhof liegt, dann muß >>> der Baden-Direktor sofort eine der beiden Städte für seinen >>> Heimatbahnhof auswählen, der andere Bahnhof kann dann schon von der >>> gerade bauenden Gesellschaft errrichtet werden. >>> "if the Tile is built, when the baden Home-token already exists, the >>> baden Director must choose immediately one of the cities as the >>> homestation. The other one can be used by the building Company." >>> The Baden-Token is placed on the Yellow Field, like the Wt-Token and >>> has >> to >>> assigned to a city, when a tile is placed. >>> >>> The hometokens are laid in the stockround, when the company is floated >>> (sometimes a problem, when Baden and Hessen opens in the same >>> stockround and a Bayern-Token exist in Frankfurt. No Chance for the >>> Baden to get throu Frankfurt). >>> >>> the Simple approach, that the current Player lays the Bad-token, is >>> for me >> ok. >>> Volker >>> >>> Am 21.02.2012 14:33, schrieb Erik Vos: >>>> Martin, >>>> >>>>> 1. the Map Definition of the Hex is wrong... >>>> I suppose you refer to 'unlaidHomeBlocksTokens="yes" '. That indeed >>> causes the behaviour that Volker is complaining about. >>>> Strictly spoken this attribute is still valid: BA must lay its home >> token before >>> BY can add its token. >>>> The question is: exactly WHEN must BA lay its home token in such a > case? >>>> The rules (English v2) say: "... the new Baden director decides in >>>> the >> next >>> operating round which of the two stations to occupy with its station >> marker." >>>> But the rules don't say *when* in that OR he must take that decision. >>>> Possibilities I see: (1) at the start of the OR, or (2) in its own >>>> turn, >> or (3) in its >>> own turn or earlier as soon as another company wants to lay a second >>> token on L6 (either using PfB, or by a normal token lay). >>>> Current implementation is (2), as is correct for Erie(1830) and THB >> (1856). >>> There the hex remains blocked until after the home token has been laid >>> normally. >>>> If this interpretation would hold for the BA as well, there is no >> problem at >>> all. BY must wait until BA has had a turn. >>>> Now Volker appears to favour interpretation (3). I'm actually not >>>> sure >> if >>> that interpretation is correct. Any other opinions? >>>> I have been working to implement (3) by actually giving the BA >>>> director >> an >>> intervening turn, but that turns out to be rather complex and tricky, >>> and >> I >>> think I'll abandon that approach. >>>> We need a generic solution for such problems, but such a solution >>>> will >> not >>> fit well into the current architecture. Let's await which direction >>> Rails >> will take >>> in the near future before trying again. >>>> A simpler approach would be to have the current player (the BY >> president) >>> place the BA token. So these players (if different) must consult each >> other, >>> but that is not uncommon in Dropbox Rails. That approach sounds doable >>> now, but let's first discuss what the real need is. >>>>> 2. the method to move a token on a hex after that token has been >>>>> laid >> is >>> not yet implemented i am afraid. >>>> I'm not sure what you mean here. Tokens can never be moved. >>>> In some cases, initial token placement is provisional. That is the >>>> case >> if the >>> tile hasn't any tracks yet. As soon as a tile with tracks is placed, >> actual token >>> placement follows. >>>> That has been implemented and it works (at least it did last time I >> looked). >>>>> 3. if you alter the map definition for that hex in 1835/Map.xml the >> game >>> declares the save file invalid because it expects a different action... >>>> Then game loading breaks down in an earlier stage. I'm not sure >>>> exactly >>> why, but meddling with the course of events often (if not always) >>> renders saved files invalid. >>>> Erik. >>>> >>>> >>>> -------------------------------------------------------------------- >>>> -- >>>> -------- Keep Your Developer Skills Current with LearnDevNow! >>>> The most comprehensive online learning library for Microsoft >>>> developers is just $99.99! Visual Studio, SharePoint, SQL - plus >>>> HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when >>> you subscribe now! >>>> http://p.sf.net/sfu/learndevnow-d2d >>>> _______________________________________________ >>>> Rails-devel mailing list >>>> Rai...@li... >>>> https://lists.sourceforge.net/lists/listinfo/rails-devel >>> -- >>> Volker Schnell >>> email: vol...@ar... >>> homepage: home.arcor.de\volker_schnell >>> >>> >>> > ---------------------------------------------------------------------------- >> -- >>> Keep Your Developer Skills Current with LearnDevNow! >>> The most comprehensive online learning library for Microsoft >>> developers is just $99.99! Visual Studio, SharePoint, SQL - plus >>> HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when >> you subscribe now! >>> http://p.sf.net/sfu/learndevnow-d2d >>> _______________________________________________ >>> Rails-devel mailing list >>> Rai...@li... >>> https://lists.sourceforge.net/lists/listinfo/rails-devel >> >> > ---------------------------------------------------------------------------- > -- >> Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft developers is >> just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro >> Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> _______________________________________________ >> Rails-devel mailing list >> Rai...@li... >> https://lists.sourceforge.net/lists/listinfo/rails-devel > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel -- Volker Schnell email: vol...@ar... homepage: home.arcor.de\volker_schnell |
From: Bill R. <ro...@gm...> - 2012-02-22 06:03:25
|
On 2012-02-22, at 1:07 , Stefan Frey wrote: > What would you think about adding a default directory to store rails > application data and settings. Something like ~/.rails on a Unix system. > The major advantage would be that the settings would survive new > releases without providing an installer that searches for the > application data. ... > Another question is how does this work on a Mac system? As the Mac OS is > built on a BSD I would assume that the Unix way of things should work, > but is that true? In order to be difficult, Mac OS provides at least three places to store this data. The defaults are: ~/Library/Preferences/org.rails.rails for 'preferences', like the size and position of windows. ~/Library/Rails for 'irreplacable' user data: I am not sure that Rails has any such data ~/Library/Application Support/Rails for 'nonessential' user data like templates, plugins, etc. In practice, most apps store small preference files in ~/Library/Preferences and larger pieces of data in ~/Library/Application Support. Finding the user's home directory can be done with System.getProperty("user.home"), or at least this is what the docs say, and it seems to be appropriate to hardcode the rest of the chosen path. All of this information comes from https://developer.apple.com/library/mac/#qa/qa1170/_index.html . Many mac programs do just follow the Unix way and throw things into, for example, ~/.rails , but this behaviour is somewhat inappropriate and can confuse users who are not happy with the command line, which is pretty much the only way to access these directories. Programs that do things like this are usually things like ssh, git, and emacs, which can usually assume that their users are somewhat sophisticated. Bill |