SmartlyDressedGames/Unturned-3.x-Community

Assembly-CSharp can't be found

Closed this issue · 9 comments

While testing my plugin, I got this issue with openmod, and another platform aswell. Not sure how to fix it, but translated it says that the system wasn't able to find the file
image

Hey, @Luis-Tanese!

What plugins are you using / do you know which plugin is causing this error message to appear?

That's strange.. have you tried updating OpenMod and the nuget package for it to the latest versions?

What framework are you targeting?

Edit: Just checked the openmod discord and someone else had the same issue, may be worth joining so you know when it gets fixed

https://discord.gg/WXT2r2ztgE

Hey @MoltonMontro
The plugin is a plugin I was making for a commission, this issue was happening with OpenMod and uScript as far as I can remember. Probably didn't happen to rocket but I don't use it so I can't really tell.

Jdance mentioned on the forum that removal of InteractableDoorHinge caused some issues (didn't think any plugin would be referencing that, my bad) - perhaps related?

well, that is exactly what happened with another project I was making in uscript, happened with open mod as well so I thought it was related. Especially this error:

-> Line: 752
-> Column: 19
-> Info: Could not resolve type with token 010000d3 from typeref (expected class 'SDG.Unturned.InteractableDoorHinge' in assembly 'Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null')
StackTrace:
        at command_@open() line 752```

Sorry about that! Is this open command yours? If so, if you adjust it to use GetComponentInParent that should do the trick.

Since openmod uses a nuget package to reference unturned dlls it's not always up to date to the latest update (the last update was 3 months ago). Since that class was removed in the actual game its not able to find the type it's expecting based on your references, so you need to just not use that type (InteractableDoorHinge) and it should work okay.

Thank you, now it works fine

Glad to hear you got it working! And, thanks DanielWillett!