[22:02] I have one question tonight, too. [22:02] ok [22:03] you said you had a standardized plugin-cfg reader? [22:03] yes [22:03] is anything happening there? [22:03] it's a class your plugin can use [22:03] it makes reading a config file for a plugin 'easier' [22:04] sample plugin has the hooks built in [22:04] all you have to do is use the class [22:04] in cvs? [22:04] you can just steal the code right out of the serverControl plugin [22:04] ok [22:04] yes in CVS [22:04] something like [22:04] conf = PluginConfig("somefile") [22:05] great [22:05] then you bug conf for key/value pairs [22:05] #include "plugin_utils.h" [22:05] PluginConfig config = PluginConfig(cmdLine); [22:06] banReloadMessage = config.item(section, "BanReloadMessage"); [22:06] if (banReloadMessage == "") [22:06] bz_debugMessagef(1, "ServerControl - No BanReloadMessage notification"); [22:06] else [22:06] bz_debugMessagef(1, "ServerControl - BanReloadMessage: %s", banReloadMessage [22:06] parse the file, then get the value for a section,key [22:06] [section] [22:06] key = value [22:06] it strips whitespace around keys and values [22:07] but they are case sensitive currently [22:07] I'm pasting what you said to theme97 [22:08] it's straight out of the serverControl.cpp plugin in CVS [22:08] he, unfortunately is fond of single syllable responses [22:08] ok I can do that [22:09] oooohhhh. [22:09] [22:05] sweeeeeeet. [22:09] ~/bzflag/plugins/serverControl/serverControl.cpp ;) [22:09] [22:08] awesome! [22:09] we're gonna do a weather plugin [22:10] you can put all plugin configs in a single file if you want to [22:10] or you can have one config per plugin (however you like to set it up) [22:10] the plugin commandline option (for serverControl) is the name of the configuration file [22:15] Does l4m3r know about this? [22:15] database backups are currently around 25MB [22:15] probably not unless he reads the CVS commit mailing list [22:15] I'm gonna mention it to him [22:16] it's a tool you can use it if you want to [22:17] he's trying to do a mini-cron [22:19] logDetail is going to use this PluginConfig class too so what it logs is configurable [22:20] Is going to? isnt that a finished plugin? or only you have it? [22:20] it's in CVS - there's lots of new things on my list to add to it [22:20] like client connection string logging [22:21] map name