- Conzmedic
- Posts : 1
Reputation : 0
Join date : 2021-05-24
Need pathfinding (and probably general pathfinding?)
Mon May 24, 2021 6:09 pm
I noticed that for the needs; Hunger, Bladder and Discomfort your employees keep going back to their Workplace(or chair) after each need is filled.
So lets say a doctor has a Hunger and a Bladder need, what they will do is:
Go from their workplace to some food source, then go back to their workplace, then go to the toilet, then back to their workplace and if you're unlucky they then go to the commonplace because they did so much walking around.
Especially in larger hospitals this will consume a LOT of time in someone's day. Once you have a large hospital with like 400 employees you can have someone waste half of their shift time just strolling around fulfilling needs.
It would be better if they would evaluate their needs/priorities -before- going back to their workplace. Just do it after every task maybe, or every 10-20ish steps.
So lets say a doctor has a Hunger and a Bladder need, what they will do is:
Go from their workplace to some food source, then go back to their workplace, then go to the toilet, then back to their workplace and if you're unlucky they then go to the commonplace because they did so much walking around.
Especially in larger hospitals this will consume a LOT of time in someone's day. Once you have a large hospital with like 400 employees you can have someone waste half of their shift time just strolling around fulfilling needs.
It would be better if they would evaluate their needs/priorities -before- going back to their workplace. Just do it after every task maybe, or every 10-20ish steps.
- EagleEyeintern
- Posts : 3
Reputation : 0
Join date : 2021-06-27
Age : 49
Re: Need pathfinding (and probably general pathfinding?)
Sun Jun 27, 2021 6:25 pm
Pathfinding is a big or maybe biggest problem in PH because the game only check against objects to fullfill by direct coordinates.
We need to hash more and check against entry / leaving points for rooms.
Simple PAP
1. have the actual room an object to fullfill
if false
2. have the actual room an entry point for a room with an object to fullfill
if 2. true
3a. where is the closest entry point (on same floor number) with an object to fullfill
if 2. false
3b. where is the entry point for the actual room, mark this coordinate and back to 1.
We need to hash more and check against entry / leaving points for rooms.
Simple PAP
1. have the actual room an object to fullfill
if false
2. have the actual room an entry point for a room with an object to fullfill
if 2. true
3a. where is the closest entry point (on same floor number) with an object to fullfill
if 2. false
3b. where is the entry point for the actual room, mark this coordinate and back to 1.
- jan.oxymorondeveloper
- Posts : 2309
Reputation : 336
Join date : 2018-03-23
Re: Need pathfinding (and probably general pathfinding?)
Wed Jun 30, 2021 9:22 am
Hi, since a big pathfinding update last year the characters actually use the distance they would walk, not the geometric distance to each object to determine which one to use. But, there are other rules that take priority over this - could you check which department the two restrooms belong to? Employees always prefer equipment from their own department when filling needs.
One possible solution you can try if you'd like to change the behavior would be to assign all restrooms to emergency so the preference of employee's own department doesn't play a role anymore.
One possible solution you can try if you'd like to change the behavior would be to assign all restrooms to emergency so the preference of employee's own department doesn't play a role anymore.
- EagleEyeintern
- Posts : 3
Reputation : 0
Join date : 2021-06-27
Age : 49
Re: Need pathfinding (and probably general pathfinding?)
Wed Jun 30, 2021 12:25 pm
Permissions in this forum:
You cannot reply to topics in this forum
|
|