New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SAM site stays after being sold during low-power #7442
Comments
Thanks. Now that we have a reproduce-case, maybe someone can fix it :) |
This behaviour is induced by the AttackFollow Activity, which the SAM site has every tick, even when powered down. Subsequently https://github.com/OpenRA/OpenRA/blob/bleed/OpenRA.Mods.Common/Traits/Attack/AttackFollow.cs#L74 will return early without going to the next activity (being sold). I changed that line to return NextActivity, and selling a powered down, attacking SAM site worked fine. I am not sure what other side effects this has as I guess there is a reason why a disabled actor in AttackFollow mode should not do anything else. |
First thing that comes to mind is an EMP-ed tank continuing to chase a target after the EMP effect wears off. But you are on a good path. |
I cannot reproduce this on -playtest at all. Is this still an issue, or has it been fixed by accident? |
@obrakmann Thats strange as I can still reproduce this on the latest bleed. |
I think I found out why it isn't always repoducible. In https://github.com/OpenRA/OpenRA/blob/bleed/OpenRA.Mods.Common/Traits/Sellable.cs#L46 All the activities are cancelled before selling the building. But the animation will take some time to sell, so a new attack activity can be placed in the queue blocking the eventually sell (after the animation). I have proposed another fix in #7544, |
Selling should take the building lock. I think we shouldn't be queuing any
Is this not right? It would mean that capture in progress prevents firing On Mon, Mar 2, 2015 at 7:42 AM, Peter Evers notifications@github.com
|
@chrisforbes I think that would indeed mean that capturing a building would immediately disable attack moves which isn't preferred in my opinion I outputted the queue activity in this situation:
So preventing attack activities on disabled buildings may fix this bug and also improve a lot on efficiency I think. I'll try that out now. |
Closed with #7544. |
It was targeting a plane while looking like that. I had to press sell multiple times before it was sold properly. This is in release-20141029. Might be related to #6076.
The text was updated successfully, but these errors were encountered: