Reference

Allows the user to import, create, manipulate, and export Factorio blueprint strings.

DEFAULT_FACTORIO_VERSION = (2, 0, 0)

The Factorio version that Draftsman should assume it is operating under if it cannot determine the version from it’s current environment, due to its absence or corruption. Should rarely (if ever) need to be used, intended to be a last-ditch fallback.

Draftsman includes most of it’s methods organized within a number of submodules:

  • blueprintable

    Includes all Blueprintable objects, such as Blueprint, BlueprintBook, UpgradePlanner, DeconstructionPlanner, as well as Draftsman’s Group.

  • constants

    Commonly (re)used enumerations required when defining blueprints or their entities.

  • entity

    All Entity implementations, as well as their abstract base classes.

  • error

    All exception types that Draftsman can issue.

  • extras

    Extra features, such as a function to reverse all belts in a blueprint.

  • signatures

    Abstract data format “signatures”, for data types that are used across multiple class implementations.

  • tile

    The Tile class and related methods.

  • utils

    Additional generic utility functions.

  • warning

    All warning types that Draftsman can issue.

  • classes

    A directory containing all primary (sub)class implementations.

  • environment

    A directory containing modules for extracting data from Factorio and storing it as Draftsman’s environment.

  • data

    A directory containing modules reading and modifying Draftsman’s environment.

  • prototypes

    A directory containing each individual Entity prototype definition.