Page 1 of 1

[Request] power properties on LuaItemPrototype

Posted: Mon Aug 01, 2016 3:44 pm
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

Re: [Request] power properties on LuaItemPrototype

Posted: Tue Aug 09, 2016 1:15 pm
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.

Re: [Request] power properties on LuaItemPrototype

Posted: Wed Aug 10, 2016 3:02 am
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.

Re: [Request] power properties on LuaItemPrototype

Posted: Wed Aug 10, 2016 11:13 am
by Helfima
the nominal values could are on luaitemprototype?

Re: [Request] power properties on LuaItemPrototype

Posted: Wed Aug 10, 2016 12:22 pm
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.

Re: [Request] power properties on LuaItemPrototype

Posted: Thu Aug 11, 2016 7:24 am
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.