CorsixTH icon indicating copy to clipboard operation
CorsixTH copied to clipboard

[Bug] Cabinet teleports to doctor

Open Alberth289346 opened this issue 3 years ago • 3 comments

Describe the issue

File cabinet moves by itself

Steps to Reproduce

  1. Load save game attached to #2020

  2. Watch doctor in GP using the file cabinet

  3. Cabinet teleports to doctor.

Screenshot from 2021-07-18 14-24-01

Screenshot from 2021-07-18 14-24-54

Alberth289346 avatar Jul 18 '21 12:07 Alberth289346

This is a blocked off area bug. The walk doesn't actual walk anywhere, and the use animation just starts for the cabinet. Link to #826. I made note in #1462 of the drinks machine teleporting and its one a few other issues, (see #1682). There is another scenario not in #1682 where a patient teleports to the bench and off it.

However I think this scenario more closely relates to incorrectly blocking off areas vs the starting an action that shouldn't/can't start. TH itself for most blocked off areas doesn't check paths before a room is placed, place a room in a blocked off area fails. And with objects in a room it generally checks path to the door, but I don't think path checking occurs for fire extinguisher, bin, radiator or plant I can double check this when I get time. In the corridors its also possible to block an area off and that is more than likely due to the algorithm in place and it gives up.

mugmuggy avatar Jul 18 '21 22:07 mugmuggy

Yes, leaning towards putting blocked off checks back inside rooms again. It seems to be causing more issues than just blocking off parts of the hospital.

lewri avatar Jul 20 '21 18:07 lewri

I found this one by accident. Though... the doctor teleported to cabinet then back again, rather than the cabinet moving. Same cause though.

The doctor always sits down from the right of the chair. They also always will get up from the left. As mugmuggy said, this action of getting up/sitting down doesn't really move the doctor anywhere until after the fact. It's an odd design to force such movement, but alas we must work with it as so.

This bug also will occur if you put the desk so the chair isn't reachable from the right -- it actually causes a broken walk action and crashes the game (aka #1963 )

lewri avatar Jan 22 '22 21:01 lewri