NorthstarLauncher/BUILD.md

3.1 KiB

Build Instructions

The following steps will allow you to compile your own NorthstarLauncher executable from the code in this repository. If you still have questions, you may ask in the Discord Server

This guide assumes you have already installed Northstar as shown in this page

Steps

  1. Download the code from the R2Northstar/NorthstarLauncher repo
  2. Unzip the file.
  3. Place the file somewhere memorable, such as in your Documents directory
  4. Install Visual Studio 2022 from this link. Northstar uses the vc2022 compiler, which is provided with Visual Studio. You only need to download the Community edition.
  5. If you are prompted to download Workloads, check "Desktop Development with C++" If you are not prompted, don't worry, you'll be able to install this later on as well.

Desktop Development Workload

  1. Open the NorthstarLauncher folder you unzipped with Visual Studio. A tab should open on the right hand side titled "Solution Explorer."

This is a good time to edit the code. From the Solution Explorer, you can find any file you want to modify and do so. Don't forget to save your changes.

  1. Double click on R2Northstar.sln in the Solution Explorer. If you have not installed the Desktop Development Workload, you might be prompted now. If everything is correct, the Solution Explorer should change to two files: Northstar and NorthstarLauncher
  2. In the top ribbon, press on Build, then Build Solution.

Build Ribbon Button

  1. Wait for your build to finish. You can check on its status from the Output tab at the bottom
  2. Once your build is finished, Open the directory in File Explorer. Then, go to x86 > Debug. You should see NorthstarLauncher.exe and Northstar.dll, as well as a couple other files.
  3. In your Titanfall2 directory, move the preexisting NorthstarLauncher.exe and Northstar.dll into a new folder. You'll want to keep the default launcher backed up before testing any changes.
  4. Back in the build debug directory, Move NorthstarLauncher.exe and Northstar.dll to your Titanfall2 folder.

If everything is correct, you should now be able to launch the Northstar client with your changes applied.

VS Build Tools

Developers who can work a command line may be interested in using Visual Studio Build Tools to compile the project, as an alternative to installing the full Visual Studio IDE.

Follow the same steps as above for Visual Studio Build Tools, but instead of opening in Visual Studio, run the Command Prompt for VS 2022 and navigate to the NorthstarLauncher, then run msbuild, which will build the project for you.