Page 1 of 1
Nuclear flag for burner energy_source
Posted: Wed Nov 21, 2018 7:35 pm
by darkfrei
Hi all!
Can you add some flag to burner energy_source?
Code: Select all
energy_source =
{ type = "burner",
fuel_category = "chemical",
effectivity = 1 ,
fuel_inventory_size = 1,
flag = {"nuclear"}
}
So the maximum output energy is the same, but the fuel will be spent independently from consumption.
Or separatly:
Code: Select all
energy_source =
{ type = "nuclear",
fuel_category = "chemical",
effectivity = 1 ,
fuel_inventory_size = 1
}
Re: Nuclear flag for burner energy_source
Posted: Thu Nov 22, 2018 10:11 am
by bobingabout
I added a flag to the reactor, "scale_energy_usage" that causes it to behave like a normal energy consuming entity when set to true. This was part of the edit to make it accept a dynamic energy source tag (so you can have an electric powered reactor for example)
Perhaps the same tag could be added to the burner energy source? is that something you'd would want?
Re: Nuclear flag for burner energy_source
Posted: Thu Nov 22, 2018 11:23 am
by darkfrei
bobingabout wrote: Thu Nov 22, 2018 10:11 am
I added a flag to the reactor, "scale_energy_usage" that causes it to behave like a normal energy consuming entity when set to true. This was part of the edit to make it accept a dynamic energy source tag (so you can have an electric powered reactor for example)
Perhaps the same tag could be added to the burner energy source? is that something you'd would want?
I want something like "power consumption while idle" (pcwi) and "power consumption while working" (pcww).
So all nuclear entities need the same energy amount on idle and working (like it was made by nuclear reactor), but solid fuel burner entities need energy when they working.
Re: Nuclear flag for burner energy_source
Posted: Thu Nov 22, 2018 12:04 pm
by eradicator
bobingabout wrote: Thu Nov 22, 2018 10:11 am
[...] an electric powered reactor [...]
It's not really a reactor if it runs on electric energy :D.
I think what OP wants is a "dont_scale_usage" i.e. "always_consume" flag for the burner source. If you put a non-negated flag (i.e. "do_scale_usage") onto burners, wouldn't that imply that all burners
must specify the flag to behave like they do now? I.e. all mods with burners would have to be updated to include the flag...?
Re: Nuclear flag for burner energy_source
Posted: Thu Nov 22, 2018 12:26 pm
by bobingabout
eradicator wrote: Thu Nov 22, 2018 12:04 pm
bobingabout wrote: Thu Nov 22, 2018 10:11 am
[...] an electric powered reactor [...]
It's not really a reactor if it runs on electric energy

.
True, it's the reactor entity, but in that mode, it's basically an electric heater.
eradicator wrote: Thu Nov 22, 2018 12:04 pm
I think what OP wants is a "dont_scale_usage" i.e. "always_consume" flag for the burner source. If you put a non-negated flag (i.e. "do_scale_usage") onto burners, wouldn't that imply that all burners
must specify the flag to behave like they do now? I.e. all mods with burners would have to be updated to include the flag...?
That's what I was thinking.
Re: Nuclear flag for burner energy_source
Posted: Thu Nov 22, 2018 1:09 pm
by eradicator
bobingabout wrote: Thu Nov 22, 2018 12:26 pm
That's what I was thinking.
Well then, i'll give the topic a +0.5, for "might be useful in the future" but i don't have a personal usecase yetâ„¢ :D.
Re: Nuclear flag for burner energy_source
Posted: Mon Nov 26, 2018 8:51 am
by bobingabout
Looking into this a little further. The entity requests however much fuel it wants from the energy source, so simply adding this to burner's energy source definition isn't going to be enough, you'd need to edit every entity that can use the burner energy source (which is almost EVERYTHING that requires energy) to look for the tag.
Re: Nuclear flag for burner energy_source
Posted: Mon Nov 26, 2018 9:28 am
by darkfrei
bobingabout wrote: Mon Nov 26, 2018 8:51 am
Looking into this a little further. The entity requests however much fuel it wants from the energy source, so simply adding this to burner's energy source definition isn't going to be enough, you'd need to edit every entity that can use the burner energy source (which is almost EVERYTHING that requires energy) to look for the tag.
Now all electric powered entities have drain consumption when they idle and drain+working power consumption when they are working.
"Nuclear" entities like nuclear reactor has also "drain", which is exactly same fuel consumption by idle and working state.
Re: Nuclear flag for burner energy_source
Posted: Mon Nov 26, 2018 10:19 am
by bobingabout
I'm just saying that, since each entity controls it's own power consumption, you'd have to edit every entity that you want the feature to function on. This is a little beyond what I'd be comfortable with trying to do myself.
Re: Nuclear flag for burner energy_source
Posted: Mon Nov 26, 2018 2:42 pm
by Trebor
darkfrei wrote: Mon Nov 26, 2018 9:28 am
Now all electric powered entities have drain consumption when they idle and drain+working power consumption when they are working.
When determining power requirements using the values from the Wiki do you need to add the drain to the consumption also?