[prototype]Mark where trains frequently get stuck at signals

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
Michi_cc
OpenTTD Developer
OpenTTD Developer
Posts: 619
Joined: 14 Jun 2004 23:27
Location: Berlin, Germany
Contact:

Re: [prototype]Mark where trains frequently get stuck at signals

Post by Michi_cc »

ChillCore wrote:and I still put signals in front of my stations eventhough they have a build in signal since some time now (I just think it looks better).
They don't. What you see is simply the general don't-just-crash-my-trains protection. Just compare the position of the two waiting trains in http://www.tt-ms.de/forum/attachment.php?aid=1014.

-- Michael Lutz
User avatar
ChillCore
Tycoon
Tycoon
Posts: 2872
Joined: 04 Oct 2008 23:05
Location: Lost in spaces

Re: [prototype]Mark where trains frequently get stuck at signals

Post by ChillCore »

Michi_cc wrote: They don't. What you see is simply the general don't-just-crash-my-trains protection.
...
Ah, OK. I assumed that they had like depots. Depots do have one built in them, don't they?
If not I have some more reading to do. :)

/me should stop assuming ...
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.

Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
Michi_cc
OpenTTD Developer
OpenTTD Developer
Posts: 619
Joined: 14 Jun 2004 23:27
Location: Berlin, Germany
Contact:

Re: [prototype]Mark where trains frequently get stuck at signals

Post by Michi_cc »

Depots have signals built in. But as a train inside a depot has no real position anyway, it wouldn't make a difference where the train waits for a free path :)

-- Michael Lutz
xmirakulix
Engineer
Engineer
Posts: 36
Joined: 06 Jan 2010 18:06

Re: [prototype]Mark where trains frequently get stuck at sig

Post by xmirakulix »

Updated to current trunk
Attachments
stuck_trains_r22958.diff
(3.39 KiB) Downloaded 626 times
xmirakulix
Engineer
Engineer
Posts: 36
Joined: 06 Jan 2010 18:06

Re: [prototype]Mark where trains frequently get stuck at sig

Post by xmirakulix »

Updated to current trunk
Attachments
stuck-trains-r25234.diff
(3.43 KiB) Downloaded 547 times
User avatar
adf88
Chief Executive
Chief Executive
Posts: 644
Joined: 14 Jan 2008 15:51
Location: PL

Re: [prototype]Mark where trains frequently get stuck at sig

Post by adf88 »

I refreshed the patch:
- change: stuck counter now decreases to 0 so a highlight will disappear after certain period of time (previously once highlighted signal was staying highlighted for eternity)
- removed magic constants
- fixed coding style (whitespace)
- moved new functions in rail_map.h higher (to keep MakeXXX functions on the bottom as usually)
Attachments
stuck_trains_r26405.diff
(3.35 KiB) Downloaded 548 times
:] don't worry, be happy and checkout my patches
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 5 guests