Show number of Towns in "Towns list"

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

Post Reply
ebla71
Route Supervisor
Route Supervisor
Posts: 489
Joined: 14 Apr 2021 21:48
Location: Earth

Show number of Towns in "Towns list"

Post by ebla71 »

Just wanted to take this suggestion overhere as a small but very useful addition to the "Towns list":
ebla71 wrote: 25 Mar 2023 15:42
JohnFranklin523 wrote: 25 Mar 2023 09:59
jerby666 wrote: 25 Mar 2023 09:56 Is there any sort of city counter where I can check it ?
I don't know. My counting way is very time-consuming, by using Town List in alphabetical order, dragging the window to the bottom, firstly counting how many towns in one screen, then counting how many screens...
I fully agree - in particular for very large real-world scenarios, it would be super-helpful if the number of towns would be shown at the bottom of the "Towns" list together with the "World population", either in one line or two lines - and both in the Scenario editor as well as the actual running game.

Image

show_number_of_towns.png
_dp_
Transport Coordinator
Transport Coordinator
Posts: 284
Joined: 18 Dec 2013 12:32

Re: Show number of Towns in "Towns list"

Post by _dp_ »

You can use CityMania patchpack, it shows the total number of towns in the town directory header (num_cities/num_all_towns):
Screenshot from 2023-03-25 21-03-03.png
Screenshot from 2023-03-25 21-03-03.png (24.65 KiB) Viewed 2528 times
Argus
Tycoon
Tycoon
Posts: 1309
Joined: 16 Oct 2018 08:31
Location: Heart of the Highlands. Not Scottish. Czech.

Re: Show number of Towns in "Towns list"

Post by Argus »

I can definitely imagine that this kind of information could be useful. The question is how much of a priority it is and will there be a willingness to do it.
pickpacket
Engineer
Engineer
Posts: 113
Joined: 26 Sep 2022 09:10

Re: Show number of Towns in "Towns list"

Post by pickpacket »

Independently of this thread I've found the same need. It's on my to-do list to implement, although it's going to take me some time. I wouldn't mind if someone else did it sooner, of course ;)
User avatar
2TallTyler
Director
Director
Posts: 572
Joined: 11 Aug 2019 18:15
Contact:

Re: Show number of Towns in "Towns list"

Post by 2TallTyler »

I took a stab at it but there was disagreement over its implementation. Perhaps my code can be a starting point: https://github.com/OpenTTD/OpenTTD/pull/11170
Argus
Tycoon
Tycoon
Posts: 1309
Joined: 16 Oct 2018 08:31
Location: Heart of the Highlands. Not Scottish. Czech.

Re: Show number of Towns in "Towns list"

Post by Argus »

JGR Patchpack can already do that too.
skc
Traffic Manager
Traffic Manager
Posts: 214
Joined: 17 Sep 2022 02:02

Re: Show number of Towns in "Towns list"

Post by skc »

Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: No registered users and 9 guests