Weird, but funny admin/auth messages mod

Weird, but funny admin/auth messages mod

Postby ClassyRain » 12 Mar 2012, 02:30

I just thought it would be kinda funny if I added messages that came on auth/admin/setmaster:

src/game/auth.h
{l Code}: {l Select All Code}
    void setmaster(clientinfo *ci, bool val, int flags = 0, bool authed = false)
    {
        int privilege = ci->privilege;
        if(val)
        {
            if(ci->privilege >= flags) return;
            privilege = ci->privilege = flags;
            if(authed)
            {
                if(ci->privilege > PRIV_USER) {
                  srvoutf( -2, "%s has just entered the TWILIGHT ZONE!! MUAHAHAHA!!!  Please respect the rights of the commoners.", colorname(ci) ) ;
                  srvoutf(-2, "\fy%s authenticated as \fs\fc%s\fS and claimed \fs\fc%s\fS", colorname(ci), ci->authname, privname(privilege)); }
                else {
                  srvoutf( -2, "\frWhat's the point of having an auth key if you can't really do anything with it?\fS" );
                  srvoutf(-2, "\fy%s identified as \fs\fc%s\fS", colorname(ci), ci->authname); }
            }
            else {
              srvoutf( -2, "\fzry%s, with power comes responsibility.  Please don't abuse it.  Don't go against the majority.", colorname(ci) );
              srvoutf(-2, "\fy%s claimed \fs\fc%s\fS", colorname(ci), privname(privilege)); }
        }
        else
        {
            if(!ci->privilege) return;
            ci->privilege = PRIV_NONE;
            int others = 0;
            loopv(clients) if(clients[i]->privilege >= PRIV_MASTER || clients[i]->local) others++;
            if(!others) mastermode = MM_OPEN;
            srvoutf(-2, "\fy%s relinquished \fs\fc%s\fS", colorname(ci), privname(privilege));
        }
        masterupdate = true;
        if(paused)
        {
            int others = 0;
            loopv(clients) if(clients[i]->privilege >= (GAME(varslock) >= 2 ? PRIV_ADMIN : PRIV_MASTER) || clients[i]->local) others++;
            if(!others) setpause(false);
        }
    }


What it looks like: (An auth user was not available for the demonstration, sadly)
Image

I just thought it would be slightly amusing :)

EDIT: ph-[GPL] kindly joined me on my server today. here's a screenshot
Image
ClassyRain
 
Posts: 26
Joined: 31 Jan 2012, 01:21

Re: Weird, but funny admin/auth messages mod

Postby TheLastProject » 12 Mar 2012, 07:40

There's one issue with the message: the auth users won't be able to see it as it is displayed before they join, just like the "authenticated as" message. Besides that, I would prefer more... "professional" messages, though I am glad that most of your messages are about how auth users should not abuse their power.

I guess this basic idea could also be used to make it more clear for users that Auth User X is a global moderator, as "has authenticated as X and claimed master" is quite confusing for most users.

Good work ecube
Hats, Afros, wings and raptor feet. This game is showing progress indeed.
TheLastProject
 
Posts: 432
Joined: 06 Nov 2011, 17:04

Re: Weird, but funny admin/auth messages mod

Postby qreeves » 12 Mar 2012, 08:46

TheLastProject {l Wrote}:I guess this basic idea could also be used to make it more clear for users that Auth User X is a global moderator, as "has authenticated as X and claimed master" is quite confusing for most users.

This will be addressed in the next release.

I will say this now so there is no confusion: Please don't mess with the auth system at all; if I start allowing even small things like this now, people will start assuming it is okay to make more extreme modifications. Auth is one system I am extremely protective about, as it is our way of protecting the integrity of the game, and I am generally very liberal with modifications to other areas of the game. You don't need to be telling people how to act as a moderator because I have this talk with them when I issue them a key; they are well aware of their rights and responsibilities.
Quinton "quin" Reeves | Lead Developer, Red Eclipse | http://redeclipse.net/ | http://www.facebook.com/redeclipse.net
User avatar
qreeves
 
Posts: 1294
Joined: 17 Mar 2011, 03:46
Location: Queensland, Australia

