Country Selector Country Selector
  • United States
  • Australia
  • Ceska Republika
  • Danmark
  • Finland
  • France
  • Deutschland
  • Hong Kong
  • Hungary
  • India
  • Italia
  • Japan
  • Nederland
  • New Zealand
  • Norge
  • Polska
  • Russia
  • Singapore
  • South Africa
  • South Korea
  • Espana
  • Sverige
  • Taiwan
  • United Kingdom
SimCity Quick Links
  • SimCity 4
  • SimCity Creator
  • SimCity Societies
  • SimCity 3000™
  • SimCity 2000™
  • SimCity Classic
Register
Login
Help

SimCity

Available Now!
Newsletter Signup
Contact me about Electronic Arts products and news to be the first to hear about new gameplay features and get access to behind the scenes content and events.
Privacy Policy
Required field
The email address is invalid. It should be a valid, full address, e.g. user@domain.com.
MM
DD
YYYY
Successfully Submitted
Follow @SimCity

Main menu US

  • Game Info
    • What is SimCity?
    • Depth of Simulation
    • True Multi-City Scale
    • City Specialization
    • Multiplayer
    • Live Service
    • Franchise History
    • FAQ
    • Game Manual
    • Server Status
  • News
    • Blog
    • Articles & Accolades
  • Community
    • Facebook - Latest Content
    • Twitter - Join the Conversation
    • YouTube - New Videos
    • Forums - Fan Community
    • SimCityEDU - Re-imagine Education
  • Media
    • Images
    • Videos
    • Downloads
BUY NOW

SimCity Update 6: Streetcars

Mar 12, 2013
Lead Gameplay Scripter Guillaume Pierre

Hello mayors! We’ve noticed there have been a lot of questions about how public transit works under the hood, so today I’m going to lift that hood.

Let’s look at a city with a simple streetcar loop going through it. There are a few stops and a depot, and some cars are going from stop to stop, picking people up and dropping them off.

Now let’s look at the pathing data for the “pick up” destination. This destination becomes available to the streetcars when Sims are waiting to be picked up at a stop.

The numbers with “<- X ->” represent how many people are waiting at stops on that particular road segment, while the other numbers represent the distance to the destination minus the number of people waiting.

Going clockwise and starting from the top left, you can see there are 10 people waiting, then 15, then 5, then 1, then 48, then 21.

When a streetcar leaves the depot, it’s going to make a left turn, as there’s less “work” to get to the 21 people who need to be picked up, since the stop is very close and the 48 people who are waiting on the right are too far comparatively.

If there was a situation where 300 people were waiting at the first stop to the right of the depot, and only one was waiting on the left, then the streetcars would make a right turn as they exit every time until everyone in the crowded stop is picked up. Then the next streetcar would make a left turn to pick up that one person.

There are a couple of obvious issues with this approach though:

  1. If there are 300 Sims waiting for the streetcar on the other side of the loop for example, they may have to wait a long time for the vehicles to make their way. To remedy this problem, we’re looking into make crowded stops “high priority pick-up” destinations that transit vehicles will go to first.
  2. Another problem is that, well, all the vehicles that are in the same area and want to go to the same destination type will all follow the same path, resulting in clumping and general traffic problems. We’re looking into various ways to improve the situation so traffic will spread out better.

You can also see that the data regarding streetcar destinations is only populated on the avenue with streetcar tracks. Regular roads are not part of the calculation (it says “inf” for “infinite” in the picture.)

Now let’s talk about what happens when a streetcar makes a stop. First, we try to drop off as many people as possible, based on the type of destinations located near the stop (like workplaces, shopping, home, school, etc). Then we pick up people based on what types of destination are available near other streetcar stops. Finally, we decide where the streetcar should go next.

If there is still room in the streetcar, then there’s a 75 percent chance we’ll send it to pick up more passengers. That said, if there’s nobody needing to be picked up at any stop on the line, we’ll make the streetcar drop off passengers at the first “DropOffAtX” destination, based on where the passengers want to go.

And then if that destination is not available, we’ll make the streetcar go back to the garage. (Streetcars do not use the “Trade Pick Up” destination, that’s only for buses, ferries & other vehicles that can go to other cities to pick up commuters and tourists.)

In 25% of the cases if there’s still room in the streetcar, as opposed to 100% of the time if it’s full, we’ll send the vehicle straight to a “drop off” destination.

Finally, if the streetcar is empty, there’s a 25% chance that it will go to the closest next stop on the line, and a 75% chance it will attempt to pick up passengers. And if all the stops have been visited recently, or there is nobody waiting to be picked up, then it will go back to the depot.

Comments

