Changes to Data Types in 5/4/23Solved

VisEntities hotfixed my plugin ManageMini.

orginal Code:

(BaseNetworkable.serverEntities.Find(getMiniData(player, 5)) as IOEntity) != null)​


changed Code:
 (BaseNetworkable.serverEntities.Find(new NetworkableId(getMiniData(player, 5))) as IOEntity) != null) 


I finally got a chance to check out this compiling error. However, I cannot find the assembly file that list this necessary change. MS Visual Studio is stating that it needs a reference to Rust.Data since NetworkableId is not resolved. 

"Severity Code Description Project File Line Suppression State
Error CS0012 The type 'NetworkableId' is defined in an assembly that is not referenced. You must add a reference to assembly 'Rust.Data, Version=*.*.*.*, Culture=neutral, PublicKeyToken=null'. ManageMini2 E:\Rust UMod Plugins\Editted\ManageMini2\ManageMini2\ManageMini.cs 105 Active"

Now I have all the .dll files that are packaged with Oxide.Rust v2.0.5861 referenced in MS Visual Studio.  However, where am I able to find the update API documentation for this change to insure that the hotfix that VisEntities did is the appropriate fix before I make the change to the code on umod?  In addition, where can I find the Rust.Data .dll so that I can update my solution reference library in MS Visual Studio?

The error that the server admin sent me was: 

Error while compiling: ManageMini.cs(1339,54): error CS1503: Argument #1' cannot convert uint' expression to type `NetworkableId'

I must be losing my mind.  I blame working too much. Using JetBrains DotPeek, I found the reason buried in the dll files. BaseNetworkable Find method now requires the use of NetworkableId.

public BaseNetworkable Find(NetworkableId uid)
    {
      BaseNetworkable baseNetworkable = (BaseNetworkable) null;
      return !this.entityList.TryGetValue(uid, ref baseNetworkable) ? (BaseNetworkable) null : baseNetworkable;
    }​

That is the reason that VisEntities hotfix added the constructor call (new NetworkableId()).

Still looking for the dll Rust.Data to add to Visual Studio.

Update your server and then look in the Managed folder. It should be there.

Thank-you. I was able to get the dll file.

Locked automatically