-
Notifications
You must be signed in to change notification settings - Fork 737
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
Repair - Fix unit being vanilla engineer with Repair enabled #10337
Conversation
I have a hard time believing that - not because it's impossible, but because a lot of code within ACE wouldn't be executing as expected. We definitely need to investigate that further. |
I can believe it, CSW used to duplicate mags because of similar behavior. |
True. I just want to be sure, so we can implement mitigations properly (e.g. in CSW you added 1 second delay, whereas here it's only a frame later - is one frame enough? Is there a standard delay that we'd want to implement?). |
Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>
Wrap the original code in a |
I tried to replicate the issue, but I just don't have the setup to do so. Can anyone else please try to replicate? |
439ebd7
to
0f03855
Compare
You mean just do |
The fix doesn't work. I found reliable repro steps for me:
Mission will start for some seconds. Player is not local neither in current frame nor in the next frame for |
Now it works. For me in the worst case delay for locality pass is about 12 seconds. Just need to make server doing something long at So it looks like JIP but it's not JIP. And now we know that player is not always local to client machine. |
When merged this pull request will:
I met this bug only once in multiplayer when made Repair
enable
setting. Since then I played hundred of times as engineer withDEBUG_MODE_FULL
but bug disappeared. And when I tested 3.18.0 RC1 I met it again.getUnitTrait "engineer"
can returnnil
(e.g. forace_dragging_clone
) so I added nil check.InitPost
event unit is (can be?) local for both server and client. In the next frame unit became local only for client in my tests.I used this code:
client:
server:
The fix looks bad I know. Any suggestions are welcomed.