After I updated carbon the plain stopped working

after i did the update i recieved this error:

> c.reload NTeleportation
Warning! 'NTeleportation' uses UnityEngine.GameObject.FindObjectsOfType. That may cause significant performance drops, and/or server stalls. Report to the developer or use at your own discretion!
Failed compiling 'NTeleportation.cs':
1. The type 'JsonSerializerSettings' is defined in an assembly that is not referenced. You must add a reference to assembly 'Newtonsoft.Json, Version=*.*.*.*, Culture=neutral, PublicKeyToken=null'. [CS0012]
(NTeleportation 24 line 707)

 

i cannot use the plugin anymore

how can i fix it?

hi, update Carbon again. there is no compile issue.

UnityEngine.GameObject.FindObjectsOfType is used to find monuments and is not an issue either.

> c.reload NTeleportation
Unloaded plugin NTeleportation v1.7.8 by nivex
Warning! 'NTeleportation' uses UnityEngine.GameObject.FindObjectsOfType. That may cause significant performance drops, and/or server stalls. Report to the developer or use at your own discretion!
Loaded plugin NTeleportation v1.7.8 by nivex [440ms]

Hi mutaz,

Did you ever resolve the JsonSerializerSettings? I'm having the same issue on a brand new rust server running carbon.

1. The type 'JsonSerializerSettings' is defined in an assembly that is not referenced. You must add a reference to assembly 'Newtonsoft.Json, Version=*.*.*.*, Culture=neutral, PublicKeyToken=null'. [CS0012]

(NTeleportation 24 line 745)



Merged post

I managed to find the solution on the carbon discord. Its related to the Newtonsoft.Json.dll file in the root of the server folder used to do the initial install of MyRustServer. Once I deleted this file the problem went away.