Fix the NullReferenceException Connection Error on a New Rust Server
A new Rust server can disconnect you with this error:
Disconnected: Exception (cs: 73433): NullReferenceException: Object reference not set to an instance of an object.
AdaptMeshToTerrain.Adapt()
It happens when no map has been picked yet, so the server can't build a world. Setting the map fixes it.
Steps
- Log in to the Game Control Panel and navigate to your Rust server.
- Click the HH Server Admin icon.
- Click Settings on the left.
- In the Map section, set Map (for example Procedural Map), a Map seed and a Map size between 1000 and 6000.
- Click Save, then restart your server.
The server builds a world from that seed and size, and you can connect. While you're in Settings, you can also set your server name.