[0.12.33] Animation Speed of flame-thrower-explosion

This subforum contains all the issues which we already resolved.
donfussl
Burner Inserter
Burner Inserter
Posts: 15
Joined: Sat Apr 09, 2016 11:20 pm
Contact:

[0.12.33] Animation Speed of flame-thrower-explosion

Post by donfussl »

Hey,

today i have been messing around with the flamethrower, trying to modify the animation speed of its projectiles to get them to live longer, travel further etc. The part i modified was in
"__base__/prototypes/entity/entities.lua"
more specific this one:

Code: Select all

{
    type = "flame-thrower-explosion",
    name = "flame-thrower-explosion",
    flags = {"not-on-map"},
    animation_speed = 1,
    animations =
    {
      {
        filename = "__base__/graphics/entity/flame-thrower-explosion/flame-thrower-explosion.png",
        priority = "extra-high",
        width = 64,
        height = 64,
        frame_count = 64,
        line_length = 8
      }
    },
    light = {intensity = 0.2, size = 20},
    slow_down_factor = 1,
    smoke = "smoke-fast",
    smoke_count = 1,
    smoke_slow_down_factor = 0.95,
    damage = {amount = 0.25, type = "fire"}
  }
While modifying the animation speed i noticed no difference ingame. When i moved the animation_speed declaration into the animations bracket and changed its value like this:

Code: Select all

{
    type = "flame-thrower-explosion",
    name = "flame-thrower-explosion",
    flags = {"not-on-map"},
    animations =
    {
      {
        filename = "__base__/graphics/entity/flame-thrower-explosion/flame-thrower-explosion.png",
        priority = "extra-high",
        width = 64,
        height = 64,
        animation_speed = 2,
        frame_count = 64,
        line_length = 8
      }
    },
    light = {intensity = 0.2, size = 20},
    slow_down_factor = 1,
    smoke = "smoke-fast",
    smoke_count = 1,
    smoke_slow_down_factor = 0.95,
    damage = {amount = 0.25, type = "fire"}
  },
it actually did change something ingame. I guess the animation_speed = 1 is just in the wrong place then, though it doesnt matter, as the default animation speed is 1? Not really a bug, since it doesnt change anything if the animation speed declaration is put in the animations bracket, but it surely would be a nice cleanup for any modding work regarding the flamethrower-explosion.
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5284
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.12.33] Animation Speed of flame-thrower-explosion

Post by Klonan »

Thanks for the report,

The animation_speed definition should be in the animation definition
The whole flamethrower stuff has been redone in 0.13, so i will check that this has been resovled with the flamethrower update
Post Reply

Return to “Resolved Problems and Bugs”