Upload game build

To load a game build to the update server, use the Build Loader command-line utility.

Build Loader system requirements:

  • Windows 10 64-bit OS or macOS 12.4.0 and higher
  • 1.6 GHz CPU
  • 100 MB free RAM
  • Free disk space: 1.5 × game build size

Build Loader accepts the following options:

  • –init — initialization of the utility.
  • –update — sending the game build to the server.
  • –builds-list — a list of game builds.
  • –descr <build-description> — the build’s description.
  • –api-key <API-key> — an API key.
  • –game-path <path-to-game> — a path to the game build.
  • –chunk-size <chunk-size> — the size of chunks — parts into which the game archive is divided. Accepts values from 10mb to 500mb, default is 500mb.
  • –retry-timeout <timeout> — the timeout between attempts to upload files in seconds. Accepts values from 10 to 60, default is 20.
  • –retry-count <retry-count> — a number of attempts to upload files. Accepts values from 1 to 10, default is 3.
  • –set-build-on-test — placing the game build to the Draft stage. The game will be available only for testing.
  • –set-build-on-master — placing the game build to the Published stage. The game will be available for the end users. If –set-build-on-test is specified, this option is ignored.
  • -no-progressbar — disabling the progress bar.

To upload a game build:

  1. Go to Publisher Account > Build settings.
  2. Copy the API key.
  3. Download and install Build Loader.
  4. Initialize the utility.
  5. Upload the game build(s) to the server.
  6. Place the game build to the stage.
  7. Set up the game files.

Download and install Build Loader

To download and install Build Loader:

  1. In the Games section, click Set up to the right of your game.
  2. Go to Builds > Game builds.
  3. Download the archive with Build Loader by clicking BuildLoader.zip that suits your operating system.
  4. Extract the archive.

The utility location relative to the folder where you extracted the archive:

  • For Windows: Win\build_loader.exe
  • For macOS: Mac/build_loader

Initialize Build Loader

To initialize Build Loader:

  1. In the Games section, click Set up to the right of your game.
  2. Go to the Builds > Game builds section.
  3. Copy the API key by clicking the + icon in API key (launcher ID). The key enables Build Loader to upload your game to the server.
  4. Initialize the utility by running the following command:

Copy
Full screen
Small screen
    build_loader.exe --init --api-key <api-key> --game-path <path-to-game>
    

    Example

    Copy
    Full screen
    Small screen
      build_loader.exe --init --api-key E51DPZ486S9IUGVF43AH4T48QB7246OQ --game-path C:\Games\LastGameBuild
      

      Where:

      • api-key — the API key you previously copied.
      • path-to-game — the path to the game build on your machine. The path must contain only Latin letters.

      Note
      • You only need to initialize the utility once, unless you want to change the API key or the path to the game build.
      • The path to the game build may contain only Latin letters.

      Upload game build to the server

      To upload a game build to the server, run the following command:

      Copy
      Full screen
      Small screen
        build_loader --update --game-path <path-to-game> --descr <build-description>
        

        Example

        Copy
        Full screen
        Small screen
          build_loader.exe --update --game-path C:\Games\LastGameBuild
          

          You can omit the –game-path parameter if you have already used it when initializing the utility or uploading the previous build.

          During the first upload, the update server receives the whole game build. Afterwards it will receive game patches generated by Build Loader.

          Note
          We highly recommend specifying the –descr parameter, so that you can distinguish between the uploaded builds.
          To see the game builds:
          1. Open your project in Publisher Account.
          2. Click Launcher in the side menu.
          3. In Games section, click Set up to the right of your game.
          4. Go to Builds > Game builds.
          5. Scroll down to the Game builds table.
          Note
          If the game build contains files that change during gameplay, for example, settings, user profiles, or save files, add them to the list of ignored files. Otherwise, the launcher detects a file integrity violation when updating the game and downloads the whole game again

          Place the game build to the stage

          You can place the game build to a stage as follows:

          • When uploading the build to the server, pass the appropriate option to Build Loader: --set-build-on-master or --set-build-on-test.
          • After uploading the build to the server, do the following in the launcher project:
            1. In Games, click Set up to the right of your game.
            2. Go to Builds > Game builds.
            3. Scroll down to the Game builds table.
            4. In the Game builds table, click the pen icon to the right of the needed build.
            5. Click Set as published to place the game build to the published stage, or click Set as draft for the draft stage.
            6. Confirm your choice.
            7. Click Close.
            8. You will see the appropriate branch name for your build in the Branch column of the Game builds table. Also, your build will appear in the Branches table.

          Set up game files

          To let the launcher send the correct files to users, set up and initialize the installation files in your launcher project first:

          1. In Games, click Set up to the right of your game.
          2. Go to the Executable files tab.
          3. For each operating system, enter the name and extension of the file that launches the game. This file should be in the root of the game folder. For example: game.exe
          4. If your game has redistributable files:
            1. go to the Redistributables tab and click Upload.
            2. In the window that appears:
              1. Enter the file name.
              2. Click Upload file and select an executable file.
              3. Click Upload.

          The launcher forwards the following parameters to the game:

          • –xsolla-locale <locale>: interface language;
          • –xsolla-login-token <token>: Xsolla Login JWT (JSON Web Token).
          Example

          Copy
          Full screen
          Small screen
            game.exe --xsolla-login-token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6InAudHVnb2x1a292QHhzb2xsYS5jb20iLCJleHAiOjE1ODU1MDYxMTMsImdyb3VwcyI6W10sImlhdCI6MTU4NDY0MjExMywiaXNzIjoiaHR0cHM6Ly9sb2dpbi54c29sbGEuY29tIiwicGFydG5lcl9kYXRhIjp7ImFkbWluIjp0cnVlfSwicGF5bG9hZCI6IiIsInByb21vX2VtYWlsX2FncmVlbWVudCI6dHJ1ZSwicHJvdmlkZXIiOiJ4c29sbGEiLCJyZWRpcmVjdF91cmwiOiIiLCJzdWIiOiIyNmYxNzI5Ni00Nzk5LTExZTgtOTBkMC00MjAxMGE4YTAwMTkiLCJ0eXBlIjoic29jaWFsIiwidXNlcm5hbWUiOiJzb21lX3VzZXJAbWFpbC5jb20iLCJ4c29sbGFfbG9naW5fYWNjZXNzX2tleSI6Ikk2QTJrTEZPQ2JkcnUzamIxMjNyT3JmWnNkTnFpdVcxMjNpWTdKcW85OHI5b0hPbyIsInhzb2xsYV9sb2dpbl9wcm9qZWN0X2lkIjoiNDBkYjJlYTQtNWQ0Mi0xMWU2LWEzZmYtMDA1NDU2YTBlMTRhIn0.ZsTNiwY2iPp7HKqHs5g6JXzL2kv_RVuMNBlF-Tn2ccE --xsolla-locale en
            

            Tutorials

            Was this article helpful?
            Thank you!
            Is there anything we can improve? Message
            We’re sorry to hear that
            Please explain why this article wasn’t helpful to you. Message
            Thank you for your feedback!
            We’ll review your message and use it to help us improve your experience.

            Continue reading

            Last updated: August 30, 2024

            Found a typo or other text error? Select the text and press Ctrl+Enter.

            Report a problem
            We always review our content. Your feedback helps us improve it.
            Provide an email so we can follow up
            Thank you for your feedback!
            We couldn't send your feedback
            Try again later or contact us at doc_feedback@xsolla.com.