Accumulator usage priority

Bugs that are actually features.
Post Reply
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Accumulator usage priority

Post by darkfrei »

Hi!

Now in vanilla usage_priority of accumulator has this definition:

Code: Select all

data.raw.accumulator.accumulator.energy_source.usage_priority = "terciary"
If you try to make something another https://wiki.factorio.com/Types/ElectricUsagePriority

Code: Select all

data.raw.accumulator.accumulator.energy_source.usage_priority = "secondary"
or

Code: Select all

data.raw.accumulator.accumulator.energy_source.usage_priority = "primary"
then you get error.
Attachments
2018-07-15 19_55_32-Factorio 0.16.51.png
2018-07-15 19_55_32-Factorio 0.16.51.png (7.42 KiB) Viewed 1427 times

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Accumulator usage priority

Post by Rseding91 »

Thanks for the report. There are 2 problems: there is no "primary" or "secondary" priority. There is 'primary-input" and "primary-output"/"secondary-input", "secondary-output".

And the second problem: accumulators are hard coded to the accumulator-managed-by-group priority and will ignore anything you set.
If you want to get ahold of me I'm almost always on Discord.

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Accumulator usage priority

Post by darkfrei »

Rseding91 wrote:Thanks for the report. There are 2 problems: there is no "primary" or "secondary" priority. There is 'primary-input" and "primary-output"/"secondary-input", "secondary-output".

And the second problem: accumulators are hard coded to the accumulator-managed-by-group priority and will ignore anything you set.
Why we have "primary-input", "secondary-input", but by accumulators just "terciary"?

Why accumulators do not charge from electric energy interface?

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Accumulator usage priority

Post by Rseding91 »

darkfrei wrote:Why we have "primary-input", "secondary-input", but by accumulators just "terciary"?
Because that's what was needed to make the base game logic work. Accumultors no longer use that value and instead define their own priority for optimization reasons.
darkfrei wrote:Why accumulators do not charge from electric energy interface?
The electric energy interface defines its usage priority as "tertiary" which is the same as what accumulators use. Change it to primary-output if you want it to charge accumulators.
If you want to get ahold of me I'm almost always on Discord.

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Accumulator usage priority

Post by darkfrei »

Rseding91 wrote:The electric energy interface defines its usage priority as "tertiary" which is the same as what accumulators use. Change it to primary-output if you want it to charge accumulators.
Thanks, it works!

Post Reply

Return to “Not a bug”