Page 1 of 1

Increase Internal buffer size of mining drill

Posted: Fri Aug 26, 2016 5:02 am
by AntiElitz
Is there any way to increase the internal buffer size of the produced ores? when the belt is full and the miner is very fast producing the output is sometimes blocked for quite some time. However I cannot really find the correct property to mod it. Anyone has an idea?
Image

Re: Increase Internal buffer size of mining drill

Posted: Fri Aug 26, 2016 8:41 am
by DaveMcW
storage_slots is the secret property that developers don't want you to know!

Re: Increase Internal buffer size of mining drill

Posted: Fri Aug 26, 2016 12:59 pm
by Rseding91
DaveMcW wrote:storage_slots is the secret property that developers don't want you to know!
Considering we put the property there I don't think it's a secret :P

Re: Increase Internal buffer size of mining drill

Posted: Fri Aug 26, 2016 3:28 pm
by AntiElitz
Thx for the fast reply! Perfect that this is possible. Unfortunally I'm to stupid to get it implemented. I tried 2 different approaches, but the mine is still not able to hold more than 1 ore at a time and stops working, if the output belt is already full.

First I added it to data-final-fixes

Code: Select all

for i, drill in pairs(data.raw["mining-drill"]) do
		drill.storage_slots = 100 
end
Seconds I edited Entities.lua and addded the storage_slots

Code: Select all

data:extend(
{
  {
    type = "mining-drill",
    name = "electric-mining-drill",
    icon = "__base__/graphics/icons/electric-mining-drill.png",
    flags = {"placeable-neutral", "player-creation"},
    minable = {mining_time = 1, result = "electric-mining-drill"},
    max_health = 300,
    resource_categories = {"basic-solid"},
    corpse = "big-remnants",
    collision_box = {{ -1.4, -1.4}, {1.4, 1.4}},
    selection_box = {{ -1.5, -1.5}, {1.5, 1.5}},
    vehicle_impact_sound =  { filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 },
    working_sound =
    {
      sound =
      {
        filename = "__base__/sound/electric-mining-drill.ogg",
        volume = 0.75
      },
      apparent_volume = 1.5,
    },
    animations =
    {
      north =
      {
        priority = "extra-high",
        width = 110,
        height = 114,
        line_length = 8,
        shift = {0.2, -0.2},
        filename = "__base__/graphics/entity/electric-mining-drill/north.png",
        frame_count = 64,
        animation_speed = 0.5,
        run_mode = "forward-then-backward",
      },
      east =
      {
        priority = "extra-high",
        width = 129,
        height = 100,
        line_length = 8,
        shift = {0.45, 0},
        filename = "__base__/graphics/entity/electric-mining-drill/east.png",
        frame_count = 64,
        animation_speed = 0.5,
        run_mode = "forward-then-backward",
      },
      south =
      {
        priority = "extra-high",
        width = 109,
        height = 111,
        line_length = 8,
        shift = {0.15, 0},
        filename = "__base__/graphics/entity/electric-mining-drill/south.png",
        frame_count = 64,
        animation_speed = 0.5,
        run_mode = "forward-then-backward",
      },
      west =
      {
        priority = "extra-high",
        width = 128,
        height = 100,
        line_length = 8,
        shift = {0.25, 0},
        filename = "__base__/graphics/entity/electric-mining-drill/west.png",
        frame_count = 64,
        animation_speed = 0.5,
        run_mode = "forward-then-backward",
      }
    },
	storage_slots = 100,
    mining_speed = 5,
    energy_source =
    {
      type = "electric",
      -- will produce this much * energy pollution units per tick
      emissions = 0.15 / 1.5,
      usage_priority = "secondary-input"
    },
    energy_usage = "90kW",
    mining_power = 3,
    resource_searching_radius = 2.49,
    vector_to_place_result = {0, -1.85},
    module_specification =
    {
      module_slots = 3
    },
    radius_visualisation_picture =
    {
      filename = "__base__/graphics/entity/electric-mining-drill/electric-mining-drill-radius-visualization.png",
      width = 12,
      height = 12
    },
    fast_replaceable_group = "mining-drill"
  }
}
)

Re: Increase Internal buffer size of mining drill

Posted: Fri Aug 26, 2016 6:44 pm
by orzelek
Afaik storage_slots simply means you can have more output products.

If I understood OP correctly he wants the ore to stack on the output when drop point is full. And this is not possible right now.