Skip to main content

Types, results, and limits

PAPER/Abi.h holds the shared vocabulary: PAPER_CALL (__cdecl), kRecordVersion (1), Status, OwnerToken (std::uint64_t) and InterfaceId. Each interface header carries its own kMajor and kMinor. Every header uses #pragma pack(push, 8) and needs a 64-bit consumer.

Results​

StatusValueMeaning
Ok0Request completed.
InvalidArgument1Missing/invalid pointer, enum, flags, lease or count.
UnsupportedVersion2Record version is not kRecordVersion.
NotReady3Provider/family/snapshot is not ready.
CapacityReached4Bounded owner/callback capacity is full.
UnknownOwner5Owner token is absent or stale.
PermissionDenied6Capability/policy does not authorize the call.
NotFound7Requested record is absent.
WrongThread8Call was not made on the PAPER game thread.
OwnerConflict9Name or authority conflicts with another owner.
InvalidSize10Public input/output is undersized.
StaleSnapshot11The item or frame changed; re-read before acting.
OutOfRange12Index/identifier is outside that snapshot.
UnknownInterface100Discovery: unknown interface ID.
UnsupportedMajor101Discovery: major not served. Like every version refusal, PAPER logs the calling DLL once in PAPER.log; the game keeps running.
UnsupportedMinor102Discovery: installed PAPER is older than your headers.
TableTooSmall103Discovery: installed table is smaller than your headers.
InternalError104Discovery failed inside PAPER.

Important bounds​

  • 16 consumers (kMaxConsumers) and 16 callbacks (kMaxCallbacks).
  • 192 captured transforms and 15 finger transforms per hand.
  • 64-character transform names (kTransformNameCapacity).
  • 1200 maximum authority lease frames (kMaxAuthorityLeaseFrames); 120 for a physical-reload lease (physical_reload::kMaxLeaseFrames).

Exports​

PAPER.dll exports PAPERAPI_QueryInterfaceV1 (kQueryExportName) for discovery. The pre-2.0 exports PAPERAPI_GetProviderApi, PAPERAPI_GetProviderDescriptorV1 and PAPERAPI_QueryPhysicalReloadV1/V2/V3 remain only to refuse outdated consumers: each returns null and logs once. Their names, interface IDs, enum values and flag bits are never reused.