Path-based signalling preview and test version

Get help, info, news and advice about the Transport Tycoon Deluxe patch.

Moderator: TTDPatch Moderators

KaCzach
Engineer
Engineer
Posts: 9
Joined: 04 Nov 2003 21:19

Post by KaCzach »

Patchman wrote: Can you explain in more detail what's wrong, and also post the savegame together with ttdpatch.cfg and newgrfw.cfg?
Under a48 when both tracks at the station were occupied, the third train waited at the presignal. Under a49 it doesn't.

Here's a screenshot of the same situation under a48, and the savegame.
Attachments
save.zip
(163.93 KiB) Downloaded 147 times
SCR1.png
SCR1.png (301.79 KiB) Viewed 4601 times
User avatar
AndersI
Tycoon
Tycoon
Posts: 1732
Joined: 19 Apr 2004 20:09
Location: Sweden
Contact:

Post by AndersI »

KaCzach wrote:Under a48 when both tracks at the station were occupied, the third train waited at the presignal. Under a49 it doesn't.
I see the same in my current game. Even if all platforms are taken by a train, a newly arriving one will pass the presignal and go to the rightmost platform. This is a new problem wich wasn't there in A48.
SHADOW-XIII
Tycoon
Tycoon
Posts: 14275
Joined: 09 Jan 2003 08:37

Post by SHADOW-XIII »

KaCzach wrote: Here's a screenshot of the same situation under a48, and the savegame.
try without depot

however I have same problem (without depot) it's like PBS no longer works properly with presignals ... if there is PBS-presignal then train always enter crossing, even if all lights ahead are red
what are you looking at? it's a signature!
User avatar
gkirilov
Chief Executive
Chief Executive
Posts: 696
Joined: 03 May 2005 09:32
Location: Othala

Post by gkirilov »

The case with me:
NO pbs.

Code: Select all

 pre-signal(entry) -> pre-signal(combo) -> depot -> 3 pre-signal(exit)(all red) -> 3 station tracks
                    |-> pre-signal(combo) -> depot -> 3 pre-signal(exit)(1 or more green) -> 3 station tracks

If you have a depot between a pre-signal(combo) and the exit pre-signals(which all are red) and the train is heading to the depot it will ignore the red on the exits and go to the depot.
It's a huge problem if you have a lot of trains.


p.s. how can i make .png screenshot
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

gkirilov wrote:p.s. how can i make .png screenshot
You open the PCX with $IMAGE_EDITOR_OF_CHOICE, and save it as PNG. I use The GIMP (windows installers here)
EDIT: apparently "www.gimp.org" defaults to mailto: protocol.
Last edited by DaleStan on 07 May 2005 18:23, edited 1 time in total.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
User avatar
gkirilov
Chief Executive
Chief Executive
Posts: 696
Joined: 03 May 2005 09:32
Location: Othala

Post by gkirilov »

DaleStan wrote: You open the PCX with $IMAGE_EDITOR_OF_CHOICE

too much linux ??? :lol:

p.s. will there be an option to save a jpeg/png ingame (like OTTD)
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

gkirilov wrote:p.s. will there be an option to save a jpeg/png ingame (like OTTD)
If you write it ;)
[/ot]
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
User avatar
Rob
Tycoon
Tycoon
Posts: 4355
Joined: 31 Dec 2002 16:52
Location: Ven-Zelderheide, The Netherlands

Post by Rob »

It seems the Alpha 49 PBS doesn't look underneath breidges anymore. :cry:

A chrash will occur on the 23 jan 2970 when the graintrain on the right starts to move.
The goods train on the lower left thinks the tracks are clear and it reserves a path, crashing into the graintrain.

The signal pointed out by the cursor is a combined signal.
Changing that into an exit signal the goods train won't start to move immediatly, but it will still create a path and move to soon. The crash will still occur.
Attachments
TRP12.SV1
(1.01 MiB) Downloaded 187 times
newgrfw.cfg
(1.09 KiB) Downloaded 179 times
scr2.png
scr2.png (47.54 KiB) Viewed 4336 times
Wie zich gelukkig voelt met het geluk van anderen, bezit een rijkdom zonder grenzen. (F.Daels)
Image
Still the best OS around
User avatar
nicfer
Director
Director
Posts: 529
Joined: 03 May 2005 20:50
Location: Somewhere in a country called Argentina

Post by nicfer »

I tried your savegame and I get 3 crashes instead of 1. One is that you say, and the other two are of enemy trains exiting from my depots :?: , that I posted anteriorly.
User avatar
Rob
Tycoon
Tycoon
Posts: 4355
Joined: 31 Dec 2002 16:52
Location: Ven-Zelderheide, The Netherlands

Post by Rob »

SLaY3r wrote:I tried your savegame and I get 3 crashes instead of 1. One is that you say, and the other two are of enemy trains exiting from my depots :?: , that I posted anteriorly.
Enemy trains :?:
There are no competitors that have trains in my game. :shock:
If you get more crashes your PBS settings are probably wrong.
I have a few crossings with presignal setup, and those signals have to stay presignal and so you have to unable automatic conversion to PBS off.
Wie zich gelukkig voelt met het geluk van anderen, bezit een rijkdom zonder grenzen. (F.Daels)
Image
Still the best OS around
watcher99
Engineer
Engineer
Posts: 38
Joined: 08 Apr 2004 21:49

Post by watcher99 »

