Auto Pause ALiVE Modules with Headlessclient

  1. 4 days ago
    Edited 2 days ago by RagcBaker

    Hy ALiVE Team.

    I have some questions about Pause Module with Headless Client Configuration
    I do the thing in the following post. But it seems not working.


    ["someId", "onPlayerConnected", {
    	if (({isPlayer _x} count playableUnits) > 0 || OPCOM_TOGGLE) then { ["ALIVE_SYS_PROFILE","ALIVE_MIL_OPCOM","ALIVE_AMB_CIV_POPULATION"] call ALiVE_fnc_unPauseModule; OPCOM_TOGGLE = false; };
    }] call BIS_fnc_addStackedEventHandler;
    ["someId", "onPlayerDisconnected", {
    	if ( ({isPlayer _x} count playableUnits) == 0 ) then { ["ALIVE_SYS_PROFILE","ALIVE_MIL_OPCOM","ALIVE_AMB_CIV_POPULATION"] call ALiVE_fnc_pauseModule; OPCOM_TOGGLE = true; };
    }] call BIS_fnc_addStackedEventHandler;

    The problem is that the server is not stopping increase Memory or CPU usage. In editor a game logic headless is placed and named. In the ALiVE Module "auto pause" option is set. Can someone tell me what i´m doing wrong in the setup or configuration?

    Thanks in advanced

  2. 2 days ago
    Edited 2 days ago by RagcBaker

    We use Vcom AI also.
    maybe this can be a part of the problem.

    I tried now without VcomAI but the problem still be the same.

  3. 21 hours ago

    I have tried different thing now. But nothing seems to work.

    - paste the following into init.sqf

    • Uncheck Autopause in ALiVE Module
    • place a trigger and sync Commander Modules to it
    • create the initServer.sqf with the code above

    Nothing happens, modules work as before. Did someone have an idea or help for me?

    in Module "LOGIC_ALIVE" set "AI Distribution" to Headless Clients
    Headless Client is configured in init.sqf as followed

    if (!hasInterface && !isDedicated) then {	
    headlessClients = [];							
    headlessClients set [(count headlessClients), player];		
    publicVariable "headlessClients";						
    isHC = true;									

or Sign Up to reply!