CleverRaven / Cataclysm-DDA

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

One broken bike rack makes racked vehicle broken #76613

Open dev-dsp opened 1 month ago

dev-dsp commented 1 month ago

Describe the bug

Can't unrack a vehicle after one of bike racks was broken (by Zs)

Attach save file

Nairn-trimmed.tar.gz

Here, I've installed missing bike racks, but it didn't help. 'e' on bike rack tile says nothing's racked, but attempting to fix folding wire basket on my 'booter' says it should be unracked before starting works.the the

Steps to reproduce

  1. Have vehicle racked
  2. Break rack
  3. Racked vehicle is stuck

Expected behavior

Working rack / ability to fix

Screenshots

No response

Versions and configuration

Additional context

No response

PatrikLundell commented 1 month ago

Sounds like logic that can break, yes. I'd try to repair the rack and then save and reload the game, in the hope that maybe loading restores some of the missing data. It's a low probability, but still worth a try.

dev-dsp commented 1 month ago

I tried it in different ways, including reinstalling, repairing & reloading, but unfortunately, it didn't help :( Can we fix it through the debug menu?

PatrikLundell commented 1 month ago

I don't think this can be fixed via the debug menu. In theory it should be possible to hack the save files, but that would require finding the correct file, finding the vehicle in it, and figuring out how the data should be changed, and then change the file without making any mistakes.

It should be possible to debug create a new vehicle like the racked one if it is a standard type and then manually smash the racked parts of the current racked vehicle, but that still wouldn't guarantee the rack won't be bugged and still think something is attached, although removing the racks and reinstalling them might work. I don't know if the debug menu can be used to destroy vehicle parts (so smashing wouldn't be needed). Anyway, I'd perform any such experiments on a copy of the save so failed attempts aren't accidentally overwriting it (in particular if automatic saves are enabled).