[MOD 0.12.x] Minable Rock

Topics and discussion about specific mods
Post Reply
User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2124
Joined: Thu Jun 12, 2014 3:05 am
Contact:

[MOD 0.12.x] Minable Rock

Post by Ranakastrasz »

Minable Rock

Description:
  • Allows you to mine large rock entities.
    Obsolete as of 0.13
Details:
  • Factorio Version: 0.12
  • Released: September 8th 2015
  • License: Contact Me
  • Tags: Doodad, Mining, Rock
Download
Minable Rock_0.0.3.zip
(14.06 KiB) Downloaded 422 times
[/b][/color]
LONG DESCRIPTION
CHANGLOG
Last edited by Ranakastrasz on Sun Nov 27, 2016 9:47 pm, edited 5 times in total.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16

SirRichie
Fast Inserter
Fast Inserter
Posts: 244
Joined: Wed Feb 25, 2015 4:50 pm
Contact:

Re: [MOD 0.12.x] Minable Rock

Post by SirRichie »

0.0.1: First Release
I was already using this mod. So I double-checked and saw that you released this mod back in July.
I assume this is mainly to use the new forum format, but I am curious to know if there are any other changes you made?

User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2124
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: [MOD 0.12.x] Minable Rock

Post by Ranakastrasz »

None yet. Not until I figure out how to get those issues fixed. Gonna try to change it into a tree.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16

User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2124
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: [MOD 0.12.x] Minable Rock

Post by Ranakastrasz »

V2:
Rock is now a tree.
Mining hardness,time, and drops are now displaced.
Robots can now pick them up.


Unfortunately, this came with the side effect of it sounding like a tree when mined. I cannot yet do anything about that, and consider it a minor issue compared to allowing robots to pick it up.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16

User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2124
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: [MOD 0.12.x] Minable Rock

Post by Ranakastrasz »

Gah. The migration script isn't working. Unless you start a new game with this mod, it won't work. Only newly generated chunks seem to work.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16

MrDrummer
Fast Inserter
Fast Inserter
Posts: 131
Joined: Sat Nov 22, 2014 2:51 pm
Contact:

Re: [MOD 0.12.x] Minable Rock

Post by MrDrummer »

Ranakastrasz wrote:Gah. The migration script isn't working. Unless you start a new game with this mod, it won't work. Only newly generated chunks seem to work.
For robots or manual removal of rocks?

User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2124
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: [MOD 0.12.x] Minable Rock

Post by Ranakastrasz »

Both. So I suggest using the v1 for now unless starting a new game.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16

MrDrummer
Fast Inserter
Fast Inserter
Posts: 131
Joined: Sat Nov 22, 2014 2:51 pm
Contact:

Re: [MOD 0.12.x] Minable Rock

Post by MrDrummer »

Okay, thanks for the quick response.

User avatar
Gergith
Burner Inserter
Burner Inserter
Posts: 19
Joined: Fri Jul 24, 2015 4:35 am
Contact:

Re: [MOD 0.12.x] Minable Rock

Post by Gergith »

Ranakastrasz wrote:Both. So I suggest using the v1 for now unless starting a new game.
Thanks for this! Was coming back here to give a bug report; Can you update your first post to say that? :)

Thanks for the awesome mod! :D
Currently using: Latest Steam build
Plugins: Bob's Mods|DyTech|Yuoki Industries|5Dim's Mod|Mineable Rock|AutoTrash|Advanced Logistics System|Landfill|Long Reach|Upgrade Planner
For Testing: Test Mode

Plus my own: Coordinates mod

GotLag
Filter Inserter
Filter Inserter
Posts: 532
Joined: Sat May 03, 2014 3:32 pm
Contact:

Re: [MOD 0.12.x] Minable Rock

Post by GotLag »

Code: Select all

data.raw["simple-entity"]["stone-rock"] = nil

