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
Make repair/rearm of ground units queueable #16721
Conversation
Updated. |
We are missing the target lines when ordering repairing. Is this intended and will be fixed with #16549? |
That wasn't intended, no. Updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Helicopters in RA don't take off at all if you queue a reload and repair activity.
Not this PR's fault and intentional, see discussion in #16660. We can still change that back after the first playtest if the feedback on that is negative. As far as this PR is concerned, manually set Edit: Ah wait, nevermind, they should at least take off, right. |
Intentional and not caused by this PR
As discussed on IRC, fixing that in a non-work-around way requires #16509 to be finished and merged first. |
#16509 has been merged. |
|
Updated. Fingers crossed that the last commit might already be enough. |
Needs a rebase after #16481 was merged. |
The fix works. However, aircraft with I also noticed that when an aircraft with |
Fixing this properly would likely require to remove the hacky re-queueing of |
I agree with deferring these issues to Next+1. As far as refactoring |
Found another bug: In D2K, orders queued after the repair order get ignored when the unit has been carried by a carryall. |
I'm pretty sure it was that way before this PR already. |
Any activity in the queue carries a reference to the next activity in the queue. So passing |
OK, not that easy, unfortunately. Resupply triggers the request right on its first tick, so any activity queued after the transport was requested is ignored. I think this might require refactoring how RequestTransport works, but that would be out of scope for this PR. |
When the time comes, this can be done the same way I was arguing the transport locking for passengers should be done. Right now the carryall makes the requesting actor cancel its activity and queues a |
Can we at least leave that to a follow-up? I'm literally getting a headache right now so I won't get that done today, and as long as this PR drags on I won't make progress on #16695's update rule, either. |
"When the time comes" are the magic words 😄 IMO that is a job for Next + 1. |
I was referring to the "right now" as well ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With those known issues deferred to the future, I think this is good to go. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise it looks good. Did not test the update rules
Reservable logic doesn't handle repairs, and we don't want aircraft to block repair bays etc. until it does.
Fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The important issues from earlier reviews appear to have been resolved.
The logic (both code and expected gameplay behaviours) here is complicated, so I expect that more regressions will probably be found in this code. The changes here are a needed step forward, so lets get these in as a first step to all the other fixes discussed above, and any other fixes that might be needed for Next.
Moves
Repairable(Near)
activity handling toResupply
activity, plus a few fixes.Implements first step of #15023 (comment)
Fixes #16462.
Fixes #16463.
Fixes #16761.
Fixes #16492.