MinchinWeb's Random Town Name Generator

Find and discuss all the latest NewGRF releases for TTDPatch and OpenTTD here.

Moderator: Graphics Moderators

Post Reply
User avatar
MinchinWeb
Traffic Manager
Traffic Manager
Posts: 225
Joined: 01 Feb 2011 12:41
Contact:

MinchinWeb's Random Town Name Generator

Post by MinchinWeb »

Success! I have taken NML to the next level, specifically using NML to generate random town names. What it does is it takes a list of bases (drawn from Alberta Town Names) and then randomly adds prefixes and suffixes to them. That means that even on the largest maps, you should never run out of names. For example, it is possible to get:
  • Acme (just the base)
  • Fort Acme (prefix)
  • East Acme (another prefix)
  • Acme Acres (suffix)
  • Acme Place (another suffix)
  • North Acme Falls (both a prefix and suffix) and many others...
Prefix and suffix probability are relatively low, so you shouldn't be overrun with particularly long names.

This is an example list (high number of towns, 512x256 map):
Image

Available here or on Bananas. Enjoy!

If you have a name that you think should be added, let me know. Alternately, if you get a name that doesn't make any sense (like the 'Lake Cold Lake' I got in testing...), let me know so I can fix it! (and yes, 'Acme' is a real town in Alberta)

