Eco
Cap on pollution absorbed by trees?
When looking at the pollution tab it says -500 from plants. I have been planting a bunch of trees yet this value never changes. Is there a cap on this?
< >
Showing 1-7 of 7 comments
Rathelm Aug 10, 2022 @ 11:43am 
Yes, there's a cap that's set within one of the Eco files. You need to change it if you want more negative from trees.
SLG-Dennis  [developer] Aug 11, 2022 @ 6:07am 
The setting is found in EcoSim.eco, it's called "MinCO2PerDayFromPlants": -500.0.
The point of it is a limitation for users that insist to use bigger worlds than recommended and hence will not experience lots of ecological threat - this limit at least migitates that somewhat, otherwise the value would be extreme on big worlds not suitably chosen for a challenge depending on the amount of players.
A follow up question then is if its possible to change the amount of CO2 that is absorbed by plants, because it would be nice to have that aspect of the game functional even on bigger maps.
SLG-Dennis  [developer] Aug 15, 2022 @ 5:28am 
Unfortunately, I don't think that is possible. There generally is no need to do so, though, when playing on one of the recommended and supported map sizes.
Luc Jan 8, 2023 @ 4:54am 
Originally posted by BasTheBear:
Originally posted by Den Magiska Kebabsnurran:
A follow up question then is if its possible to change the amount of CO2 that is absorbed by plants, because it would be nice to have that aspect of the game functional even on bigger maps.

Hi Den Magiska,
To answer your question, it is possible to change the amount of co2 absorbed by tree's, plants, and its possible to remove the -max co2 in total, so the amount of -co2 from plants/tree's would show.

So if you want to you could scale map size, total amount of plants, tree's, to your own taste, and find a perfect balance between co2 absorption of nature vs co2 production of the machine's as those are also changeable, here are a few example config line's, so you have a idea where to start looking.

example plant:
Eco Server\Mods\__core__\AutoGen\Plant\Corn.cs
At Line 92: this.ReleasesCO2TonsPerDay = -0.0002f;

example Tree:
Eco Server\Mods\__core__\AutoGen\Plant\Birch.cs
At Line 90: this.ReleasesCO2TonsPerDay = -0.075f;

For changing pollution for example of a blast furnace the mechanics work a bit different.
the items itself has its own Smog Value, but the total co2 produced from it is a mix of its onwn value combined with scaling of map size.

Example Blast furnace:
Eco Server\Mods\__core__\AutoGen\WorldObject\BlastFurnace.cs
At Line 72: this.GetComponent<LiquidProducerComponent>().Setup(typeof(SmogItem), 1, this.NamedOccupancyOffset("ChimneyOut"));
At Line 92: [LiquidProducer(typeof(SmogItem), 1)]

And here is where to change the -500 cap, to any number you like.
Eco Server\Configs\EcoSim.eco
Eco Server\Configs\EcoSim.eco.template
At Line 26: "MinCO2PerDayFromPlants": -500.0,

there is no easy auto setup menu for these value's but if you play around with the numbers in the text config file's you can customize many things in eco to find the balance you want to try out.

Greatings,
Bas the bear.

Hey Bas the bear, thanks for this info! I was testing this for myself on a private server, and I noticed that all the trees I've tested so far absorb more co2 than is coded.. Ceibas/Oaks/Redwoods absorb 0.192 instead of 0.15, Birch/Ceders/Etc absorb 0.096 instead of 0.075.

Do you have any idea what is causing this effect? Is there a global modifier or something that I am missing?

Thanks in advance
Luc
Jorimoni Jan 11, 2023 @ 5:14am 
That's because there is a bit more to the calculation of PPM absorption than just the value in the config. The value in the config is the absolute value of CO2 that is absorbed from the atmosphere in tons. The atmosphere itself is calculated by world size. This makes it so that bigger worlds that can fit more trees have less absorption per tree than a small world. Likewise, polluting machines also have less of an impact on the atmosphere.

To calculate the size of the atmosphere (in tons) you multiply the X and Z dimensions of the world by the pressure per square meter (hardcoded at 1.5). So a standard world would be (720x720) * 1.5 = 777600. Then you can calculate the PPM per ton by dividing the volume of the atmosphere (standard 1000000) by the size of the atmosphere. So 1000000/777600 = 1.286 (rounded). So for each ton of CO2 you absorb / pollute you lose / gain 1.286 PPM

So in the example of Ceibas/Oaks/Redwoods/Old growths you know that they absorb 0.15 tons of CO2. So you can now do 1.286 (PPM per ton) * 0.15 (value from config) to arrive at the observed value of 0.1929, which is rounded down to 0.192.

Calculations for pollution generated by polluting machines like generators / cars is a bit more complex since it involves smog.

The exact calculations might be a bit different since I don't have access to the codebase and these calculations were reverse engineered through testing and observing the server config files. So far they also held up well against real values observed on a public server.
Last edited by Jorimoni; Jan 11, 2023 @ 9:03am
Luc Jan 24, 2023 @ 8:45am 
Originally posted by Jorimoni:
That's because there is a bit more to the calculation of PPM absorption than just the value in the config. The value in the config is the absolute value of CO2 that is absorbed from the atmosphere in tons. The atmosphere itself is calculated by world size. This makes it so that bigger worlds that can fit more trees have less absorption per tree than a small world. Likewise, polluting machines also have less of an impact on the atmosphere.

To calculate the size of the atmosphere (in tons) you multiply the X and Z dimensions of the world by the pressure per square meter (hardcoded at 1.5). So a standard world would be (720x720) * 1.5 = 777600. Then you can calculate the PPM per ton by dividing the volume of the atmosphere (standard 1000000) by the size of the atmosphere. So 1000000/777600 = 1.286 (rounded). So for each ton of CO2 you absorb / pollute you lose / gain 1.286 PPM

So in the example of Ceibas/Oaks/Redwoods/Old growths you know that they absorb 0.15 tons of CO2. So you can now do 1.286 (PPM per ton) * 0.15 (value from config) to arrive at the observed value of 0.1929, which is rounded down to 0.192.

Calculations for pollution generated by polluting machines like generators / cars is a bit more complex since it involves smog.

The exact calculations might be a bit different since I don't have access to the codebase and these calculations were reverse engineered through testing and observing the server config files. So far they also held up well against real values observed on a public server.

I never considered atmosphere as a factor but it makes a lot of sense. I think your observation is right, my simple testing gave me 0.1928 with 15 trees planted on the standard mapsize.

Thanks a lot! This helps in understanding the exact co2 mechanics.
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: Aug 10, 2022 @ 4:57am
Posts: 7