"apply_runtime_tint" not working?

Place to get help with not working mods / modding interface.
Gizzmohammer
Manual Inserter
Manual Inserter
Posts: 4
Joined: Wed May 07, 2025 1:55 am
Contact:

"apply_runtime_tint" not working?

Post by Gizzmohammer »

Hi, Looking for some advice

"apply_runtime_tint" seems to do nothing.
Both Layers of my animation have tint applied to them regardless of what it's set to

Code below is in data.lua:

Code: Select all

local cargoCrateAnimationLayered = {
  type = "animation",
  name = "cargo-crate-animation-layered",
    layers = {
    {
      filenames = {
        "__alchemy__/CargoCrates/crate-sprite-sheets/crate-base-1.png",
        "__alchemy__/CargoCrates/crate-sprite-sheets/crate-base-2.png",
        "__alchemy__/CargoCrates/crate-sprite-sheets/crate-base-3.png",
        "__alchemy__/CargoCrates/crate-sprite-sheets/crate-base-4.png"
      },
      size = {256,256},
      scale = 0.5,
      shift = {0,-0.5},
      frame_count = 64,
      line_length = 8,
      animation_speed = 1,
      lines_per_file = 8,
      apply_runtime_tint = true,
    },
    {
      filenames = {
        "__alchemy__/CargoCrates/crate-sprite-sheets/crate-rust-1.png",
        "__alchemy__/CargoCrates/crate-sprite-sheets/crate-rust-2.png",
        "__alchemy__/CargoCrates/crate-sprite-sheets/crate-rust-3.png",
        "__alchemy__/CargoCrates/crate-sprite-sheets/crate-rust-4.png"
      },
      size = {256,256},
      scale = 0.5,
      shift = {0,-0.5},
      frame_count = 64,
      line_length = 8,
      animation_speed = 1,
      lines_per_file = 8,
      apply_runtime_tint = false,
    },
  }
 }
then this is in control.lua

Code: Select all

zone.crateSpriteEntity = rendering.draw_animation {
	animation = "cargo-crate-animation-layered",
	animation_speed = 0,
	target = zoneEntity,
	tint = zone.crateColor,
	surface = zoneEntity.surface,
	render_layer = "object"
	}
Post Reply

Return to “Modding help”