Advertisement
Guest User

Untitled

a guest
Feb 28th, 2015
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.45 KB | None | 0 0
  1. require 'defines'
  2. debug_enabled = false
  3.  
  4.  
  5. region_size=12 -- 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 = false -- 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=1.00 -- 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.10 -- 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. endless_resource_mode = false -- if true, the size of each resource is modified by the following modifier. Use with the endless resources mod.
  32. endless_resource_mode_sizeModifier = 0.30
  33.  
  34. disable_RSO_biter_spawning = true -- if true, no biters will be spawned by RSO. Do not use with override_normal_spawn = true, because then no biters will be spawned at all.
  35.  
  36. biter_ratio_segment=1 --the ratio components determining how many biters to spitters will be spawned
  37. spitter_ratio_segment=1 --eg. 1 and 1 -> equal number of biters and spitters, 10 and 1 -> 10 times as many biters to spitters
  38.  
  39. config={
  40. ["iron-ore"] = {
  41. type="resource-ore",
  42.  
  43. -- general spawn params
  44. allotment=120, -- how common resource is
  45. spawns_per_region={min=1, max=1}, --number of chunks
  46. richness=10000,
  47.  
  48. size={min=13, max=25}, -- rough radius of area, too high value can produce square shaped areas
  49.  
  50. -- resource provided at starting location
  51. -- probability: 1 = 100% chance to be in starting area
  52. -- 0 = resource is not in starting area
  53. starting={richness=10000, size=20, probability=1},
  54.  
  55. multi_resource_chance=0.0, -- absolute value
  56. multi_resource={
  57. ["iron-ore"] = 2, -- ["resource_name"] = allotment
  58. ['copper-ore'] = 4,
  59. ["coal"] = 8,
  60. ["stone"] = 8,
  61. }
  62. },
  63. ["copper-ore"] = {
  64. type="resource-ore",
  65.  
  66. allotment=120,
  67. spawns_per_region={min=1, max=1},
  68. richness=11000,
  69. size={min=13, max=25},
  70.  
  71. starting={richness=10000, size=20, probability=1},
  72.  
  73. multi_resource_chance=0.0,
  74. multi_resource={
  75. ["iron-ore"] = 4,
  76. ['copper-ore'] = 2,
  77. ["coal"] = 8,
  78. ["stone"] = 8,
  79. }
  80. },
  81. ["coal"] = {
  82. type="resource-ore",
  83.  
  84. allotment=100,
  85.  
  86. spawns_per_region={min=1, max=1},
  87. size={min=13, max=25},
  88. richness=11000,
  89.  
  90. starting={richness=10000, size=20, probability=1},
  91.  
  92. multi_resource_chance=0.0,
  93. multi_resource={
  94. ["iron-ore"] = 2,
  95. ['copper-ore'] = 2,
  96. ["coal"] = 8,
  97. ["stone"] = 8,
  98. }
  99. },
  100. ["stone"] = {
  101. type="resource-ore",
  102.  
  103. allotment=80,
  104. spawns_per_region={min=1, max=1},
  105. richness=9000,
  106. size={min=11, max=15},
  107.  
  108. starting={richness=4000, size=10, probability=1},
  109.  
  110. multi_resource_chance=0.0,
  111. multi_resource={
  112. ["iron-ore"] = 2,
  113. ['copper-ore'] = 2,
  114. ["coal"] = 8,
  115. ["stone"] = 8,
  116. }
  117. },
  118.  
  119. ["crude-oil"] = {
  120. type="resource-liquid",
  121. minimum_amount=2000,
  122. allotment=80,
  123. spawns_per_region={min=1, max=1},
  124. richness={min=50000, max=100000}, -- total richness of site
  125. size={min=5, max=10}, -- richness divided by this number
  126.  
  127. starting={richness=14000, size=8, probability=1}
  128. },
  129.  
  130. ["biter-spawner"] = {
  131. type="entity",
  132. force="enemy",
  133. clear_range = {3, 3},
  134.  
  135. spawns_per_region={min=2,max=5},
  136. size={min=2,max=6},
  137. size_per_region_factor=1.05,
  138. richness=1,
  139.  
  140. absolute_probability=0.15, -- chance to spawn in region
  141. probability_distance_factor=1.05, -- relative incress per region
  142. max_probability_distance_factor=3.0, -- absolute value
  143.  
  144. along_resource_probability=0.40, -- chance to spawn in resource chunk anyway, absolute value. Can happen once per resource.
  145.  
  146. sub_spawn_probability=0.5, -- chance for this entity to spawn anything from sub_spawns table, absolute value
  147. sub_spawn_size={min=1, max=2}, -- in same chunk
  148. sub_spawn_distance_factor=1.02,
  149. sub_spawn_max_distance_factor=2,
  150. sub_spawns={
  151. ["small-worm-turret"]={
  152. min_distance=2,
  153. allotment=2000,
  154. allotment_distance_factor=0.9,
  155. clear_range = {1, 1},
  156. },
  157. ["medium-worm-turret"]={
  158. min_distance=5,
  159. allotment=1000,
  160. allotment_distance_factor=1.05,
  161. clear_range = {1, 1},
  162. },
  163. ["big-worm-turret"]={
  164. min_distance=7,
  165. allotment=1000,
  166. allotment_distance_factor=1.15,
  167. clear_range = {1, 1},
  168. }
  169. }
  170. }
  171. }
  172. --[[ MODS SUPPORT ]]--
  173. -- Endless resources mod
  174. -- reduce the starting area size of resources (Note: only done for vanilla resources)
  175. -- The size will additionally be modified with endless_resource_mode_sizeModifier
  176. if endless_resource_mode then
  177. config["iron-ore"].starting = {richness=2000, size=22, probability=1}
  178. config["copper-ore"].starting = {richness=1800, size=20, probability=1}
  179. config["coal"].starting = {richness=2500, size=15, probability=1}
  180. config["stone"].starting = {richness=1000, size=10, probability=1}
  181. end
  182.  
  183.  
  184. -- Roadworks mod
  185. if remote and game then
  186. if game.entityprototypes["RW_limestone"] then
  187. config["RW_limestone"] = {
  188. type="resource-ore",
  189.  
  190. allotment=85,
  191. spawns_per_region={min=1, max=2},
  192. richness=11000,
  193. size={min=10, max=17},
  194.  
  195. starting={richness=1000, size=4, probability=0.9},
  196.  
  197. multi_resource_chance=0.15,
  198. multi_resource={
  199. ["coal"] = 2,
  200. ["stone"] = 8,
  201. ["crude-oil"] = 1,
  202. }
  203. }
  204.  
  205. config["stone"].multi_resource["RW_limestone"] = 12
  206. config["iron-ore"].multi_resource["RW_limestone"] = 3
  207. config["copper-ore"].multi_resource["RW_limestone"] = 3
  208. config["coal"].multi_resource["RW_limestone"] = 3
  209. end
  210.  
  211. --[[ commented due to absence in current version of F-Mod
  212. if remote.interfaces["F-Mod"] then
  213. -- geyser left as is for now
  214. config["geyser"] = {
  215. type="resource-liquid",
  216. minimum_amount=750000000,
  217.  
  218. allotment=0,
  219. spawns_per_region={min=1, max=2},
  220. richness={min=7500000000, max=7500000000}, -- total richness of site
  221. size={min=1, max=2}, -- richness devided by this number
  222. }
  223. if config["lava-600"] then
  224. config["lava-600"].multi_resource["geyser"] = 8
  225. config["lava-1400"].multi_resource["geyser"] = 8
  226. config["lava-2000"].multi_resource["geyser"] = 8
  227. end
  228. end
  229. ]]--
  230. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement