Ind Posted August 30, 2012 Group: Members Topic Count: 169 Topics Per Day: 0.03 Content Count: 1260 Reputation: 750 Joined: 11/19/11 Last Seen: April 11, 2013 Share 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 Link to comment Share on other sites More sharing options...
GreenBox Posted August 30, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 303 Reputation: 101 Joined: 11/13/11 Last Seen: October 11, 2023 Share 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 Link to comment Share on other sites More sharing options...
Ind Posted September 1, 2012 Group: Members Topic Count: 169 Topics Per Day: 0.03 Content Count: 1260 Reputation: 750 Joined: 11/19/11 Last Seen: April 11, 2013 Author Share Posted September 1, 2012 yes that can also be a option Quote Link to comment Share on other sites More sharing options...
GreenBox Posted September 1, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 303 Reputation: 101 Joined: 11/13/11 Last Seen: October 11, 2023 Share 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 Link to comment Share on other sites More sharing options...
Brian Posted September 1, 2012 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share 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 Link to comment Share on other sites More sharing options...
GreenBox Posted September 1, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 303 Reputation: 101 Joined: 11/13/11 Last Seen: October 11, 2023 Share 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 Link to comment Share on other sites More sharing options...
Ind Posted September 6, 2012 Group: Members Topic Count: 169 Topics Per Day: 0.03 Content Count: 1260 Reputation: 750 Joined: 11/19/11 Last Seen: April 11, 2013 Author Share 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 Link to comment Share on other sites More sharing options...
GreenBox Posted September 6, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 303 Reputation: 101 Joined: 11/13/11 Last Seen: October 11, 2023 Share Posted September 6, 2012 Yep, http://www.hyperrealm.com/libconfig/ It's LGPL 1 Quote Link to comment Share on other sites More sharing options...
Ind Posted September 6, 2012 Group: Members Topic Count: 169 Topics Per Day: 0.03 Content Count: 1260 Reputation: 750 Joined: 11/19/11 Last Seen: April 11, 2013 Author Share Posted September 6, 2012 Thank you :3 I'll grab my sword and start ripping stuff out of it. Quote Link to comment Share on other sites More sharing options...
xazax Posted September 7, 2012 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 427 Reputation: 123 Joined: 11/17/11 Last Seen: December 31, 2022 Share 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 Link to comment Share on other sites More sharing options...
Akkarin Posted September 7, 2012 Group: Forum Manager Topic Count: 282 Topics Per Day: 0.06 Content Count: 3144 Reputation: 1632 Joined: 03/26/12 Last Seen: April 15 Share 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 Link to comment Share on other sites More sharing options...
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.