Electric Grid

by 0n0w1c

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

Overhaul
16 days ago
2.0
1.85K
Power

g py values

19 hours ago
(updated 16 hours 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..

New response