-
Notifications
You must be signed in to change notification settings - Fork 42
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
Units attacking twice #2431
Comments
I'm still running the last version you asked me to test (the one with the fixed maps). |
When the client gets a |
The server only ever sends a |
...which is itself sent upon receiving a unit packet and the packet's |
The GUI is supposed to call |
I eliminated an entire civ with Combat_Rounds set to 2 (what a pain!) and couldn't see this. Maybe with occupychance... |
No difference after a few attempts with occupychance |
It is true that it seems to come and go. This morning I saw it happen
several times over a single turn, but other times I can carry a whole
turn's worth of attacks without noticing it happen...
…On Sat, 2 Nov 2024, 22:50 Louis Moureaux, ***@***.***> wrote:
I eliminated an entire civ with Combat_Rounds set to 2 (what a pain!) and
couldn't see this. Maybe with occupychance...
—
Reply to this email directly, view it on GitHub
<#2431 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJUETHPD3DNAUVV74JUSRULZ6V6OPAVCNFSM6AAAAABRCAFUJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJTGI2TMOBVGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Maybe a network delay is involved then... :( |
Are you testing it on a local server? Could it have something to do with reaching the remote server and returning? |
Yes... maybe I need to introduce a delay in the server response... |
Well, there's always tomorrow's turn 😄 |
Reproduced it! With questions disabled:
|
It's not necessary to select another unit. Clicking on the attacker while the server is busy is enough. |
The issue is that while |
There are two flags:
The fundamental issue is the client-side flag:
I think we need a second per-unit flag that the client can use to prevent duplicate requests for the same unit without constraining (or adding latency to) focus change. |
indeed, I was able to consistently reproduce by selecting another unit before the attack actually went through. |
On top of the above, managing state in the action dialog is a nightmare of static variables and functions that need to be called in a precise order from multiple places. I think a rewrite is needed... |
Describe the bug
It has been reported that sometimes units attack twice without being asked. For one user attack is automatic, for another the action choice popup is shown again after attacking. This does not always happen.
Will try to investigate for v3.1 but fixing this is not critical.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Units don't attack without being asked.
Platform and version (please complete the following information):
Additional context
We have more action dialog issues: #768 #2039
The text was updated successfully, but these errors were encountered: