CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.12k stars 4.11k forks source link

Remote controlling vehicles no longer works. #74689

Open Void-Seeker opened 2 months ago

Void-Seeker commented 2 months ago

Describe the bug

Remote control (both normal for RC cars and for normal vehicles) immediately shows disconnect message after trying to control the vehicle.

Attach save file

Квойн-trimmed.tar.gz

Steps to reproduce

  1. Spawn the vehicle outfitted with remote control system, use one from the provided save file, or spawn toy RC car model.
  2. Obtain remote control for either vehicle or RC car. Character from the save already has one.
  3. Try to remote control the car.

Expected behavior

Player is able to drive remotely controlled car.

Screenshots

No response

Versions and configuration

Additional context

No response

PatrikLundell commented 1 month ago

Failed to repeat.

A guess is that the reporter got confused by the limited indications provided. After taking control of the vehicle any movement commands are performed by the vehicle, not the PC. The only subtle indication of this being the case is the appearance of the speed indicator on the side bar.

Void-Seeker commented 1 month ago

I coundn't reproduce it on the new save too. And no, i didn't get confused by the output, i've used remote control before. It indeed just disconnects right after connecting, but for some reason only on this save on my machine. I don't know what's happening, tbh. I've tried to debug it myself on the new save with gdb, but it just works as intended there. Yet on my main installation both RC car and vehicle remote controlling are broken.

Void-Seeker commented 1 month ago

It kinda looks like some kind of desynchronisation, idk...

PatrikLundell commented 1 month ago

OS difference? Executable version difference? Library differences?

I don't know what could be desynchronized. As far as I know there's only a single game thread (fortunately, given the amount of trouble caused even without having to deal with synchronization of multiple thread and the associated vague symptoms of bugs).