🌐Planetaris: Tellus

by Syen_ce

Tellus, a planet full of life, mycelia and chlorophyll, infected by dangerous parasites and clouds of pollen corrode materials. Create and plant living machinery and try to keep it alive

Content
a month ago
2.0
14.3K
Factorio: Space Age Icon Space Age Mod
Planets Logistics Combat Enemies Environment Mining Fluids Logistic network Manufacturing Power

b Turrets can't target medium/big/behemoth wasps (collision_mask missing player/trigger_target)

6 days ago

On Tellus, turrets never target the medium, big, and behemoth wasps -- they
attack freely while turrets sit idle. The small wasp is targeted normally.

Cause: the larger wasps' collision_mask drops the layers needed for turret
targeting. In prototypes/entity/enemies.lua:

small-wasp:    collision_mask = { layers = { player = true, train = true, is_object = true, is_lower_object = true } }
medium-wasp:   collision_mask = { layers = { train = true } }
big-wasp:      collision_mask = { layers = { train = true } }
behemoth-wasp: collision_mask = { layers = { train = true } }

Turret target acquisition in 2.0 requires the target to carry either the
"player" or the "trigger_target" collision layer. The default unit mask is
{ player, train, is_object } (targetable via "player"); "trigger_target" is
defined by the base game as "for collision masks that collide with nothing, but
still need to be targetable by trigger events".

small-wasp has "player", so it's targetable. medium/big/behemoth have only
"train" -- neither "player" nor "trigger_target" -- so no turret can target them.

Suggested fix: give the larger wasps the same targetable layer as small-wasp,
e.g. add "player" (or at minimum "trigger_target") to their collision_mask:

collision_mask = { layers = { train = true, trigger_target = true } }

(trigger_target collides with nothing, so it won't change their movement.)

Workaround: a data-final-fixes mod that adds trigger_target to
data.raw.unit["medium-wasp"/"big-wasp"/"behemoth-wasp"].collision_mask.layers
restores turret targeting.

Environment: Factorio 2.0.77 (Space Age), macOS; Planetaris: Tellus 1.1.7.

Thanks for the mod!

a day ago

Oh this is a bug, ill fix it in the next update, thanks!

New response