Page MenuHomeFeedback Tracker

[BUG] One-man-tanks (hasDriver=-1) not working in multiplayer
Closed, ResolvedPublic

Description

In 1.82 an old OFP feature was re-added (https://dev.arma3.com/post/spotrep-00076 and https://community.bistudio.com/wiki/CfgVehicles_Config_Reference#has... )
Sadly it doesn't work in MP.

Normally one is supposed to be able to drive the vehicle as gunner/commander (aka effectiveCommander), yet this doesnt work in multiplayer (hosted and dedicated server).

See also: https://twitter.com/BXBX_BI/status/918082250591363073

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
Dedicated Server
Steps To Reproduce

Repro:

  1. Load game with A3_DriverLessVehicles.pbo via modfolder
  2. Start a hosted session
  3. Load the mission TEST_DriverLessMP.VR.pbo
  4. Start the session as gunner or commander
  5. AI can remain enable or disabled
  6. Notice you cannot drive the vehicle
  1. Load game with A3_DriverLessVehicles.pbo via modfolder
  2. Start a dedicated server with A3_DriverLessVehicles.pbo via modfolder
  3. Join the server in LAN
  4. Load the mission TEST_DriverLessMP.VR.pbo
  5. Start the session as gunner or commander
  6. AI can remain enable or disabled
  7. Notice you cannot drive the vehicle

You can also exit the vehicle and get into others. Same problem.

  1. Load game with A3_DriverLessVehicles.pbo via modfolder
  2. Start the Eden Editor
  3. Load the mission TEST_DriverLessMP.VR
  4. Play as gunner or commander
  5. Notice you can drive the vehicle

You can also exit the vehicle and get into others. You can then drive and use gunner/commander turret at the same as intended.

Additional Information

Mod:


MP mission:
Eden mission:

Some community reports:
https://steamcommunity.com/workshop/filedetails/discussion/660460283/1742227264208975499/
https://steamcommunity.com/app/107410/discussions/1/1640915206450932434/

Event Timeline

kju-PvPscene renamed this task from One-man-tanks (hasDriver=-1) not working on dedicated servers to [BUG] One-man-tanks (hasDriver=-1) not working on dedicated servers.Aug 12 2020, 7:16 PM
BIS_fnc_KK changed the task status from New to Need More Info.Aug 13 2020, 9:57 AM
kju-PvPscene updated the task description. (Show Details)Sep 20 2021, 7:19 AM
kju-PvPscene changed Reproducibility from N/A to Always.
kju-PvPscene edited Steps To Reproduce. (Show Details)
kju-PvPscene edited Additional Information. (Show Details)
kju-PvPscene updated the task description. (Show Details)Sep 20 2021, 7:22 AM
kju-PvPscene renamed this task from [BUG] One-man-tanks (hasDriver=-1) not working on dedicated servers to [BUG] One-man-tanks (hasDriver=-1) not working in multiplayer.
kju-PvPscene edited Steps To Reproduce. (Show Details)

@BIS_fnc_KK any luck with this one, or a viable workaround you can think of?

@kju-PvPscene Could you do me a favour and make sure there are no AIs in the vehicle:

systemchat str crew vehicle player;
deleteVehicleCrew vehicle player;
systemchat str crew vehicle player;

and confirm that it is working now in all cases?

@BIS_fnc_KK I am using perf build - hosted it works if you are effectiveCommander (so you dont have to remove the AI if you are already depending on the specific vehicle setup if gunner or commander position is effectiveCommander).
DS nothing works at all. Without AI from the start, or deleting them or any other combo.

A little observation: in DS env it still starts the engine, but seems no movement input gets "communicated".

‘ hosted it works if you are effectiveCommander ‘

I’m confused, repro steps says it doesn’t work at all on hosted, and it wasn’t when I tested until I removed AIs and then it was working for any position even cargo

kju-PvPscene added a comment.EditedOct 10 2021, 9:10 AM

@BIS_fnc_KK It didnt, but works with latest stable build. (thought i was on perf - retesting now)

kju-PvPscene added a comment.EditedOct 10 2021, 10:03 AM

Ok this is the situation as best i can tell:

  1. Never works with DS - regardless what you do (empty, made empty, starting as effective commander, starting as non effective commander, becoming effective commander, etc)
  2. With hosted it:

a) works with cars if you are effective commander (regardless of empty, made empty, starting as effective commander, becoming effective commander, etc) [what position is effective commander depends on vehicle setup - commanding config parameter]
b) for tanks it works for empty
c) for tanks it works if you start as effective commander
d) for tanks you can become effective commander if you switch for both gunner and commander the AI to passenger (cargo) [by switching between them] AND getting out the tank and back in directly as gunner/commander - NOT as cargo and switch then

(taking over effective commander even works for a tank under command by another AI leader, and even if you have your own AI group leader)

so what hasDriver = -1; should do exactly? And how is it different from commanding the AI driver?

what hasDriver = -1; should do exactly?

To be able to drive at the same time while operating any turret or sitting in cargo.

how is it different from commanding the AI driver?

Fair question:
+ Less AI (performance)
+ No AI (can be confusing for PvP players)
+ Some scripting needed to make sure AI driver doesnt mess up things (invuln, not get out, etc)
+ No quick turret turn reaction(?)/radio command spamming unless unbound in key controls
+ Easier use for people not into the setup (I guess i could recreate the same setup more or less via init EH etc)

It's not a huge deal. If there is no "easy fix", as it looks like, I can work around it if necessary. One man tank used to be very popular back in OFP, hence BxBx tried to make them available again.

I’d much prefer gunnerisdriver and only gunner so unless you are gunner you can’t drive and driver pos is disabled

That should be good enough I'd say. So fine with me as well.

If one wants the commander position also be driving, having an AI driver via above mention elements should be acceptable.

@BIS_fnc_KK Is there a chance to still see this addressed one way or another?

dedmen changed the task status from Need More Info to Feedback.Jun 16 2022, 4:31 PM
dedmen claimed this task.
dedmen added subscribers: BIS_fnc_KK, dedmen.

Seems like I solved this by accident while implementing a feature request from Kerc :D
Vehicle now changes locality to effective commander if no driver/copilot is present, that fixed this.

awesome 🎉 🎉 🎉 🎉 🎉

kju-PvPscene closed this task as Resolved.Dec 28 2023, 3:20 PM

works