SHADOW-XIII wrote: if there is PBS-presignal then train always enter crossing, even if all lights ahead are red
I'm seeing the same thing in many of my games. Seems to be ignoring the fact that all platform of my station is full and then get stuck in the space between the entrance and the presignal until the top most platform is open (it always chooses this platform). A48 did not have this "feature"
User avatar
Rob
Tycoon
Tycoon
Posts: 4355
Joined: 31 Dec 2002 16:52
Location: Ven-Zelderheide, The Netherlands

Post by Rob »

Wasn't this type of behaviour supposed to be fixed ?
Attachments
scr3.png
scr3.png (25.95 KiB) Viewed 4127 times
Wie zich gelukkig voelt met het geluk van anderen, bezit een rijkdom zonder grenzen. (F.Daels)
Image
Still the best OS around
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

Rob wrote:Wasn't this type of behaviour supposed to be fixed ?
Maybe there was a train going from the middle lane to the left lane so that the other trains had to go around it?
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
User avatar
Rob
Tycoon
Tycoon
Posts: 4355
Joined: 31 Dec 2002 16:52
Location: Ven-Zelderheide, The Netherlands

Post by Rob »

Yes, looking back at the save, the oiltrain just visible on the left did that.

Never noticed it before, thought it might be something reintroduced in A49.
Wie zich gelukkig voelt met het geluk van anderen, bezit een rijkdom zonder grenzen. (F.Daels)
Image
Still the best OS around
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

In that case it's a really tough decision for the trains, whether to wait for a better path or to take the one they can get now even if it's not the shortest.
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
User avatar
krtaylor
Tycoon
Tycoon
Posts: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post by krtaylor »

I've been thinking about that, actually, in a different context - that of bidirectional stations, which I use constantly and which PBS doesn't work at all well with. I'm always having trains go out the wrong end of the station, having failed to properly reverse (or reversed when they oughtn't), and I have one particular train that always jsut stops in the station and gives up, for no reason. I could send you that game if you were interested.

Anyway, I've been thinking about how it ought to work. I believe it's possible for a train to calculate the distance to its next destination, as long as it isn't too far, right? So, in the situation where a train is stopped at a station, when it starts up and considers its next destination, it should be able to look out both ends of the station to see which way would be shorter for it to go. If it encounters an opposing signal, then of course it doesn't consider going that way, but otherwise it should be able to figure out whether it should reverse i the station, or not. Then, once it's done that, if the signal is red, it waits there for the usual timeout amount before reversing.
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

What if the other way is a bit longer but has a green signal? That's how it works at the moment.

I don't think changing the behaviour with respect to two-way signals is a wise idea. If a two-way signal is red, the train will look for a green one, and go there if it finds one. If "trains reverse at stations and at the end of line" is set, it'll look both ways for such a signal.

Changing that would break so many games that I'm not even consider doing that.

Sorry. There are some setups that PBS really doesn't support very well, and bi-di stations with "trains reverse at stations and at the end of line" set is one of them. Note that it works fine if it's set to ""trains reverse at the end of line only". It may be easier for you to add some bypass lanes to the stations in question so that trains may reverse even without that setting.
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
SHADOW-XIII
Tycoon
Tycoon
Posts: 14275
Joined: 09 Jan 2003 08:37

Post by SHADOW-XIII »

but current (a49) PBS got some bugs, am I right ?
the bug with PBS & PreSignals together not working properly
what are you looking at? it's a signature!
User avatar
krtaylor
Tycoon
Tycoon
Posts: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post by krtaylor »

Patchman wrote:What if the other way is a bit longer but has a green signal? That's how it works at the moment.
Sometimes. It doesn't seem to be very consistent.

I don't see why it would break anybody's games if the trains checked for distance, and waited for the shorter distance even if the longer distance was green, only in the specific circumstance of all of the following conditions being met:

- The train is in a station
- The train is just starting up from having been stopped (via orders, not a signal) at that station
- The signals are such that the train is permitted to leave the station in either direction, regardless of whether the signals are bidirectional or uni-directional
- "Trains reverse at stations and at the end of line" is set

You are right that universally changing the behavior regarding two-way signals is a bad idea, and would screw up a lot of things. I'm not asking for that, just for a slightly different behavior in this one specific circumstance, which I think the train can check for.
Patchman wrote:It may be easier for you to add some bypass lanes to the stations in question so that trains may reverse even without that setting.
Yes, but that's very inefficient of space, and TTD games tend to be awfully cramped.
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

krtaylor wrote:I don't see why it would break anybody's games if the trains checked for distance, and waited for the shorter distance even if the longer distance was green, only in the specific circumstance of all of the following conditions being met:

- The train is in a station
- The train is just starting up from having been stopped (via orders, not a signal) at that station
- The signals are such that the train is permitted to leave the station in either direction, regardless of whether the signals are bidirectional or uni-directional
- "Trains reverse at stations and at the end of line" is set
That would be an awful lot of work, and liable to break in odd circumstances. Detecting the signal setup of a station is a very hard thing to do. Basically, it would be doing something that only very, very few people would benefit from. You are the only one I know who builds stations that way.

Besides, when a train is approaching a red signal, it doesn't know whether it was moving before, was stopped at a station or anything else that happened before. That information is forgotten as soon as the "Loading/unloading" disappears from the status bar, which happens before it has to make a decision about which way to leave the station.
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
Post Reply

Return to “General TTDPatch”

Who is online

Users browsing this forum: No registered users and 4 guests