Live data from Hacker News

Traffic Simulator

traffic-simulation.de

131–140 of 143 posts

Re: Traffic Simulator

#131

Earlier quoted context omitted.

Having watched way too many Biffa vids. The way to fix that is to create/force dedicated turning lanes. There is a plugin that lets you manage it. It should be built in. If you do not have the plugin sometimes you can fix it by changing the number of lanes on both sides of an interchange (what biffa calls lane mathematics). Basically if you have 3 lanes merging into 3 you need a 6 lane on the other side. If you have…

I have tried this method, and it does indeed work (TM:PE is the mod I think you are talking about). But at some point the sims have to change lanes to get into the correct one to turn, unfortunately they wait until the last possible moment to switch, causing huge traffic issues. On top of that the sims still prefer a single lane even if you do the lane mathematics. A 6 lane freeway, splitting to a 2 lane and 4 lane d…

TM:PE allows to forbid lane switching close to the intersection forcing them to pick a lane earlier at higher speed and not break the flow.

To do so use the yellow+red circles tool, pick a road node and press Shift+S. Repeat until traffic goes smoothly.

Demo https://youtu.be/ex2PfNktryk?t=1260

Re: Traffic Simulator

#132

Earlier quoted context omitted.

I have tried this method, and it does indeed work (TM:PE is the mod I think you are talking about). But at some point the sims have to change lanes to get into the correct one to turn, unfortunately they wait until the last possible moment to switch, causing huge traffic issues. On top of that the sims still prefer a single lane even if you do the lane mathematics. A 6 lane freeway, splitting to a 2 lane and 4 lane d…

TM:PE allows to forbid lane switching close to the intersection forcing them to pick a lane earlier at higher speed and not break the flow. To do so use the yellow+red circles tool, pick a road node and press Shift+S. Repeat until traffic goes smoothly. Demo https://youtu.be/ex2PfNktryk?t=1260

This methods does not always work if the intersections are too close to each other in some small edge cases. You usually just need to space things out more which will in turn tear up part of your city.

Another method he uses with that mod is to sometimes not allow changes anywhere on the road. Then he forces them to pick a lane when they cross an intersection that connects to the road.

Also along main roads with lots of intersections he has all the feeder roads yield and tells all the intersections to go on through.

Re: Traffic Simulator

#133

Earlier quoted context omitted.

I have tried this method, and it does indeed work (TM:PE is the mod I think you are talking about). But at some point the sims have to change lanes to get into the correct one to turn, unfortunately they wait until the last possible moment to switch, causing huge traffic issues. On top of that the sims still prefer a single lane even if you do the lane mathematics. A 6 lane freeway, splitting to a 2 lane and 4 lane d…

TM:PE allows to forbid lane switching close to the intersection forcing them to pick a lane earlier at higher speed and not break the flow. To do so use the yellow+red circles tool, pick a road node and press Shift+S. Repeat until traffic goes smoothly. Demo https://youtu.be/ex2PfNktryk?t=1260

This is another thing they do in Washington D.C. that really annoys me. GPS tells me that I need to turn left ahead, no problem I work my way over to the far left lane. However when I get near the intersection it turns out I needed to have turned into parallel side street a quarter mile back. Other times those side streets are really long freeway ramps or turn off before the left turn. Other times they stop traffic at the intersections and you have to turn left across multiple lanes that don’t turn left. It’s a wildcard every time.

Re: Traffic Simulator

#134

You don't need AI based non linear simulations to see what's going on. The simulation shows that traffic can be described in much simpler terms. You'll notice that traffic is actually a longitudinal wave that travels through the system. The cars are particles and traffic is crests in the wave. The wave usually travels backwards against the direction of the cars. The worst type of traffic is when you get a standing wa…

One way to dampen the wave is to leave a lot of space between you and the car in front of you to keep a constant speed.

I do this in tunnels with heavy traffic where I know someone can merge in front of me. I keep a large space so I can prevent breaking and keep a constant speed. I get to the other end at the same time but everyone behind me gets a benefit from my constant speed instead of speeding up and breaking (wave).

Re: Traffic Simulator

#135
post #44

Needs an American mode where people don’t know they should stick to the right-most lane, unless passing.

Unless you are approaching a red light with a right turn, and intend to go straight. I wanted to turn, now you're in the way damnit!!

Re: Traffic Simulator

#136

Earlier quoted context omitted.