stone_rock = {
    type = "tree",
    name = "stone-rock",
    flags = {"placeable-neutral", "placeable-off-grid", "not-on-map"},
    minable =
    {
      count = 25,
      hardness = 0.8,
      mining_particle = "stone-particle",
      mining_time = 5,
      result = "stone"
    },
    icon = "__base__/graphics/icons/stone-rock.png",
    subgroup = "grass",
    order = "b[decorative]-k[stone-rock]-a[big]",
    collision_box = {{-1.1, -1.1}, {1.1, 1.1}},
    selection_box = {{-1.3, -1.3}, {1.3, 1.3}},
    render_layer = "object",
    max_health = 200,
    resistances =
    {
      {
        type = "fire",
        percent = 100
      }
    },
    autoplace =
    {
      order = "a[doodad]-a[rock]",
      peaks =
      {
        {
          influence = 0.0002
        },
        {
          influence = 0.002;
          min_influence = 0,
          elevation_optimal = 30000,
          elevation_range = 23000,
          elevation_max_range = 30000,
        }
      }
    },
    pictures =
    {
      {
        filename = "__base__/graphics/entity/decorative/stone-rock/stone-rock-01.png",
        width = 76,
        height = 60,
        shift = {0.1, 0}
      },
      {
        filename = "__base__/graphics/entity/decorative/stone-rock/stone-rock-02.png",
        width = 83,
        height = 86,
        shift = {0.2, 0}
      },
      {
        filename = "__base__/graphics/entity/decorative/stone-rock/stone-rock-03.png",
        width = 126,
        height = 98,
        shift = {0.7, 0}
      },
      {
        filename = "__base__/graphics/entity/decorative/stone-rock/stone-rock-04.png",
        width = 92,
        height = 108,
        shift = {0.1, 0}
      },
      {
        filename = "__base__/graphics/entity/decorative/stone-rock/stone-rock-05.png",
        width = 140,
        height = 99,
        shift = {0.5, 0}
      }
    }
  }

data:extend(
{
  stone_rock
})
As it replaces the base entity it works with existing saves, and the rocks will continue to exist (but not be minable) if the mod is removed.

Sacredd
Long Handed Inserter
Long Handed Inserter
Posts: 93
Joined: Fri Mar 18, 2016 9:30 am
Contact:

Re: [MOD 0.12.x] Minable Rock

Post by Sacredd »

Thanks for this mod.

Fixed
Zwischenablage04.png
Zwischenablage04.png (34.66 KiB) Viewed 11664 times
and increased the version to 0.0.21 mark the difference.
Attachments
Minable Rock_0.0.21.zip
(2.75 KiB) Downloaded 164 times

Qon
Smart Inserter
Smart Inserter
Posts: 2118
Joined: Thu Mar 17, 2016 6:27 am
Contact:

Re: [MOD 0.12.x] Minable Rock

Post by Qon »

GotLag wrote:

Code: Select all

data.raw["simple-entity"]["stone-rock"] = nil

stone_rock = {
    type = "tree",
    name = "stone-rock",
    flags = {"placeable-neutral", "placeable-off-grid", "not-on-map"},
    minable =
    {
      count = 25,
      hardness = 0.8,
      mining_particle = "stone-particle",
      mining_time = 5,
      result = "stone"
    },
    icon = "__base__/graphics/icons/stone-rock.png",
    subgroup = "grass",
    order = "b[decorative]-k[stone-rock]-a[big]",
    collision_box = {{-1.1, -1.1}, {1.1, 1.1}},
    selection_box = {{-1.3, -1.3}, {1.3, 1.3}},
    render_layer = "object",
    max_health = 200,
    resistances =
    {
      {
        type = "fire",
        percent = 100
      }
    },
    autoplace =
    {
      order = "a[doodad]-a[rock]",
      peaks =
      {
        {
          influence = 0.0002
        },
        {
          influence = 0.002;
          min_influence = 0,
          elevation_optimal = 30000,
          elevation_range = 23000,
          elevation_max_range = 30000,
        }
      }
    },
    pictures =
    {
      {
        filename = "__base__/graphics/entity/decorative/stone-rock/stone-rock-01.png",
        width = 76,
        height = 60,
        shift = {0.1, 0}
      },
      {
        filename = "__base__/graphics/entity/decorative/stone-rock/stone-rock-02.png",
        width = 83,
        height = 86,
        shift = {0.2, 0}
      },
      {
        filename = "__base__/graphics/entity/decorative/stone-rock/stone-rock-03.png",
        width = 126,
        height = 98,
        shift = {0.7, 0}
      },
      {
        filename = "__base__/graphics/entity/decorative/stone-rock/stone-rock-04.png",
        width = 92,
        height = 108,
        shift = {0.1, 0}
      },
      {
        filename = "__base__/graphics/entity/decorative/stone-rock/stone-rock-05.png",
        width = 140,
        height = 99,
        shift = {0.5, 0}
      }
    }
  }

data:extend(
{
  stone_rock
})
As it replaces the base entity it works with existing saves, and the rocks will continue to exist (but not be minable) if the mod is removed.
I guessed at just replacing the Minable Rock_0.0.1\prototypes\entity.lua file contents with your code and it works nicely! Now My bots can take over the world :D
Thanks

User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2124
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: [MOD 0.12.x] Minable Rock

Post by Ranakastrasz »

@GotLag: YOU CAN DO THAT?
You can overwrite an entire prototype's type classification?
How does that even work?

v3, Applied GotLag's Fix.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16

Post Reply

Return to “Mods”