#SyncIDictionary
19 messages · Page 1 of 1 (latest)
@timid basalt Hey, sending DMs if anything will actually make questions harder to find so please keep them in the server here. If you do not get a response within 24 hours (which I do see it's been close to that) feel free to tag helpers(I'll get the tag too).
PS: to help please post the error as text.
@shadow crypt the txt error is FishNet.CodeGenerating.IL.Core.FishNetILPP: (0:0): error - Field _player_item in type Equilibrium.WorldServer.Clients.Character_Prefab_Initiator is unhandled
Oic. Use SyncDictionary not SyncIDictionary
@shadow crypt now error 'SyncDictionary<int, int>' does not contain a constructor that takes 2 arguments and idk how to update the constructor for v4, no info for SyncDictionary. Intellicode tell me to replace by SyncIDictionary
private readonly SyncDictionary<int, int> _player_item = new(
new SyncDictionary<int, int>(), new(WritePermission.ServerOnly));
If I remove WritePermission it's ok, but how to set write permission so ?
With the UpdateSettings or UpdatePermissions methods that you can call on your SyncDictionary.
You will be able to set it from the constructor soon though
@tender otter heads up for you too, I think you had this problem?
@upbeat jungle Rand into another problem now (not sync propely for new clients) but idk if I need to open another. Maybe it's the same than https://github.com/FirstGearGames/FishNet/issues/505
Well, you could try the fix there to see if it works for your situation
Version 4 constructors are being fully implemented next v4 release
Just tried thefix, it spawn me 29 error in Assets\FishNet\Runtime\ files
Oh, right, that fix is for v3
Ok plan B, you could open a new post detailing the problem you are currently having
Then we can try to solve it and see if it's related to the above issue
ok, many thanks for this thread btw
I did, thank you 😄