Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'defines'
- debug_enabled = false
- region_size=12 -- alternative mean to control how further away resources would be, default - 256 tiles or 8 chunks
- -- each region is region_size*region_size chunks
- -- each chunk is 32*32 tiles
- override_normal_spawn = false -- if false then the standard spawner can also spawn full grown resources/entities,
- -- set resources you want to control through this config to "None" in worldgen "Size" settings when starting a new game
- -- changing of this setting requires game restart, i.e. close game and start it again, not actally a new game
- override_type = 'partially' -- 'full' - no spawns by game are allowed, 'partially' - very small patches are spawned by world gen
- -- changing of this setting requires game restart
- starting_area_size=1 -- starting area in regions, safe from random nonsense
- absolute_resource_chance=1.00 -- chance to spawn an resource in a region
- global_richness_mult = 1.0 -- multiply richness all resources
- multi_resource_richness_factor=0.60 -- any additional resource is multiplied by this value times resources-1
- multi_resource_size_factor=0.60
- multi_resource_chance_diminish=0.8 -- diminishing effect factor on multi_resource_chance
- min_amount=350 -- default value for minimum amount of resource in single pile
- richness_distance_factor=1.10 -- 3.0 relative % per region distance ~ 2.1x mult @ 25 regions distance
- deterministic = true -- set to false to use system for all decisions math.random
- endless_resource_mode = false -- if true, the size of each resource is modified by the following modifier. Use with the endless resources mod.
- endless_resource_mode_sizeModifier = 0.30
- 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.
- biter_ratio_segment=1 --the ratio components determining how many biters to spitters will be spawned
- spitter_ratio_segment=1 --eg. 1 and 1 -> equal number of biters and spitters, 10 and 1 -> 10 times as many biters to spitters
- config={
- ["iron-ore"] = {
- type="resource-ore",
- -- general spawn params
- allotment=120, -- how common resource is
- spawns_per_region={min=1, max=1}, --number of chunks
- richness=10000,
- size={min=13, max=25}, -- rough radius of area, too high value can produce square shaped areas
- -- resource provided at starting location
- -- probability: 1 = 100% chance to be in starting area
- -- 0 = resource is not in starting area
- starting={richness=10000, size=20, probability=1},
- multi_resource_chance=0.0, -- absolute value
- multi_resource={
- ["iron-ore"] = 2, -- ["resource_name"] = allotment
- ['copper-ore'] = 4,
- ["coal"] = 8,
- ["stone"] = 8,
- }
- },
- ["copper-ore"] = {
- type="resource-ore",
- allotment=120,
- spawns_per_region={min=1, max=1},
- richness=11000,
- size={min=13, max=25},
- starting={richness=10000, size=20, probability=1},
- multi_resource_chance=0.0,
- multi_resource={
- ["iron-ore"] = 4,
- ['copper-ore'] = 2,
- ["coal"] = 8,
- ["stone"] = 8,
- }
- },
- ["coal"] = {
- type="resource-ore",
- allotment=100,
- spawns_per_region={min=1, max=1},
- size={min=13, max=25},
- richness=11000,
- starting={richness=10000, size=20, probability=1},
- multi_resource_chance=0.0,
- multi_resource={
- ["iron-ore"] = 2,
- ['copper-ore'] = 2,
- ["coal"] = 8,
- ["stone"] = 8,
- }
- },
- ["stone"] = {
- type="resource-ore",
- allotment=80,
- spawns_per_region={min=1, max=1},
- richness=9000,
- size={min=11, max=15},
- starting={richness=4000, size=10, probability=1},
- multi_resource_chance=0.0,
- multi_resource={
- ["iron-ore"] = 2,
- ['copper-ore'] = 2,
- ["coal"] = 8,
- ["stone"] = 8,
- }
- },
- ["crude-oil"] = {
- type="resource-liquid",
- minimum_amount=2000,
- allotment=80,
- spawns_per_region={min=1, max=1},
- richness={min=50000, max=100000}, -- total richness of site
- size={min=5, max=10}, -- richness divided by this number
- starting={richness=14000, size=8, probability=1}
- },
- ["biter-spawner"] = {
- type="entity",
- force="enemy",
- clear_range = {3, 3},
- spawns_per_region={min=2,max=5},
- size={min=2,max=6},
- size_per_region_factor=1.05,
- richness=1,
- absolute_probability=0.15, -- chance to spawn in region
- probability_distance_factor=1.05, -- relative incress per region
- max_probability_distance_factor=3.0, -- absolute value
- along_resource_probability=0.40, -- chance to spawn in resource chunk anyway, absolute value. Can happen once per resource.
- sub_spawn_probability=0.5, -- chance for this entity to spawn anything from sub_spawns table, absolute value
- sub_spawn_size={min=1, max=2}, -- in same chunk
- sub_spawn_distance_factor=1.02,
- sub_spawn_max_distance_factor=2,
- sub_spawns={
- ["small-worm-turret"]={
- min_distance=2,
- allotment=2000,
- allotment_distance_factor=0.9,
- clear_range = {1, 1},
- },
- ["medium-worm-turret"]={
- min_distance=5,
- allotment=1000,
- allotment_distance_factor=1.05,
- clear_range = {1, 1},
- },
- ["big-worm-turret"]={
- min_distance=7,
- allotment=1000,
- allotment_distance_factor=1.15,
- clear_range = {1, 1},
- }
- }
- }
- }
- --[[ MODS SUPPORT ]]--
- -- Endless resources mod
- -- reduce the starting area size of resources (Note: only done for vanilla resources)
- -- The size will additionally be modified with endless_resource_mode_sizeModifier
- if endless_resource_mode then
- config["iron-ore"].starting = {richness=2000, size=22, probability=1}
- config["copper-ore"].starting = {richness=1800, size=20, probability=1}
- config["coal"].starting = {richness=2500, size=15, probability=1}
- config["stone"].starting = {richness=1000, size=10, probability=1}
- end
- -- Roadworks mod
- if remote and game then
- if game.entityprototypes["RW_limestone"] then
- config["RW_limestone"] = {
- type="resource-ore",
- allotment=85,
- spawns_per_region={min=1, max=2},
- richness=11000,
- size={min=10, max=17},
- starting={richness=1000, size=4, probability=0.9},
- multi_resource_chance=0.15,
- multi_resource={
- ["coal"] = 2,
- ["stone"] = 8,
- ["crude-oil"] = 1,
- }
- }
- config["stone"].multi_resource["RW_limestone"] = 12
- config["iron-ore"].multi_resource["RW_limestone"] = 3
- config["copper-ore"].multi_resource["RW_limestone"] = 3
- config["coal"].multi_resource["RW_limestone"] = 3
- end
- --[[ commented due to absence in current version of F-Mod
- if remote.interfaces["F-Mod"] then
- -- geyser left as is for now
- config["geyser"] = {
- type="resource-liquid",
- minimum_amount=750000000,
- allotment=0,
- spawns_per_region={min=1, max=2},
- richness={min=7500000000, max=7500000000}, -- total richness of site
- size={min=1, max=2}, -- richness devided by this number
- }
- if config["lava-600"] then
- config["lava-600"].multi_resource["geyser"] = 8
- config["lava-1400"].multi_resource["geyser"] = 8
- config["lava-2000"].multi_resource["geyser"] = 8
- end
- end
- ]]--
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement