Page 1 of 1
Some help with data.raw
Posted: Thu Sep 12, 2019 3:56 pm
by dtoxic
Hi all can some one help me with this
I am trying to change emission [pollution] on stone furnace
right now i am using this
data.raw["furnace"]["stone-furnace"].crafting_speed = 0.6
data.raw["furnace"]["stone-furnace"].energy_usage = "110kW"
data.raw["furnace"]["stone-furnace"].emissions_per_minute = 3.5
while the speed and energy usage works, the emission_per_minute wont work.
Re: Some help with data.raw
Posted: Thu Sep 12, 2019 4:49 pm
by DaveMcW
https://wiki.factorio.com/Prototype/Ent ... per_second
You can't change furnace emissions directly, they are based on power consumption.
Re: Some help with data.raw
Posted: Thu Sep 12, 2019 5:00 pm
by Bilka
Yes you can, change it on the energy source:
https://wiki.factorio.com/Types/EnergyS ... per_minute
data.raw["furnace"]["stone-furnace"].energy_source.emissions_per_minute = 3.5
Re: Some help with data.raw
Posted: Thu Sep 12, 2019 5:07 pm
by dtoxic
sooo i should use....? now i am confused
Re: Some help with data.raw
Posted: Thu Sep 12, 2019 6:18 pm
by mat1k
dtoxic wrote: Thu Sep 12, 2019 5:07 pm
sooo i should use....? now i am confused
What bilka put i correct. You need to change it inside the energy source table, not the furnace directly.
Re: Some help with data.raw
Posted: Thu Sep 12, 2019 6:31 pm
by dtoxic
mat1k wrote: Thu Sep 12, 2019 6:18 pm
dtoxic wrote: Thu Sep 12, 2019 5:07 pm
sooo i should use....? now i am confused
What bilka put i correct. You need to change it inside the energy source table, not the furnace directly.
so instead using Emission per minute i should use "energy_source" correct? if so...if it put say 3.5 would that increase pollution by that much per minute or would it add to the already defined "2" in the demo-entities.lua
like i said in the op the first two entries work and are displayed in the tool tip, i just cant figure out what to do on the third one
P.S i forgot to mention i am doing this thru a mod not editing files directly
Re: Some help with data.raw
Posted: Thu Sep 12, 2019 8:37 pm
by mat1k
This line: data.raw["furnace"]["stone-furnace"].energy_source.emissions_per_minute = 3.5
Put in the mod will change the emission rate to 3.5 per second. It overrides the Original setting.
Re: Some help with data.raw
Posted: Thu Sep 12, 2019 8:46 pm
by dtoxic
mat1k wrote: Thu Sep 12, 2019 8:37 pm
This line: data.raw["furnace"]["stone-furnace"].energy_source.emissions_per_minute = 3.5
Put in the mod will change the emission rate to 3.5 per second. It overrides the Original setting.
Thx man appreciate it!