#SyncIDictionary

19 messages · Page 1 of 1 (latest)

timid basalt
#

Hi, I have a problem on SyncIDictionary my code seem to be ok (no error in VS) and I don't understand why I have this error. Using Fishnet Pro 4.0.2

shadow crypt
#

@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.

timid basalt
#

@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

shadow crypt
#

Oic. Use SyncDictionary not SyncIDictionary

timid basalt
#

@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 ?

upbeat jungle
#

You will be able to set it from the constructor soon though

upbeat jungle
timid basalt
upbeat jungle
shadow crypt
#

Version 4 constructors are being fully implemented next v4 release

timid basalt
#

Just tried thefix, it spawn me 29 error in Assets\FishNet\Runtime\ files

upbeat jungle
upbeat jungle
#

Then we can try to solve it and see if it's related to the above issue

timid basalt
#

ok, many thanks for this thread btw