[StrangePan][2.0.32] Demolisher is targeting the same force structures.

Bugs which we just recently fixed in our development version and will reach you in the next release.
heyqule
Long Handed Inserter
Long Handed Inserter
Posts: 68
Joined: Sun Mar 05, 2017 1:35 am
Contact:

[StrangePan][2.0.32] Demolisher is targeting the same force structures.

Post by heyqule »

What did you do? and What happened?

Modding demolisher to be on another force. I notice under my mod's "Free for all" mode, which all new enemy forces are against each. Demolisher targets it own force.

Demolish's force was change to anoter enemy force when it spawns with on_segment_entity_created event.

However when I place the new demolisher with the new enemy force in editor mode, it doesn't target structure from same force.

Youtube: https://www.youtube.com/watch?v=mUqvUNbGc5Q

Mod and Save:
The mods contain the dev builds of ERM.
The save should bring you to the starting spot of the video
Make sure "Enable Free for all" option in startup setting is checked

https://drive.google.com/drive/u/0/fold ... _4_OO8Q7TC


What did you expect to happen instead? It might be obvious to you, but do it anyway!

Demolisher from non "enemy" force should not target its own force.

Does it happen always, once, or sometimes?
Always
StrangePan
Factorio Staff
Factorio Staff
Posts: 154
Joined: Fri Dec 07, 2018 3:41 pm
Contact:

Re: [StrangePan][2.0.32] Demolisher is targeting the same force structures.

Post by StrangePan »

I think this is happening because changing the force of a singular segment entity is not in fact changing the force of the demolisher, whose AI and navigation live outside of the entity in a separate controller that is (currently) inaccessible to mods. So the AI/controller still belongs to the enemy force, while the head segment is separately assigned to the new force.

In 2.0.33 2.0.34, this will be fixed so that assigning a force to a Segment or SegmentedUnit entity will indeed update the force of the controller and potentially refresh the AI's attack target. Thank you for your report.
heyqule
Long Handed Inserter
Long Handed Inserter
Posts: 68
Joined: Sun Mar 05, 2017 1:35 am
Contact:

Re: [StrangePan][2.0.32] Demolisher is targeting the same force structures.

Post by heyqule »

Thank you for the quick fix. :D
Post Reply

Return to “Resolved for the next release”