Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Tue Mar 19, 2019 5:55 pm

All times are UTC




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Tue Jan 01, 2019 1:29 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Sat Jan 22, 2005 7:31 pm
Posts: 6407
Location: Wakefield, West Yorkshire
I come across this frequently, where a train can make a specific turn, but the pathfinder is seemingly taking the first one it can find, and ignoring the blatantly obvious clear path a single tile later on.


Orange: The route the train was trying to take, but wasn't able to due to the sticking out train
Green: the route it could have taken to bypass the block.

After I removed the segment of track that it was trying to take on the orange line, it happily went "oh duh!" and took the green route. Is there any way of getting the pathfinder to avoid this?

Attachment:
Untitled.png [158.87 KiB]
Not downloaded yet


Oh, and yes, I know this is really bad junction design. It was made with the signal far enough back the longest train wouldn't stick out and block the entire junction, turns out ti does, because the pathfinder appears to find the first sane route and go "nooope". I have removed the segment of track the orange route was taking, but it'd be nice to not need to remeber to this. Pathfinder selected is YAPF

_________________
Image
Worst Behaved IRC Member of 2008, 2009 & 2010 - Go Me!


Top
   
PostPosted: Tue Jan 01, 2019 2:19 am 
Offline
Tycoon
Tycoon

Joined: Wed Jan 17, 2007 12:14 am
Posts: 7300
there are a few pathfinder penalties you can try to tweak, but it might cause problems in other areas.

_________________
You might not exactly be interested in Ferion, but if you are, have fun :)


Top
   
PostPosted: Tue Jan 01, 2019 8:39 am 
Offline
Chief Executive
Chief Executive
User avatar

Joined: Mon Apr 17, 2017 4:52 pm
Posts: 666
Location: Western Ile-de-France Region
Problems in areas such as multiplayer games, where the difference in penalties can cause de-syncs


Top
   
PostPosted: Tue Jan 01, 2019 9:03 am 
Offline
Tycoon
Tycoon

Joined: Tue Feb 22, 2011 6:34 pm
Posts: 2669
It are indeed the pathfinder penalties that ruin the throughput, a single train piece has a lower penalty than the detour+tight corner+additional crossings, so the pathfinder will happily ignore the free path as the occupied path has the lowest path.

Gwyd wrote:
Problems in areas such as multiplayer games, where the difference in penalties can cause de-syncs

But in multiplayer the penalties are part of the game, so there is no risk there.

_________________
Coder of the Dutch Trackset | Development support for the Dutch Trainset | Coder of the 2cc TrainsInNML


Top
   
PostPosted: Tue Jan 01, 2019 11:52 am 
Offline
Tycoon
Tycoon

Joined: Wed Jan 17, 2007 12:14 am
Posts: 7300
Gwyd wrote:
Problems in areas such as multiplayer games, where the difference in penalties can cause de-syncs

this is just wrong.

_________________
You might not exactly be interested in Ferion, but if you are, have fun :)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2019 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2019.
Hosted by Zernebok Hosting.