v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

40d:World generation

From Dwarf Fortress Wiki
Revision as of 02:42, 29 November 2007 by Schm0 (talk | contribs) (Added my siggy for credit, if due. :))
Jump to navigation Jump to search


To begin playing Dwarf Fortress, you must first create a world to play in. When you enter the world creation screen, you are presented with a screen full of options:

World creation options

Opening world generation screen.

Once you choose "Create World" you will be brought to the parameters screen. Pushing Enter will start creating a world using the default (or selected) parameters. At the upper left hand corner, you will notice several settings. Here is a quick overview:

  • Title - Where the title of your parameter type will be displayed
  • Seed - A random or predetermined number to be used in the process of world creation.
  • Name - The name of your world, either random or predetermined.
  • Parameter selection - If you have saved different world generation parameters, they will be listed here.
  • Options - This is where you can choose to alter the various parameters for world generation.

Title

This is just a name for your world generation template. Once you have multiple templates, you can select the template you wish to use using the arrow keys or the numeric keypad.

  • To edit the name of your parameter template, press the t key.

Seed

Generating a true random number is an impossible task for a computer. Typically, a pseudo-random number generator uses a specially selected mathematical sequence to create what appears to be a random number. By feeding the same seed as another player directly into the generator, a player starts world generation at the same point in the sequence, which theoretically should result in an identical world for both players. (Click the following link for more information on random seeds.)

  • To use a random seed, press the S key. To use a specific seed, press the s key.

Name

This is where the name for your world will be displayed. You can enter a name or choose to have one randomly generated. Note that the choice to use a random name will also affect the world that is generated, so if a known seed fails to generate the correct world, try toggling this option.[Verify]

  • To change the name of your world press the n key, and type in a name.
  • To have the game select a name for your world press the N key.

Parameter selection

On the right hand side of the screen will be a list for all of your saved parameter templates. By default, there is only one parameter set labeled STANDARD. You can select which parameter set you would like to use for world creation using the arrow keys ( and ) or the numeric keypad ( 8 4 9 3 ).

  • To save your current settings as a parameter set, press F6.
  • To reset the parameters to the default settings, press F1.
  • To create a new set of parameters, press a. To delete the current set of parameters, press d.

Options

Key Function Description
a
New parameter set Create a new parameter set
d
Delete parameter set Delete the currently selected parameter set
8 2 9 3) Navigate the parameters 8 and 2 → move up and down

9 and 3 → page up and down

t
Enter title Edits the name of your parameter set
N
Use random name Sets your world to generate a random name upon creation
n
Enter custom name Prompts the user to input a name for their world
S
Use random seed Uses a random seed to generate a world.
s
Enter custom seed Prompts the user to input a custom seed for world creation
F1
Reset world parameters Resets the world parameters to their default values
F6
Save world parameters Saves the world parameters under the current title

World generation

When you are ready to create your world, push Enter. The generator then begins to generate a world based on fractal algorithms. The process of creating a world can be very time-consuming, as any invalid maps are thrown out upon detection. Do not be surprised if it generates over a hundred separate worlds before creating one that is acceptable.

World creation screenshot.
World creation screenshot.

When the world is created, you will be given the option to export the map to a graphic file by pressing p. This will create a large BMP format ASCII graphic of the created world.

Example exported map image.

When you are finished, press Enter to return to the title screen.

Batch processing

You can use this example to use the command line to create many worlds at once, without all the hassle. Copy the following code and save it as a batch (.BAT) file. This file will create 7 regions using random names and random seeds. It will also automatically output the parameters and an ASCII and detailed map for each of your worlds.

Note: Make sure you don't already have region1-7 in your save directory.

echo Batch World Creation Initialized...
start /wait /high C:\DF\dwarfort.exe -gen 1 RANDOM RANDOM
echo World (1/7) Created.
start /wait /high C:\DF\dwarfort.exe -gen 2 RANDOM RANDOM
echo World (2/7) Created.
start /wait /high C:\DF\dwarfort.exe -gen 3 RANDOM RANDOM
echo World (3/7) Created.
start /wait /high C:\DF\dwarfort.exe -gen 4 RANDOM RANDOM
echo World (4/7 Created.
start /wait /high C:\DF\dwarfort.exe -gen 5 RANDOM RANDOM
echo World (5/7) Created.
start /wait /high C:\DF\dwarfort.exe -gen 6 RANDOM RANDOM
echo World (6/7) Created.
start /wait /high C:\DF\dwarfort.exe -gen 7 RANDOM RANDOM
echo World (7/7) Created.
echo 7 Worlds Created! (Check your /save folder for the results!)

You may steal this or edit this if you like. ~schm0

Worlds