This project is built using .NET 9.0 and utilizes MonoGame for game development. Follow the instructions below to build and run the project.
Make sure you have the following installed on your system:
Before running the project, you need to download the game data from the official source:
Once the game data is downloaded, you need to configure the correct path in the code.
-
Go to the file
Client.Main\Constants.cs
. -
Open the file and find the following line:
public static string DataPath = @"C:\Games\MU_Red_1_20_61_Full\Data";
-
Change the
DataPath
to point to the directory where you extracted the downloaded game files.
To restore the necessary tools for building the project, run the following command in the terminal:
dotnet tool restore
dotnet publish ./MuWin/MuWin.csproj -f net9.0-windows -c Release
dotnet publish ./MuAndroid/MuAndroid.csproj -f net9.0-android -c Release
dotnet publish ./MuIos/MuIos.csproj -f net9.0-ios -c Release
dotnet run --project ./MuWin/MuWin.csproj -f net9.0-windows -c Debug
dotnet publish ./MuAndroid/MuAndroid.csproj -f net9.0-android -c Release -p:AndroidSdkDirectory=C:\Users\linuxer\AppData\Local\Android\Sdk -p:JavaSdkDirectory=D:\mu\microsoft-jdk-11.0.26-windows-x64\jdk-11.0.26+4 -p:AcceptAndroidSdkLicenses=True
dotnet run --project ./MuIos/MuIos.csproj -f net9.0-ios -c Release
To run the project, execute the following command:
dotnet run --project Client.Main/Client.Main.csproj
- Dependencies are automatically restored when you build the project.
Feel free to open an issue if you encounter any problems.