This has been developed on the :
transformator mod.
The mod gives an entity transformer that works like a diode, allowing the flow of electricity in one direction. It is a great mod that helps use accumulators more efficiently.
After playing factorio for some time and experimenting with couple of mods, i often came across a energy crisis situation that all gamer are well aware of. Balancing and storing energy in accumulators seem the standard way. Infact its so baseline and vital that there are development of accumulators that store an insane amount of energy.(there are accumulators that store much higher than 50MJ and supply at an output in and above the range of 1MW).
From this i was hoping a more advanced tool to deal with these accumulators. And the transformer was a pretty good tool. I wanted to modify this a bit. i wanted it to work like an accumulator that stores energy at lower voltage and provides it at an higher one.
Modifications:
This mod works on the same concept as the original, except that in charging cycle, it stores energy and in discharging/output cycle, it resupplies it at a higher voltage.
I also modified the input and output of the entity. It now receives at 500MW and can supply upto 1GW (test run)
(i actually aimed to make it 1:10 ~~10MW*60sec charging >>> 100MW*6sec discharge)
Issues:
I am new at coding, and not well versed with the complex codes. the issue i am having is that i cant seem to make them INDIVIDUALS.
I have tried few things but it seems that the operating variables acts as GLOBAL/universal and so far it only works "properly" for the first one.
the original mod had "one to one" relation , but the element of time in this one make it one to many.
i did try to put the variables with the structure (variable set on initiation), but its not working.
Could someone check this out. thanks.
ToDo:
1)Combine both the step up feature and the one to one transfer into one.
2)Test with a heavily loaded factory and Balance out storage.
.
the actual working mod.
To see the effect try with just one unit only.
WORKS FINE WITH THE FIRST UNIT. THE LATER UNITS DONT WORK CORRECTLY(but still work in some way). IT WOULD NOT BREAKS THE GAME.
IT HAS THE CONSUMPTION OF 500 MW AND OUTPUT OF 1000 MW OR 1 GW, so its best used with heavy or later industries. later on units working with lower range will be made , but for those not having such power input try it out with the TEST MOD SOLAR PANEL(1 GW power output)
test mod, for trying this