[Donion] [2.0.69] Crash creating high range artillery turret (AdvancedVolumeControl::getFadeModifier)

User avatar
Osmo
Fast Inserter
Fast Inserter
Posts: 162
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

[Donion] [2.0.69] Crash creating high range artillery turret (AdvancedVolumeControl::getFadeModifier)

Post by Osmo »

The turret is defined like this:

Code: Select all

data:extend{
    {
        type = "artillery-turret",
        name = "spos-dummy-artillery",
        gun = "artillery-wagon-cannon",
        manual_range_modifier = 7*32,
        collision_mask = {layers = {}},

        is_military_target = false,
        alert_when_attacking = false,
        disable_automatic_firing = true,

        inventory_size = 1,
        ammo_stack_limit = 1,
        turret_rotation_speed = 1,
        cannon_base_shift = {0,0,0},
    },
}
When it is created (from editor or by script), the game crashes.
I'd expect the range should be checked during prototype loading instead of crashing at runtime
Attachments
factorio-current.log
(12.84 KiB) Downloaded 5 times
Donion
Factorio Staff
Factorio Staff
Posts: 431
Joined: Sun Aug 22, 2021 9:18 am
Contact:

Re: [Donion] [2.0.69] Crash creating high range artillery turret (AdvancedVolumeControl::getFadeModifier)

Post by Donion »

The issue is a missing rotating_sound .. which is supposed to be optional. I'll get that fixed.
Post Reply

Return to “Assigned”