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 |