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: 400
Joined: Thu Dec 21, 2017 8:02 am
Contact:

change color of turret radius on map?

Post by ownlyme »

is it even possible?
got this request:
https://mods.factorio.com/mod/uniturret ... 000d250d04
mods.factorio.com/user/ownlyme
My requests: uiAbove||Grenade arc||Blueprint allies||Creeps forget command/ don't get removed||Player Modifiers||textbox::selection||Better Heat IF||Singleplayer RCON||tank bug w/ min_range >= projectile_creation_distance

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

Re: change color of turret radius on map?

Post by posila »

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: 400
Joined: Thu Dec 21, 2017 8:02 am
Contact:

Re: change color of turret radius on map?

Post by ownlyme »

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: uiAbove||Grenade arc||Blueprint allies||Creeps forget command/ don't get removed||Player Modifiers||textbox::selection||Better Heat IF||Singleplayer RCON||tank bug w/ min_range >= projectile_creation_distance

Post Reply

Return to “Modding help”