This is all fascinating, but

Permalink Submitted by Mahserg78 on Mar 12, 2013

This is all fascinating, but can you maybe work on getting the cars and buses and other road vehicles to stop acting so dumb? Example.. http://www.youtube.com/watch?v=zcEaHT9mt-Y Just watch the video. It very clearly shows what I'm talking about.

  • Log in to post comments

Oh yeah, and FIRST!! ;)

Permalink Submitted by Mahserg78 on Mar 12, 2013

Oh yeah, and FIRST!! ;)

  • Log in to post comments

The only thing that video

Permalink Submitted by BadKen on Mar 12, 2013

The only thing that video demonstrates is that sims take the shortest path when travelling, and we already know that. They do not have any kind of optimal pathing algorithm. If you set up a crappy shortest path for them to follow, you're going to have traffic problems.

  • Log in to post comments

The point of the video is to

Permalink Submitted by Mahserg78 on Mar 12, 2013

The point of the video is to show how poorly the AI is in this game. When is real life would EVERY SINGLE CAR take the same congested dirt road, when there is an OBVIOUSLY FASTER (but slightly longer) route? This kind of stuff happens all the time not matter how "good" you plan your road layout. Just look at how every vehicle in the game acts. It's comical to watch an ambulance or firetruck or garbage truck run its routes.

  • Log in to post comments

Then use some creativity and

Permalink Submitted by Kaine7 on Mar 13, 2013

Then use some creativity and find a way to solve the "dumb". They arent real humans. There are ways to cut off roads and keep transit traffic separate from other traffic

Also, the side of the road that is crowded can be improved bybputting stops on the opposite side instead of all on the same side or randomly placed.

Sure there are some traffic problems once in a while that don't make sense, but you were given enough tools to work it out. When you make a change, you also have to wait till sims are done with their working day to see the result.

To me, youre just as dumb as what youre trying to complain about.

  • Log in to post comments

Pathfinding is one of those

Permalink Submitted by Targonis on Mar 13, 2013

Pathfinding is one of those BASIC things that any computer science major in college would have been exposed to. There would also be common issues, such as "what is the average length of time it takes" for each road segment based on the history, and that would be data for the pathfinding algorithm. This is all VERY simple stuff. There COULD be a method where some will always take the shortest path, compared to the fastest as a way to avoid having everything ending up on the same sections of road to get from one place to another.

There really are some issues that need to be resolved, such as emergency vehicles getting priority, and when you see cars driving in loops, or things like restricted access roads for emergency vehicles to take.

  • Log in to post comments

Correction* You will have

Permalink Submitted by aeonx1366 on Mar 13, 2013

Correction* You will have traffic problems no matter what. For example, if the only entrance to your city is a road in the corner of your city zone, then obviously the congestion will stem from there. Stupid game logic -> stupid game to play. Needs to be fixed.

  • Log in to post comments

They should not path along

Permalink Submitted by Epinnoia on Apr 14, 2013

They should not path along the shortest path, they should path along the least costly path. Cost can include all sorts of things -- distance, congestion, average time to traverse, etc.

Perhaps there could be a new building -- the public radio station. When you own the public radio station, the station's helicopter's will alert all driving sims to AVOID known congested areas.

  • Log in to post comments

I would add that I think

Permalink Submitted by Epinnoia on Apr 14, 2013

I would add that I think 'average time to traverse' could be a statistic kept for every road and/or road segment. It could be the average for the past XX hours. Before committing a sim on a particular path, the game should be able to easily determine the TRUE cost for multiple paths, and adjust their pathing as appropriate.

As a formally educated computer programmer, I can tell you that many if not most computer programmers know how to program an algorithm to lead a mouse out of a maze. And that seems to be as far as the SimCity programmers went with it. My suspicion is that they will hopefully add a little more complexity to the sims than they did for the mouse in the maze when they were in college/university.

  • Log in to post comments

Thanks, but please use hi-res

Permalink Submitted by Slartibartfast99 on Mar 12, 2013

Thanks, but please use hi-res images next time, as it's impossible to read what's on the embedded images to actually follow with the text.

  • Log in to post comments

If I am reading this

Permalink Submitted by Shilohen on Mar 12, 2013

If I am reading this correctly, then it sounds like to make the most use of the streetcar logic in its current state one should have streetcar stops only in specific zones -- i.e. stops in purely commercial or purely industrial. Otherwise the streetcars will get confused with dropping passengers off in mixed zones of r/c/i. Is this correct? Or are commercial zones that have no goods not considered in the destination list for a stop?

  • Log in to post comments

Interesting. However shouldnt

