View Single Post
  #1  
Old 08-18-2010, 10:33 PM
amraist
Fire Beetle
 
Join Date: Aug 2005
Posts: 29
Default zone ruleset loading question

have a question regarding how the following block of code from zone.cpp is supposed to work. I'm trying to use a custom ruleset. According to the logs it initially loads the custom ruleset, but after the zone config, it loads the default config. I believe it is because of this block of code. My question is, am I missing something that I should be doing to use a custom ruleset or is this code not working as intended?

Code:
        //load the zone config file.
        if (!LoadZoneCFG(zone->GetShortName(), zone->GetInstanceVersion(), true)) // try loading the zone name...
                LoadZoneCFG(zone->GetFileName(), zone->GetInstanceVersion()); // if that fails, try the file name, then load defaults

        if(rules->GetActiveRulesetID() != default_ruleset)
        {
                string r_name = rules->GetRulesetName(&database, default_ruleset);
                if(r_name.size() > 0)
                {
                        rules->LoadRules(&database, r_name.c_str());
                }
        }
Reply With Quote