Ore Eraser (continued)


Adds the Ore Eraser toolbox shortcut which allows you to erase ore from the map. Resources to be deleted selectable through player based runtime settings. Krastorio 2 support.

Utilities
3 years ago
0.18 - 1.1
23.6K

g [done] 1.1 Update

3 years ago

There will be a 1.1 update?

3 years ago

Would be nice.

3 years ago
(updated 3 years ago)

Hello again. I am not very knowledgeable in factorio modding, but I was able to replicate the functionality of this mod with vortik's deep core mining deep core mining planner.
Note that the item requred deep core mining drone to remove patches.
The item normally only removes deep core ore patches, but you can add other items in the resource.lua file.

In line 342 of the file find
if entity.type == "resource"
and (entity.prototype.resource_category == "vtk-deepcore-mining-ore-patch"
or entity.prototype.resource_category == "vtk-deepcore-mining-crack")

Here you can add other items to remove for example:
or entity.name == "crude-oil"
seperate them with "or" statement and end the statement with )

Other item names examples from this mod:
or (entity.name == "coal" and settings.get_player_settings(player)["oe-coal-selected"].value == true)
or (entity.name == "copper-ore" and settings.get_player_settings(player)["oe-copper-ore-selected"].value == true)
or (entity.name == "crude-oil" and settings.get_player_settings(player)["oe-crude-oil-selected"].value == true)
or (entity.name == "iron-ore" and settings.get_player_settings(player)["oe-iron-ore-selected"].value == true)
or (entity.name == "stone" and settings.get_player_settings(player)["oe-stone-selected"].value == true)
or (entity.name == "uranium-ore" and settings.get_player_settings(player)["oe-uranium-ore-selected"].value == true)
-- Krastorio 2
or (entity.name == "imersite" and settings.get_player_settings(player)["oe-imersite-selected"].value == true)
or (entity.name == "rare-metals" and settings.get_player_settings(player)["oe-rare-metals-selected"].value == true)
or (entity.name == "mineral-water" and settings.get_player_settings(player)["oe-mineral-water-selected"].value == true)

3 years ago
(updated 3 years ago)

Hello everyone, I have fixed the mod for 1.1 version of factorio. It just needs a few edits.
You need to unzip the mod and then edit these files.

========= file info.json =========

change line 9 to
"factorio_version": "1.1"

========= file prototypes/ore-eraser.lua =======

change line 7 to
flags = { "spawnable" },

========= file prototypes/shortcuts.lua =======

change line 7 to
action = "spawn-item",

change line 8 to
item_to_spawn = "Ore Eraser",

that's all, then you just zip the folder and copy it into your mods folder.

3 years ago

or leave it in mods folder like that , folders have priority over archives

3 years ago

well aparenly for me the mod loads but i cant get a ore erser item

3 years ago

Thank you dede2415
works for me

3 years ago

It doesn't work, it says base is 0.18

3 years ago

thanks, applied the modifications dede2415 suggested and it works

3 years ago

Here's the mod working (as far as I can tell) for Factorio v1.1:

https://drive.google.com/file/d/1EPjyLpDQ0gNxbJBu4Nl8ZnlyoKWUYtmo/view?usp=sharing

3 years ago

Updated to factorio 1.1

This thread has been locked.