Skip to content

xulek/muonline

 
 

Repository files navigation

MuOnline

This project is built using .NET 9.0 and utilizes MonoGame for game development. Follow the instructions below to build and run the project.

Prerequisites

Make sure you have the following installed on your system:

Setup and Configuration

Step 1: Download the Game Data

Before running the project, you need to download the game data from the official source:

Download the game data

Step 2: Modify the Constants.cs File

Once the game data is downloaded, you need to configure the correct path in the code.

  1. Go to the file Client.Main\Constants.cs.

  2. Open the file and find the following line:

    public static string DataPath = @"C:\Games\MU_Red_1_20_61_Full\Data";
  3. Change the DataPath to point to the directory where you extracted the downloaded game files.

Step 3: Restore .NET Tools

To restore the necessary tools for building the project, run the following command in the terminal:

dotnet tool restore

Step 4: Build the Project

Build commands

Windows

dotnet publish ./MuWin/MuWin.csproj -f net9.0-windows -c Release

Android

dotnet publish ./MuAndroid/MuAndroid.csproj -f net9.0-android -c Release

iOS

dotnet publish ./MuIos/MuIos.csproj -f net9.0-ios -c Release

Run commands

Windows

dotnet run --project ./MuWin/MuWin.csproj -f net9.0-windows -c Debug

Android

 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

iOS

dotnet run --project ./MuIos/MuIos.csproj -f net9.0-ios -c Release

Step 5: Run the Project

To run the project, execute the following command:

dotnet run --project Client.Main/Client.Main.csproj

Additional Information

  • Dependencies are automatically restored when you build the project.

Feel free to open an issue if you encounter any problems.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 98.9%
  • HLSL 1.1%