Advertisement
Guest User

wdfasfas

a guest
Feb 14th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.97 KB | None | 0 0
  1. require 'defines'
  2. debug_enabled = false
  3.  
  4.  
  5. region_size=8 -- alternative mean to control how further away resources would be, default - 256 tiles or 8 chunks
  6. -- each region is region_size*region_size chunks
  7. -- each chunk is 32*32 tiles
  8.  
  9. override_normal_spawn = true -- if false then the standard spawner can also spawn full grown resources/entities,
  10. -- set resources you want to control through this config to "None" in worldgen "Size" settings when starting a new game
  11. -- changing of this setting requires game restart, i.e. close game and start it again, not actally a new game
  12.  
  13. override_type = 'partially' -- 'full' - no spawns by game are allowed, 'partially' - very small patches are spawned by world gen
  14. -- changing of this setting requires game restart
  15.  
  16. starting_area_size=1 -- starting area in regions, safe from random nonsense
  17.  
  18. absolute_resource_chance=0.30 -- chance to spawn an resource in a region
  19. global_richness_mult = 1.0 -- multiply richness all resources
  20.  
  21. multi_resource_richness_factor=0.60 -- any additional resource is multiplied by this value times resources-1
  22. multi_resource_size_factor=0.60
  23. multi_resource_chance_diminish=0.8 -- diminishing effect factor on multi_resource_chance
  24.  
  25. min_amount=350 -- default value for minimum amount of resource in single pile
  26.  
  27. richness_distance_factor=1.030 -- 3.0 relative % per region distance ~ 2.1x mult @ 25 regions distance
  28.  
  29. deterministic = true -- set to false to use system for all decisions math.random
  30.  
  31. config={
  32. ["iron-ore"] = {
  33. type="resource-ore",
  34.  
  35. -- general spawn params
  36. allotment=120, -- how common resource is
  37. spawns_per_region={min=1, max=2}, --number of chunks
  38. richness=7000,
  39.  
  40. size={min=20, max=40}, -- rough radius of area, too high value can produce square shaped areas
  41.  
  42. -- resource provided at starting location
  43. starting={richness=2000, size=17},
  44.  
  45. multi_resource_chance=0.13, -- absolute value
  46. multi_resource={
  47. ["iron-ore"] = 2, -- ["resource_name"] = allotment
  48. ['copper-ore'] = 4,
  49. ["coal"] = 8,
  50. ["stone"] = 8,
  51. ["crude-oil"] = 1,
  52. }
  53. },
  54. ["copper-ore"] = {
  55. type="resource-ore",
  56.  
  57. allotment=120,
  58. spawns_per_region={min=1, max=2},
  59. richness=11000,
  60. size={min=15, max=30},
  61.  
  62. starting={richness=1800, size=10},
  63.  
  64. multi_resource_chance=0.13,
  65. multi_resource={
  66. ["iron-ore"] = 4,
  67. ['copper-ore'] = 2,
  68. ["coal"] = 8,
  69. ["stone"] = 8,
  70. ["crude-oil"] = 1,
  71. }
  72. },
  73. ["coal"] = {
  74. type="resource-ore",
  75.  
  76. allotment=100,
  77.  
  78. spawns_per_region={min=1, max=3},
  79. size={min=15, max=25},
  80. richness=14000,
  81.  
  82. starting={richness=2500, size=12},
  83.  
  84. multi_resource_chance=0.13,
  85. multi_resource={
  86. ["iron-ore"] = 2,
  87. ['copper-ore'] = 2,
  88. ["coal"] = 8,
  89. ["stone"] = 8,
  90. ["crude-oil"] = 1,
  91. }
  92. },
  93. ["stone"] = {
  94. type="resource-ore",
  95.  
  96. allotment=80,
  97. spawns_per_region={min=1, max=2},
  98. richness=9000,
  99. size={min=15, max=25},
  100.  
  101. starting={richness=1000, size=8},
  102.  
  103. multi_resource_chance=0.13,
  104. multi_resource={
  105. ["iron-ore"] = 2,
  106. ['copper-ore'] = 2,
  107. ["coal"] = 8,
  108. ["stone"] = 8,
  109. ["crude-oil"] = 3,
  110. }
  111. },
  112.  
  113. ["crude-oil"] = {
  114. type="resource-liquid",
  115. minimum_amount=750,
  116.  
  117. allotment=65,
  118. spawns_per_region={min=1, max=2},
  119. richness={min=20000, max=60000}, -- total richness of site
  120. size={min=2, max=4}, -- richness devided by this number
  121.  
  122. starting={richness=4000, size=1}
  123. },
  124.  
  125. ["biter-spawner"] = {
  126. type="entity",
  127. force="enemy",
  128. clear_range = {3, 3},
  129.  
  130. spawns_per_region={min=2,max=5},
  131. size={min=2,max=6},
  132. size_per_region_factor=1.05,
  133. richness=1,
  134.  
  135. absolute_probability=0.15, -- chance to spawn in region
  136. probability_distance_factor=1.05, -- relative incress per region
  137. max_probability_distance_factor=3.0, -- absolute value
  138.  
  139. along_resource_probability=0.40, -- chance to spawn in resource chunk anyway, absolute value. Can happen once per resource.
  140.  
  141. sub_spawn_probability=0.5, -- chance for this entity to spawn anything from sub_spawns table, absolute value
  142. sub_spawn_size={min=1, max=2}, -- in same chunk
  143. sub_spawn_distance_factor=1.02,
  144. sub_spawn_max_distance_factor=2,
  145. sub_spawns={
  146. ["small-worm-turret"]={
  147. min_distance=2,
  148. allotment=2000,
  149. allotment_distance_factor=0.9,
  150. },
  151. ["medium-worm-turret"]={
  152. min_distance=5,
  153. allotment=1000,
  154. allotment_distance_factor=1.05,
  155. },
  156. ["big-worm-turret"]={
  157. min_distance=7,
  158. allotment=1000,
  159. allotment_distance_factor=1.15,
  160. }
  161. }
  162. }
  163. }
  164.  
  165. --[[ MODS SUPPORT ]]--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement