Uwe wrote:Ok, thanks to you guys, I understood it now I don't know yet what examples will be in, so if anyone has some really clever restriction for a certain task, post it somewhere and maybe it'll get included at some point.
If you haven't already gotten it down already, I'd suggest writing something about using route-restrictions for filtering high and low speed traffic on big trunk lines.
Similar for filtering high-powered engines on steeper routes, and lower powered engines for that long-as-heck-snaking-route-around-the-mountains.
Alright, I finally got round to start writing a guide on routing restrictions. A work-in-progress version can be found at http://www-user.tu-chemnitz.de/~dou/ttdx/alpha.html. It is nowhere near finished, though. I won't be able to continue working on it over the Christmas days, so I'd doubt there will be further updates this year. Could a patchdev (JGR?) please confirm that the information given in the guide so far is correct?
I must say that your guide is very good.
I can only spot one minor error:
These are the valid NW signals. For the diagonal rails (leftmost one and second from right), they face towards the left (west), for horizontal tracks they are the ones for the upper (north) track facing east, for the vertical tracks it's the one on the lefthand (west) track facing upwards (north).
I was finaly able to spot a bug which I had the feeling it is there but somehow never captured.
In below screen, the signal leading into the tunnel, for which train 58 has reserved the track has the restrictation:
Order of current station is not Sundwood
or
Order of next station is not Sundwood
As you can see, the current order is Sundwood, but somehow it still reserves the track to that signal, where as the correct route should be down the electrified line running in parallel trough a signal without restrictions.
That's because boolean logic dictates that statement will be true...
The station of current order is Sundwood, and hence that part is false.
The station of next order is Bristol Victoria, that part is true (not Sundwood == true)
As far as I read it, that should mean it's a valid option for the train to choose.
Try using "And" instead of "Or", and that should solve the problem (in this case, at least)
Edit: After a little testing (10 minutes running the scenario) it seems to work fine.
Perhaps a new restriction would help as well? Adding one for electrification, so as to prevent electrified trains trying to go down non electrified routes?
Scautura
Duct tape is like the Force - it has a Dark side, a Light side, and it holds the universe together.
Just reverse the test of the item you want to negate. (eg, test "<= 100" instead of ">100", or "is red" instead of "is green".)
And "electrified rail"/"not electrified rail" is not an interesting test. The test is attached to the signal, not the train, so you'd just be testing a constant.
How about "Powertrain"? (Or however you'd like to phrase it) e.g. "is not electric" to prevent an electric train going down the wrong alley and getting stuck on a non-electrified track?
Oh poo... Now I'm repeating myself... As you replied, I could cover that as "Total HP of non-electric trains is 0"
Scautura (Now I just have to learn ASM and "make it so" )
Duct tape is like the Force - it has a Dark side, a Light side, and it holds the universe together.
a suggestion for the guide Uwe, ive used depot of current order on trains that need to go through a specific platform on a station so they dont terminate and have to find their way elsewhere. if they arent ordered to stop at the tation.
I just started using the routing restrictions signals so I may be missing something, but is it true that only the default goods are listed in the Cargo list? Because I was missing paper in there. Maybe a later version of this patch could read cargo's from GRF?
Great patch anyhow, it already made my game a much smoother.
I heard the stories that they tell of how they labored for this company which sold it's soul to hell
A screenshot for more clarity.
The two signals I circled with red are "cargo is not wood" and "cargo is wood or goods". I'd like to be able to change the second one to "cargo is not paper"
Attachments
SCR2.gif (339.42 KiB) Viewed 755 times
I heard the stories that they tell of how they labored for this company which sold it's soul to hell
m3henry wrote:for instance 'Train cargo' does it ask for the train's cargo capacity type or current cago loaded
The trains cargo capacity type, so if it has empty coal hoppers and it says 'cargo=coal' the train will be allowed through.
Posted by Pookey...
For Information on TTD Patch Click Here
For Information on Building a Network (FAST) Click Here
For Information on Building a Network as a Challenge (SLOW) Click Here
For Help on the Different Signalling Types Click Here
Before Asking a Question, Please use the Forums Search Function Here and if you do Ask a Question, Please Provide as much Detail as Possible.
If you do not get a Crash Log when TTDPatch Crashes, Follow the Olly Debug Instructions Here and Post the Resulting Screenshot with your Problem.
Squishycube:
This will be fixed in the next nightly. (Commit r1543)
If it still doesn't work or you find any bugs, please post; although it should work fine.
Thanks for the quick action JGR. It doesn't really work though, see screenshot.
Extra notes:
If "Paper" is selected, "Food" is displayed. If "Food", "Beer" or "Fish" are selected, "Cannot remove obstacles on land" is displayed, like in the screenshot.
I didn't test whether the signal actually works for Food when I select Paper, but it didn't work for Paper.
Also, as not to clutter the Nightly discussion thread: I love the new support for enhanced tunnel tracks in a direction not perpendicular to the tunnel direction! I got to use it immediately.
Attachments
Hehe
SCR1.gif (348.45 KiB) Viewed 726 times
I heard the stories that they tell of how they labored for this company which sold it's soul to hell
I don't know about you, but I use the one on this page: http://www.ttdpatch.net/newgrf.html
New cargo types (v0.12) last updated Sep 15 2005 01:34:48 GMT.
I think I started using the newcargo's later then that date.
I heard the stories that they tell of how they labored for this company which sold it's soul to hell