Page 1 of 1

Smoke With Trigger Error

Posted: Thu Nov 24, 2016 6:19 pm
by Ranakastrasz
Error when Loading Entity Prototype "flame-thrower-cloud" (smoke-with-trigger):FadeInDuration and FadeAwayDuration are overlapping. Modifications, Ranas-Combat-Revamp.

I have absoultely no clue how to interpret this. It worked fine before Factorio 0.14. I checked, poison clouds haven't changed in any way that should have caused this.

Code: Select all

    {
        type = "smoke-with-trigger",
        name = "flame-thrower-cloud",
        flags = {"not-on-map"},
        show_when_smoke_off = true,
        animation =
        {
            filename = "__base__/graphics/entity/flame-thrower-explosion/flame-thrower-explosion.png",
            priority = "extra-high",
            width = 64,
            height = 64,
            frame_count = 64,
            animation_speed = 1,
            line_length = 8,
            scale = 1,
        },
        slow_down_factor = 0,
        affected_by_wind = false,
        cyclic = true,
        duration = 64,--60 * 1,
        fade_away_duration = 2 * 60,
        spread_duration = 10,
        color = { r = 1, g = 1, b = 1 },
        action =
        {
            type = "direct",
            action_delivery =
            {
                type = "instant",
                target_effects =
                {
                    type = "nested-result",
                    action =
                    {
                        type = "area",
                        perimeter = 1,
                        --entity_flags = {"breaths-air"},
                        action_delivery =
                        {
                            type = "instant",
                            target_effects =
                            {
                                type = "damage",
                                damage = { amount = 1.0, type = "fire"}
                            }
                        }
                    }
                }
            }
        },
        action_frequency = 8
    },

Re: Smoke With Trigger Error

Posted: Fri Nov 25, 2016 1:08 pm
by Rseding91
It's saying that the time it takes to fully fade in overlaps with the time it takes to fade out.

So say the lifetime is 200 ticks:

150 ticks to fade in fully
150 ticks to fade out fully

So at tick 50 it's still fading in but it should be fading out because in 150 ticks the fade out would finish and it would be gone.

Re: Smoke With Trigger Error

Posted: Fri Nov 25, 2016 6:51 pm
by Ranakastrasz
Ok, but I don't see where the fade-in duration occurs.

Re: Smoke With Trigger Error

Posted: Sun Dec 04, 2016 10:43 pm
by aubergine18
Maybe there's a default non-zero fade_in duration?

Re: Smoke With Trigger Error

Posted: Mon Dec 05, 2016 12:21 am
by Ranakastrasz
What I meant was I never defined a fade_in duration, so the error is confusing. I think it refers to the "spread_duration", but I can't really know that.