[2.0.14] Crash (Animation::loadFrames)
Posted: Thu Nov 07, 2024 2:32 pm
				
				It has something to do with animation layers
			Code: Select all
tractor.animation.layers =
{
  {
    priority = "low",
    width = 512,
    height = 512,
    frame_count = 8,
    scale = 0.5,
    direction_count = 64,
    animation_speed = 2,
    max_advance = 0.2,
    stripes =
    {
    {
    filename = "__dopetorio__/graphics/entity/tractor/tractor-1.png",
    width_in_frames = 8,
    height_in_frames = 16
    },
    {
    filename = "__dopetorio__/graphics/entity/tractor/tractor-2.png",
    width_in_frames = 8,
    height_in_frames = 16
    },
    {
    filename = "__dopetorio__/graphics/entity/tractor/tractor-3.png",
    width_in_frames = 8,
    height_in_frames = 16
    },
    {
    filename = "__dopetorio__/graphics/entity/tractor/tractor-4.png",
    width_in_frames = 8,
    height_in_frames = 16
    }
    }
  },
  {
    priority = "low",
    width = 512,
    height = 512,
    frame_count = 2,
    scale = 0.5,
    draw_as_shadow = true,
    direction_count = 64,
    max_advance = 0.2,
    stripes = {
      {
      filename = "__dopetorio__/graphics/entity/tractor/tractor-1.png",
      width_in_frames = 8,
      height_in_frames = 16
      },
      {
      filename = "__dopetorio__/graphics/entity/tractor/tractor-2.png",
      width_in_frames = 8,
      height_in_frames = 16
      },
      {
      filename = "__dopetorio__/graphics/entity/tractor/tractor-3.png",
      width_in_frames = 8,
      height_in_frames = 16
      },
      {
      filename = "__dopetorio__/graphics/entity/tractor/tractor-4.png",
      width_in_frames = 8,
      height_in_frames = 16
      }
      }
  }