Author Topic: "Person has become Super Admin (Auto)" does not show up  (Read 638 times)

I have had this problem for a long while, but whenever one of my admins/SAs or even when I join, we don't get the message after "Person has become Admin/Super Admin (Auto)". Also, in the console, if an admin/SA joins, it still says "+-No auto admin". And the weirdest thing is, they still get admin/SA in the player list (F2) and they get all the admin/SA access too...

Any suggestions?

I have had this problem for a long while, but whenever one of my admins/SAs or even when I join, we don't get the message after "Person has become Admin/Super Admin (Auto)". Also, in the console, if an admin/SA joins, it still says "+-No auto admin". And the weirdest thing is, they still get admin/SA in the player list (F2) and they get all the admin/SA access too...

Any suggestions?
It may be a mod you are using doing it. I have that problem too. Idk

You've got a crap-on that doesn't properly parent the admin check function. Do this:

1) Start your server
2) Type trace(1); in your console
3) Have an admin join
4) Alt-F4
5) Attach the console.log to a post

You've got a crap-on that doesn't properly parent the admin check function. Do this:

1) Start your server
2) Type trace(1); in your console
3) Have an admin join
4) Alt-F4
5) Attach the console.log to a post
Maybe the original RTB?
Also, I host a dedicated server on Blocknet

Blocknet must have some sort of an online console, right? In this case, do the following:

1) In your server console, type trace(1);
2) Have an admin join
3) Shut down the dedicated server
4) Post the console.log from the server

Here is around the problem trying to be solved:
Code: [Select]
       +- bl_id = 44256
      Entering [HatMod_Package]GameConnection::autoAdminCheck(771564)
         Entering [PlayerEVAL]GameConnection::autoAdminCheck(771564)
            Entering [CustomSuffix]GameConnection::autoAdminCheck(771564)
               Entering [XLLevels]GameConnection::autoAdminCheck(771564)
                  Entering [XLLevels]XL_loadLevels(771564)
                     Executing config/server/Levels/44256.cs.
                     Entering findClientByBL_ID(44256)
                     Leaving findClientByBL_ID() - return 771564
                     Entering findClientByBL_ID(44256)
                     Leaving findClientByBL_ID() - return 771564
                  Leaving [XLLevels]XL_loadLevels() - return 1
                  Entering [mute]GameConnection::autoAdminCheck(771564)
                     Entering [PlayerModerator]GameConnection::autoAdminCheck(771564)
                        Entering [RTB_Modules_Server_ServerControl]GameConnection::autoAdminCheck(771564)
                           Entering GameConnection::autoAdminCheck(771564)
                           Leaving GameConnection::autoAdminCheck() - return 3
                           Entering RTBSC_SendPrefList(771564)
                              Entering RTBSC_sendPrefValues(771564)
                              Leaving RTBSC_sendPrefValues() - return
                           Leaving RTBSC_SendPrefList() - return
                        Leaving [RTB_Modules_Server_ServerControl]GameConnection::autoAdminCheck() - return 3
                     Leaving [PlayerModerator]GameConnection::autoAdminCheck() - return 3
                  Leaving [mute]GameConnection::autoAdminCheck() - return 3
               Leaving [XLLevels]GameConnection::autoAdminCheck() - return 3
            Leaving [CustomSuffix]GameConnection::autoAdminCheck() - return <color:ffffff>[<color:ff0000>Owner<color:ffffff>]<color:ff0000>
         Leaving [PlayerEVAL]GameConnection::autoAdminCheck() - return <color:ffffff>[<color:ff0000>Owner<color:ffffff>]<color:ff0000>
      Leaving [HatMod_Package]GameConnection::autoAdminCheck() - return <color:ffffff>[<color:ff0000>Owner<color:ffffff>]<color:ff0000>
      Entering serverCmdRequestMiniGameList(771564)
         Entering MiniGameSO::getLine(8335)
         Leaving MiniGameSO::getLine() - return  ^-1^Default Minigame^0
      Leaving serverCmdRequestMiniGameList() - return
      Entering messageClient(771564, 53, 61, Meta_KnightX)
      Leaving messageClient() - return
      Entering messageAllExcept(771564, -1, 62, 63, Meta_KnightX)
         Entering messageClient(750615, 62, 63, Meta_KnightX, , , , , , , , , , , , )
         Leaving messageClient() - return
         Entering messageClient(686409, 62, 63, Meta_KnightX, , , , , , , , , , , , )
         Leaving messageClient() - return
         Entering messageClient(724866, 62, 63, Meta_KnightX, , , , , , , , , , , , )
         Leaving messageClient() - return
         Entering messageClient(771214, 62, 63, Meta_KnightX, , , , , , , , , , , , )
         Leaving messageClient() - return
         Entering messageClient(724427, 62, 63, Meta_KnightX, , , , , , , , , , , , )
         Leaving messageClient() - return
         Entering messageClient(752741, 62, 63, Meta_KnightX, , , , , , , , , , , , )
         Leaving messageClient() - return
         Entering messageClient(736027, 62, 63, Meta_KnightX, , , , , , , , , , , , )
         Leaving messageClient() - return
         Entering messageClient(755230, 62, 63, Meta_KnightX, , , , , , , , , , , , )
         Leaving messageClient() - return
         Entering messageClient(771256, 62, 63, Meta_KnightX, , , , , , , , , , , , )
         Leaving messageClient() - return
         Entering messageClient(770592, 62, 63, Meta_KnightX, , , , , , , , , , , , )
         Leaving messageClient() - return
      Leaving messageAllExcept() - return 771564
       +- no auto admin

