Laus

useAutoLock

7 posts in this topic

Sup guys, 

i using this parameter in config.cpp:

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

but my server never unlock... wtf?

If I remove the function,
players enter before the ready server and lose your gear... =(

how to solve this situation?

TY

Share this post


Link to post
Share on other sites
Advertisement

I use these, however they fail quite often, that's why I'm running BEC together with it, to execute the #lock and #unlock commands as fail safe, if the in-line functions failed to do so. 

Share this post


Link to post
Share on other sites

I use these, however they fail quite often, that's why I'm running BEC together with it, to execute the #lock and #unlock commands as fail safe, if the in-line functions failed to do so. 

I'm doing the same... #lock #unlock

I think my problem is really that my server is not "starting" (waiting for server to load)

I believe also that my problem now is with the database.
I need to delete all of it in the update (wipe)?

I have not deleted the table "account" in order to let my players with cash =/

 

Share this post


Link to post
Share on other sites

Friends, my problem was with the database.
I applied a wipe and not uploaded the new sql,

no database... server remained locked.

and so was locked = |

Sorry for the clueless post.  

Share this post


Link to post
Share on other sites

@Laus @SilentSean

SOLUTION

Firstly a very special thanks goes out to @Seth^^ for creating this auto restart script

WHAT REALLY HAPPENS:
Exile does not restart your server. It simple preps the server to be restarted. The reason your server stays locked
is because the server never actually shuts down, it simple locks and makes sure nobody can join.

Here is a easy fix to solve this problem without the use of third party tools ;)

DOWNLOAD MOD HERE

1. Copy the "restart" folder to your "Exile.Altis.pbo" in the "mpmissions" folder
2. Copy the code from "config.cpp" file and replace it in your server's "config.cpp" accordingly (Replace the new code in your original server file)
3. Repack your "Exile.Altis.pbo"
4. Edit the "Exile Auto Start.bat" file to suit your needs and make sure you have the correct server paths adn launch commands


HOW IT WORKS:
When Exile does a game restart the script looks for the "SERVER READY FOR RESTART!!" command and kills the instance.
The "Exile Auto Start.bat" launch file monitors the instance and restarts the server for you.

PROFIT

 

 

 

 

1 person likes this

Share this post


Link to post
Share on other sites

If you are experiencing faulty restart messages do the following:

Replace "if !(ExileSessions isEqualTo []) then" in "ExileServer_system_rcon_thread_check.sqf" file you created

With "if (count ExileSessionIDs > 0) then"

if !(_restartMessages isEqualTo []) then
	{
		{
			_time = _x;
			if (_timeTilRestart < _time) then
			{
				if !(ExileSessions isEqualTo []) then
				{

PROFIT !

:monkey:

 

Edited by S.

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.