Dosent seem possible yet, but so far can only think of creating a - pollution value, but dosent seem to work.
Curious if thier is a known way to make a entity absorb or remove pollution so long as it has power and water. I was considering making a Water Filtration system for the Air pollution you could place in areas that would take away some of the pollution passing by
Currently possible to change polution?
-
- Long Handed Inserter
- Posts: 55
- Joined: Thu Jun 27, 2013 3:59 pm
- Contact:
-
- Long Handed Inserter
- Posts: 55
- Joined: Thu Jun 27, 2013 3:59 pm
- Contact:
Re: Currently possible to change polution?
and I did see the emissions_per_tick = -0.0001 for trees, but looking for something diffrent. It seems it always functions, prob is I want the reductions to stop if the new entity losses key parts such as water or power. Using the plain emissions_per_tick = -0.0001 setup seems I can place it, and it just works, even without bing plugged into the grid
Re: Currently possible to change polution?
simple , instead of simply make it negative. thus Now if you don't have electricity going to the mining drill it will not decrease the pollution. If you did this with a boiler it would need both water and coal to work, etc.
You could also call entity.setactive(false) if you needed to manually prevent it from working (in 0.7.1 this will change to entity.active=false) do note that entity is a reference to an actual entity, not the code you would write.
hmm, just saw that you said
Code: Select all
--note taken from basic-mining-drill
emissions = 0.15 / 1.5,
Code: Select all
emissions = -0.15 / 1.5,
You could also call entity.setactive(false) if you needed to manually prevent it from working (in 0.7.1 this will change to entity.active=false) do note that entity is a reference to an actual entity, not the code you would write.
hmm, just saw that you said
but I did just test it with the electric mining drill and it did work perfectly, pollution levels started dropping (rather rapidly since the drills are my main polluters, besides boilers and electric furnaces).midnight109 wrote:creating a - pollution value, but dosent seem to work.
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me
Or drop into #factorio on irc.esper.net
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me
Or drop into #factorio on irc.esper.net
Re: Currently possible to change polution?
Can we use emition per tick on any entity or just on trees?
Re: Currently possible to change polution?
well I tested putting it on mining drills and transport belts (using -1 instead of -0.0001 gives very quick dispersal for that area)...so I'd assume most entities will allow emissions_per_tickficolas wrote:Can we use emition per tick on any entity or just on trees?
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me
Or drop into #factorio on irc.esper.net
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me
Or drop into #factorio on irc.esper.net
Re: Currently possible to change polution?
Ya I know about assembling machines mining drills, boilers, trees etc.FreeER wrote:well I tested putting it on mining drills and transport belts (using -1 instead of -0.0001 gives very quick dispersal for that area)...so I'd assume most entities will allow emissions_per_tickficolas wrote:Can we use emition per tick on any entity or just on trees?
But what about... A chest?
I cant try atm thats why I ask
Re: Currently possible to change polution?
It will workficolas wrote:Ya I know about assembling machines mining drills, boilers, trees etc.FreeER wrote:well I tested putting it on mining drills and transport belts (using -1 instead of -0.0001 gives very quick dispersal for that area)...so I'd assume most entities will allow emissions_per_tickficolas wrote:Can we use emition per tick on any entity or just on trees?
But what about... A chest?
I cant try atm thats why I ask
Re: Currently possible to change polution?
I went ahead and tested both wooden and smart chests for you, both worked so I assume any other containers (or entity) would as wellficolas wrote:But what about... A chest?
I cant try atm thats why I ask
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me
Or drop into #factorio on irc.esper.net
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me
Or drop into #factorio on irc.esper.net
Re: Currently possible to change polution?
There is two things:
1) emissions_per_tick They work for every entity and define a constant value that is emitted / absorbed every tick independent of the entity state.
2) Every energy source has emissions field. That defines emissions based on the energy it is producing. This can be used to make a pollution absorbing machine (that would be powered by the electric energy).
We don't have a concept for an assembling machine like entity that needs water yet. Generator cannot be used either because it doesn't take the energy from the energy source (hence doesn't pollute). But this (entities that need not only electricity but also some liquids) will come in the future.
1) emissions_per_tick They work for every entity and define a constant value that is emitted / absorbed every tick independent of the entity state.
2) Every energy source has emissions field. That defines emissions based on the energy it is producing. This can be used to make a pollution absorbing machine (that would be powered by the electric energy).
We don't have a concept for an assembling machine like entity that needs water yet. Generator cannot be used either because it doesn't take the energy from the energy source (hence doesn't pollute). But this (entities that need not only electricity but also some liquids) will come in the future.