[2.0.76] nested-result direction deviation

Place to report issues and suggest improvements to the API documentation.
ruhnva
Burner Inserter
Burner Inserter
Posts: 6
Joined: Tue Mar 25, 2025 8:40 am
Contact:

[2.0.76] nested-result direction deviation

Post by ruhnva »

Using a nested-result and projectile action_delivery causes direction deviation to be ignored. Occurs on damaged_trigger_effect and on ammo_types for units.
vsc.png
vsc.png (42.19 KiB) Viewed 323 times
The above code sends all projectiles out at once, in the same direction. Resulting in a single blob of projectiles.

vsc2.png
vsc2.png (54.83 KiB) Viewed 323 times
This example is used in a unit's ammo_type for attack parameters with 12 projectiles. If nested, it results in all projectiles in the same spot. Without being nested, they fire in a wide radius around the unit.
Attachments
factorio-current.log
(5.13 KiB) Downloaded 12 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 16776
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.76] nested-result direction deviation

Post by Rseding91 »

Thanks for the report. Looking at the code - this is working correctly. When a trigger specifically targets an entity the direction deviation is not used. It's only when there is no direct entity target - or the projectile created is marked as direction_only - does the direction deviation get used.
If you want to get ahold of me I'm almost always on Discord.
ruhnva
Burner Inserter
Burner Inserter
Posts: 6
Joined: Tue Mar 25, 2025 8:40 am
Contact:

Re: [2.0.76] nested-result direction deviation

Post by ruhnva »

Sorry I forgot to mention, all my current projectiles have direction_only set to true, and they do work in non nested-result cases. Does an entities damaged_trigger_effect provide itself as a source_effect for the purpose of these triggers? Also thank you for the quick response and info!
Rseding91
Factorio Staff
Factorio Staff
Posts: 16776
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.76] nested-result direction deviation

Post by Rseding91 »

ruhnva wrote: Wed Apr 22, 2026 3:07 pm Does an entities damaged_trigger_effect provide itself as a source_effect for the purpose of these triggers?
Yes.
If you want to get ahold of me I'm almost always on Discord.
Rseding91
Factorio Staff
Factorio Staff
Posts: 16776
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.76] nested-result direction deviation

Post by Rseding91 »

I suggest going into "The Rest" settings GUI and enabling this setting
04-22-2026, 11-53-12.png
04-22-2026, 11-53-12.png (10.66 KiB) Viewed 223 times
It may help diagnose issues.
If you want to get ahold of me I'm almost always on Discord.
ruhnva
Burner Inserter
Burner Inserter
Posts: 6
Joined: Tue Mar 25, 2025 8:40 am
Contact:

Re: [2.0.76] nested-result direction deviation

Post by ruhnva »

Rseding91 wrote: Wed Apr 22, 2026 3:53 pm I suggest going into "The Rest" settings GUI and enabling this setting

04-22-2026, 11-53-12.png

It may help diagnose issues.
Thank you for the suggestion, the help, and the answers. That setting is extremely useful and I did not realize that it existed.
Post Reply

Return to “Documentation Improvement Requests”