Project Hospital
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Go down
avatar
Conz
medic
Posts : 1
Reputation : 0
Join date : 2021-05-24

Need pathfinding (and probably general pathfinding?) Empty 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.
EagleEye
EagleEye
intern
Posts : 3
Reputation : 0
Join date : 2021-06-27
Age : 48

Need pathfinding (and probably general pathfinding?) Empty 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.

Need pathfinding (and probably general pathfinding?) Wc10

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.oxymoron
jan.oxymoron
developer
Posts : 2309
Reputation : 335
Join date : 2018-03-23

Need pathfinding (and probably general pathfinding?) Empty 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.
EagleEye
EagleEye
intern
Posts : 3
Reputation : 0
Join date : 2021-06-27
Age : 48

Need pathfinding (and probably general pathfinding?) Empty Re: Need pathfinding (and probably general pathfinding?)

Wed Jun 30, 2021 12:25 pm
Thanks for the fast reply.

I'm playing PH only since a week and will open an topic with problems I noticed so far.

Here is my plan and the save.

Need pathfinding (and probably general pathfinding?) Wc210
Attachments
Need pathfinding (and probably general pathfinding?) Attachment
001_14_Etage.zip You don't have permission to download attachments.(1.2 Mb) Downloaded 0 times
Sponsored content

Need pathfinding (and probably general pathfinding?) Empty Re: Need pathfinding (and probably general pathfinding?)

Back to top
Permissions in this forum:
You cannot reply to topics in this forum