Unturned Dedicated Server throwing NullReferenceException

Hello, I am trying to run an unturned server on the latest LTS of Ubuntu, and I keep getting this error:

NullReferenceException: Object reference not set to an instance of an object
at SDG.Unturned.Level.getLevels (SDG.Unturned.ESingleplayerMapCategory categoryFilter) [0x0005a] in <2e141f4f166644f7b1cf7cb18421285f>:0
at SDG.Unturned.Assets+d__103.MoveNext () [0x0002d] in <2e141f4f166644f7b1cf7cb18421285f>:0
at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <02d1347c2c01482c9569cdd75ef8e404>:0

(Filename: <2e141f4f166644f7b1cf7cb18421285f> Line: 0)

I have the three folders in /Bundles/Workshop, Steam, Content, and Maps and it still throws this error.
Any other ideas? I have the workshop map “New Brunswick” in the Workshop maps folder and the regular maps folder.

Additonally, it throws this constant red text error throughout the starting process, and eventually stops after #ASSET LOADING

Failed to find reader for: System.Guid
Failed to find reader for: System.Type
Value cannot be null.
Parameter name: type
at System.Activator.CreateInstance (System.Type type, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object args, System.Globalization.CultureInfo culture, System.Object activationAttributes) [0x00003] in :0
at System.Activator.CreateInstance (System.Type type, System.Object args) [0x00000] in :0
at SDG.Unturned.Assets.loadFile (SDG.Unturned.Assets+ScannedFileInfo file) [0x00115] in <2e141f4f166644f7b1cf7cb18421285f>:0
Failed to find reader for: System.Guid
Failed to find reader for: System.Type
Value cannot be null.
Parameter name: type
at System.Activator.CreateInstance (System.Type type, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object args, System.Globalization.CultureInfo culture, System.Object activationAttributes) [0x00003] in :0
at System.Activator.CreateInstance (System.Type type, System.Object args) [0x00000] in :0
at SDG.Unturned.Assets.loadFile (SDG.Unturned.Assets+ScannedFileInfo file) [0x00115] in <2e141f4f166644f7b1cf7cb18421285f>:0
Failed to find reader for: System.Guid
Failed to find reader for: System.Type
Value cannot be null.

I’m on 20.10 and I don’t have any issues. You’re using U3DS and following the official guides, right?


It finishes it off as expected but I’m also not using any mods. Have you tried running it with just the vanilla files?

It’s completely vanilla other than the map. I didn’t follow the guide but I ran

Login anonymous
Force install dir
App_update 1110390

And then used a server helper.sh copy pointing to the server folder and it has the commands.dat properly configured

careful bro mossad is after u with that name

1 Like

I think that might be the issue. Try running the one in the folder instead of copying it to somewhere else.

It’s in the unturned folder, I just made a copy the ServerExample script (my bad, not server helper)
Here’s a screenshot of my folder:

But does it work if you run ServerHelper.sh normally?

I know this may not be very secure, but I just ran ‘sudo ./NB.sh’ and now it worked, there was some permission denied errors I didn’t see.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.