4 years ago
Bug with latest feature "Attack in preparation by sereral players"
Hi,
There is, I think, a bug since the last implementation of "Attack in preparation by XXX" that display player name of who is simming.
Here is the bug :
1 - ClientLib.Data.MainData.GetInstance().get_AllianceTargetWatcher()
Return the count of ONLINE/AWAY players that is watching the current camp/base
2 - ClientLib.Data.MainData.GetInstance().get_AllianceWatchListWatcher()
expected : Should return the list of ONLINE/AWAY alliance watchers with baseid/camp id associated. (to have similar behavior than get_AllianceTargetWatcher function)
actual : Return the list of ONLINE/AWAY/OFFLINE watchers with baseid/camp id associated.
And that's the problem, it should not return OFFLINE players.
In game what's happen :
Connect with player A, click on camp 1, and then logout to force offline status, or wait few minutes to have "Offline" status
Connect with player B, click on camp 1, it will not show any yellow message saying that attack is in preparation, that's normal since Player A is now offline, it use the first function to guess that and the function is fine.
Connect with player C, click on camp 1, it should show "Attack in preparation by Player B", instead it show "Attack in preparation by serveral players" because function 2 say that Player A is also siming that's not true.
Hope this can be fixed :smile:
There is, I think, a bug since the last implementation of "Attack in preparation by XXX" that display player name of who is simming.
Here is the bug :
1 - ClientLib.Data.MainData.GetInstance().get_AllianceTargetWatcher()
Return the count of ONLINE/AWAY players that is watching the current camp/base
2 - ClientLib.Data.MainData.GetInstance().get_AllianceWatchListWatcher()
expected : Should return the list of ONLINE/AWAY alliance watchers with baseid/camp id associated. (to have similar behavior than get_AllianceTargetWatcher function)
actual : Return the list of ONLINE/AWAY/OFFLINE watchers with baseid/camp id associated.
And that's the problem, it should not return OFFLINE players.
In game what's happen :
Connect with player A, click on camp 1, and then logout to force offline status, or wait few minutes to have "Offline" status
Connect with player B, click on camp 1, it will not show any yellow message saying that attack is in preparation, that's normal since Player A is now offline, it use the first function to guess that and the function is fine.
Connect with player C, click on camp 1, it should show "Attack in preparation by Player B", instead it show "Attack in preparation by serveral players" because function 2 say that Player A is also siming that's not true.
Hope this can be fixed :smile: