Auto Pause ALiVE Modules with Headlessclient

  1. 6 days ago
    Edited 4 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.
    http://alivemod.com/forum/4862-auto-pause-feature-clafghan

    initServer.sqf

    ["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
    Baker

  2. 4 days ago
    Edited 4 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. 2 days ago

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

    - paste the following into init.sqf

    ["ALIVE_MIL_OPCOM","ALIVE_MIL_OPCOM","ALIVE_CIV_OPCOM","ALIVE_AMB_CIV_POPULATION"] call ALiVE_fnc_PauseModule;
    • 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!