πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.games.microprose.transport-tyc
Article #28477

Re: Signal Problem

#28477
From: Josef Drexler
Date: Fri, 18 Nov 2005 15:59
31 lines
2333 bytes
Tom Cumming wrote:
> Felix WΓΌst wrote:
> 
>> Hey,
>>
>> Can anyone tell me why it does this:
>> http://www.dereff.de/station.png
> 
> 
> Change the station entrance signals so that they are two-way signals. 
> For some reason, if a train is presented with a choice of one-way 
> signals, it will always take the shortest route, even if the signal is 
> red. If a train is presented with a choice of two-way signals however, 
> and the shortest route is red, it will choose the next best option.

Yes, that's how TTD's signal logic works.

find_shortest_path();
if shortest path begins with a one-way signal,
	go there, no matter whether it's red or green;
else // shortest path begins with a two-way signal
	if signal is green,
		go there
	else
		go to closest green two-way signal instead

-- 
    Josef Drexler                 |       http://jdrexler.com/home/
---------------------------------+----------------------------------------
  Please help Conserve Gravity    |  Email address is *valid*.
  Play Chess, not Basketball.     |  Don't remove the "nospam" part.
Technical Details
Message-ID: <dlktne$7uf$1@server.our.house>
Path: mbox-mo1.pugleaf.net!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!128.230.129.106!news.maxwell.syr.edu!news-rtr.nyroc.rr.com!news-out.nyroc.rr.com!twister.nyroc.rr.com.POSTED!53ab2750!not-for-mail
References: <y8jkjmol7pg5$.1aqfubd8yvvvm.dlg@40tude.net> <dlkrgg$61f$1@server.our.house>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!128.230.129.106!news.maxwell.syr.edu!news-rtr.nyroc.rr.com!news-out.nyroc.rr.com!twister.nyroc.rr.com.POSTED!53ab2750!not-for-mail
From: Josef Drexler <nospam1105@joesbox.cjb.net>
Newsgroups: alt.games.microprose.transport-tyc
Subject: Re: Signal Problem
Organization: None apparently.
Lines: 31
Message-ID: <dlktne$7uf$1@server.our.house>
References: <y8jkjmol7pg5$.1aqfubd8yvvvm.dlg@40tude.net> <dlkrgg$61f$1@server.our.house>
X-Orig-NNTP-Posting-Host: alfven.localnet
Mime-Version: 1.0
X-Orig-X-Trace: server.our.house 1132329518 8143 192.168.3.1 (18 Nov 2005 15:58:38 GMT)
X-Orig-Complaints-To: abuse@joesbox.cjb.net
X-Orig-NNTP-Posting-Date: 18 Nov 2005 15:58:38 GMT
User-Agent: Mozilla Thunderbird  (X11/20041216)
X-Accept-Language: en-us, en
In-Reply-To: <dlkrgg$61f$1@server.our.house>
Date: Fri, 18 Nov 2005 15:59:03 GMT
NNTP-Posting-Host: 24.58.5.97
X-Complaints-To: abuse@rr.com
X-Trace: twister.nyroc.rr.com 1132329543 24.58.5.97 (Fri, 18 Nov 2005 10:59:03 EST)
NNTP-Posting-Date: Fri, 18 Nov 2005 10:59:03 EST
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit