CleverRaven / Cataclysm-DDA

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

Minifridge connected with an extension cord turns off #75219

Open andresxdxd1 opened 2 months ago

andresxdxd1 commented 2 months ago

Describe the bug

Minifridge connected to the grid through an extension cord turns off.

Attach save file

Columbine Valley-trimmed.tar.gz

Steps to reproduce

  1. Turn on nearby minifridge (connected with an extension cord)
  2. Walk (or autowalk) 3-9 tiles to the right (it varies), in any other direction walk 12 tiles.
  3. Get back to the shelter
  4. Check minifridge previously turned on
  5. Check upstairs minifridge (directly connected to grid)

Expected behavior

Expected to not have a fridge turning off when connected to the grid thru an extension cord :)

Screenshots

No response

Versions and configuration

Additional context

Only "constant" for it to turn off, is going to the right 3 to 9 tiles, in another direction it will take 9 tiles or more.

PatrikLundell commented 2 months ago

/Confirmed.

Loaded the save, turned on the fridge, walked to the swamp in the east and back, checked fridge (off) and fridge upstairs (on), as in the description.

ShnitzelX2 commented 2 months ago

Hold on with that confirm. I need a date for when you started this save, @andresxdxd1, because you've got 60+ hours on it and this issue was fixed in #74964 about two weeks ago, and that PR did not fix old saves. If this save was before #74964, you'll still encounter the bug.

Just to be absolutely sure, I recreated your setup on my recent build twice (once with the used mods, once without) and the fridge stays on. It doesn't stay on in the provided save.

If you want a temporary fix, you can just put a battery next to the fridge and it'll stay on.

PatrikLundell commented 2 months ago

I was concerned, as I saw this issue had been addressed, and though the issue might not be fixed completely. It would be a relief if it's a matter of lingering effect in old saves.

Concerning recovery in old saves, wouldn't disconnection of the cable (from both ends, to be sure) and then reconnecting it work? That ought to trigger whatever changed logic for connecting appliances the PR implemented? That would be simpler and wouldn't take up space, provided it would work. Even if the fridge would have to be taken down and restored as well, I'd consider it better than adding a battery in the "wrong" place in at least some cases.

andresxdxd1 commented 2 months ago

G'morning. Save has been active since 19-07-2024 (1 week ago), got 60 hours because of mostly afk I guess? The fridge I connected downstairs only had like 2 days. Checked it out, disconnecting both ends from the extension cord, and seems like the issue has been solved, since going in any direction won't trigger the fridge turning off. My bad I guess, thanks

CoroNaut commented 2 days ago

Sometimes I see the message "The large heater's battery dies!" or others when leaving my base as well. It seems to happen much more frequently when walking south compared to any other direction too, which is strange.

Saegertown-trimmed.tar.gz

  1. Load save
  2. Notice the appliances 1 small heater, 1 large heater, 1 fridge, 3 freezers are connected to the grid and turned on. (the heavy-duty fridge/freezer are disconnected and turned off)
  3. Walk south until you see the message "The large heater's battery dies!", or "The freezer's battery dies!", or any other appliance dying as you walk south, tile by tile.

From save while walking south: image