Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 09-25-2007, 08:13 AM
Theeper
Discordant
 
Join Date: May 2004
Posts: 290
Default Rules question

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.
Reply With Quote
  #2  
Old 09-25-2007, 10:48 AM
Lalolyen
Banned
 
Join Date: Aug 2007
Location: Sneeking up behind a admin IRL
Posts: 169
Default

Default will be automatically used until specified otherwise..

*if you wan to use a diffrent ruleset until its fixed, create a new set (set 1) and name it Default2. When you want to use that set rename Default (set 0) to DefaultBK, and rename Default2 to Default. After the server restart it will start using the new ruleset.
Reply With Quote
  #3  
Old 09-25-2007, 01:49 PM
Theeper
Discordant
 
Join Date: May 2004
Posts: 290
Default

Yep, that's what I did basically.

Do you have any idea how it will function when it's working properly ?

It seems like there needs to be another field or table to specify the currently selected ruleset.
Reply With Quote
  #4  
Old 09-25-2007, 07:18 PM
Lalolyen
Banned
 
Join Date: Aug 2007
Location: Sneeking up behind a admin IRL
Posts: 169
Default

Just guessing from the #help command it will be something like #rulesadd varname value or something... then #rules 2 to set the 2nd rule set as active.
Reply With Quote
  #5  
Old 09-26-2007, 02:35 AM
Theeper
Discordant
 
Join Date: May 2004
Posts: 290
Default

I understand how the commands work, or should work. I just don't think the DB is complete in this respect. There has to be a method to store the currently selected ruleset. Otherwise, you will have to manually set the rules each time the server starts unless you use the default set.
Reply With Quote
  #6  
Old 09-26-2007, 10:41 AM
Lalolyen
Banned
 
Join Date: Aug 2007
Location: Sneeking up behind a admin IRL
Posts: 169
Default

Quote:
Originally Posted by Theeper View Post
I understand how the commands work, or should work. I just don't think the DB is complete in this respect. There has to be a method to store the currently selected ruleset. Otherwise, you will have to manually set the rules each time the server starts unless you use the default set.
Most likely the default rule set will be saved in the variables/config table.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 04:13 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3