Permalink Submitted by randommonicle on Mar 12, 2013

Interesting. However shouldnt they all just follow circuits that you can set up maybe?

  • Log in to post comments

Please correct the image

Permalink Submitted by ThePoark on Mar 12, 2013

Please correct the image quality.

  • Log in to post comments

Wouldn't it make a lot more

Permalink Submitted by TGxTigerXtrm on Mar 12, 2013

Wouldn't it make a lot more sense to just have the streetcars act realistic and go from stop to stop one at a time along the tracks?

  • Log in to post comments

I agree, a simple schedule or

Permalink Submitted by vjludovico on Mar 12, 2013

I agree, a simple schedule or preset route would make all this moot.

  • Log in to post comments

You can't, because the

Permalink Submitted by Aarkreinsil on Mar 12, 2013

You can't, because the passengers dont have any destination. They just hop on to the streetcar because it is close to them. Then the streetcar drops them off in a place where (hopefully) there are jobs or shopping spots, and then the sims are dumped out, trying their luck to find a store, or some work for the day.

If you could set a circle route, they would just dump off the sims at the next stop, where they would wander around aimlessly, in search for the next best shopping experience or whatever.

  • Log in to post comments

Yeah this would be much

Permalink Submitted by laktat on Mar 13, 2013

Yeah this would be much appreciated. Don't know why you need a specific logic where the streetcar (or busses, too) should go.
Simply
- calculate one route all vehicles should follow
- show this route as a new map or extend the current streetcar/bus map...
- have an algorithm which lets vehicle B wait if there is a vehicle A infront of it that they don't clump up.
- don't allow streetcars to switch/toggle the direction "magically". If there is e.g. a circle, one street car goes around clockwise the next might go around counter clockwise, but they will not change direction...

All in all, the placement of streetcar/bus stops should give the player the ability to directly control the pathing. I don't want some fuzzy logic where streetcars do go to the next most crowded stop or what not... thats not realistical and even doesn't make any sense...

  • Log in to post comments

Did you guys even play the

Permalink Submitted by Donnyp02 on Mar 12, 2013

Did you guys even play the game before release?

  • Log in to post comments

Ha, I thought the exact same

Permalink Submitted by GuySmiley12 on Mar 12, 2013

Ha, I thought the exact same thing. How is it that problem #2 is occurring to them just now?

  • Log in to post comments

Second Slartibartfast's

Permalink Submitted by Egnix on Mar 12, 2013

Second Slartibartfast's comment. Can't read the numbers you're referring to.

  • Log in to post comments

One problem I've noticed with

Permalink Submitted by JoshTumath on Mar 12, 2013

One problem I've noticed with that buses from another city. When they come to the bus stops in my city, all of them stick together like a train. They don't spread out across the whole city and spread the load of passengers.

  • Log in to post comments

That's because the AI in this

Permalink Submitted by Mahserg78 on Mar 12, 2013

That's because the AI in this game is broken...BADLY! Just like a lot of other things in this game. It looks like they needed at least six more months to test and polish before releasing. Unfortunately, EA doesn't work that way. They set a release date, and the game gets released on that date no matter what. This isn't the first time EA has shipped an OBVIOUSLY unfinished game. It's actually par for the course for them. Unfortunately, most of the industry is doing the same thing. It's just that EA is the biggest and worst offender. That is why gaming is in the state that it is.

  • Log in to post comments

I don't think the AI is

Permalink Submitted by lPHOENIXZEROl on Mar 13, 2013

I don't think the AI is broken, they'd have to actually have AI to be so.

  • Log in to post comments

lol so true. All the "agents"

Permalink Submitted by aeonx1366 on Mar 13, 2013

lol so true. All the "agents" in the game are completely mindless. (transport, workers, shoppers, tourists, everything)... what's the point of calling it a simulation mose well call it ZombieCity instead of SimCity.

  • Log in to post comments

The screenshot quality is

Permalink Submitted by BryanChung84 on Mar 12, 2013

