Page 1 of 1

How do I alter accumulator priority?

Posted: Wed Jun 15, 2016 4:29 am
by thereaverofdarkness
I have a mod that makes two types of accumulators:
1.) battery accumulators which have high power storage but low in/out rate
2.) capacitor accumulators which have low power storage but high in/out rate

I want to make the battery accumulators have a high priority on power intake during the day, and a low priority on intake during the night, so that they will utilize solar panels to charge during the day, and will provide maximum power all night so that steam engines can rest. Then I want capacitor accumulators to have an all-around low priority so that they are only drained or filled as a last resort. This way the laser turrets will drain from the capacitor accumulators without causing the base to lose power.

Any ideas how I could accomplish this?

Re: How do I alter accumulator priority?

Posted: Wed Jun 15, 2016 5:49 am
by Rseding91
Accumulators aren't able to have the priority changed because they run special code on the Factorio engine side to group them into eventually one group per electric network reducing CPU usage while the game runs.

Re: How do I alter accumulator priority?

Posted: Wed Jun 15, 2016 7:43 pm
by thereaverofdarkness
I found about power switches coming up in 0.13, so I think I can use that as a workaround!