Editor Setup
Visual Studio 2022 (Recommended)
-
Open the
MapleServer2
solution by double-clickingMapleServer2.sln
. -
Inside VS2022, right click on the
GameDataParser
project folder and selectSet as Startup Project
. Then run the project (F5). -
After it is finished set the startup project back to
MapleServer2
.
Visual Studio Code
-
Download .NET 6.0 SDK, if not already downloaded.
-
Open the project as a folder. File -> Open Folder -> Select the MapleServer2 folder
-
Then go to
Extensions
and install the C# extension. -
After opening the project, open terminal (Terminal -> New Terminal) and run
dotnet run --project GameDataParser/GameDataParser.csproj
Lua Setup for Visual Studio Code (Optional)
Can be skipped if you are using Visual Studio 2022. Install the Lua formatter extension. Then, inside settings.json
for your Visual Studio Code (CTRL + SHIFT + P -> type: 'settings (json)')
, add the following:
"editor.formatOnSave": true,
"[lua]": {
"editor.defaultFormatter": "Koihik.vscode-lua-format",
},
"vscode-lua-format.configPath": ".luaFormatConfig"
This enables the formatter on Lua files and formats them when you save them. It will load the .luaFormatConfig
file from the project's root directory.
CLI Setup
You can opt to run this emulator without an editor.
-
Download .NET 6.0 SDK, if not already downloaded.
-
Navigate to the MapleServer2 folder
-
Run
dotnet run --project GameDataParser/GameDataParser.csproj