View Single Post
Old 02-12-2011, 10:55 PM   #1
davwms
All Star Starter
 
davwms's Avatar
 
Join Date: Jun 2003
Location: Clyde, NY
Posts: 1,510
WorldGen (for OOTP) - Random World Generator

This is the "next generation" of my "City Name Generator" program.
I finally started making headway on this program. I did a lot of research on how cities and towns are named in the United States. Unfortunately, this means that the program currently only generates "American" city names. I simplified the data files to include just root words, prefixes, suffixes, and names. Most cities and towns were either named after a person or were descriptive of the area. Then they might add a suffix and/or prefix to create the name. This program basically does the same thing, but I still need to work a little more on it.

When it's complete, it will randomly generate fictional nations.txt & cities.txt files.

Current Features:
  • Can randomly create up to 4 nations. (Just to keep it simple for now.)
  • Generates the Country Name and Nationality
  • Generates 400,000 cities within a just a few seconds (Screen freezes momentarily if generating more than that)
  • I have had it successfully generate over a million cities at one time
  • Also, it will be able to generate latitude and longitude for each city, while keeping the nations separated.
  • Does not generate duplicate city names.

Here is a screen shot below and just a sample of the city names that it generates currently. This sample list of 100,000 names was generated in less than 2 seconds. I still want to add to the data files to allow for much more wide spread naming. The generated country names are pretty poor, to be honest, but I believe most people would want to name the countries themselves. This at least gives them something to work with if they want it.
Attached Images
Image 
Attached Files
File Type: txt WorldGenCities.txt (47.6 KB, 1026 views)
__________________
Lemme tell you the first rule of politics; Always know if the juice is worth the squeeze. ~Kelly (AKA Timoty Oyphant), The Girl Next Door (2004)
davwms is offline   Reply With Quote