Page 1 of 1

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

Posted: Thu Oct 02, 2025 4:17 pm
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

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

Posted: Thu Oct 02, 2025 4:55 pm
by Donion
The issue is a missing rotating_sound .. which is supposed to be optional. I'll get that fixed.

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

Posted: Fri Oct 03, 2025 1:24 pm
by Donion
Thanks for the report, the issue is now fixed for the next release.

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

Posted: Fri Oct 03, 2025 1:26 pm
by Osmo
Thanks for fixing it and for the early clarification!