[Request] power properties on LuaItemPrototype

This is the place to request new mods or give ideas about what could be done.
Helfima
Fast Inserter
Fast Inserter
Posts: 200
Joined: Tue Jun 28, 2016 11:40 am
Contact:

[Request] power properties on LuaItemPrototype

Post by Helfima »

We have no information on the maximal power emission or power consumption on LuaItemPrototype
I make a MOD to plan the production line and i can't calcul the electrical power

if u add some properties for power, sample:
power_production
power_usage

EDIT:
i mean other properties can add

speed_usage for assembling machine
module_slots
efficiency for beacon
ShinyAfro
Inserter
Inserter
Posts: 27
Joined: Mon Jan 04, 2016 1:27 pm
Contact:

Re: [Request] power properties on LuaItemPrototype

Post by ShinyAfro »

correct me if i am wrong but:
energy_usage = "200kW"
works whenever the item is in use and is independent of the crafting speed.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14280
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Request] power properties on LuaItemPrototype

Post by Rseding91 »

Items have no power production or usage. That's the entity and even still that depends on modules and beacon effects on the entity runtime.
If you want to get ahold of me I'm almost always on Discord.
Helfima
Fast Inserter
Fast Inserter
Posts: 200
Joined: Tue Jun 28, 2016 11:40 am
Contact:

Re: [Request] power properties on LuaItemPrototype

Post by Helfima »

the nominal values could are on luaitemprototype?
Rseding91
Factorio Staff
Factorio Staff
Posts: 14280
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Request] power properties on LuaItemPrototype

Post by Rseding91 »

Helfima wrote:the nominal values could are on luaitemprototype?
Items have no power production or usage... they're just items. There's nothing special about them other than they build a specific entity when you click them in the world.
If you want to get ahold of me I'm almost always on Discord.
ShinyAfro
Inserter
Inserter
Posts: 27
Joined: Mon Jan 04, 2016 1:27 pm
Contact:

Re: [Request] power properties on LuaItemPrototype

Post by ShinyAfro »

As i said before, the energy used per 1 second (assumingly) is (energy_usage = "210kW")
The time to produce would be assembler crafting speed (crafting_speed = 1.25) divided by the recipes craft time (energy_required = 3), default being 0.5 (i think)
now, the total to craft an item from an assembly machine 3 (I may be wrong on the energy usage value, not sure) would be 504 watts over 2.4 seconds, in an equsion it would look like (3/1.25)*210 = 504, or (energy_required/assembler crafting)*energy_usage. Realistically all you need is energy usage in any real world situations unless you are using individual accumulators in some form of odd rig.

Unless i misunderstood and you are referring to fuel value, which is a value listed under item prototypes (fuel_value = "4MJ") for example will tell how much an item will burn (4Mj) when burnt. Minus the inefficiencies of the boiler/steam engine/etc.
Post Reply

Return to “Ideas and Requests For Mods”