Get rid of whatever activated the package CustomSuffix.

Get rid of whatever activated the package CustomSuffix.
But I love that add-on, can't I just do something in server.cs to fix it through there?
(server.cs):
Code: [Select]
package CustomSuffix
{
    function GameConnection::AutoAdminCheck(%client)
    {
        parent::AutoAdminCheck(%client);
        if($TaggedPlayer[%client.BL_ID] !$= "")
            %client.clanSuffix = "\c6\c4" @ $TaggedPlayer[%client.BL_ID] @ "\c6"; // Change the \C#Numberhere to whatever between 1 and 8 with 1 and 8 being included.
    }
};
activatePackage(CustomSuffix);

function serverCmdSetSuffix(%client, %target, %tag)
{
    if(%client.isAdmin)
    {
        %target = findclientbyname(%target);
        if(%target !$= "")
        {
            if(%tag !$= "")
            {
                messageClient(%target,'',"\c6You have been given a Suffix from \c4" @ %client.name @ "\c6.");
                messageClient(%client,'',"\c6You have successfully set \c4" @ %target.name @"\c4's\c6 Suffix.");
                $TaggedPlayer[%target.BL_ID] = %tag;
                %target.clanSuffix = "\c6\c4" @ $TaggedPlayer[%target.BL_ID] @ "\c6";
                saveSuffix(%target, %tag);
            }
        }
    }
    else
        messageClient(%client,'',"\c6You are not an Administrator.");
}

$TagLog = "config/server/CustomSuffx/list.cs";

if(isFile($TagLog))
{
    exec($TagLog);
}

function saveSuffix(%client, %tag)
{
    $TaggedPlayer[%client.BL_ID] = %tag;
    export("$TaggedPlayer*", $TagLog, false);
}

Change the first few lines to
package CustomSuffix
{
    function GameConnection::AutoAdminCheck(%client)
    {
        %r = parent::AutoAdminCheck(%client);

        if($TaggedPlayer[%client.BL_ID] !$= "")
            %client.clanSuffix = "\c6\c4" @ $TaggedPlayer[%client.BL_ID] @ "\c6";

        return %r;
    }
};


I didn't check whether the rest of the code makes sense, it probably does as you said it works otherwise

Change the first few lines to
package CustomSuffix
{
    function GameConnection::AutoAdminCheck(%client)
    {
        %r = parent::AutoAdminCheck(%client);

        if($TaggedPlayer[%client.BL_ID] !$= "")
            %client.clanSuffix = "\c6\c4" @ $TaggedPlayer[%client.BL_ID] @ "\c6";

        return %r;
    }
};


I didn't check whether the rest of the code makes sense, it probably does as you said it works otherwise
Thank you so much!! It is working all over again! I always love the help section! Locking now!