Skip to content
_DiSay edited this page Jan 15, 2022 · 7 revisions

Prerequisites

Minimal .NET 6.0 SDK

Getting the source

The first step is to clone this repository (or your fork).

git clone https://github.com/NiclasOlofsson/MiNET.git .

Configuration

See Configuration, the file may be found at .\src\MiNET\MiNET.Console\server.conf

Building the source

If you're using Visual Studio, just right click and build the solution file, otherwise use

dotnet build .\src\MiNET\MiNET.sln.

The command also automatically downloads any missing dependencies since .NET Core 2.0.

Running the server

For Visual Studio, set the MiNET.Console project as your startup project and F5 as usual, otherwise use

cd .\src\MiNET\MiNET.Console\

dotnet run

If everything went as expected, you should see a similar output:

Are you blessed with HW accelerated vectors? Yep!
Operations timed using the system's high-resolution performance counter.
  Timer frequency in ticks per second = 4101562
  Timer is accurate within 243 nanoseconds
 WARN [?] - No level.dat found at D:\Development\DOES NOT EXIST\level.dat. Creating empty.
 WARN [?] - No level.dat found at D:\Development\DOES NOT EXIST\level.dat. Creating empty.
 WARN [?] - No level.dat found at D:\Development\DOES NOT EXIST\level.dat. Creating empty.
MiNET running. Press <enter> to stop service.

Troubleshooting

Connecting to the server locally (Minecraft for Windows 10)

If you want to locally connect on your machine (127.0.0.1 or localhost), you need create a loopback exemption for the Minecraft UWP app.

Just run PowerShell as Admin and run the following script

CheckNetIsolation LoopbackExempt -a -n="Microsoft.MinecraftUWP_8wekyb3d8bbwe"

File or directory not found (Linux)

If you get an exception that some path/file was not found and the displayed paths contain backslashes, you have to manually edit the file src/MiNET/MiNET.Console/server.conf and fix the paths.

ERROR [?] - Error during startup!
System.IO.DirectoryNotFoundException: Could not find a part of the path "/mnt/hdd/MiNET/src/MiNET/MiNET.Console/bin/Debug/D:\Development\Worlds\TopixMedia Lobby/level.dat".