Compiling

The first step before making changes to the source code is getting it to compile. Intersect relies on dozens of external libraries and tools (ie MonoGame, Newtonsoft Json.Net, etc) and our project is designed to fetch those dependencies automatically from Nuget.

In order to get started open the Intersect.sln file in the Intersect-Engine folder. The solution should open in Visual Studio 2019.

solution

In most cases all you should have to do is hit Build -> Build Solution at the top of your Visual Studio window and it will fetch all the dependencies for you automatically.

building

Your first build will probably fail with errors seen below. This is due to the project downloading the dependencies during a build that a successful build depends on.

errors

If you experience the errors above just click Build > Clean Solution and then Build -> Build Solution again. If that doesn’t work try restarting visual studio.

clean

Visual Studio will notify you of a successful build in the bottom left corner of your ide.

success

The compiled version of Intersect can be found in your Intersect-Engine/build directory. There will be a lot of xml files along side the executables but you should only really care about the .exe and .pdb files for the Client, Editor, and Server for now.

output

** Please note, if you want to run your client or editor using the debugger you will need to download and place the appropriate assets in the /build/debug/client and /build/debug/editor directories. **