HivePlugin cache event bugs
Options
zhuchun
✭
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?
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);
}
...
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?
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);
}
...
0
Comments
-
Update 2:
That actually works. But in order to debug the loadbalacing application, can I attach my IDE to some process like what we can do to HivePlugin?
------------------------------------------------------------------
I just found https://forum.photonengine.com/discussion/423/how-to-debug-server-code/p2
PhotonHive project can be attached to PhotonSocketServer process.0