New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encryption Codes mission creates workstation consoles where they shouldn't be #27618
Comments
UPD: Those consoles are spawned in different places and different amounts, but roughly the same location each time. This may or may not be a memory issue as such. Also the car does get visibly deleted sometimes. |
Car getting deleted is another issue, already reported. |
I haven't tested it, but this could probably happen if there aren't any research facilities nearby in a given range: Cataclysm-DDA/src/mission_start.cpp Lines 650 to 659 in abbd9f7
At line 655, the range to find lab stairs in is set to '0', meaning a 'whole overmap diameter', as shown here (line 944): Cataclysm-DDA/src/overmapbuffer.cpp Lines 939 to 944 in 663942f
The value of OMAPX is 180, defined here: Cataclysm-DDA/src/game_constants.h Lines 48 to 51 in 1a38747
However, if no lab stairs are found, the return value is instead the current overmap tile the player is in (line 330): Cataclysm-DDA/src/mission_util.cpp Lines 321 to 331 in 0fdcdc3
The following code then searches for labs 2 z-levels beneath the player in a 4-overmap-tile range, which obviously do not exist, so the location of the player is again returned. Cataclysm-DDA/src/mission_start.cpp Lines 612 to 618 in abbd9f7
The end result is that the consoles are placed just nearby the player, as described in the OP. |
The issue appears to be that hidden labs are not spawning/far too rare for one to be found to place the console most of the time. |
0.E2 stable: All the doctor lab missions were bugged for me.
|
Please add more context to the description. Steps to reproduce are not clear enough. |
To Reproduce
Steps to reproduce the behavior:
0. Observe "By Cycle"
Expected behavior
A mission should not take less than 5 seconds to complete.
Screenshots
Versions and configuration(please complete the following information):
Additional context
Save ZIP: save.zip
The text was updated successfully, but these errors were encountered: