Page 1 of 1

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

Posted: Tue Mar 31, 2015 6:04 pm
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?

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

Posted: Thu Apr 09, 2015 9:19 am
by kovarex
Yes, the map colors should be moddable rather than hardcoded.

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

Posted: Thu Apr 16, 2015 4:06 pm
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.

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

Posted: Fri Jun 12, 2015 4:55 pm
by Rseding91
This has been added in 0.12.