EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::General Support (https://www.eqemulator.org/forums/forumdisplay.php?f=598)
-   -   #rules help (https://www.eqemulator.org/forums/showthread.php?t=21207)

swish 08-04-2006 08:46 PM

#rules help
 
Hey guys,

I was wondering, how can I set the max levels through #rules ?
Tried everything heh.

Couldnt get the level higher when compiled features.h too heh.

Thanks alot,
Swish.

soulshot 08-05-2006 05:03 AM

#rules setdb Character:MaxLevel 75

mattmeck 08-05-2006 05:50 AM

you already posted this question in another thread asking this question.

Stop making multiple thread for the same thing or you will loose posting privelages.

swish 08-05-2006 08:20 AM

Oh no..
 
Matt, I didnt post it anywhere =\ I swear heh, thats the only one. You need to check better heh.
Sorry in anyway =P

I found out the solution though. Need to change ruletypes.h for those who doesnt know or either what Soulshot said =P

Thanks guys,
Swish.

mattmeck 08-05-2006 08:42 AM

http://www.eqemulator.net/forums/showthread.php?t=21203

and i quote.

Quote:

Originally Posted by bongol
Same heh =P

I'd really wanna know how.

Thanks,
Swish.


Zengez 08-13-2006 01:04 PM

Quote:

Originally Posted by soulshot
#rules setdb Character:MaxLevel 75


Ok, I did this in my emu and it worked great, procceeded to lvl past 65 into 68 or 69.... then i zoned, killed something and my xp went to full, so out of curiosity i retyped the command, killed something else and i delvled to partially through lvl 66... this happens every time i zone, i have to retype the command in order to keep the progression going or else i get de-lvled for some reason... anyone know how to set this more permenantly or why it might be doing this?

thanks.

fireclav 08-13-2006 02:45 PM

y not set it then re compile?

jeffpuff 08-20-2006 04:19 AM

Same issue
 
I have had the same issue with dropping back to 66 after killing a mob at 67 with a full xp bar. In the database it does show the Character:MaxLevel 70, so it looks like it is set right, anyone get this working yet or is there another variable I should be looking at?

Craleu 08-26-2006 09:41 AM

Quote:

Originally Posted by mattmeck


*hug* Matt

Aramid 08-26-2006 09:57 AM

I changed it in common/ruletypes.h and re-compiled it. This way there is no doubt.

jeffpuff 08-28-2006 02:08 PM

compiling
 
I am willing to learn how to compile this myself if it is the only way. I have never done this before, a simple google search pulled up this site http://www.bloodshed.net/devcpp.html

Can someone tell me if this is a good place to start or suggest a better place to begin, thanks!

Jeff

fathernitwit 08-30-2006 03:29 PM

btw... recompiling to change this is completely against the point of the rules system...

a setdb + a reboot should take care of it.

John Adams 09-04-2006 06:29 AM

Strange, this does not work for me.
Code:

#rules setdb Character:MaxLevel 75
I get a "Failed to modify rule" result. I have only the default ruleset, with no rule values. Is this trying to modify something that should already exist? I'm going to look into this further myself, but wanted to mention it in case others have questions and are scared of the Wiki bat. ;)

John Adams 10-02-2006 01:02 PM

Love bumping old threads. :)

Anyway, I discovered (by accident) a few things about this Rules system, since it is documented nowhere (hoping that insights someone to prove me wrong heh!)... As of my install of 070-854, I can now run the exact command quoted above, and it does not error. It does error if my CASE is off (Maxlevel vs MaxLevel).

I also found the #rules list command, which shows some categories (Character, Guild, Skills, GM). Once I saw a categories, I started listing them out.

#rules list Character - fails to list rules
#rules list Guild - shows the "Guild:MaxMembers"
#rules list Skills - echos "Skills:MaxTrainTraidskills" as a possible setting
#rules list GM - shows "GM:MinStatusToZoneAnywhere"

Trying "#rules setdb Guild:MaxMembers 12" worked. Saved the setting to the database anyway. This is important for me, since I want to limit the size if my guilds.

I have searched wholly through the source code for either MaxLevel or MaxMembers, and cannot find a thing that would show me all the possible "rules settings" we can use. I must be missing something. How can the server know what to do with a Rule if there is nothing to tell it what to do should it encounter it?

Can anyone please give me some clue as to where to look for rules values so we can start using the rules system?

TIA,
John

fathernitwit 10-02-2006 02:18 PM

that post looks like a beautiful start to a wiki page :wink:

The list of rules can be found in common/ruletypes.h

The code accesses rules by using RuleI, RuleR, and RuleB calls (see rulesys.h for the greuling details)

John Adams 10-03-2006 01:43 AM

Quote:

Originally Posted by fathernitwit
that post looks like a beautiful start to a wiki page :wink:

~grin~ I'll see if I can start my first official WIKI page then. :)

Meanwhile, I did search rulesys.h for any text related to any of the given commands, and honestly, I am stumped. For example, I cannot find "Character" or "MaxLevel" (case sensitive or otherwise) anywhere in the entire project (I mean, Maxlevel shows up from old code commented out, but I cannot see where we select * from rule_value and set the specific Character max level value to MaxLevel, etc).

I think I know what I am looking for, but things may be cleverly disguised as arrays or something, which may be why I am not finding 1:1 text matches. Which of course is what I seek, since I am a simple man.

Thanks for the response. Anything more I might sponge off you?
J

fathernitwit 10-03-2006 01:46 AM

re-read my post... if you cant find it, your looking at the wrong source. MaxLevel appears at least 4 times in the code.

John Adams 10-03-2006 02:31 AM

Oh...
My...
GOD!!!

Ok, there it is, staring me straight in the face when I use NOTEPAD to view the source files. I was using the Search Entire Solution in VS2005 Ent... it did >not< find anything in ruletypes.h (by that, I mean searching did not show any matches in this file, but I did find matches in other cpp files).

I must have something set up wrong in VS2005 then, that does not actually search everything when I ask it to. Sorry for sounding foolish. I will use other search methods before accusing you of encrypting your variables just to fool us. :) :) :)

Thanks FNW.
J

John Adams 10-06-2006 02:23 PM

Wiki done - it's my first time, be gentle.

Please check, add/correct anything you desire.

http://www.eqemulator.net/wiki/wikka...ka=ServerRules

wraithlord98 12-14-2007 10:55 AM

I'm currently at work (so can't tear apart the DBase) - but is the above info still valid? Is it something already included with the most recent binary releases (1070)?

wraithlord98 12-14-2007 11:03 AM

Sorry for the back to back posts.. foot in mouth and chew (should have thought before I posted).. but what I meant to ask is - is the above info still valid (using PEQ's cvs dumps)?


All times are GMT -4. The time now is 12:21 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.