Ind Posted August 30, 2012 Posted August 30, 2012 we don't have one, not even two, but three "standard" (wat) config parsing subsystems: /common/strlib.c::config_switch stuff (with relatives all over the place within all 3 servers) libconfig (most awful code i've ever seen) /common/raconf.c and thats what I'd like to discuss in this topic, please post all your opinions, my opinion: drop all 3, write a new one with a input similar to libconfig one which is, imo, pretty good-looking and easy to read. Quote
GreenBox Posted August 30, 2012 Posted August 30, 2012 it's easy to write a lib like libconfig with flex+bison, but, if we can use it, why create another one? Quote
GreenBox Posted September 1, 2012 Posted September 1, 2012 But using libconfig it would be a total config files rewrite as it doesn't follow our current config syntax Quote
Brian Posted September 1, 2012 Posted September 1, 2012 Would any of this change trunk/conf/help.txt ? I'm about to edit some commands to use atcommand_help_string() and read their help text from /conf/help.txt instead of soft-coded messages in /conf/msg_athena.conf Quote
GreenBox Posted September 1, 2012 Posted September 1, 2012 yep. it could be something like lua, one line per string in the array as libconfig can deal with arrays and groups. Quote
Ind Posted September 6, 2012 Author Posted September 6, 2012 do any of you know if we're allowed to modify libconfig? (there are a couple things in it that are quite annoying, for example if it finds a duplicate entry in the file it drops the whole file data rather than throwing a warning or replacing.) Quote
GreenBox Posted September 6, 2012 Posted September 6, 2012 Yep, http://www.hyperrealm.com/libconfig/ It's LGPL 1 Quote
Ind Posted September 6, 2012 Author Posted September 6, 2012 Thank you :3 I'll grab my sword and start ripping stuff out of it. Quote
xazax Posted September 7, 2012 Posted September 7, 2012 Let's also consider how much compatiblity do we want to maintain with eA. The more config format we change, the more work we force to the users who wants to migrate to rA. 1 Quote
Akkarin Posted September 7, 2012 Posted September 7, 2012 For conversion support, perhaps a similar tool to convert configs like how forums do it i.e. smf->ipb. We had one for porting item_db.txt into `item_db`, so why not for the /conf files? It shouldn't be difficult to maintain - how often do new configs pop up in eA? 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.