Page 1 of 1

[Solved] Support for tier 4 module graphics in beacons

Posted: Mon Nov 03, 2025 3:27 pm
by thesixthroc
Tserup and I wish to add graphical visualizations for tier 4 modules in the vanilla beacon, for the benefit of the Cerys and Frozeta mods. I tried using the following code, but it seems to have no effect. Could support for this be added?

Code: Select all

data.raw.beacon.beacon.graphics_set.module_visualisations[1].slots[1][1].pictures.filename =
	"__PlanetsLib__/graphics/entity/beacon/beacon-module-slot-1.png"
data.raw.beacon.beacon.graphics_set.module_visualisations[1].slots[1][1].pictures.line_length = 5
data.raw.beacon.beacon.graphics_set.module_visualisations[1].slots[1][1].pictures.variation_count = 5

data.raw.beacon.beacon.graphics_set.module_visualisations[1].slots[2][1].pictures.filename =
	"__PlanetsLib__/graphics/entity/beacon/beacon-module-slot-2.png"
data.raw.beacon.beacon.graphics_set.module_visualisations[1].slots[2][1].pictures.line_length = 5
data.raw.beacon.beacon.graphics_set.module_visualisations[1].slots[2][1].pictures.variation_count = 5

Re: Support for tier 4 module graphics in beacons

Posted: Mon Nov 03, 2025 3:57 pm
by Bilka
From what I can see in the code this should already work. The variation of the sprite is picked based on the tier of the module. Are you sure that the tier is set correctly on the module prototype?

Re: Support for tier 4 module graphics in beacons

Posted: Mon Nov 03, 2025 4:20 pm
by thesixthroc
In the prototype explorer I verified that the module in the beacon has category=speed and tier=4, and that there is no other code affecting beacons.

To accompany this report I am attaching a draft version of PlanetsLib with the relevant code included in `data-updates.lua`, which reproduces this issue when loaded alongside Cerys in the attached save.

Re: Support for tier 4 module graphics in beacons

Posted: Mon Nov 03, 2025 5:22 pm
by boskid
Everything on the engine side works correctly. There are additional sprites rendering on top from `beacon-module-mask-box-1.png` (slots[1][2]), `beacon-module-mask-lights-1.png` (slots[1][3]) and `beacon-module-lights-1.png` (slots[1][4]). If you temporarily comment those out you will see your tier-4 module sprites are rendered where they should be.