Electric Grid

by 0n0w1c

An overhaul of the electric network, engineer an Electric Grid! The overhaul is optional.

Overhaul
a day ago
2.0
2.00K
Power

g py values

a month ago
(updated a month ago)

hi, i'm trying to change the values to make the mod works better (for me) in py. worked for a bit with the default values, but transformers values are way too low for py hardmode imo, (some building produce 10TW and some consune almost 1TW).. i've tried this edit:
constants.EG_TRANSFORMATORS = {
["eg-unit-1"] = { rating = "300MW", tint = { r = 1.0, g = 0.0, b = 0.0, a = 1 } },
["eg-unit-2"] = { rating = "2GW", tint = { r = 1.0, g = 0.6, b = 0.0, a = 1 } },
["eg-unit-3"] = { rating = "8GW", tint = { r = 1.0, g = 1.0, b = 1.0, a = 1 } },
["eg-unit-4"] = { rating = "40GW", tint = { r = 1.0, g = 1.0, b = 0.0, a = 1 } },
["eg-unit-5"] = { rating = "200GW", tint = { r = 0.0, g = 1.0, b = 0.0, a = 1 } },
["eg-unit-6"] = { rating = "400GW", tint = { r = 0.0, g = 1.0, b = 1.0, a = 1 } },
["eg-unit-7"] = { rating = "1000GW", tint = { r = 0.0, g = 0.5, b = 1.0, a = 1 } },
["eg-unit-8"] = { rating = "10000GW", tint = { r = 0.5, g = 0.0, b = 1.0, a = 1 } },
["eg-unit-9"] = { rating = "20000GW", tint = { r = 1.0, g = 0.0, b = 1.0, a = 1 } }
}
but everything stop working (i can't transfer power to the distribution lines). did i miss another line to change like heat management or something?
PS: i also use the mod that make power poles explode when overtaxed the values i put in the transformators are the same i put in the poles..

Edit: managed to get it working, seems i had a hiccup with normalise_rating it works when i just add 0 instead of rewriting the whole things with another unit..

a month ago

There is some magic in the math of this mod, I am glad you found a working solution.

a month ago

I really like the mod and its philosophy (always seemed weird to me to power an particule accelerator with a wooden pole), I think that for some heavy mod that go way beyond vanilla in the power departement it is missing some new poles to smooth out the progression and/or a way to connect some specific buildings directly to transformators. Love the way that it forced to update the grid "constantly" (every couple of hundred hours in py ^^)

New response