Add ability to know max consumption for fusion-reactor (fusion fuel section)

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Helfima
Fast Inserter
Fast Inserter
Posts: 202
Joined: Tue Jun 28, 2016 11:40 am
Contact:

Add ability to know max consumption for fusion-reactor (fusion fuel section)

Post by Helfima »

Hello

there is LuaEntityPrototype::get_max_energy_usage(quality?) and for fusion-reactor that return 10MW but there is nothing to know 100MW in Cunsumes Fusion Fuel section
eugenekay
Filter Inserter
Filter Inserter
Posts: 576
Joined: Tue May 15, 2018 2:14 am
Contact:

Re: Add ability to know max consumption for fusion-reactor (fusion fuel section)

Post by eugenekay »

I think that the 100MW figure is calculated by multiplying the fusion reactor's fluid property:
max_fluid_usage = 4/second, -- at normal quality
by the fluid definition for Plasma:
default_temperature = 1000000,
heat_capacity = "25J",
1,000,000 Degrees * 25 Joules * 4 Fluid/second = 100MW output power. Quality Fusion Reactors output more Fluid; Neighboring Fusion reactors increase the Temperature of the Fluid.

Good Luck!
curiosity
Filter Inserter
Filter Inserter
Posts: 667
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: Add ability to know max consumption for fusion-reactor (fusion fuel section)

Post by curiosity »

Helfima wrote: Sun May 18, 2025 4:23 pm there is LuaEntityPrototype::get_max_energy_usage(quality?) and for fusion-reactor that return 10MW but there is nothing to know 100MW in Cunsumes Fusion Fuel section
Probably because it consumes electric energy. The API was never made with such entities in mind.
Helfima
Fast Inserter
Fast Inserter
Posts: 202
Joined: Tue Jun 28, 2016 11:40 am
Contact:

Re: Add ability to know max consumption for fusion-reactor (fusion fuel section)

Post by Helfima »

fixed in v2.0.56
because now LuaEntityPrototype::get_fluid_usage_per_tick return value for FusionReactor

Code: Select all

get_fluid_usage_per_tick(quality?) → double?
The fluid usage of this generator or fusion reactor prototype.

Parameters
quality	:: QualityID?	
Can only be used if this is Generator or FusionReactor
this can be move in "Already exists" section
curiosity
Filter Inserter
Filter Inserter
Posts: 667
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: Add ability to know max consumption for fusion-reactor (fusion fuel section)

Post by curiosity »

Helfima wrote: Tue Jul 15, 2025 2:37 pm this can be move in "Already exists" section
You mean "Implemented mod requests", since this request predates 2.0.56.
Post Reply

Return to “Modding interface requests”