[Rseding91] [0.16.15] artillery autotargets cease_fire=true forces

This subforum contains all the issues which we already resolved.
Post Reply
i1728
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Jan 08, 2018 2:47 pm
Contact:

[Rseding91] [0.16.15] artillery autotargets cease_fire=true forces

Post by i1728 » Mon Jan 08, 2018 3:08 pm

Suppose there are two forces, A and B. Force A has a ceasefire with force B, set by

Code: Select all

game.forces.A.set_cease_fire('B', true)
. An artillery turret belonging to force A will automatically target and fire on aggressive units, such as turrets, owned by force B. In order to prevent artillery turrets belonging to force A from automatically firing on aggressive units owned by force B, force A must have force B set to friend, as in

Code: Select all

game.forces.A.set_friend('B', true)
. This seems unintuitive since having a ceasefire with another force should prevent all turrets from automatically targeting that force and not just non-artillery turrets.
Attachments
force_target_bug.zip
example game demonstrating the contrast in behavior between gun turrets and artillery turrets
(1.13 MiB) Downloaded 17 times

Rseding91
Factorio Staff
Factorio Staff
Posts: 9471
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Rseding91] [0.16.15] artillery autotargets cease_fire=true forces

Post by Rseding91 » Mon Jan 08, 2018 9:09 pm

Thanks for the report. It's now fixed for the next version of 0.16.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”

Who is online

Users browsing this forum: No registered users