Re: Weird, but funny admin/auth messages mod

Postby ClassyRain » 12 Mar 2012, 16:22

qreeves {l Wrote}:Please don't mess with the auth system at all;


Does that mean it is not okay do this with the authentication messages?

qreeves {l Wrote}:You don't need to be telling people how to act as a moderator because I have this talk with them when I issue them a key; they are well aware of their rights and responsibilities.

TheLastProject {l Wrote}:Besides that, I would prefer more... "professional" messages

I know, I only put it in for no reason but to make it a bit more lively. Maybe I should just put "Don't make him mad because he can ban you."
ClassyRain
 
Posts: 26
Joined: 31 Jan 2012, 01:21

Re: Weird, but funny admin/auth messages mod

Postby TheLastProject » 12 Mar 2012, 17:18

ClassyRain {l Wrote}:
qreeves {l Wrote}:Please don't mess with the auth system at all;

Does that mean it is not okay do this with the authentication messages?

Yes, that's what he meant.
Hats, Afros, wings and raptor feet. This game is showing progress indeed.
TheLastProject
 
Posts: 432
Joined: 06 Nov 2011, 17:04

Re: Weird, but funny admin/auth messages mod

Postby ClassyRain » 12 Mar 2012, 23:47

Okay. Is everything else tolerated? (Informative join msg, server messages, hi message)
ClassyRain
 
Posts: 26
Joined: 31 Jan 2012, 01:21

Re: Weird, but funny admin/auth messages mod

Postby qreeves » 13 Mar 2012, 03:45

ClassyRain {l Wrote}:Okay. Is everything else tolerated? (Informative join msg, server messages, hi message)

Assuming it is non-invasive and doesn't annoy the crap out of people, I'll probably allow it. If you're going to be listing modded servers on the master server then you will probably want to get me to review your changes before going live; I don't mind mods, but you need to understand that you're modifying our game and we have the right to ensure players aren't going to be confused or alarmed or harmed by your changes.
Quinton "quin" Reeves | Lead Developer, Red Eclipse | http://redeclipse.net/ | http://www.facebook.com/redeclipse.net
User avatar
qreeves
 
Posts: 1294
Joined: 17 Mar 2011, 03:46
Location: Queensland, Australia

Re: Weird, but funny admin/auth messages mod

Postby Fallen » 13 Mar 2012, 09:32

In my opinion there should be filter in cłient enabling and disabling showing modded servers in server browser.
Btw. Option to auto-download mods will be great, but I know that's can take too many time...
Sentenced to the Eternal Damnation...

BloodFrontier...

+++ Sorry for my English +++
User avatar
Fallen
 
Posts: 85
Joined: 26 Feb 2012, 20:45
Location: Poland

Re: Weird, but funny admin/auth messages mod

Postby ClassyRain » 14 Mar 2012, 00:21

Fallen {l Wrote}:In my opinion there should be filter in cłient enabling and disabling showing modded servers in server browser.
Btw. Option to auto-download mods will be great, but I know that's can take too many time...

This isn't a mod that you 'download'; it happens on the server.

qreeves {l Wrote}:
ClassyRain {l Wrote}:Okay. Is everything else tolerated? (Informative join msg, server messages, hi message)

Assuming it is non-invasive and doesn't annoy the crap out of people, I'll probably allow it. If you're going to be listing modded servers on the master server then you will probably want to get me to review your changes before going live; I don't mind mods, but you need to understand that you're modifying our game and we have the right to ensure players aren't going to be confused or alarmed or harmed by your changes.

Thanks, I'll make sure that doesn't happen (I probably don't need to as I am too unskilled to do much more than print server messages).
ClassyRain
 
Posts: 26
Joined: 31 Jan 2012, 01:21

Re: Weird, but funny admin/auth messages mod

Postby qreeves » 14 Mar 2012, 04:02

No problem :)
Quinton "quin" Reeves | Lead Developer, Red Eclipse | http://redeclipse.net/ | http://www.facebook.com/redeclipse.net
User avatar
qreeves
 
Posts: 1294
Joined: 17 Mar 2011, 03:46
Location: Queensland, Australia

Who is online

Users browsing this forum: No registered users and 1 guest