How do I alter accumulator priority?

Place to get help with not working mods / modding interface.
User avatar
thereaverofdarkness
Filter Inserter
Filter Inserter
Posts: 561
Joined: Wed Jun 01, 2016 5:07 am
Contact:

How do I alter accumulator priority?

Post 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?
Rseding91
Factorio Staff
Factorio Staff
Posts: 15950
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: How do I alter accumulator priority?

Post 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.
If you want to get ahold of me I'm almost always on Discord.
User avatar
thereaverofdarkness
Filter Inserter
Filter Inserter
Posts: 561
Joined: Wed Jun 01, 2016 5:07 am
Contact:

Re: How do I alter accumulator priority?

Post by thereaverofdarkness »

I found about power switches coming up in 0.13, so I think I can use that as a workaround!
Post Reply

Return to “Modding help”