• 0
READTHESCROLL

Restart Messages/Server Lock not working

Question

As the title says. This is what I have in my config..

class RCON
    {
        /*
            Note that for this to work you need to have serverCommandPassowrd defined in config.cfg and BE enabled
        */

        // This needs to match config.cfg serverCommandPassword
        serverPassword = "XXXXX";

        // Autolocks server until its ready to accept players
        useAutoLock = 1;

        // Server will autoLock at that time before restart (minutes)
        restartAutoLock = 5;

        /*
            Number of hours and minutes of your restart period.

            Examples:

            {4, 0} = Every 4 hours
            {1, 30} = Every one and a half hour (who the hell would do this?)
        */
        restartTimer[] = {3, 58};

        /*
            Kicks players before restart to prevent gear loss.
            We strongely recommend to use this!

            0 = off
            1 = on
        */
        useAutoKick = 1;

        /*
            Number of minutes before the server kicks players that did
            not disconnect before the restart. Should at least be two
            minutes!
        */
        kickTime = 2;

        /*
            Self-explanatory

            0 = off
            1 = on
        */
        useRestartMessages = 1;

        /*
            Number of minutes before the restart to inform your players.

            Only use full minutes here. Value like 5.5 have not been tested.
        */
        restartWarningTime[] = {30, 20, 15, 10, 5, 4, 3, 2};
    };
};

Also getting this error in my RPT

12:00:51 Failed attempt to execute serverCommand '#lock' by server.

 

Share this post


Link to post
Share on other sites

10 answers to this question

  • 0
5 hours ago, GR8 said:

Is it your  serverCommandPassword  ? Double check

Just checked and serverCommandPassword is the same. 

Share this post


Link to post
Share on other sites
Advertisement
  • 0

Also noticed this error..

12:00:51 "ExileServer - ServerPassword MISMATCH!!! rcon features DISABLED!"

I have checked the passwords and they match though. Infistar works using the same passwords as well. Not sure what is going on here.

Share this post


Link to post
Share on other sites
  • 0

serverPassword and serverCommandPassword cannot be the same.  They have to be different in order for it to work.

Share this post


Link to post
Share on other sites
  • 0

Ok figured it out. Had a derp moment due to the font lol. Misread an "l" as a "1" in the password. Server was locked when I restarted so it looks like it's working. Appreciate the answers!

1 person likes this

Share this post


Link to post
Share on other sites
  • 0
3 hours ago, Darth_Rogue said:

serverPassword and serverCommandPassword cannot be the same.  They have to be different in order for it to work.

Not true though, I got same password in both, and it works just fine :)

Share this post


Link to post
Share on other sites
  • 0

is this script still up to date? I'm having problems getting it to work. I have no errors from it, it just doesn't appear to do anything, i.e. lock the server on restart.

Share this post


Link to post
Share on other sites
  • 0

RudeSeagul this post is from 2015. I will PM you to work you through your problem.

Share this post


Link to post
Share on other sites
  • 0

We got it sorted, added password to a seemingly blank beserver.cfg file, seems to work good now. Thanks.

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.