The screenshot quality is terrible. :(

  • Log in to post comments

Cool story, bro. Now fix the

Permalink Submitted by BiscoMix07 on Mar 12, 2013

Cool story, bro. Now fix the game, please?

  • Log in to post comments

interesting reading, but come

Permalink Submitted by RasmusInS on Mar 12, 2013

interesting reading, but come on don't give examples based on low res and small size images, That is just to stupid.

  • Log in to post comments

As a former game developer

Permalink Submitted by aeonx1366 on Mar 13, 2013

As a former game developer and former urban designer in real-life as well as being avid simcity fan, I am extremely disappointed with the transport decision logic within SimCity 2013, The 'sims' simply do not act anything at all like real people would in a city in regards to how they would travel between places. It honestly needs to be improved, one of the many factors of why I think this game was released too early.

Further, your proposed solution to help bandaid one of the many transport issues in the game is totally insufficient! What you need to do to fix the problem is improve the decision logic for choosing a route, I think we can assume the sims have GPS installed in their cars in this modern age...

  • Log in to post comments

One of the Major Problems

Permalink Submitted by aeonx1366 on Mar 13, 2013

One of the Major Problems with the public transport (Buses, Streetcars) at the moment is that they all freaking leave shortly after each other and follow each other around. I noticed that you left this off in your example!! (On purpose?)

So Streetcar 1 (in the lead) goes to pick someone up, Streetcar 2 (behind it) sees that the same stop requires attention follows it, except then streetcar 1 picks up everyone from Stop 1 and Streetcar 2 picks up no-one. If Stop 2 is in the opposite direction to Stop 1 from the start location, the Streetcar 2 has just wasted the entire time it took to travel from start location -> Stop 1.

Clearly what should happen is the following (What the AI needs to do!) aka I AM ABOUT TO TELL YOU EXACTLY HOW TO FIX YOUR GAME!:
Streetcar 2 upon leaving should consider that Streetcar 1 is on the route to Stop 1 and will pick up the passengers from there, then make a decision if it is still appropriate to go to Stop 1 or if it is better to go to Stop 2.

  • Log in to post comments

Can you up the quality of the

Permalink Submitted by Squarebox on Mar 13, 2013

Can you up the quality of the images. Can't read any of the numbers you are talking about. Also i'm assuming this logic for the streetcar ALSO applies to buses?

  • Log in to post comments

Dear Maxis Team,

Permalink Submitted by DanbizBF3 on Mar 13, 2013

Dear Maxis Team,
I think my idea is a better solution to resolve the traffic problem because i think you guys know that the game cause always traffic. Why dont you add an radio central? U can only build it when u have the traffic upgrade and it would keep informing the sims about where is too much traffic so the traffic can fluid better and causes less traffic infarcts. Thanks yours Danbiz

  • Log in to post comments

That would be cool indeed

Permalink Submitted by Pirouette78 on Mar 13, 2013

That would be cool indeed that the AI of the sims would change with some building you would add! :)
GPS station: shortest path to fastest path
Radio station: avoid traffic
and so on...

  • Log in to post comments

Great... But meybe you can

Permalink Submitted by mlsergey on Mar 13, 2013

Great... But meybe you can fix the updater, so people can finally start to play the game....

  • Log in to post comments

Never [sadly] took advantage

Permalink Submitted by BlackDragonAJ89 on Mar 13, 2013

Never [sadly] took advantage of the streetcar mod in 4, so streetcars are a new "toy" for me...

But still, the path-finding in this game is well, idiotic. Hopefully after the servers are fixed, they can get to work fixing this problem with all the transit and vehicles... It irks me to see buses make illegal U-turns (for Californian standards even!) and watch a sim drive in a loop trying to get to work.

Of course, let's not forget some of the issues in 4 and how sims could get stuck in loops... =/ Hopefully someone can fix this recurring problem of the franchise!

  • Log in to post comments

No, no,no Guillaume, the

Permalink Submitted by gudlbua on Mar 13, 2013

No, no,no Guillaume, the correct answer is: WHO GIVES A SHIT?
Streetcars are the LEAST important problem of this game. Fix pathing, fix population number display, fix servers, fix RCI interconnections, fix cheetah speed, fix map sizes, fix the running out of water and THEN tell us how you simulate dogs pooping into your street and how you do streetcar algorithms.

  • Log in to post comments

Had 1 city 140k population.

Permalink Submitted by Gerrox on Mar 13, 2013

Had 1 city 140k population. Nice size population had all major forms of transportation covered. Worst spots: #1 Entering my city-Road block for miles. Don't know why that's the case when I had a fully upgraded airport and train station. #2 Pathway to my industrial area, I had 5 ways of getting to my industrial area 2 of the roads almost never used 2 of the roads had street car accessibility but still backed up 100%. With having a lot of mass transit covered this shouldn't be an issue but it is...

  • Log in to post comments

I believe that people would

Permalink Submitted by jackrussell511 on Mar 13, 2013

I believe that people would be better served by stating their concerns politely. Mr. Pierre took the time to explain how streetcar pathing works, which, I think, gives people a chance to provide feedback. I'm sure he reads this blog and it must be extremely difficult for him to work for people who talk to him this way.

  • Log in to post comments

Some seriously aggressive

Permalink Submitted by hardcaslte on Mar 13, 2013

