View Issue Details

IDProjectCategoryLast Update
0026438AI War 2Gameplay IssueFeb 21, 2022 6:09 pm
ReporterBadgerBadger Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product VersionBeta 3.805 Bolstering Spire 
Fixed in VersionBeta 3.901 Modular Forcefields 
Summary0026438: Instigators on MP client has issues
DescriptionThe 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
TagsNo tags attached.

Relationships

related to 0026439 resolvedChris_McElligottPark MP errors 3.805 

Activities

BadgerBadger

Feb 18, 2022 1:59 pm

manager   ~0064588

I am very intrigued by the fact that the Instigator PerUnitData on the client doesn't seem to have the expected values

BadgerBadger

Feb 18, 2022 3:12 pm

manager   ~0064590

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

Chris_McElligottPark

Feb 21, 2022 6:09 pm

administrator   ~0064647

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.

Issue History

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