Cataclysm-dda: Error when aiming a turret via a remote vehicle controller: "Tried to aim turret while outside vehicle"

Created on 30 May 2018  路  4Comments  路  Source: CleverRaven/Cataclysm-DDA

Game version: f4ade2c9098b6067f456a36c7e7def488ed0fc6c

Operating system: Linux

Tiles or curses: Tiles

Mods active:
More Survival Tools
blazemod
Tanks and Other Vehicles
Boats
Folding Parts pack
Disable NPC Needs
Simplified Nutrition

Expected behavior

Users should be able to remotely aim a turret without errors popping up.

Actual behavior

This error pops up upon selecting the turret.
https://github.com/CleverRaven/Cataclysm-DDA/blob/f4ade2c9098b6067f456a36c7e7def488ed0fc6c/src/ranged.cpp#L771

Also, there's a minor visual bug in the aiming dialog after the error pops up if the user opts to "continue": https://imgur.com/K9Ctugs This goes away if the user stops aiming and restarts aiming again.

Steps to reproduce the behavior

  1. Build a vehicle with drive by wire controls, a turret mount, and a mounted gun (the specific gun shouldn't matter, tried with M249 and Mark 19 Grenade Launcher).
  2. Obtain a remote vehicle controller (or a Remote Controller CBM).
  3. Remote control the vehicle.
  4. Attempt to manually aim the turret.

Probably related: #22512

<Bug> Ranged Vehicles

Most helpful comment

I observed this too.

@FulcrumA manual turrets can be fired from any tile with vehicle controls, drive by wire controls are described as a set of normal controls with remote operated servos attached, IMO that means from a consistency standpoint you ought to be able to use turrets from outside the vehicle given a remote vehicle controller.
Especially true since you can already fire the turrets from anywhere inside the vehicle using the RVC, regardless of distance from the controls themselves.

@Night-Pryanik this probably shouldn鈥檛 have the suggestion tag since the current behavior is almost definitely not intended.

All 4 comments

Possibly it should depend on the turret. There are manual turrets which presumably are non-automated guns requiring someone grabbing onto them with their very hands and which shouldn't function any other way and automatic turrets which should be controllable manually through remote controller.

I observed this too.

@FulcrumA manual turrets can be fired from any tile with vehicle controls, drive by wire controls are described as a set of normal controls with remote operated servos attached, IMO that means from a consistency standpoint you ought to be able to use turrets from outside the vehicle given a remote vehicle controller.
Especially true since you can already fire the turrets from anywhere inside the vehicle using the RVC, regardless of distance from the controls themselves.

@Night-Pryanik this probably shouldn鈥檛 have the suggestion tag since the current behavior is almost definitely not intended.

FYI, it is possible to workaround this by standing on any other vehicle and fire the turret remotely. The game will not be able to draw the aim line, but you can fire your turret remotely just fine.

You can also generate this error just by standing beside the vehicle in question when trying to aim automatic turrets.

Was this page helpful?
0 / 5 - 0 ratings