I have tried this method, and it does indeed work (TM:PE is the mod I think you are talking about). But at some point the sims have to change lanes to get into the correct one to turn, unfortunately they wait until the last possible moment to switch, causing huge traffic issues. On top of that the sims still prefer a single lane even if you do the lane mathematics. A 6 lane freeway, splitting to a 2 lane and 4 lane d…

TM:PE allows to forbid lane switching close to the intersection forcing them to pick a lane earlier at higher speed and not break the flow. To do so use the yellow+red circles tool, pick a road node and press Shift+S. Repeat until traffic goes smoothly. Demo https://youtu.be/ex2PfNktryk?t=1260

Oh yeah! That is usually what I end up doing, but even as you forbid lane switching on the nodes preceding the turn, the sims still will all switch lanes at the node closest to the turn which does not have lane switching forbidden. Causing the backup to happen, not at the exit, but 3-4 nodes before the exit! Lol, I don't know how to solve it

Re: Traffic Simulator

#137

Earlier quoted context omitted.

TM:PE allows to forbid lane switching close to the intersection forcing them to pick a lane earlier at higher speed and not break the flow. To do so use the yellow+red circles tool, pick a road node and press Shift+S. Repeat until traffic goes smoothly. Demo https://youtu.be/ex2PfNktryk?t=1260

Oh yeah! That is usually what I end up doing, but even as you forbid lane switching on the nodes preceding the turn, the sims still will all switch lanes at the node closest to the turn which does not have lane switching forbidden. Causing the backup to happen, not at the exit, but 3-4 nodes before the exit! Lol, I don't know how to solve it

A good way to handle that is to make sure they pick their lane at the start of the road (if you can). You do that by having no lane switching except at entrance intersection. Does not always work but does sometimes. Another trick he has used sometimes is 2 lane picking. Basically you can only 1 lane at a time. The thing will sometimes get confused and try cutting across 3 lanes of traffic holding up all 3 lanes. He usually stacks 2-3 of the 1 lane switches after each other and that sometimes clears it up.

Re: Traffic Simulator

#138
post #130

Earlier quoted context omitted.

In rural areas where this is common there isn't traffic. Thus the politeness doesn't cost you anything. Also in those rural areas it is somewhat common for someone with the right away to have a reason to drive much slower than the speed limit and so giving up your right away makes things better for everyone - the other person doesn't have to try to pass you latter. When there is traffic you giving up the right away i…

> Also in those rural areas it is somewhat common for someone with the right away to have a reason to drive much slower than the speed limit Why does living in a rural area make someone more likely to have a reason to drive below the speed limit?

Because they often are farmers with equipment in tow that is instable at speed. 20mph (40kmh ?) Is too fast for a hay wagon.

Re: Traffic Simulator

#139

Cities Skylines is very nice for such traffic simulations. https://www.youtube.com/watch?v=yITr127KZtQ ( https://news.ycombinator.com/item?id=17182008 ) ( https://www.reddit.com/r/CitiesSkylines/comments/7h6zr0/traf... ) https://www.youtube.com/c/BiffaPlaysIndie/search?query=lane+... This is frequently posted here on HN. E.g. https://news.ycombinator.com/item?id=25632642 .

Unfortunately CS suffers from many "dumb computer tricks". The pathing algorithm is open loop, often causing huge 1 lane jams even though it would be more efficient for through traffic to use other less congested lanes. You end up needing to create crazy unrealistic spaghetti interchanges in order to trick the AI into behaving

about the one lane backups, one method that i employ are 3 lane roads, all only lanes and by use of TM:PE, say do not switch lanes for 5 points before intersection, forcing traffic to use all lanes.

Re: Traffic Simulator

#140

Cities Skylines is very nice for such traffic simulations. https://www.youtube.com/watch?v=yITr127KZtQ ( https://news.ycombinator.com/item?id=17182008 ) ( https://www.reddit.com/r/CitiesSkylines/comments/7h6zr0/traf... ) https://www.youtube.com/c/BiffaPlaysIndie/search?query=lane+... This is frequently posted here on HN. E.g. https://news.ycombinator.com/item?id=25632642 .

BTW the M1 Macs run Cities Skylines beautifully through Rosetta 2. I lowkey wanted to try it for years and now on the M1 Air I can and the game is just amazing.

I have a base spec 2017 iMac and it runs City: Skylines smoothly. It's not a particularly hungry game.
Post reply on HN