Jump to content
Blood wolf

Stuck on Setting up server please wait

Recommended Posts

Hi i am making a arma 3 takistan server I have moved over the map objects from Altis life 4.4r3 and placed them onto the takistan map the server and database was working fine when it was running on altis map however now i have ported it over to takistan map when joining the server Players are getting stuck on Waiting for server to be ready. However if the player is to press escape and then respawn the spawn menu loads.

I am using:

Altis life 4.4r3

extDB2

Life server that come in the zip for altis life 4.4r3

 

ExtDB2 Log:

https://pastebin.com/tcq7xPNL

Server RPT:

https://pastebin.com/tB2cxQ50

ExtDB2 Config :

https://pastebin.com/GtVNNYG2

life_server.pbo

CRPtaki.takistan.pbo

Share this post


Link to post
Share on other sites

The following errors are what is causing this to happen

Quote

case 7: {
 
};
};
 
if (life_HC_isActive) then {
_packet remoteE>
 2:54:21   Error position: <life_HC_isActive) then {
_packet remoteE>
 2:54:21   Error Undefined variable in expression: life_hc_isactive
 2:54:21 File core\session\fn_updatePartial.sqf [SOCK_fnc_updatePartial], line 114
 2:54:21 Error in expression <ife_atmbank];
};
 
case 7: {
 
};
};
 
if (life_HC_isActive) then {
_packet remoteE>
 2:54:21   Error position: <life_HC_isActive) then {
_packet remoteE>
 2:54:21   Error Undefined variable in expression: life_hc_isactive
 2:54:21 File core\session\fn_updatePartial.sqf [SOCK_fnc_updatePartial], line 114
 2:54:21 Error in expression <ife_atmbank];
};
 
case 7: {
 
};
};
 
if (life_HC_isActive) then {
_packet remoteE>
 2:54:21   Error position: <life_HC_isActive) then {
_packet remoteE>
 2:54:21   Error Undefined variable in expression: life_hc_isactive
 2:54:21 File core\session\fn_updatePartial.sqf [SOCK_fnc_updatePartial], line 114

 
 
Quote

 

 2:54:13 Error in expression <rver_isReady","_extDB_notLoaded"];
 
if (life_HC_isActive) then {
_server_isReady>
 2:54:13   Error position: <life_HC_isActive) then {
_server_isReady>

 2:54:13   Error Undefined variable in expression: life_hc_isactive

 


These errors shouldn't cause this issue but they will cause others.

 
Quote

 

 2:56:46 Error in expression <.6' image='icons\ico_money.paa'/> $%2",[life_atmbank] call life_fnc_numberText,[>
 2:56:46   Error position: <life_atmbank] call life_fnc_numberText,[>
 2:56:46   Error Undefined variable in expression: life_atmbank
 2:56:46 File core\shops\fn_atmMenu.sqf [life_fnc_atmMenu], line 78
 2:57:09 Error in expression <.6' image='icons\ico_money.paa'/> $%2",[life_atmbank] call life_fnc_numberText,[>
 2:57:09   Error position: <life_atmbank] call life_fnc_numberText,[>
 2:57:09   Error Undefined variable in expression: life_atmbank

 2:57:09 File core\shops\fn_atmMenu.sqf [life_fnc_atmMenu], line 78

 

 

Share this post


Link to post
Share on other sites

For the topmost errors, I would look into your core init.sqf (root > core), as well as your life_server's, init.sqf.

Edited by Fawks
Rephraseing

Share this post


Link to post
Share on other sites

Removed the lines of code about the headless clitent however still stuck on that screen do you think it is worth just moving from 4.4 to 5.0 also if i done this would i have to move all items again or just the files

Share this post


Link to post
Share on other sites

It is always recommended to use the most up-to-date version. You didn't need to remove those lines, that was my mistake, I should've clarified; Those errors are caused when the HC variables are not being defined. I don't have much experience with those errors however when they have happened it has been because something was missing in @life_server.
The HC variables are defined in the @life_server's init.sqf (around lines 37 - 47) after which initHC.sqf is called. At the end of the init.sqf the missionfiles's init.sqf is called (the HC variables are not mentioned in it). While these are running (I think) the core init.sqf starts the HC is mentioned in lines 12 - 18 and 154 - 158.

@life_server's init.sqf (lines 37 - 47)

Quote

 

/*
    Prepare the headless client.
*/
life_HC_isActive = false;
publicVariable "life_HC_isActive";
HC_Life = false;
publicVariable "HC_Life";

if (EXTDB_SETTING(getNumber,"HeadlessSupport") isEqualTo 1) then {
    [] execVM "\life_server\initHC.sqf";
};

 


initHC.sqf

Quote

 

HC_UID = nil;

// JIP integration of an hc
"life_HC_isActive" addPublicVariableEventHandler {
    if (_this select 1) then {
        HC_UID = getPlayerUID hc_1;
        HC_Life = owner hc_1;
        publicVariable "HC_Life";
        HC_Life publicVariableClient "serv_sv_use";
        cleanupFSM setFSMVariable ["stopfsm",true];
        terminate cleanup;
        terminate aiSpawn;
        [true] call TON_fnc_transferOwnership;
        HC_Life publicVariableClient "animals";
        diag_log "Headless client is connected and ready to work!";
    };
};

HC_DC = ["HC_Disconnected","onPlayerDisconnected",
    {
        if (!isNil "HC_UID" && {_uid == HC_UID}) then {
            life_HC_isActive = false;
            publicVariable "life_HC_isActive";
            HC_Life = false;
            publicVariable "HC_Life";
            cleanup = [] spawn TON_fnc_cleanup;
            cleanupFSM = [] execFSM "\life_server\FSM\cleanup.fsm";
            [false] call TON_fnc_transferOwnership;
            aiSpawn = ["hunting_zone",30] spawn TON_fnc_huntingZone;
            diag_log "Headless client disconnected! Broadcasted the vars!";
            diag_log "Ready for receiving queries on the server machine.";
        };
    }
] call BIS_fnc_addStackedEventHandler;

 


core init.sqf lines 12 - 18 and 154 - 158:

Quote

//12 - 18
if (life_HC_isActive) then {
    _server_isReady = life_HC_server_isReady;
    _extDB_notLoaded = life_HC_server_extDB_notLoaded;
} else {
    _server_isReady = life_server_isReady;
    _extDB_notLoaded = life_server_extDB_notLoaded;
};
//154 - 158
if (life_HC_isActive) then {
    [getPlayerUID player,player getVariable["realname",name player]] remoteExec ["HC_fnc_wantedProfUpdate",HC_Life];
} else {
    [getPlayerUID player,player getVariable["realname",name player]] remoteExec ["life_fnc_wantedProfUpdate",RSERV];
};


Here is the problem if "life_HC_isActive" does not get defined and broadcasted in the @life_server's init.sqf  all the other init's will throw the "variable not defined" error. The only reason (that I know of) "life_HC_isActive" would not get defined is if the @life_server's init.sqf does not run. The reasons it wouldn't run are:
R1: @life_server is not .pbo-ed.
R2: @life_server.pbo is not in @life_server/addons.
R3: @life_server/addons/@life_server.pbo is missing
R4: A combination of the above reasons.

I would check and make sure that: Your @life_server.pbo is inside your @life_server/addons and if your @life_server.pbo is in fact .pbo-ed.

Here is the link to the GitHub if you wish to update to 5.0

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...