Skip to content
Orbdale

Orbdale Terrain · OrbdaleTerrain module · struct

FOrbdaleTerrainSaveRef

A terrain save beside a game's save slot, as the game keeps it in its own USaveGame: the file the terrain wrote and the hashes that pair it with this game save.

Declaration

USTRUCT(BlueprintType, meta=(DisplayName="Terrain Save Reference"))
struct FOrbdaleTerrainSaveRef
Blueprint Make and Break Terrain Save Reference
The graph as text
  1. Make Terrain Save Reference (structure)
    • In Slot Name (String): empty
    • In User Index (Integer): 0
    • In File Name (String): empty
    • In File Hash (Integer64): 0
    • In State Hash (Integer64): 0
    • In Natural Hash (Integer64): 0
    • In Save Version (Integer): 0
    • In Bytes (Integer64): 0
    • Out Orbdale Terrain Save Ref (OrbdaleTerrainSaveRef): not connected
  2. Break Terrain Save Reference (structure)
    • In Orbdale Terrain Save Ref (OrbdaleTerrainSaveRef): not connected
    • Out Slot Name (String): not connected
    • Out User Index (Integer): not connected
    • Out File Name (String): not connected
    • Out File Hash (Integer64): not connected
    • Out State Hash (Integer64): not connected
    • Out Natural Hash (Integer64): not connected
    • Out Save Version (Integer): not connected
    • Out Bytes (Integer64): not connected
Header
#include "TerrainBlueprintTypes.h"
Module
PublicDependencyModuleNames.Add("OrbdaleTerrain"); in your module’s Build.cs.
Stability
Stable: changes within a major version only add.
Blueprint
“Terrain Save Reference”, a Blueprint type

Description

Pass it to LoadTerrainFromSlot; a different or damaged file is refused.

Each save of a slot writes a new file (<Slot>.<n>.tsterrain) and deletes the older ones that no loaded terrain pages from, so a reference goes stale once its slot is saved again: keep the newest.

Functions

  • IsValid

    A reference to a save: it names a file.

Properties

NameTypeDefaultMeaning
SlotNameBlueprintReadWriteFString—

The slot name the game gave.

UserIndexBlueprintReadWriteint320

The platform user the slot belongs to; 0 on desktop.

FileNameBlueprintReadWriteFString—

The file's name, without a folder: Slot.N.tsterrain.

FileHashBlueprintReadWriteint640

The save's trailer hash (the bits of a uint64): a load refuses a file that does not carry it.

StateHashBlueprintReadWriteint640

What GetStateHash answered when the save was made (the bits of a uint64).

NaturalHashBlueprintReadWriteint640

The natural ground the save was made over (the bits of a uint64).

SaveVersionBlueprintReadWriteint320

The save format version written (kTerrainSaveVersion at the time).

BytesBlueprintReadWriteint640

The file's size, bytes.

Blueprint