Some seriously aggressive people in this comment thread, like everyone here is apparently an accomplished software developer or something. I think a little too much bitching for my taste

  • Log in to post comments

"There are a couple of

Permalink Submitted by deathmullet76_1... on Mar 13, 2013

"There are a couple of obvious issues with this approach though:

If there are 300 Sims waiting for the streetcar on the other side of the loop for example, they may have to wait a long time for the vehicles to make their way. To remedy this problem, we’re looking into make crowded stops “high priority pick-up” destinations that transit vehicles will go to first.
Another problem is that, well, all the vehicles that are in the same area and want to go to the same destination type will all follow the same path, resulting in clumping and general traffic problems. We’re looking into various ways to improve the situation so traffic will spread out better."

Thank you for acknowledging these problems - really hoping you guys actually patch this game. And yeah - use HIGH RES pictures.

  • Log in to post comments

ƒuck origin, they're trying

Permalink Submitted by Cpypcy_1355811348 on Mar 13, 2013

ƒuck origin, they're trying to sell me games i already own, trying to trick me to buying same dlc for same game i already own, lying about offline play for simcity...

  • Log in to post comments

is this your "realistic" city

Permalink Submitted by bthomaspoa on Mar 13, 2013

is this your "realistic" city simulation, really?

where in the world do you have a mass transit system where vehicles choose to go to stops that have more passengers waiting?

  • Log in to post comments

Who cares about streetcars

Permalink Submitted by fruv_1362765023 on Mar 13, 2013

Who cares about streetcars when all I get when trying to load my city is "Unable to load city at this time. Please try again."

  • Log in to post comments

Who cares about streetcars

Permalink Submitted by fruv_1362765023 on Mar 13, 2013

Who cares about streetcars when all I get when trying to load my city is "Unable to load city at this time. Please try again."

  • Log in to post comments

I find it interesting to read

Permalink Submitted by Zygoptera on Mar 14, 2013

I find it interesting to read this. I have until now planed my city while thinking people would act almost as one could expect from the mindless masses in real life. There people know where to go, and go on the bus or street car that are planed to go there. Now I realize that people are going on the first bus or street car available, telling the driver if they are going shopping, working or to any residential house, and the driver goes to the nearest stop offering it.

I would like to see my SimCity people know where they where going, and travel accordingly. And that the buses and streetcars followed a planed path.

When I think a little further I see that I have been thinking like a SimCity citizen when I bought the game. I logged on to the Internet and told my computer I want a game. It took me to the newest all Internet game, and I was happy for until my money was gone. Next time I want a new game, I will tell my computer that I want a game that works as expected.

  • Log in to post comments

Don't know why you need a

Permalink Submitted by laktat on Mar 15, 2013

Don't know why you need a specific logic where the streetcar (or busses, too) should go.
Simply
- calculate one route all vehicles should follow
- show this route as a new map or extend the current streetcar/bus map...
- have an algorithm which lets vehicle B wait if there is a vehicle A infront of it that they don't clump up.
- don't allow streetcars to switch/toggle the direction "magically". If there is e.g. a circle, one street car goes around clockwise the next might go around counter clockwise, but they will not change direction...

All in all, the placement of streetcar/bus stops should give the player the ability to directly control the pathing. I don't want some fuzzy logic where streetcars do go to the next most crowded stop or what not... thats not realistical and even doesn't make any sense...

  • Log in to post comments

I want to set up the lines /

Permalink Submitted by CrownsEnd on Mar 31, 2013

I want to set up the lines / numbers for myself. if the streetcar/bus company isnt capable, their business gets socialised / nationalised and town hall will do their jobs, too. that feature is just missing - like one way roads.

  • Log in to post comments
More

ADD NEW COMMENT

You must be logged in to leave a comment.

Login Register
ESRB Video Game Rating
Mild Violence Mac Version Not yet Rated by the ESRB Visit www.esrb.org for rating information
Popular Platforms
PC Games
Wii
Xbox
PS3
iPhone
iPad
Mobile
Popular Genres
Racing
Shooting
Puzzle
RPG
Kids
Strategy
Simulation
Sports
EA.com
Video Game News
Search Games
Register My Game
Investor Relations
Support
Customer Support
Online Service Updates
Patches & Updates
Forums
Billing FAQ
  • Jobs
  • Corporate Info
  • Legal Notices
  • Product EULAs and Other Disclosures
  • Terms of Service
  • Privacy Policy (Your Privacy Rights)
  • Sitemap

© 2012 Electronic Arts Inc. Trademarks belong to their respective owners. All rights reserved.


TRUSTe Certified Site