FreeOrion

Forums for the FreeOrion project
It is currently Thu Dec 14, 2017 12:16 am

All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Sat Feb 06, 2016 2:55 am 
Offline
Space Kraken
User avatar

Joined: Sat Jan 30, 2016 11:29 am
Posts: 123
Would it be possible that the installer give the option to not overwrite config.xml?

IMO, it's annoying having to reconfigure everything after installing the builds - or, having to save old config.xml and copying it over the new one, with the risk of mangling any change to the file format the new build may have included.

_________________
All contributions are released under GPL or LGPL v2 or later, or under appropriate Creative Commons licence, consistent with project guidelines.


Top
 Profile  
 
PostPosted: Sat Feb 06, 2016 8:20 am 
Offline
Programmer
User avatar

Joined: Fri Mar 01, 2013 9:52 am
Posts: 1040
Location: Germany
Quote:
Would it be possible that the installer give the option to not overwrite config.xml?


No. Any installer for any software changes the system only and not the local users, because this opens a whole new set of problems.

If you want to keep certain configs, use the persistent_config.xml instead.

_________________
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz


Top
 Profile  
 
PostPosted: Sat Feb 06, 2016 4:28 pm 
Offline
Space Kraken
User avatar

Joined: Sat Jan 30, 2016 11:29 am
Posts: 123
adrian_broher wrote:
If you want to keep certain configs, use the persistent_config.xml instead.


I didn't know I had that option.

_________________
All contributions are released under GPL or LGPL v2 or later, or under appropriate Creative Commons licence, consistent with project guidelines.


Top
 Profile  
 
PostPosted: Sat Feb 06, 2016 6:51 pm 
Offline
Release Manager, Design
User avatar

Joined: Wed Nov 16, 2011 12:56 pm
Posts: 4289
Location: Sol III
Cpeosphoros wrote:
I didn't know I had that option.
It's probably not that well documented at the moment, being more some kind of stop-gap solution/hack which isn't particularly user-friendly anyway. The perks of an open source project in alpha phase... ;)


Top
 Profile  
 
PostPosted: Tue Feb 09, 2016 12:08 pm 
Offline
Space Kraken
User avatar

Joined: Sat Jan 30, 2016 11:29 am
Posts: 123
Vezzra wrote:
Cpeosphoros wrote:
I didn't know I had that option.
It's probably not that well documented at the moment, being more some kind of stop-gap solution/hack which isn't particularly user-friendly anyway. The perks of an open source project in alpha phase... ;)


If I understood it right, from the changelog and reading the code, persistent_config.xml should be in the same directory as config.xml, and contain any options I don't want to be changed by new builds. Is that correct?

_________________
All contributions are released under GPL or LGPL v2 or later, or under appropriate Creative Commons licence, consistent with project guidelines.


Top
 Profile  
 
PostPosted: Tue Feb 09, 2016 12:11 pm 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12041
Location: Munich
I think it will also override any options saved when you modify them in the UI, resulting in the change being reverted the next time you run the program. It might also prevent (runtime-modified) options from propagating from the client to the server.


Top
 Profile  
 
PostPosted: Tue Feb 09, 2016 12:18 pm 
Offline
Space Kraken
User avatar

Joined: Sat Jan 30, 2016 11:29 am
Posts: 123
Geoff the Medio wrote:
I think it will also override any options saved when you modify them in the UI, resulting in the change being reverted the next time you run the program. It might also prevent (runtime-modified) options from propagating from the client to the server.


Right, so, if I change some option I should go to config.xml and move it again to persistent. Not so much work, considering I'm doing that now with code snippets.

_________________
All contributions are released under GPL or LGPL v2 or later, or under appropriate Creative Commons licence, consistent with project guidelines.


Top
 Profile  
 
PostPosted: Tue Feb 09, 2016 12:18 pm 
Offline
Release Manager, Design
User avatar

Joined: Wed Nov 16, 2011 12:56 pm
Posts: 4289
Location: Sol III
Cpeosphoros wrote:
Is that correct?
AFAIK yes. And what Geoff said.


Top
 Profile  
 
PostPosted: Tue Feb 09, 2016 12:24 pm 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12041
Location: Munich
Cpeosphoros wrote:
Right, so, if I change some option I should go to config.xml and move it again to persistent.
Or just edit persistent_config.xml directly.


Top
 Profile  
 
PostPosted: Tue Feb 09, 2016 2:14 pm 
Offline
Space Kraken
User avatar

Joined: Sat Jan 30, 2016 11:29 am
Posts: 123
On editing config.xml, is it possible/planned that the Objects view's columns' width would be editable inside the UI? The config.xml has the options to adjust it, but it's kinda akward to do that from a config file, instead of simply dragging it in the UI directly.

_________________
All contributions are released under GPL or LGPL v2 or later, or under appropriate Creative Commons licence, consistent with project guidelines.


Top
 Profile  
 
PostPosted: Tue Feb 09, 2016 3:00 pm 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12041
Location: Munich
Cpeosphoros wrote:
...is it possible/planned that the Objects view's columns' width would be editable inside the UI?
Would be nice / should be done, but I don't plan on doing it any time soon.

A similar issue is the current inability to manually adjust the size of the fleets and ships lists in the FleetWnd. Someone was working on it a while ago, but never got it to a useful / acceptable state.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC


Who is online

Users browsing this forum: Hyperant and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group