Menu

SFS

Phillip Kilgore

(This page is a work in progress)

This page is about the KSP Savegame format. Some of this is documented by the KSP Wiki, but apparently only for cosmetic tweaks. The SFS file seems to have some interesting parameters that are not normally exposed in the game, and so it is hopeful that this research is useful even if KSTweak fails. As an example, it appears that one may:

  • Forbid the use of any building through the GAME::SPACECENTER::CanGoIn* properties.
  • Forbid saving or loading via the Game::EDITOR::Can[Save|Load] properties.
  • Name kerbals something other than Foo Kerman

This has the possibility to create bizarre game modes that may or may not go horribly wrong.

Structure

The grammar appears to be at least context-free in that braces must be balanced. An SFS file can be represented as a tree with two specific kinds of nodes: interior nodes (herein nodes) and properties. Nodes contain other nodes or parameters. Properties are of the form "key=value".

The GAME Node

This appears to be the root node in which all other nodes are contained.

Parameters

version

The version of the game that this save was created with. Valid values include:

  • 0.21.0
  • 0.24.0 - Final Contract
  • 0.90.0 - Beta Than Ever
  • 1.0.2 - KSP Gold (Patch 2)

Other values may be permissible (espescially in the future).

Title

The human-readable title of the savegame.

Description

Some sort of description for the savegame. Normally, this appears to be "No description available.". In some of the training scenarios, this contains the flavor text for the mission

linkURL

Unknown; presumably a hyperlink of some kind.

linkCaption

Unknown; probably human-readable text for the linkURL.

Mode

Either an integer or string value specifying the play mode in question. Since version 0.24.0, it looks like SANDBOX and CAREER are supported; ver

Status

Unknown

scene

Unknown, but presumably the Unity scene from which the savegame begins.

editor

Unknown.

flag

The relative path of the flag bitmap. Seems to be relative to the <gamedata> directory.</gamedata>

launchID

Unknown; presumably the ordinal of the next launch.

The VESSEL Node


MongoDB Logo MongoDB