Skip to content
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

Maximum number of residents do not exceed 500 #1

Open
Ramesh-X opened this issue Dec 31, 2017 · 3 comments
Open

Maximum number of residents do not exceed 500 #1

Ramesh-X opened this issue Dec 31, 2017 · 3 comments

Comments

@Ramesh-X
Copy link

I created an assert with 1000 rooms (I know it is unrealistic) and place it while playing the game. After some time I noticed that the number of resident is around 470 in that nursing home. I stayed more time in the game and keep a track on the number of residents and it never exceed 500.

Then I place another nursing home next to it (same assert) and waited some time. Then I noticed that the number of residents in that home also around 500 (Both homes have residents around 500 now). The population is around 25k in both scenarios.

Is this a bug or a feature..? If a feature, what is the reason..?

@BoostHungry
Copy link
Owner

As far as I can tell there's nothing in code preventing this. I don't set any hard limits anywhere, specially on individual buildings.

Are you sure there's still senior citizens around in the operational radius of the nursing home? Is it just a coincidence that it never exceeds 500 because there are not more than 500 seniors in the area? You can use the average age overlay to see if there are still residential buildings in the area with mostly seniors in them.

Another thought is that it's possible that seniors are dying as fast as they're brought in, and since the process is fairly steady (though with randomness) this could result in a soft cap in the total number of rooms allowed to be occupied at any one time. This can get quite complicated when you consider all the variables that go into determining who moves in to a Nursing Home. IE: if you have a 4 or 5 star nursing home, only the middle and upper class seniors have a good chance of moving in and the lower wealth seniors will stay at their own homes.

@BoostHungry
Copy link
Owner

Apologies, I just noticed that you said you placed a second Nursing Home right next to it and that the second home was able to get up to around the same point. That disproves my first thought.

I'm thinking the soft cap might be the reason here and that seniors are dying as fast as they're brought in.

Finding seniors to move in to the Nursing Home is done with game ticks. Every game tick the Nursing Home itself will call up one senior at random who is still living at home and ask them if they want to move in. Regardless of their decision the NH will not call another senior until the next game tick. Since the probability is less than 100% it takes a lot more than 500 game ticks to recruit 500 seniors so it's possible that by the time it finds the 500th senior, the first senior who moved in has passed away.

This could result in a soft cap and the only way to resolve this would be to adjust the number of recruitment attempts per game tick or to increase the move in probability. I meant to offer the feature of adjustable move in probability as an option but I never got around to it.

Does this theory sound plausible? Does the NH fill up slowly enough that it's possible seniors are dying as fast as they're recruited after a certain point?

@Ramesh-X
Copy link
Author

I think that might be the reason. Nursing homes are filling very slowly and it is possible that the first senior will die when the 500th senor move in.

I can increase the move in probability in the code, but how to adjust the recruitment attempts..? Are there any other possible ways to fix this issue..?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants