View Issue Details
ID | Project | Category | Date Submitted | Last Update | |
---|---|---|---|---|---|
0026438 | AI War 2 | Gameplay Issue | Feb 18, 2022 12:56 pm | Feb 21, 2022 6:09 pm | |
Reporter | BadgerBadger | Assigned To | Chris_McElligottPark | ||
Status | resolved | Resolution | fixed | ||
Product Version | Beta 3.805 Bolstering Spire | ||||
Fixed in Version | Beta 3.901 Modular Forcefields | ||||
Summary | 0026438: Instigators on MP client has issues | ||||
Description | The host is reporting reasonable times, the client is showing giant negative numbers. Here's the code InstigatorPerUnitBaseInfo localData = entity.GetExternalBaseInfoAs<InstigatorPerUnitBaseInfo>(); .... if ( localData != null ) buffer.AddSecondsRemaining( localData.TimeForNextEffect - World_AIW2.Instance.GameSecond ); else buffer.Add( "?s" ); I suspect the TimeForNextEffect is 0 for some non-obvious reason | ||||
Tags | No tags attached. | ||||
related to | 0026439 | resolved | Chris_McElligottPark | MP errors 3.805 |
|
I am very intrigued by the fact that the Instigator PerUnitData on the client doesn't seem to have the expected values |
|
What seems to be happening is that the Instigators DeepInfo is updating the TimeForNextEffect on the host, but that value isn't being sync'd to the client. So for the first time the Instigator base's effect happens, it looks fine on the client. But since the value is never updated, the notitfication numbers get all wonky |
|
Thanks! * FlagForForcedFullSyncToClients_FromHost() is now called on instigators after their times are updated on the host, so that clients will see the new info. ** This is a good example of the MP model doing exactly what it is supposed to, but the code for the faction not being very MP-oriented and so the client seeing something suboptimal. ** Most things like this are automatically handled by the mouseover from the client calling a request, but since this is an indireect notifier and not a direct mouseover, the host code has to be updated. ** This is untested, but should work just fine. |
Date Modified | Username | Field | Change |
---|---|---|---|
Feb 18, 2022 12:56 pm | BadgerBadger | New Issue | |
Feb 18, 2022 1:59 pm | BadgerBadger | Note Added: 0064588 | |
Feb 18, 2022 3:12 pm | BadgerBadger | Note Added: 0064590 | |
Feb 21, 2022 5:36 pm | BadgerBadger | Relationship added | related to 0026439 |
Feb 21, 2022 6:09 pm | Chris_McElligottPark | Assigned To | => Chris_McElligottPark |
Feb 21, 2022 6:09 pm | Chris_McElligottPark | Status | new => resolved |
Feb 21, 2022 6:09 pm | Chris_McElligottPark | Resolution | open => fixed |
Feb 21, 2022 6:09 pm | Chris_McElligottPark | Fixed in Version | => Beta 3.901 Modular Forcefields |
Feb 21, 2022 6:09 pm | Chris_McElligottPark | Note Added: 0064647 |