oneway road direction

martinvk

since 10 Aug 2002
When isfreeway is add in the config.txt of a road, it becomes a oneway road. What determines the direction of traffic flow on those roads?
When placing track, the left and right side is determined by the direction the track is placed, that is if track is placed from A to B, the right side for determining the signal placement is as shown.
L
A====>B
R

When I place a oneway road from A to B, traffic flows from B to A which is the reverse of what I expected based on the direction the road was placed. Can that be changed?
does the mesh itself have to be modified in some way?
 
When isfreeway is add in the config.txt of a road, it becomes a oneway road. What determines the direction of traffic flow on those roads?
When placing track, the left and right side is determined by the direction the track is placed, that is if track is placed from A to B, the right side for determining the signal placement is as shown.
L
A====>B
R

When I place a oneway road from A to B, traffic flows from B to A which is the reverse of what I expected based on the direction the road was placed. Can that be changed?
does the mesh itself have to be modified in some way?
there are already 1 Way roads in Trainz on the DLS look for Divided Highway. there are Multiple 1 way roads if you search for that term...
 
You would think it would but it doesn't play nice with the tag istrack, even if that is set to 0, besides it belongs to Regions and not "road" splines
 
The properties of road traffic are affected by the configs of Regions, road splines and the vehicles, so I think all 3 things need to be considered when it comes to traffic direction. Of all the tags supported by those asset types, I could not see any that directly related to the direction of traffic flow.

The only tag that seemed to have some possibilities in this regard was “on-the-right”, hence my question. If that doesn’t work for any reason, or you don’t want to consider it, what else is there? Lay the 1-way road splines in the opposite direction? Some sort of script that affects the traffic animation?
 
OnTheRight is a global tag that is only applied to a Region object. It affects all traffic in a route, causing left or right hand driving. I can always learn to place highways backwards, from destination back to the origin so that the traffic flows in the proper direction in Driver. Meanwhile, it is a train sim so my roads are only background filler to give the maps a more lived in look and during design to provide reference points for the track adjusting since they are all placed by TransDEM when the map is created.
I wonder why Trainz traffic behaves that way?
 
Australian developers determined the road direction way back in Trainz early days and that's built into the code. When dragging a limited access type road, we have to drag them in the opposite direction for right-hand driving.
 
N3V partners with the developers of junxions
Wonder how long it will be before they start to expand and add things like railways. And when some complain that the trains are not behaving like prototypes, they will come back and say "its a road simulator, the trains are only background fill"
 
Is that because it is easier to code that way, or a conscious decision to limit user modification since that would introduce the need for more error checking because users will always find a way to enter the wrong type of input?
I think it was the lazy, easy to code way.

User input can be controlled by data-type checking. Data-type checking built into a form or in our case the code when it processes the config.txt can block incorrect input. Putting in an alpha character, or an incorrect value, such as a non-binary number in a binary choice is easily blocked or errored out. I'm currently working on a database for someone and have to deal with this which is why I sounded like a "smart programmer".
 
Back
Top