Skip to content

Developing Autopilot

zrisher edited this page May 2, 2017 · 18 revisions

Requirements

To work with Autopilot, you will need:

Git

Install a git client. GitHub for Windows is recommended.

Ensure you create your own github fork to hold your changes.

Next, clone the repo to your machine.

  • Launch GitHub for Windows
  • click the plus, then clone
  • select the fork you just created.

Load-ARMS

Ensure you've installed Load-ARMS and have set SE to load it automatically according to its readme.

Python

  • Grab a copy from Python.org, version 3.X.X
    • After selecting a destination directory, on the "Customize Python 3.X.X" screen:
      • Scroll down to "Add python.exe to Path". Click on the red X, next to it. Click on "Will be installed on local hard drive"
    • Proceed with installation.
    • Restart if requested.

If you skipped the "Add python.exe to Path" step, see this SO post.

Building

Configuration

The first time you build ARMS, you will have to setup build.ini

  • In the .build directory, copy build-template.ini to build.ini
  • Open build.ini in a text editor and set up the path to Git and Space Engineers
  • If you have 7-Zip installed and want to compress archived scripts, change the path to Zip7 to reflect your system.
  • Save and close build.ini

Running the build

  • Launch Visual Studio
  • Change the build to Debug to enable logging
  • Build the solution

If that proceeds without errors, SE will automatically start and you should be able to load ARMS directly from the mod menu.

Debugging the build

If you encounter issues with the build, logs can be found in the build dir.