SlowMining 0.0.1 (11.16)

Topics and discussion about specific mods
Post Reply
Flux Faraday
Long Handed Inserter
Long Handed Inserter
Posts: 66
Joined: Sat May 10, 2014 8:48 am
Contact:

SlowMining 0.0.1 (11.16)

Post by Flux Faraday »

This tiny mod changes the electric drill to reduce mining speed and power consumption by a factor of ten. It leads to an interesting playthrough. Rather than mining an area out and moving on, you have to keep expanding to provide a rate of resource production that is what you need. Most resource deposits (on normal settings) will still be producing at end-game, and you'll have a thousand-ish drills running at end game (I had 840 and it wasn't enough). Have fun!
The main code for this mod is simply:

Code: Select all

-- Adjust mining drills
print(data.raw["mining-drill"]["basic-mining-drill"].mining_speed)
data.raw["mining-drill"]["basic-mining-drill"].mining_speed = 0.05
data.raw["mining-drill"]["basic-mining-drill"].energy_usage = "9kW"
print(data.raw["mining-drill"]["burner-mining-drill"].mining_speed)
data.raw["mining-drill"]["burner-mining-drill"].mining_speed = 0.035
data.raw["mining-drill"]["burner-mining-drill"].energy_usage = "30kW"
So it's easy to change if 10x is too much or too little.
FYI: here is the original thread in game balance: https://forums.factorio.com/forum/vie ... =16&t=8983
Attachments
SlowMining_0.0.1.zip
(1.42 KiB) Downloaded 162 times

User avatar
L0771
Filter Inserter
Filter Inserter
Posts: 516
Joined: Tue Jan 14, 2014 1:51 pm
Contact:

Re: SlowMining 0.0.1 (11.16)

Post by L0771 »

or more compatible with all mods

Code: Select all

for _,v in pairs(data.raw["mining-drill"]) do
   v.mining_speed = v.mining_speed * 0.1
   v.energy_usage = (tonumber(string.sub(v.energy_usage, 1, -3))) * 0.1 .. " kW"
end
easy to change and work with all mining drills, maybe if you want a list of excluded entities try with

Code: Select all

local exclude =
{
	["pumpjack"] = 1
}
for _,v in pairs(data.raw["mining-drill"]) do
	if not exclude[v.name] then
		v.mining_speed = v.mining_speed * 0.1
		v.energy_usage = (tonumber(string.sub(v.energy_usage, 1, -3))) * 0.1 .. " kW"
	end
end
Or maybe excluded with a list

Code: Select all

local exclude =
{
	["pumpjack"] = 0.9
	["burner-mining-drill"] = 0.2
}
for _,v in pairs(data.raw["mining-drill"]) do
	if exclude[v.name] then
		v.mining_speed = v.mining_speed * exclude[v.name]
		v.energy_usage = (tonumber(string.sub(v.energy_usage, 1, -3))) * exclude[v.name] .. " kW"
	else
		v.mining_speed = v.mining_speed * 0.1
		v.energy_usage = (tonumber(string.sub(v.energy_usage, 1, -3))) * 0.1 .. " kW"
	end
end
I like the idea, but i think 10% is too hard :|

Flux Faraday
Long Handed Inserter
Long Handed Inserter
Posts: 66
Joined: Sat May 10, 2014 8:48 am
Contact:

Re: SlowMining 0.0.1 (11.16)

Post by Flux Faraday »

L0771 wrote:or more compatible with all mods
Thanks for the tips. I'll incorporate them if I do an update of if there are requests.

waduk
Filter Inserter
Filter Inserter
Posts: 372
Joined: Tue Feb 10, 2015 5:44 pm
Contact:

Re: SlowMining 0.0.1 (11.16)

Post by waduk »

How about the polution ? Is it also reduced ? I hope it should as well...
I might give this a try and give you and the your other thread a feedback.

User avatar
L0771
Filter Inserter
Filter Inserter
Posts: 516
Joined: Tue Jan 14, 2014 1:51 pm
Contact:

Re: SlowMining 0.0.1 (11.16)

Post by L0771 »

The pollution is proportional to energy used.

Flux Faraday
Long Handed Inserter
Long Handed Inserter
Posts: 66
Joined: Sat May 10, 2014 8:48 am
Contact:

Re: SlowMining 0.0.1 (11.16)

Post by Flux Faraday »

waduk wrote:How about the polution ? Is it also reduced ?
Yep, it's designed to be energy/pollution neutral. I'll be happy to hear what you think :)

Post Reply

Return to “Mods”