Updating / Replacing Privilege System

Discussions on various DOL development features

Moderator: Support Team

Re: Updating / Replacing Privilege System

Postby Ephemeral » Fri Dec 21, 2012 12:00 am

Hell if I know but I prefer to implement it myself in the privilege manager.
"The swarm is always smarter, faster and more adept than any actor which seeks to thwart it."
C++, Java, C#, VB.NET, ASM.
Current Project:
Engine Developer for The Red Solstice
User avatar
Ephemeral
DOL Freak
 
Posts: 554
Joined: Wed Mar 30, 2011 12:23 am

Re: Updating / Replacing Privilege System

Postby Dinberg » Fri Dec 21, 2012 9:41 pm

but I prefer to implement it myself in the privilege manager.
reinventing the wheel :P

Also, I believe its a bad programming principle in general :D
The Marvelous Contraption begins to stir...
User avatar
Dinberg
Inactive Staff Member
 
Posts: 4695
Joined: Sat Mar 10, 2007 9:47 am
Yahoo Messenger: dinberg_darktouch
Location: Jordheim

Re: Updating / Replacing Privilege System

Postby Ephemeral » Fri Dec 21, 2012 11:02 pm

Eh I just find it easier to tie into the system the way I designed it. :P
"The swarm is always smarter, faster and more adept than any actor which seeks to thwart it."
C++, Java, C#, VB.NET, ASM.
Current Project:
Engine Developer for The Red Solstice
User avatar
Ephemeral
DOL Freak
 
Posts: 554
Joined: Wed Mar 30, 2011 12:23 am

Re: Updating / Replacing Privilege System

Postby Ephemeral » Mon Dec 24, 2012 10:49 am

Added first draft that actually works, not perfect (For example.. there's no protection against someone doing something foolish like making a group inheritance loop, will work on that next), Opinions are welcomed.. And desired

http://dolserver.svn.sourceforge.net/vi ... ision=3163


Put another update in to protect against stack overflows now.
"The swarm is always smarter, faster and more adept than any actor which seeks to thwart it."
C++, Java, C#, VB.NET, ASM.
Current Project:
Engine Developer for The Red Solstice
User avatar
Ephemeral
DOL Freak
 
Posts: 554
Joined: Wed Mar 30, 2011 12:23 am

Re: Updating / Replacing Privilege System

Postby Graveen » Tue Dec 25, 2012 8:37 pm

Seems nice - 'll throw an eye !
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: Updating / Replacing Privilege System

Postby Ephemeral » Tue Dec 25, 2012 10:30 pm

Just pushed another large change, namely on fixing a few things I overlooked, partially integrating it to /plvl and fixing something dinberg told me :P

Edit: Finished enabling /plvl to be able to do simple work on the new system (Plvl 1-3 (technically you could do groups by ID's here as well but eh) but as far as I know that isn't something that should be needed.

Edit2: Pushed working /priv command to it svn, right now the command only accepts compact syntax (Lazy man's syntax!)

Compact Syntax is as Follows.

To add something to a player
/privilege +/<TYPE>/<VALUE> <OPTIONAL TARGET>

To remove something from a player
/privilege -/<TYPE>/<VALUE> <OPTIONAL TARGET>

To add something to an account
/privilege +a/<TYPE>/<VALUE> <OPTIONAL TARGET>

To remove something from an account
/privilege -a/<TYPE>/<VALUE> <OPTIONAL TARGET>

Where <TYPE> is
For Commands c, cmd
For Groups g, grp
For Privileges p, priv

Where VALUE is dependent upon the TYPE.

Optional target == ! for your current player's target, so you don't always have to type the name, but obviously you do need to tell the command that you mean to use your current target. :)
"The swarm is always smarter, faster and more adept than any actor which seeks to thwart it."
C++, Java, C#, VB.NET, ASM.
Current Project:
Engine Developer for The Red Solstice
User avatar
Ephemeral
DOL Freak
 
Posts: 554
Joined: Wed Mar 30, 2011 12:23 am


Return to “%s” DOL Development Discussion

Who is online

Users browsing this forum: No registered users and 1 guest