HivePlugin cache event bugs

zhuchun
zhuchun
edited October 2018 in Photon Server
Hi, I've found 2 bugs when using HivePlugin to broadcast.

1. When cacheOp==AddToRoomCacheGlobal, the HivePlugin is going to wrap custom event twice for the cached event, that makes the data struct inconsistency.
https://imgur.com/9DtTxPd

2. When cacheOp==RemoveFromCacheForActorsLeft, the GSGame.log print unsupported, I've no idea about how to remove a room cache.
https://imgur.com/X70rkay

I'm making an authoritative game where player can join/leave any time, so I want to cache those instantiate events in case player who joined later can see everything.

UPDATE 1:
I guess I should implement them myself? :D
HiveHostGame.BroadcastEventInternal()
...
if (cacheOp != (byte)CacheOperation.AddToRoomCache
&& cacheOp != (byte)CacheOperation.AddToRoomCacheGlobal)
{
msg = string.Format("Unsupported value {0} for cacheOp", cacheOp);
Log.Error(msg);
throw new ArgumentException(msg);
}
...

Comments