Skip to content

TTPG cardsheet template JSON

Darrell edited this page Oct 23, 2023 · 1 revision

Fill in:

  • GUID : unique 32 character hex string.
  • NAME : deck name string.
  • METADATA : optional, opaque string.
  • CARDSHEET_FACE_FILENAME : image file path.
  • CARDSHEET_BACK_FILENAME : image file path.
  • BACK_INDEX : {0: last card in cardsheet, 1: same as front, 2: shard single image, 3: cardsheet }
  • NUM_COLS : cardsheet dimension.
  • NUM_ROWS : cardsheet dimension.
  • CARD_WIDTH : centimeters.
  • CARD_HEIGHT : centimeters.
  • CARD_INDICES : array of cardsheet indices (allows for skipping images) to use.
  • CARD_NAMES : map from index to card name string.
  • CARD_METADATA : optional, map from index to opaque string.

Deck template JSON:

{
    Type: "Card",
    GUID: $GUID,
    Name: $NAME,
    Metadata: $METADATA,
    CollisionType: "Regular",
    Friction: 0.7,
    Restitution: 0,
    Density: 0.5,
    SurfaceType: "Cardboard",
    Roughness: 1,
    Metallic: 0,
    PrimaryColor: {
        R: 255,
        G: 255,
        B: 255,
    },
    SecondaryColor: {
        R: 0,
        G: 0,
        B: 0,
    },
    Flippable: true,
    AutoStraighten: false,
    ShouldSnap: true,
    ScriptName: "",
    Blueprint: "",
    Models: [],
    Collision: [],
    SnapPointsGlobal: false,
    SnapPoints: [],
    ZoomViewDirection: {
        X: 0,
        Y: 0,
        Z: 0,
    },
    FrontTexture: $CARDSHEET_FACE_FILENAME,
    BackTexture: $CARDSHEET_BACK_FILENAME,
    HiddenTexture: "",
    BackIndex: $BACK_INDEX,
    HiddenIndex: -3, // 0 = use front, -1 = blur, -2 = separate file, -3 = use back
    NumHorizontal: $NUM_COLS,
    NumVertical: $NUM_ROWS,
    Width: $CARD_WIDTH,
    Height: $CARD_HEIGHT,
    Thickness: 0.05,
    HiddenInHand: true,
    UsedWithCardHolders: true,
    CanStack: true,
    UsePrimaryColorForSide: false,
    FrontTextureOverrideExposed: false,
    AllowFlippedInStack: false,
    MirrorBack: true,
    Model: "Rounded",
    Indices: $CARD_INDICES,
    CardNames: $CARD_NAMES,
    CardMetadata: $CARD_METADATA,
    GroundAccessibility: "ZoomAndContext",
}
Clone this wiki locally