To Use:
  • 1. Download MinchinWeb's Random Town Names through the game's online content system.
  • 2. Select the GRF (MinchinWeb's Random Town Names v1.1) in the NewGRF menu.
  • 3. Back on the game title screen, go to Game Options, and then under town names select MinchinWeb's Random I
P.S. Some of my favorite names that were generated in testing:
  • Fort Minchinbury
  • Drift Pile Lake
  • Zama Ridge
  • Old Thompsonford
  • Princess Virginia Park
  • Janvier Bay
  • Unwin Mountain
  • Vader Lake Outpost
  • Zama Bend
  • Ermineskin
  • Nose River
  • Iron Creek Estates
  • St. Mary Springs
  • Purple Lake
Edit (March 28, 2011): The source file below *should* actually contain my NML source now. The source is also available at https://code.google.com/p/openttd-noai-w ... wn%20Names, which includes my Excel files that I used to generate this.
Attachments
MinchinWebs_Random_Town_Names.1.1.grf
Version 1.1 [2011-03-21]
(22.13 KiB) Downloaded 846 times
Sample List
Sample List
Minchinweb Random Names v1.png (49.52 KiB) Viewed 18480 times
MinchinWebs_Random_Town_Names.1.1-source.tar
NML Source (really this time!)
(73.5 KiB) Downloaded 947 times
Last edited by MinchinWeb on 28 Mar 2011 07:23, edited 3 times in total.
Alberta Town Names - 1500+ real names from 'Acme' to 'Zama City'
MinchinWeb's Random Town Name Generator - providing 2 million plus names...
WmDOT v13 - An AI that doubles as your highway department
User avatar
Emperor Jake
Tycoon
Tycoon
Posts: 3426
Joined: 24 Apr 2007 09:37
Skype: Discord: Emperor Jake #4106
Location: Not Actually Japan
Contact:

Re: MinchinWeb's Random Town Name Generator

Post by Emperor Jake »

Awesome! This is what I needed, a GRF that generates completely random town names, not ones form a specific country! Although I did see a few familiar places in there, such as Innisfail, Collingwood, Lake Windermere, Campbelltown, Minchinbury... But it's great to have something less generic than the default town names, and less specific than "<insert country> Town Names" :D

Also other sets run out of names after a few hundred (claiming "there is no more space on the map") and your set successfully named 13000 towns on a 2048 * 8192 map.

EDIT: Here are a few errors: There are quite a few that are "Lake <something> Lake" and also a "High Heights"
User avatar
MinchinWeb
Traffic Manager
Traffic Manager
Posts: 225
Joined: 01 Feb 2011 12:41
Contact:

Re: MinchinWeb's Random Town Name Generator

Post by MinchinWeb »

Emperor Jake wrote:EDIT: Here are a few errors: There are quite a few that are "Lake <something> Lake" and also a "High Heights"
I think I have these two fixed, let me know if it's otherwise. And I'm glad it's working for you! I did some back-of-the-envelope math and it should be able to generate 2 million plus names. :shock: I'm not sure why anyone would want to play on a map THAT big...
Alberta Town Names - 1500+ real names from 'Acme' to 'Zama City'
MinchinWeb's Random Town Name Generator - providing 2 million plus names...
WmDOT v13 - An AI that doubles as your highway department
User avatar
kamnet
Moderator
Moderator
Posts: 8532
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: MinchinWeb's Random Town Name Generator

Post by kamnet »

Very awesome! I kinda wanted to do something with United States town names, something unique yet fairly generic.
User avatar
3iff
Tycoon
Tycoon
Posts: 1093
Joined: 21 Oct 2005 09:26
Location: Birmingham, England

Re: MinchinWeb's Random Town Name Generator

Post by 3iff »

Do you have a simple text list of the town names, prefixes, suffixes that we could have a look at? Not needed as I've just found the .nml file. That's exactly what I was looking for...

I wrote a simple qbasic program to generate names for when I play Civ that uses the same sort of technique (I think)...taking a basic town name with a probability of using a prefix, suffix or concatenating a stub...
Names are predominantly British name parts.

For example, for my name generator

"Lizard" can only have a suffix, like Lizard Bay or Lizardstone
"Drysdale" can have prefix or suffix, like Chipping Drysdale or Drysdale Bourton

For Ottd, as names can be longer than the 15 characters available for Civ, it would be possible to have names with both a prefix and suffix.

"Pinski" could become Port Pinski Lodge.

Now I'm just going to try your grf....Pretty good...."Writing-on-Stone" was an interesting name.

Might be worth telling people to select the grf in the game options setting to get the grf to be used instead of the default town names. Took me 3 attempts to realise that I had to change something!
User avatar
Emperor Jake
Tycoon
Tycoon
Posts: 3426
Joined: 24 Apr 2007 09:37
Skype: Discord: Emperor Jake #4106
Location: Not Actually Japan
Contact:

Re: MinchinWeb's Random Town Name Generator

Post by Emperor Jake »

3iff wrote:Might be worth telling people to select the grf in the game options setting to get the grf to be used instead of the default town names. Took me 3 attempts to realise that I had to change something!
Hmmm, When I add it, the grf is activated automatically. What OpenTTD version are you using?

Anyway, I have taken a good look at the code, and I am working on an Australian style town names generator, which is based off your code, but will give me much-needed practise in NML. I only just realised how much better it is than NFO :shock:
User avatar
3iff
Tycoon
Tycoon
Posts: 1093
Joined: 21 Oct 2005 09:26
Location: Birmingham, England

Re: MinchinWeb's Random Town Name Generator

Post by 3iff »

I'm using a slightly modified nightly 21514...a bit old perhaps. I did have an alternative name choice active (English additional) which may have overridden the new setting.

I've just been looking through the code and it's pretty extensive. Anyway, I've been impressed enough to download NML and see what I can come up with. I did briefly look at NFO but quickly gave up.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: MinchinWeb's Random Town Name Generator

Post by planetmaker »

Best town name generator around, I'd say :-)
But, uhm... the tar as linked in the 1st posting does not contain the source, but the grf and the lang directory ;-)
User avatar
MinchinWeb
Traffic Manager
Traffic Manager
Posts: 225
Joined: 01 Feb 2011 12:41
Contact:

Re: MinchinWeb's Random Town Name Generator

Post by MinchinWeb »

planetmaker wrote:Best town name generator around, I'd say :-)
Thanks!
planetmaker wrote:But, uhm... the tar as linked in the 1st posting does not contain the source, but the grf and the lang directory ;-)
Uhm yeah...tar's on a windows machine are a bit of a pain. I should have it fixed now.
Alberta Town Names - 1500+ real names from 'Acme' to 'Zama City'
MinchinWeb's Random Town Name Generator - providing 2 million plus names...
WmDOT v13 - An AI that doubles as your highway department
User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2369
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: MinchinWeb's Random Town Name Generator

Post by Lord Aro »

MinchinWeb wrote:Uhm yeah...tar's on a windows machine are a bit of a pain. I should have it fixed now.
Try this ;) http://www.7-zip.org/
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
User avatar
kamnet
Moderator
Moderator
Posts: 8532
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: MinchinWeb's Random Town Name Generator

