gjdwebserver / Hospital-Inc.

Hospital Inc. is a hospital management game with a city around it.
0 stars 1 forks source link

traffic routing for cars and ambulance #11

Open gasemans opened 6 years ago

gasemans commented 6 years ago

When deploying multeple ambulances at almost the same time they get stuck.

This time i had 3 ambulances going out. 1 Got lucky and escaped 👍 The other 2 where turned arround and got stuck against a tree and hospital.

One time i had an ambulance stuck after multiple cars crashed on a crossroad. after 5 minutes about 10 cars where stuck there and in the middle was the ambulance.

gjdwebserver commented 6 years ago

This is a known issue.

Will look into a timer for deploying ambulances.

Could make a timer when a ambulance gets stucks for more then 120 seconds it gets reset to the road so it can continue.

Looking into the possiblities thank you for reporting.

MrTheoW commented 6 years ago

To add to this, Ambulances are being pushed away by other traffic. This causes ambulances to get stuck behind trees, lights etc. (also when they are stopped at the place of the incident) Maybe an idea to let the ambulances stop on the sidewalks?

Helmond commented 6 years ago

also got ambulances stuck at the place of the accident pretty often. also when 2 ambulances are stuck at an incident there never comes a third incident

gjdwebserver commented 6 years ago

Yesterday I worked on this issue, the AICars did not know the ambulances where a thing, so when an ambulance stood still they never saw it, I now made AICars aware of the ambulance and if the ambulance is breaking. This should fix it a bit, but i saw that it does not fix it 100% im still looking into this.

MrTheoW commented 6 years ago

okay... just to mention it.... @gjdwebserver You're awesome for making this. I really had a blast with the original Theme Hospital and this is starting to look as a really nice game with the same options. Keep up the good work! Your doing a great job!

Helmond commented 6 years ago

ambulances still get stuck got one standing for 3 days at someone who was fallen :P image

gjdwebserver commented 6 years ago

Yeah its not optimal yet, still looking into it and tuning it.

stronkie commented 6 years ago

maybe hold off on the ambulance thing until people have built an First Aid room

Helmond commented 6 years ago

ambulances still getting stuck. almost everytime i send 2 away at the same time they get stuck or act weird image

gjdwebserver commented 6 years ago

I'm working on a solution, AI traffic now reacts better to getting stuck (they disappear sooner) I tried something with ambulances but in the end I did not see enough improvement.

I'm gonna make it that if they get stuck the ambulance will teleport to the active traffic node.

gjdwebserver commented 6 years ago

I'm releasing a bugfix release right now 0.3.4, this should fix ambulance routing.

The teleport that I have release in 0.3.4 will fix the issue (as far as I can tell and test right now) it might get stuck a 2nd time but it will repeat the unstuck solution will be done as many times as needed for the ambulance to move again.