Theeper
09-25-2007, 08:13 AM
Since the #rules load command seems broken (haven't tried JA's fix yet), it's not clear to me how the default ruleset is stored.
I know that in the rule_sets table there is one entry and it's value is 'default'. When I tried to switch rulesets by adding in a "my_rules" row and corresponding rules in the rule_values table, I got odd results, so I changed the 'default' ruleset ID to 1, which matches my custom ruleset_id and left only one row in the rule_sets table. I am sure this isn't how it's supposed to be done, but I cannot find in the code where the default is set queried for.
Is there supposed to be a row matching each 'ruleset_value' set in the rule_sets table and the server picks the one called 'default' when booting, or is there only supposed to be one row in the rule_sets table and you change the ruleset_id to match the set you want to define as 'default' ?
Either way, I modified the rules.html script in the worldui to allow me to tweak and define rule sets, but this last issue is confusing me. Once I figure it out, I will post the script in case anyone is interested.
I know that in the rule_sets table there is one entry and it's value is 'default'. When I tried to switch rulesets by adding in a "my_rules" row and corresponding rules in the rule_values table, I got odd results, so I changed the 'default' ruleset ID to 1, which matches my custom ruleset_id and left only one row in the rule_sets table. I am sure this isn't how it's supposed to be done, but I cannot find in the code where the default is set queried for.
Is there supposed to be a row matching each 'ruleset_value' set in the rule_sets table and the server picks the one called 'default' when booting, or is there only supposed to be one row in the rule_sets table and you change the ruleset_id to match the set you want to define as 'default' ?
Either way, I modified the rules.html script in the worldui to allow me to tweak and define rule sets, but this last issue is confusing me. Once I figure it out, I will post the script in case anyone is interested.