change color of turret radius on map?

Place to get help with not working mods / modding interface.
Post Reply
User avatar
ownlyme
Filter Inserter
Filter Inserter
Posts: 268
Joined: Thu Dec 21, 2017 8:02 am
Contact:

change color of turret radius on map?

Post by ownlyme » Wed Jun 12, 2019 5:01 pm

is it even possible?
got this request:
https://mods.factorio.com/mod/uniturret ... 000d250d04
mods.factorio.com/user/ownlyme
My requests: Blueprint allies||Creeps forget command/ don't get removed||Grenade arc||Player Modifiers||Gui Root||textbox::selection||Better Heat IF||Singleplayer RCON||Serializing function refs in global table...

posila
Factorio Staff
Factorio Staff
Posts: 3492
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: change color of turret radius on map?

Post by posila » Wed Jun 12, 2019 5:32 pm

Changing the color globally is possible by changing data.raw["utility-constants"].default.chart.turret_range_color

It is not possible to set the color per turret type and I'd prefer to keep it that way, because turret ranges case humangous amount of overdraw when zoomed in, and optimizations depend on the fact they all have the same color.

User avatar
ownlyme
Filter Inserter
Filter Inserter
Posts: 268
Joined: Thu Dec 21, 2017 8:02 am
Contact:

Re: change color of turret radius on map?

Post by ownlyme » Wed Jun 12, 2019 5:48 pm

This is very helpful.
The artillery has it's minimum range displayed as a green radius .. i think i could use that. (though i don't find it's minimum range color in utility-constants ... but green is totally fine for me)
mods.factorio.com/user/ownlyme
My requests: Blueprint allies||Creeps forget command/ don't get removed||Grenade arc||Player Modifiers||Gui Root||textbox::selection||Better Heat IF||Singleplayer RCON||Serializing function refs in global table...

Post Reply

Return to “Modding help”

Who is online

Users browsing this forum: No registered users