Help changing the tint on fire-flame smoke

Place to get help with not working mods / modding interface.
Post Reply
doktorstick
Fast Inserter
Fast Inserter
Posts: 144
Joined: Fri Aug 12, 2016 10:22 pm
Contact:

Help changing the tint on fire-flame smoke

Post by doktorstick »

Howdy. I've made a change to fire-flame, partially to be a different color given the environment. However, I'm struggling to get the roiling smoke clouds to have the new flame's tint.

Here's the route I went. The I tried both .tint and .color, using green as it's easy to tell if it is working. The flames are green, but the cloud of smoke still has the orange glow to it. Mainly I'm shotgunning changes in hopes they work... hence why adding it on both .smoke and .smoke_source_pictures.

Code: Select all

local flame = util.table.deepcopy (data.raw.fire["fire-flame"])
flame.name = test-flame"
flame.pictures = fireutil.create_fire_pictures (picture_opts)  -- custom function to set the tint for the flames
for _, smoke in pairs (flame.smoke) do
  smoke.color = fireutil.make_color (0, 1, 0, 0.75)
  smoke.tint = fireutil.make_color (0, 1, 0, 0.75)
end
for _, smoke in pairs (flame.smoke_source_pictures) do
  smoke.color = fireutil.make_color (0, 1, 0, 0.75)
  smoke.tint = fireutil.make_color (0, 1, 0, 0.75)
end
Thanks for the assist.
Hacked Splitters - the mod prophesied to bring balance to the belts

Post Reply

Return to “Modding help”