Announcement

Collapse
No announcement yet.

Arma 3: Headless client problems

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Arma 3: Headless client problems

    I can't get Headless clients to work with UPSMON. I have heard that there are many talented members here, so I ask here :) Does Anyone see any mistakes here? Units Spawn, but on server side and not on my HC.


    1) I have made ​​a playable (immortal) rabbit named HC in my mission.


    2) I've added this in server.cfg:

    //HC
    localClient[]={127.0.0.1};


    3) My "Headless client" A3 Shortcut on my A3 server:

    "C:\Program Files (x86)\Steam\SteamApps\common\Arma 3\arma3.exe" -client -localhost=127.0.0.1 -connect=localhost -port=2382 -password=****** -nosound -profiles=HC -Name=HC -mod=.....



    description.ext:

    Code:
    class Params
    {
        class HeadlessClient
        {
        title = "Headless Client";
        values[] = {0,1};
        texts[] = {"OFF","ON"};
        default = 0 ;
    };
    };

    init.sqf:

    Code:
    if(isNil "paramsArray") then{ paramsArray=[0,0,0]};
    
    
    //get mission parameter to see if 
    //HeadlessClient is present and assign its name
    if(paramsArray select 0 == 1) then{
      if(isServer) then{
        HCPresent = true;
        publicVariable "HCPresent";
        };
        if (!hasInterface && !isServer) then{
        HCName = name player; 
        publicVariable "HCName";
        };
    } else{
       if(isServer) then{
        HCPresent = false;
        HCName = "NOONE";
        publicVariable "HCPresent";
        publicVariable "HCName";
      };
    };
    
    
    if(!isServer) then {waitUntil{!isNull player}};
    
    
    //Init UPSMON script 
    call compile preprocessFileLineNumbers "scripts\Init_UPSMON.sqf";
    
    
    //execute spawnscripts on HC if present, otherwise on Server
    if(HCPresent) then{
        if(!hasInterface && !isServer) then{
            execVM "spawnscript1.sqf";
            execVM "spawnscript2.sqf";
            execVM "spawnscript3.sqf";
        };
    } else{
            if(isServer) then{
            execVM "spawnscript1_small.sqf";
            execVM "spawnscript2_small.sqf";
            execVM "spawnscript3_small.sqf";
            };
    };


    Spawnscript1.sqf:

    Code:
    Private ["_grp1", "_grp2", "_grp3"];
    if (! isServer && hasInterface) exit with {};
    hint "HC Spawn test!";
    
        _sideHQ = createCenter east;
    
    // Area 1
    _grp1 = createGroup east;
    _grp1 = [getMarkerPos "area1_spawn1", _sideHQ, ["O_soldier_TL_F", "O_soldier_AA_F", "O_soldier_AA_F", "O_soldier_AA_F"], [], [], [0.3, 0.6]] call BIS_fnc_spawnGroup;
    nul = [leader _grp1,"area1_0","fortify","AWARE"] execVM "scripts\UPSMON.sqf";
    
    
    _grp2 = createGroup east;
    _grp2 = [getMarkerPos "area1_spawn2", _sideHQ, ["O_sniper_F", "O_spotter_F"], [], [], [0.3, 0.6]] call BIS_fnc_spawnGroup;
    nul = [leader _grp2,"area1_1","nowait","AWARE","noveh"] execVM "scripts\upsmon.sqf";
    
    
    _grp3 = createGroup east;
    _grp3 = [getMarkerPos "area1_spawn3", _sideHQ, ["O_soldier_TL_F", "O_soldier_AA_F", "O_soldier_AA_F", "O_soldier_AA_F"], [], [], [0.3, 0.6]] call BIS_fnc_spawnGroup;
    nul = [leader _grp3,"area1_2","nowait","AWARE","noveh"] execVM "scripts\upsmon.sqf";

  • #2
    Re: Arma 3: Headless client problems

    spawnscript1.sqf
    Code:
    If (! Is server && hasinterface) exit with { };
    Misspelled exitwith :|
    Those little mistakes are always the worst

    I'm also assuming those first few lines in spawnscriptX.sqf is different than spawnscriptx_small.sqf

    personally i would add echoes (hints) to make sure that all your HC conditions are returning true if you havent already. just tackle it 1 block at a time.
    Last edited by Yink; 04-02-2014, 06:32 PM.
    Yink | Vanilla Pilot | Killer of Stirling | CS GOD | Projects Team

    Comment

    Connect

    Collapse

    TeamSpeak 3 Server

    Collapse

    Advertisement

    Collapse

    Twitter Feed

    Collapse

    Working...
    X