Post by kamnet »

OK, maybe some of these names are a little TOO random:

St. William Lake Trailer Park
Rocky Mountain Horse
Big St. Brian Creek
Tuscany Avenue
University of Calgary
West The Palisades
:lol:
User avatar
MinchinWeb
Traffic Manager
Traffic Manager
Posts: 225
Joined: 01 Feb 2011 12:41
Contact:

Re: MinchinWeb's Random Town Name Generator

Post by MinchinWeb »

kamnet wrote:OK, maybe some of these names are a little TOO random:

St. William Lake Trailer Park
Rocky Mountain Horse
Big St. Brian Creek
Tuscany Avenue
University of Calgary
West The Palisades
:lol:
It's hard to beat real life for random :lol:
Rocky Mountain House is a real town in Alberta, and the University of Calgary is among the neighbourhoods in (surprise!) Calgary.

(and if it really is 'Rocky Mountain Horse and not House, let me know - that would be a typo that needs to be fixed)

The five part names are a little extreme, but should be rare. How big a map are you playing on?
Alberta Town Names - 1500+ real names from 'Acme' to 'Zama City'
MinchinWeb's Random Town Name Generator - providing 2 million plus names...
WmDOT v13 - An AI that doubles as your highway department
User avatar
kamnet
Moderator
Moderator
Posts: 8532
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: MinchinWeb's Random Town Name Generator

Post by kamnet »

It could have been horse or house, I didn't save the game. No complaints, just really unusual. This was on a 2048x2048 map. Most of the names are pretty good, though.

Only issue that I have with towns being named "Trailer Park" or "Trailer Court" is that we still don't have a released NewGRF for trailer/caravan parks. :-)
User avatar
Gremnon
Tycoon
Tycoon
Posts: 1517
Joined: 16 Sep 2005 12:23
Skype: the_gremnon
Location: /home
Contact:

Re: MinchinWeb's Random Town Name Generator

Post by Gremnon »

I had to share my favourite randomly generated name yet : 'Head-Smashed-In'
Which promptly became the headquarters of the Head-Smashed-In Transport Co. Once I finally recovered from seeing that name.
Damn, I like these names.
User avatar
YukonRob
Transport Coordinator
Transport Coordinator
Posts: 290
Joined: 31 Jul 2007 00:58
Location: North of 63

Re: MinchinWeb's Random Town Name Generator

Post by YukonRob »

Head-Smashed-In is not random. It is a real location in Alberta Canada (albeit it is the english translation of the Blackfoot name).
User avatar
te_lanus
Transport Coordinator
Transport Coordinator
Posts: 326
Joined: 19 Jul 2012 18:04
Location: The Elizabeth Arkham Asylum for the Criminally Insane

Re: MinchinWeb's Random Town Name Generator

Post by te_lanus »

Hi Sorry to bother.

One thing that I found "wrong" in a sense of more grammar, Is "little the orchards". sounds wrong. how difficult would it be to make the grf, chance a name like that to "the little orchards"?
User avatar
MinchinWeb
Traffic Manager
Traffic Manager
Posts: 225
Joined: 01 Feb 2011 12:41
Contact:

Re: MinchinWeb's Random Town Name Generator

Post by MinchinWeb »

Gremnon wrote:I had to share my favourite randomly generated name yet : 'Head-Smashed-In'
Yup, it's a real place!
IMG_2757.JPG
IMG_2757.JPG (169.87 KiB) Viewed 16168 times
It even got featured on a U2 song cover:
U2_One.png
U2_One.png (92.41 KiB) Viewed 16168 times
te_lanus wrote:Hi Sorry to bother.

One thing that I found "wrong" in a sense of more grammar, Is "little the orchards". sounds wrong. how difficult would it be to make the grf, chance a name like that to "the little orchards"?
No bother at all. "Little The Orchards" is rather strange. I'll fix it for the next release!
Alberta Town Names - 1500+ real names from 'Acme' to 'Zama City'
MinchinWeb's Random Town Name Generator - providing 2 million plus names...
WmDOT v13 - An AI that doubles as your highway department
Post Reply

Return to “Graphics Releases”

Who is online

Users browsing this forum: No registered users and 4 guests