Page MenuHomeFeedback Tracker

Headless Client automatically occupies a slot, which disappears from the slots list
New, WishlistPublic

Description

Whenever a mission is launched, and the Headless Client is already on the server, it automatically jumps into a slot (seems it is the first slot in the mission.sqm?).
That slot disappears from the slotting screen, even if the HC is manually moved to another slot, and cannot be accessed anymore.

Moreover, ForceHeadlessClient = 1; doesn't work: the slot with this line is greyed out in the slotting screen and nobody can access it. {F22226}

Details

Legacy ID
484070595
Severity
None
Resolution
Open
Reproducibility
Always
Category
Multiplayer
Steps To Reproduce

Create any mission with multiple playable slots.
Edit the mission.sqm to have one slot with forceheadlessclient = 1;
Connect the HC to the dedicated server.
Launch the mission.

Additional Information

This has been observed on the Stable branch. Any repro on the Dev branch is most welcome.

Event Timeline

BlackMamb edited Additional Information. (Show Details)
BlackMamb set Category to Multiplayer.
BlackMamb set Reproducibility to Always.
BlackMamb set Severity to None.
BlackMamb set Resolution to Open.
BlackMamb set Legacy ID to 484070595.May 7 2016, 4:51 PM
Ollem added a subscriber: Ollem.May 7 2016, 4:51 PM
Ollem added a comment.Nov 17 2013, 4:52 PM

Experience the same issue on Stable 1.04.111746

Very simple MP mission with 3 units on the map, no scripts etc.
2nd unit config:

id=1;
side="WEST";
vehicle="B_Soldier_F";
player="PLAY CDG";
forceHeadlessClient=1;
leader=1;
skill=0.60000002;
text="Unit_2_hc";
description="Unit_2_hc";

Expected behavior:
HC will connect automatically in 2nd player slot

Observed behavior:

  • HC will automatically connect to 1st available player slot and never in reserved hc slot

(This slot disappears from selectable players even if hc is dragged to other slot)

  • HC will in most cases(?) not init successfully after mission start due to timeout.
  • Manual drag to 2nd_hc slot of hc user is not possible
  • Manual drag to 1st or 3rd slot of hc user is possible. After manual drag to any slot HC inits successfully and mission starts successfully

Removing "forceHeadlessClient=1; " from 2nd unit
Observed behavior:

  • HC will automatically connect to 1st available player slot

(This slot disappears from selectable players even if hc is dragged to other slot)

  • HC will in most cases(?) not init successfully after mission start due to timeout.
  • Manual drag to 2nd_hc slot (or other slot) of hc user is now possible. After manual drag to any slot HC inits successfully and mission starts successfully .
zx64 added a subscriber: zx64.May 7 2016, 4:51 PM
zx64 added a comment.Mar 5 2014, 6:31 PM

Found this out with some unrelated testing, not necessarily directly useful but you never know...

If the mission has joinUnassigned=0 and disabledAI=1 in its description.ext, the headless client is able to automatically join "properly" (as in, spawns as a player in game).

Note that just joinUnassigned=0 on its own isn't sufficient.

shukari added a subscriber: shukari.May 7 2016, 4:51 PM

Tested in V1.24 and you must join two times... first join the HC go to the first not "forceHeadlessClient=1" Unit and the second try he is on the rigth slot...

zx64 added a comment.Sep 30 2014, 11:59 PM

Update for 1.30: HC doesn't autoassign (if the mission has the default value for joinUnassigned) but also doesn't make a slot disappear.