Bus depot problem
Bus depot problem
Hi, I have a problem with the bus depot where it won't let me route where the buses will go. Already created the bus stop but the route option not working. It let me undo and remove but not adding where it should go. Pls fix this ASAP cause it affecting the gameplay
- Uncle Koala
- Metropolitan
- Reactions:
- Posts: 136
- Joined: Sun Apr 05, 2020 14:53
- Location: Pitcairn Islands
- Plugins: Show
- Version: Beta
- Contact:
Re: Bus depot problem
I have the same problem. I did some testing and the problem seems to be caused by elevated terrain. Place a bus depot on elevated terrain and you won't be able to create routes. If you place it on sea level though, the system will work as intended. Bus stops can be on any height and it will work. 
I hope this gets fixed because it makes buses unusable on hilly maps.

I hope this gets fixed because it makes buses unusable on hilly maps.
Lua is easy!

Code: Select all
if Car.GoingToCrashIntoEachOther()
then Car.DontCrash
end
- Uncle Koala
- Metropolitan
- Reactions:
- Posts: 136
- Joined: Sun Apr 05, 2020 14:53
- Location: Pitcairn Islands
- Plugins: Show
- Version: Beta
- Contact:
Re: Bus depot problem
The changelog says it's fixed but the issue is still there for me. I'm updated to beta 1.9.24. Same as before, bus depot on a hill doesn't work but if I demolish it and build it on sea level then it works.
Lua is easy!

Code: Select all
if Car.GoingToCrashIntoEachOther()
then Car.DontCrash
end
- Uncle Koala
- Metropolitan
- Reactions:
- Posts: 136
- Joined: Sun Apr 05, 2020 14:53
- Location: Pitcairn Islands
- Plugins: Show
- Version: Beta
- Contact:
Re: Bus depot problem
Seems like its fixed for lower hills but if you elevate the terrain higher up, the problem comes back. I recorded a little video to show it.
https://streamable.com/s9whrz
When it works correctly, the red rings pop up and buses spawn.
https://streamable.com/s9whrz
When it works correctly, the red rings pop up and buses spawn.
Lua is easy!

Code: Select all
if Car.GoingToCrashIntoEachOther()
then Car.DontCrash
end
- PetrovMaksYt
- Inhabitant of a Megacity
- Reactions:
- Posts: 216
- Joined: Sun Aug 16, 2020 11:26
Re: Bus depot problem
Thank you lobby for fixing bug! * applause * 

Last edited by PetrovMaksYt on Sun Aug 16, 2020 13:39, edited 1 time in total.
WELCOME! geif83kjf4v4o4mv4tnuinwonp4rbn2958h9.
Re: Bus depot problem
Thank your for the illustration. Based on it I guess the problem is that the default path created for bus lines contains random bus stops. That's an issue if there are bus stations that are not reachable, in that case you'd have to delete the pre-assigned path before adding bus stops. Please send me a city file with the issue if you can exclude that.
=^._.^= ∫
- Uncle Koala
- Metropolitan
- Reactions:
- Posts: 136
- Joined: Sun Apr 05, 2020 14:53
- Location: Pitcairn Islands
- Plugins: Show
- Version: Beta
- Contact:
Re: Bus depot problem
I created a new city, built a mountain near the height limit, placed a single bus depot and a single bus stop and the problem is still there. No matter what I do, this bus depot doesn't want to create new paths.
Lua is easy!

Code: Select all
if Car.GoingToCrashIntoEachOther()
then Car.DontCrash
end
- CommanderABab
- AB
- Reactions:
- Posts: 9271
- Joined: Tue Jun 07, 2016 21:12
- Plugins: Show
- Version: Beta
Re: Bus depot problem
Choose route and then bulldoze it. Then add a route. It helps if there is some transportation demand somewhere.

- CommanderABab
- AB
- Reactions:
- Posts: 9271
- Joined: Tue Jun 07, 2016 21:12
- Plugins: Show
- Version: Beta
- CommanderABab
- AB
- Reactions:
- Posts: 9271
- Joined: Tue Jun 07, 2016 21:12
- Plugins: Show
- Version: Beta
Re: Bus depot problem
The problem is is that it isn't the first first bus depot in the city. So it already has a previous bus route chosen , which you cannot add to because the path no longer exists.

- CommanderABab
- AB
- Reactions:
- Posts: 9271
- Joined: Tue Jun 07, 2016 21:12
- Plugins: Show
- Version: Beta
Re: Bus depot problem
The problem is is that it isn't the first first bus depot in the city.
No, I'm not stuttering here.
No, I'm not stuttering here.


- Uncle Koala
- Metropolitan
- Reactions:
- Posts: 136
- Joined: Sun Apr 05, 2020 14:53
- Location: Pitcairn Islands
- Plugins: Show
- Version: Beta
- Contact:
Re: Bus depot problem
Uhh, I don't get it... Even if I remove the route, restart the game, try to make a new route, it still doesn't work. And I tried it on multiple new maps to make sure it's the first first first firstest bus depot. It's affecting my main city because I don't have any proper public transportation. Probably better for me to abandon the bus idea and just use metroes instead 
Here's the file of my main city. Can't create a route no matter in what order I remove routes. It uses plugins but should run fine without them.

Here's the file of my main city. Can't create a route no matter in what order I remove routes. It uses plugins but should run fine without them.
Lua is easy!

Code: Select all
if Car.GoingToCrashIntoEachOther()
then Car.DontCrash
end
Re: Bus depot problem
Turned out that there was a more complicated underlying issue in how the points (x, y, level) of a bus route are stored. For convenience I store them in 32 bit integers which I split up into 4 bits for level and 14 bits for the x and y coordinates (with level being a signed integer type). However, that fails once the level falls out of the range -8 to 7
The solution is to use 6 bits for the level which yields a range of -32 to 31. Because of that only 13 bits are left to store x and y respectively which makes for a range of 0 to 8,191 which shouldTM be sufficient for any real map.=^._.^= ∫
- CommanderABab
- AB
- Reactions:
- Posts: 9271
- Joined: Tue Jun 07, 2016 21:12
- Plugins: Show
- Version: Beta
Re: Bus depot problem
I made a new city, added a bus depo and bus stops and it doesn't let me make Custom routes, it lets me make a single stop, but more - doesn't.
I tried on multiple cities, to see if it wasn't just that city. Checked the plugins if they were cousing it not to work. All of them were negative, can you please fix the bug?
I tried on multiple cities, to see if it wasn't just that city. Checked the plugins if they were cousing it not to work. All of them were negative, can you please fix the bug?
- CommanderABab
- AB
- Reactions:
- Posts: 9271
- Joined: Tue Jun 07, 2016 21:12
- Plugins: Show
- Version: Beta