Smoke With Trigger Error

Place to get help with not working mods / modding interface.
User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2179
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Smoke With Trigger Error

Post 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
    },
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Rseding91
Factorio Staff
Factorio Staff
Posts: 15997
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Smoke With Trigger Error

Post 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.
If you want to get ahold of me I'm almost always on Discord.
User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2179
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: Smoke With Trigger Error

Post by Ranakastrasz »

Ok, but I don't see where the fade-in duration occurs.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: Smoke With Trigger Error

Post by aubergine18 »

Maybe there's a default non-zero fade_in duration?
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2179
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: Smoke With Trigger Error

Post 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.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Post Reply

Return to “Modding help”