Is it possible to change the color of entities of the map?

Post Reply
Pickle

Is it possible to change the color of entities of the map?

Post by Pickle »

All enemy entities are currently colored red on the map. This results in most nests being a cluster**** of red squares making it impossible to tell what is actually there. I went to attack what looked like a single spawner and it ended up being just a bunch of worms. At the very least I'd like different colors for spawners and worms.

Is it possible for a mod to change the map colors?

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: Is it possible to change the color of entities of the map?

Post by kovarex »

Yes, the map colors should be moddable rather than hardcoded.

User avatar
ludsoe
Fast Inserter
Fast Inserter
Posts: 243
Joined: Tue Feb 11, 2014 8:16 am
Contact:

Re: Is it possible to change the color of entities of the map?

Post by ludsoe »

Just ran some code to add map_color from the resources on the worms....
In short it didn't work, the faction color overwrote it.

Code: Select all

local Worms = {{N="small-worm-turret",R={r=0, g=0.8, b=0.8}},{N="medium-worm-turret",R={r=0, g=0.8, b=0.8}},{N="big-worm-turret",R={r=0, g=0.8, b=0.8}}}
for i,d in pairs(Worms) do data.raw["turret"][d.N].map_color=d.R end
Edit: For some reason the second half of my post didn't post, so ill say it again. I went on to suggest having map coloring modes that can be set.

Faction Colors
Entity Colors

Faction colors would only display colors based on the entity's faction's relation to the player's faction.

Entity colors would use the map_color inside the function when available otherwise it defaults to the faction color.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13240
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Is it possible to change the color of entities of the map?

Post by Rseding91 »

This has been added in 0.12.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Implemented mod requests”