Jump to content

our config file parsing is...sort of a joke.


Recommended Posts

Posted

we don't have one, not even two, but three "standard" (wat) config parsing subsystems:

  1. /common/strlib.c::config_switch stuff (with relatives all over the place within all 3 servers)
  2. libconfig (most awful code i've ever seen)
  3. /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.

Posted

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.)

Posted

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.

  • Upvote 1
Posted

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?

  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...