Evolution and pollution statistics

User avatar
Ritn
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat Aug 01, 2020 2:29 am
Contact:

Evolution and pollution statistics

Post by Ritn »

Hello,

I've been developing a mod for 2 years.
https://mods.factorio.com/mod/RitnTeleportation

It allows players to create their own map just like it does in solo. Each player who connects can create his own map and through teleportation portals join the map of another in this way.
In addition to the map created for the player, I create a force on behalf of the player as well as an enemy force dedicated to this map.

Precisely my problem comes from the enemies and especially from their evolution.
Indeed, the evolution is dedicated to the map because I use the

Code: Select all

on_chunk_generated
event to change the strength of the spawners by the strength created for this map.

Evolution by time is set to 0 because a player present on the server will evaluate the enemy strength of other players who are not connected at that time.

Evolution by destruction works correctly, no worries on that side.

The evolution by pollution poses a problem, because the pollution is calculated globally on the part and not by map. suddenly the pollution factor increases exponentially according to the pollution generated by all the players.

So my question is, is it possible to make pollution / map stats and not for the whole game globally?

origin:

Code: Select all

game.pollution_statistics
change to:

Code: Select all

game.surfaces['my_surface'].pollution_statistics
My but is of course that the evolution is equivalent to a solo game for each of the maps.

thank you.
FuryoftheStars
Smart Inserter
Smart Inserter
Posts: 2768
Joined: Tue Apr 25, 2017 2:01 pm
Contact:

Re: Evolution and pollution statistics

Post by FuryoftheStars »

Your post could've used some better formatting or something to better highlight your request.

For others, the tl;dr is this:
Ritn wrote: Sun Feb 13, 2022 8:35 pm So my question is, is it possible to make pollution / map stats and not for the whole game globally?



That said, I think it'd be nice to see this as well.
My Mods: Classic Factorio Basic Oil Processing | Sulfur Production from Oils | Wood to Oil Processing | Infinite Resources - Normal Yield | Tree Saplings (Redux) | Alien Biomes Tweaked | Restrictions on Artificial Tiles | New Gear Girl & HR Graphics
User avatar
Stringweasel
Filter Inserter
Filter Inserter
Posts: 421
Joined: Thu Apr 27, 2017 8:22 pm
Contact:

Re: Evolution and pollution statistics

Post by Stringweasel »

This would be super useful for Space Exploration for example, having pollution per surface essentially. Curious if this is at least being considered for 1.2, because I'm hoping it will include mutliple surfaces as well :D
Alt-F4 Author | Factorio Modder
My Mods: Hall of Fame | Better Victory Screen | Fluidic Power | Biter Power | Space Spidertron | Spidertron Dock | Weasel's Demolition Derby
Official Contributor to Space Exploration
StrangePan
Factorio Staff
Factorio Staff
Posts: 136
Joined: Fri Dec 07, 2018 3:41 pm
Contact:

Re: Evolution and pollution statistics

Post by StrangePan »

This is implemented as of 2.0.
Post Reply

Return to “Implemented mod requests”