Page 1 of 1

[2.0.58] Beacon radius visualisation displays incorrectly when supply_area_distance is 0

Posted: Sun Jul 06, 2025 10:12 pm
by Osmo
I have a a mod with a beacon defined like this:

Code: Select all

data:extend{{
    type = 'beacon',
    name = 'beacon2',

    selection_priority = 80,
    selection_box = {{-0.5, -0.5}, {0.5, 0.5}},
    collision_box = {{-0.4, -0.4}, {0.4, 0.4}},
    collision_mask = {layers = {}},
    supply_area_distance = 0,
    
    module_slots = 1,
    allowed_effects = {'productivity'},
    distribution_effectivity = 1,
    energy_source = { type = 'void' },
    energy_usage = '1W',
    
    radius_visualisation_picture = {
        filename = '__base__/graphics/entity/beacon/beacon-radius-visualization.png',
        priority = 'extra-high-no-scale',
        width = 10,
        height = 10
    },
}}
Beacon supply radius is defined as distance from collision box
When supply_area_distance is 1, the visualisation (yellow rectangle) looks correctly.
изображение.png
изображение.png (232.3 KiB) Viewed 482 times
When supply_area_distance is 0, the visualisation is not visible
изображение.png
изображение.png (240.09 KiB) Viewed 482 times
Yet the actual area of effect transmission is the same size as the collision box, and machines are affected by the beacon correctly
изображение.png
изображение.png (378.22 KiB) Viewed 482 times

Re: [2.0.58] Beacon radius visualisation displays incorrectly when supply_area_distance is 0

Posted: Mon Jul 07, 2025 7:27 am
by Genhis
Thanks for the report, this is not a bug.

Re: [2.0.58] Beacon radius visualisation displays incorrectly when supply_area_distance is 0

Posted: Mon Jul 07, 2025 8:34 am
by Genhis
Apparently it is a bug, it used to work 6 years ago. Fixed for 2.0.59.