Wind Turbine


Adds wind turbines to the game

Content
7 years ago
0.14 - 0.15
19
Power

g Very cool, maybe overpowered

7 years ago

The wind turbines are somewhat too powerful imo because they can act as a base load power source.

There should definitely be times of zero wind.

Also, when building it it is hard to guess where the hitbox is. It looks like 1x1 building which actually is 4x3 and that is a little annoying.

It's quite funny that internally it uses steam because the liquid usage charts look crazy :P

Other than that very cool to see an other power source in factorio! :) The graphic and the idea fits perfectly. Thank so much you for this mod again, I love these wind turbines ^^

6 years ago

I adjusted the control.lua script to provide more long term trends and more downwards range.
Average output is closer to 150kW, and there is the potential for extended spans of zero wind.
What would be really nifty IMO, is to use a 3D perlin noise function and plug in the X/Y coords of the individual turbines along with the clock for Z. Then you could spread the turbines out across the map and reduce the chances of them all providing no output at the same time.

This replaces the similar bits in the top half of the file:

if global.wind_turbine == nil then
    global.wind_turbine = {}
    global.wind_prev = surface.wind_speed
    global.wind_next = surface.wind_speed
    global.wind_trend = surface.wind_speed
end
if global.wind_trend == nil then
    global.wind_trend = 10/1000
end

if (game.tick % 50000) == 0 then
    global.wind_trend = math.random(-20,40)/1000
end
if (game.tick % 2500) == 0 then
    global.wind_prev = global.wind_next
    global.wind_next = (global.wind_next + math.random(-4,4)/1000)*0.9 + global.wind_trend*0.1
end

New response