usf-team team mailing list archive
-
usf-team team
-
Mailing list archive
-
Message #00018
New Config impressions?
As has been evident the last couple of days (or weeks if you consider the period of inactivity, lol), while most of the porting process from the old config to the new config system has been smooth, there have been a few rough patches that stop me from removing the old config entirely. As such, I've been debating whether or not the benefits of the new config system out-weigh the effort neccessary to sanitize the code enough to put it into full effect. As it stands, the new config offers the following benefits:
1. Single config file - All configuration is handled in one file instead of 3
2. Auto-recognition of new config values and sections
3. Recognition of default and user config values - If new config values are introduced, when a player upgrades, he need not delete his old config file first just to play.
4. Automatic type-casting - The config parser knows whether it is dealing with a string, a float, or an integer.
5. No need for reverse lookup (though, this could have been implemented even with the old config ;-)
6. Automatic saving - when a config value is changed, it is automatically saved.*
At any rate, opinions from the rest of the dev community would be greatly appreciated.
Regards,
Aspidites
* easy enough to set a value to turn off automatic saving
____________________________________________________________
GET FREE 5GB EMAIL - Check out spam free email with many cool features!
Visit http://www.inbox.com/email to find out more!
Follow ups