Transparency with tiles in map.

Place to get help with not working mods / modding interface.
Post Reply
User avatar
jamiechi1
Fast Inserter
Fast Inserter
Posts: 196
Joined: Wed Jan 03, 2018 10:12 pm

Transparency with tiles in map.

Post by jamiechi1 »

I created a mod that adds tiles to the game.
I used map_color as shown to set the color in the map view for all my tiles.
code: map_color={r=0.1, g=0.1, b=0.1, a=0.05},
Is the alpha value supposed to work? (I don't think the alpha has any effect.)
I don't see any difference in the map view when changing the alpha value.

I also found that after changing the map_color values, and restarting the game, you have to remove and replace an item to get the map colors to change to the new settings. And that only changes the map colors in the current chunk that the player is in when the item(s) is(are) replaced.

Is there a way to force the map to update completely when the map_color is changed?

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Transparency with tiles in map.

Post by Klonan »

jamiechi1 wrote:
Wed Nov 06, 2019 12:28 am
Is there a way to force the map to update completely when the map_color is changed?
game.player.force.rechart()

User avatar
jamiechi1
Fast Inserter
Fast Inserter
Posts: 196
Joined: Wed Jan 03, 2018 10:12 pm

Re: Transparency with tiles in map.

Post by jamiechi1 »

Thank you.

Post Reply

Return to “Modding help”