Pollution & Noise Completer
Beschreibung
Some vehicle mods make no noise and no pollution at all, and some passenger vehicles have no comfort value. This is not intended by their authors. It is caused by a small detail in the vehicle files. This mod finds such vehicles and gives them realistic values, calculated by the game itself.
The problem
Every vehicle model has an emissions block with a noise and a pollution part. Most mods write score = -1 there, which tells the game: "calculate the value for me". The game then estimates it from the vehicle's year, speed, power, weight, size and engine type, the same way as for the base game vehicles.
The game only does this when the value is exactly score = -1. If the score is missing, it is treated as 0. This happens when:
- the block is empty: noise = { }, pollution = { }
- only idle = -1, speed = -1, power = -1 are given, without a score
Such a vehicle runs through your towns completely silent and clean, so towns do not react to it and your lines look better than they really are.
What this mod does
- When the game loads vehicle models, it looks for vehicles with no score and no positive values of their own.
- For those vehicles it sets score = -1 and runs the game's own emission calculation again.
- Vehicles that already have values, set by their author or calculated by the game, are left unchanged.
- No files of other mods are changed. Everything happens in memory while the game loads.
Example
An electric locomotive from a vehicle mod has this in its model file:
noise = { idle = -1, speed = -1, power = -1 } pollution = { idle = -1, speed = -1, power = -1 }
There is no score, so without this mod the game gives it:
- Noise: 0
- Pollution: 0
With this mod, the game calculates the values from the locomotive's data (year 2021, electric engine, 5600 kW, 160 km/h, 79 t):
- Noise: about 42
- Pollution: about 25
For comparison, the electric locomotives of the base game have on average about 47 noise and 21 pollution. The exact numbers can differ slightly in your game.
A vehicle that already has, for example, noise = { score = 65 } keeps its 65.
Comfort
Comfort works the same way. The game calculates a passenger vehicle's comfort from its data only when the model has comfortFactor = -1. A vehicle with no comfortFactor at all gets a fixed default, no matter if it is a horse carriage or a modern coach.
For such vehicles the mod sets comfortFactor = -1 and lets the game calculate it. Examples (scale 0 to 1):
- A 1920s bus: about 0.51
- A 1990s city bus: about 0.91
- A small 19th-century steamboat: about 0.12
Vehicles that already have a comfort value keep it.
Options
- Fill missing noise and pollution: On (default) or Off.
- Fill missing comfort: On (default) or Off.
Usage
- Activate the mod in a new game, or add it to an existing save in the Load Game menu.
- It works for vehicles that are already running in your save. Values are recalculated every time the game loads.
- You can remove it at any time. The affected vehicles will go back to 0 noise and 0 pollution.
- The game's log file stdout.txt lists every fixed vehicle in lines starting with [emissions_fix].
Notes
- This mod changes gameplay, so achievements are disabled in saves that use it.
- It does not depend on any other mod and works with all vehicle mods.
Bilder
Mod melden
Die Meldung gilt ausschließlich für Version 1.0. Bitte nur melden, wenn du diese Version selbst getestet hast.
Melde dich an, um eine Meldung abzugeben. Pro Konto, Mod-Version und Kategorie zählt eine Meldung.
Kommentare
Auf mod.io öffnen ↗