player.tint( <color> ) & surface.tint()

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

player.tint( <color> ) & surface.tint()

Post by aubergine18 »

Allow tinting of world for specific player and/or surface via script.

Example uses:

* Weather effects (foggy/cloudy, lightning, heatwave, cold, etc)
* Poison symptoms (blurred/foggy vision, random blackouts, etc)
* Cutscenes (fading the screen before, during or after a scripted cutscene)

The effect will usually be surface specific (eg. weather effects), but sometimes player specific (eg. poison effect, cutscenes), hence wanting it on both LuaPlayer and LuaSurface.

There are workarounds such as damaging the player (causes map to flash tinted color) or equipping them with modded nightvision goggles (without time constraint), but there is very little control over tint color (eg. to tween). Both these workarounds are cumbersome to mod, and would be confusing to players (seeing random damage or equipment appearing due to tinting).

Assuming there needs to be an order of precedence:

1. Damage tint
2. Surface tint
3. Player tint
4. Equipment tint

However, if all active tints could somehow be 'merged' then that would be even better.
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
Post Reply

Return to “Modding interface requests”