Page 1 of 1

Random Norwegian Town Names Generator

Posted: 09 Dec 2013 10:16
by Trond
Took me some work before I figured out how to do this, but when I finally got it last night, it wasnt as hard as I tought :)

I have no idea how many random names it can generate, but I have no problems with maps containing 2000+ cities.

The generator is divided into four groups wich it can choose from, so from my testing there seem to be a lot of good random names, atleast for us norwegians. I started this project mainly to see if I could figure out how to do it, and in the end I think the result is rather good, and for me, also pleasing.

As I'm considering also uploading this to Bananas, I have packed it in a .tar file together with (all?) necessary files. Just drop the .tar file in your newgrf folder and start the game.

Goto 'Game Options' -> 'Town Names' and choose 'Random norwegian'/'Tilfeldige norske' and start a game.

Re: Random Norwegian Town Names Generator

Posted: 21 Jan 2014 17:04
by skippern
Interesting, seems like you have got the hang of this type of name generation, are you up to helping me out getting the same for Brazilian names? There are only about 5500 existing Brazilian municipality (town) names, and additionally a few hundred historic names, many of which can be broken down to <prefix><name> or <name><suffix> or in some extreme cases <prefix><name><suffix> combinations.

Re: Random Norwegian Town Names Generator

Posted: 21 Jan 2014 18:51
by Alberth
see https://dev.openttdcoop.org/projects/townnames for a whole lot of random townname generation newgrfs. If you code it in NML, it's pretty much trivial.
Grab a few example sources from above, and read http://newgrf-specs.tt-wiki.net/wiki/NML:Town_names