Railgun functionality missing

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2124
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Railgun functionality missing

Post by Ranakastrasz »

I've been using a modified railgun in one of my mods. With Version 0.12.21, it no longer works. I tested the normal railgun via console, and it is also entirely nonfuctional. It fires, but nothing registers as hit.

I am not certain if this technically qualifies as a game bug, since the railgun is only technically in the game, since it isn't craftable.

Code: Select all

data.raw["ammo"]["flame-thrower-ammo"].ammo_type =
{
    category = "flame-thrower",
    target_type = "direction",
    action =
    {
        {
            type = "line",
            range =3,
            width = 1,

            source_effects =
            {
                type = "create-entity",
                entity_name = "railgun-beam"
            },
            action_delivery =
            {
                type = "instant",
                target_effects =
                {
                    {
                        type = "create-entity",
                        entity_name = "flame-thrower-cloud"
                    },
                    {
                        type = "damage",
                        damage = { amount = 3, type="fire"}
                    }
                }
            }
        },
        {
            type = "line",
            range = 6,
            width = 2,

            source_effects =
            {
                type = "create-entity",
                entity_name = "railgun-beam"
            },
            action_delivery =
            {
                type = "instant",
                target_effects =
                {
                    {
                        type = "create-entity",
                        entity_name = "flame-thrower-cloud"
                    },
                    {
                        type = "damage",
                        damage = { amount = 3, type="fire"}
                    }
                }
            }
        },
        {
            type = "line",
            range = 9,
            width = 4,

            source_effects =
            {
                type = "create-entity",
                entity_name = "railgun-beam"
            },
            action_delivery =
            {
                type = "instant",
                target_effects =
                {
                    {
                        type = "create-entity",
                        entity_name = "flame-thrower-cloud"
                    },
                    {
                        type = "damage",
                        damage = { amount = 3, type="fire"}
                    }
                }
            }
        },
        {
            type = "direct",
            repeat_count = 4,
            action_delivery =
            {
                type = "projectile",
                projectile = "flame-thrower-projectile",
                starting_speed = 1,
                direction_deviation = 0.4,
                range_deviation = 1,
                max_range = 8
            }
        }
    }
}
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: Railgun functionality missing

Post by kovarex »

Thanks for the report, it is fixed for 0.12.22 now.

Post Reply

Return to “Resolved Problems and Bugs”