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.

Editing DF2014:Advanced world generation

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.

You are editing a page for an older version of Dwarf Fortress ("Main" is the current version, not "DF2014"). Please make sure you intend to do this. If you are here by mistake, see the current page instead.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 439: Line 439:
 
If mesh size is set to something other than Ignore, these weights will be applied at the granularity of the selected mesh size for purposes of generating random values in each range. This allows random number generation to be non-linear for the given terrain characteristic.
 
If mesh size is set to something other than Ignore, these weights will be applied at the granularity of the selected mesh size for purposes of generating random values in each range. This allows random number generation to be non-linear for the given terrain characteristic.
  
For example, if the Elevation Weighted Range parameters were set to (starting with the 0%-20% range) 60:10:10:10:10 (these values do not have to add up to any particular number) and elevation min and max are set to 1 and 400 respectively then about 60% of the grid line intersection points (on average) will be set to an elevation in the range of 1-80 (0% to 20%), and the other ranges (20%-40%, 40%-60%, etc.) will be represented by around 10% of the intersection points each. The exact distribution is still left up to chance though ''on average'' it will be close to this specification.
+
For example, first understanding the math behind the parameters:
 +
  --If you set elevation min = 1, and max = 400, you would have an allowed Weight interval of 1 to 400
 +
  --In mesh size, inf you type 5.. u get 16x16, if 6... you get 32x32 (still testing so see the diference implied in the math)
 +
  --If you enable Mesh Weight Range, you have 5 intervals, 0-20, 20-40, 40-60, 60-80, 80-100, those represent equivalent sized intervals
 +
    contained on the min and max elevation interval you selected above.. so: Weight interval size = 400,Number of Mesh Intervals = 5, Mesh
 +
    interval size = 400/5 = 80
 +
  --If you Leave Elevation Weighted Range as (1x,1x,1x,1x,1x) (I've placed the variable X for helping), (1x+1x+1x+1x+1x)=5x on a 100% ocurrence probability, 1x would represent: 5x=100%, x=100%/5, x=20%, so.. each range would occur 20% of the times if all are set to 1 (these values do not have to add up to any particular number, but for math to be easy for you.. do so as the result of the somatory is divisible by 5)
 +
  --Considering this, see examples:
 +
    a.parameters set as, Elevation Variance of 1 to 400, (so, Interval = 80),  Elevation Weighted Range 10x-10x-10x-10x-10x, somatorý=50x, 1x=2%
 +
      No1. Mesh interval 0-20  = 10x --> Represents Weight Interval of: 1 to 80    --- 20 % of the world elevation will be of 1 to 80
 +
      No2. Mesh interval 20-40 = 10x --> Represents Weight Interval of: 80 to 160  --- 20 % of the world elevation will be of 80 to 160
 +
      No3. Mesh interval 40-60 = 10x --> Represents Weight Interval of: 160 to 240 --- 20 % of the world elevation will be of 160 to 240
 +
      No4. Mesh interval 60-80 = 10x --> Represents Weight Interval of: 240 to 320 --- 20 % of the world elevation will be of 240 to 320
 +
      No5. Mesh interval 80-100= 10x --> Represents Weight Interval of: 320 to 400 --- 20 % of the world elevation will be of 320 to 400
 +
    b.parameters set as, Elevation Variance of 1 to 400, (so, Mesh Interval Size = 80),  Elevation Weighted Range 16x-10x-10x-10x-16x, somatorý = 50x, 1x = 2%
 +
      No1. Mesh interval 0-20  = 20x--> Represents Weight Interval of: 1 to 80    --- 40% of the world elevation will be of 1 to 80
 +
      No2. Mesh interval 20-40 = 5 x--> Represents Weight Interval of: 80 to 160  --- 10% of the world elevation will be of 80 to 160
 +
      No3. Mesh interval 40-60 = 1x --> Represents Weight Interval of: 160 to 240 --- 2% of the world elevation will be of 160 to 240
 +
      No4. Mesh interval 60-80 = 8x--> Represents Weight Interval of: 240 to 320 --- 16% of the world elevation will be of 240 to 320
 +
      No5. Mesh interval 80-100= 16x--> Represents Weight Interval of: 320 to 400 --- 32% of the world elevation will be of 320 to 400 (high mountains, and mountain peaks)
 +
 
 +
if the Elevation Weighted Range parameters were set to (starting with the 0-20 range) 60:10:10:10:10 and elevation min and max are set to 1 and 400 respectively then about 60% of the grid line intersection points (on average) will be set to an elevation in the range of 1-80 (0% to 20%), and the other ranges will be represented by around 10% of the intersection points each. The exact distribution is still left up to chance though ''on average'' it will be close to this specification.
  
 
Weighted ranges do not make rejection checks, although they can be responsible for many rejections if you neglect to adjust or disable some of the [[#Minimum Number of Mid/Low/High Characteristic Squares|Minimum Number of Mid/Low/High Characteristic Squares]] for example.
 
Weighted ranges do not make rejection checks, although they can be responsible for many rejections if you neglect to adjust or disable some of the [[#Minimum Number of Mid/Low/High Characteristic Squares|Minimum Number of Mid/Low/High Characteristic Squares]] for example.

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)

Templates used on this page:

This page is a member of 2 hidden categories: