New issue 760 by Alberth289346: control panel of radiation shield part of
x-ray room is always grey
http://code.google.com/p/corsix-th/issues/detail?id=760
What steps will reproduce the problem?
1. from example town level, start building a x-ray room.
2. the control panel of the radiation shield is grey while the other parts
are blue-ish when they are positioned correctly.
3. on placing, the control panel stays grey, and the console emits a
message like
Warning: Multiple objects on tile 66,59 - only one will be encoded
r1238, linux
are you sure that the room was large enough for its placement?
I had a similar issue when the shield was first implemented and then found
that it was due to the room not being large enough. Making the room just
one square bigger may be enough to allow for its placement as you have to
also allow for movement around the console as well as access to the xray
itself.
Yes I am sure.
I have created a room almost as big as the entire hospital for testing.
Also, the other part of the radiation shield (with the radiation on it, and
the chair) coloured from grey to blue-ish metal colour.
Last but not least, the program released the shield from my mouse cursor,
which imho also indicates that the program believes it is positioned
correctly.
It looks like there are two issues.
I can confirm that the lua window does display the message about mulitple
objects in tile blah blah.
Also the minimum room size of 6 x 6 is the same as TH, but in CTH it is not
possible to build the room and place the default objects in a 6 x 6 room.
You need a room of at least 7 x 6 to place both objects.
Attachments:
screen.PNG 68.3 KB
You can fit everything into an x-ray room in 6x6. But note the clipping
errors through the wall.
Attachments:
xray.png 29.3 KB
There is something else going on here. It seems like the combination in
Cgia's photo above is the only possible one. However all the positions
below should be allowed in a 6x6 room as the console is 3x3 and the x-ray
is mostly 3x3 with the exception of one tile which sticks out.
Attachments:
x-ray1.jpg 23.6 KB
x-ray2.jpg 24.5 KB
x-ray3.jpg 25.7 KB
x-ray4.jpg 28.0 KB
x-ray5.jpg 25.1 KB
I think you are right, it has something to do with the footprints.
I have altered them in this patch, but I don't have the time to test it to
see if it causes problems. It was something I was look at a while back,
but at the moment I have too much happening in my life and don't have the
time to spare testing things.
If you want to do this it would help me no end.
Attachments:
xray.patch 1.8 KB
Issue 1122 has been merged into this issue.
Sorry Mark, The patch is no good, can't even load a save or create a new
game now.
thanks for testing, we'll have to leave this one to the dev's to fix.
Just thought, do you know how to reverse the patch?
Basically copy these two lua files over what you have now from your latest
downloaded copy
radiation_shield.lua
x_ray.lua
if you look in the patch you will see which directories to copy them to.
Or just copy the whole lua file and it will replace the alertered files
along with the others
I just downloaded the latest version from
http://th.corsix.org/corsix-th-latest-win32.zip again.
On another note it might be a good idea to place a link to this on the
downloads page, with an appropriate description, so people can download it
if they want.