MiniQuake

src/miniquake/external_reference_contract.ml

Package
miniquake.external_reference_contract
Reachable
Yes

Declarations

COMPAT_FINAL_FINGERPRINT

const COMPAT_FINAL_FINGERPRINT = 3762976551

Defines the compat final fingerprint value used by `miniquake.external_reference_contract`.

View source

COMPAT_FINAL_STATUS

const COMPAT_FINAL_STATUS = "compat_109_final_candidate_v1"

Defines the compat final status value used by `miniquake.external_reference_contract`.

View source

finalContractHasRequiredFields

function finalContractHasRequiredFields()

Implements the `finalContractHasRequiredFields` operation for `miniquake.external_reference_contract` (final contract has required fields).

View source

finalContractText

function finalContractText()

Implements the `finalContractText` operation for `miniquake.external_reference_contract` (final contract text).

View source

ORIGINAL_CAPTURE_HEIGHT

const ORIGINAL_CAPTURE_HEIGHT = 480

Defines the original capture height value used by `miniquake.external_reference_contract`.

View source

ORIGINAL_CAPTURE_MIN_SSIM

const ORIGINAL_CAPTURE_MIN_SSIM = 0.95

Defines the original capture min ssim value used by `miniquake.external_reference_contract`.

View source

ORIGINAL_CAPTURE_MIN_SSIM_MILLI

const ORIGINAL_CAPTURE_MIN_SSIM_MILLI = 950

Defines the original capture min ssim milli value used by `miniquake.external_reference_contract`.

View source

ORIGINAL_CAPTURE_SEARCH_RADIUS

const ORIGINAL_CAPTURE_SEARCH_RADIUS = 2

Defines the original capture search radius value used by `miniquake.external_reference_contract`.

View source

ORIGINAL_CAPTURE_WIDTH

const ORIGINAL_CAPTURE_WIDTH = 640

Defines the original capture width value used by `miniquake.external_reference_contract`.

View source

ORIGINAL_CONTROL_PROTOCOL

const ORIGINAL_CONTROL_PROTOCOL = 3

Defines the original control protocol value used by `miniquake.external_reference_contract`.

View source

ORIGINAL_GAME_PROTOCOL

const ORIGINAL_GAME_PROTOCOL = 15

Defines the original game protocol value used by `miniquake.external_reference_contract`.

View source

ORIGINAL_GLQUAKE_BYTES

const ORIGINAL_GLQUAKE_BYTES = 435712

Defines the original glquake bytes value used by `miniquake.external_reference_contract`.

View source

ORIGINAL_GLQUAKE_PE_MACHINE

const ORIGINAL_GLQUAKE_PE_MACHINE = 332

Defines the original glquake pe machine value used by `miniquake.external_reference_contract`.

View source

ORIGINAL_GLQUAKE_SHA256

const ORIGINAL_GLQUAKE_SHA256 = "04862c835c399bc9184f62101ae0390c2a758c21656ec06dcc0384e0f373d588"

Defines the original glquake sha256 value used by `miniquake.external_reference_contract`.

View source

ORIGINAL_INTEROP_MAX_FRAMES

const ORIGINAL_INTEROP_MAX_FRAMES = 10000

Defines the original interop max frames value used by `miniquake.external_reference_contract`.

View source

ORIGINAL_INTEROP_POST_FRAMES

const ORIGINAL_INTEROP_POST_FRAMES = 32

Defines the original interop post frames value used by `miniquake.external_reference_contract`.

View source

ORIGINAL_REFERENCE_FINGERPRINT

const ORIGINAL_REFERENCE_FINGERPRINT = 3694481781

Defines the original reference fingerprint value used by `miniquake.external_reference_contract`.

View source

ORIGINAL_REFERENCE_STATUS

const ORIGINAL_REFERENCE_STATUS = "original_reference_109_candidate_v1"

Defines the original reference status value used by `miniquake.external_reference_contract`.

View source

originalClientInteropComplete

inline function originalClientInteropComplete(activeClients, spawned, signon)

Implements the `originalClientInteropComplete` operation for `miniquake.external_reference_contract` (original client interop complete).

ParameterTypeDefaultDescription
activeClientsdynamic—The active clients input consumed by `originalClientInteropComplete`.
spawneddynamic—The spawned input consumed by `originalClientInteropComplete`.
signondynamic—The signon input consumed by `originalClientInteropComplete`.

View source

originalServerInteropComplete

function originalServerInteropComplete(connected, spawned, signon, modelCount, soundCount)

Implements the `originalServerInteropComplete` operation for `miniquake.external_reference_contract` (original server interop complete).

ParameterTypeDefaultDescription
connecteddynamic—The connected input consumed by `originalServerInteropComplete`.
spawneddynamic—The spawned input consumed by `originalServerInteropComplete`.
signondynamic—The signon input consumed by `originalServerInteropComplete`.
modelCountdynamic—Number of entries or units to process.
soundCountdynamic—Number of entries or units to process.

View source

originalServerInteropNetworkProvenance

function originalServerInteropNetworkProvenance(transport, remoteAddress, expectedAddress, localServerActive, localAuthoritative, demoPlayback)

A completed signon is not sufficient evidence by itself: if a remote UDP connect times out, Quake may continue with its local demo/start path. External interop therefore requires a live UDP peer matching the requested address and rejects local-authoritative, local-server and demo fallbacks.

ParameterTypeDefaultDescription
transportdynamic—The transport input consumed by `originalServerInteropNetworkProvenance`.
remoteAddressdynamic—The remote address input consumed by `originalServerInteropNetworkProvenance`.
expectedAddressdynamic—The expected address input consumed by `originalServerInteropNetworkProvenance`.
localServerActivedynamic—The local server active input consumed by `originalServerInteropNetworkProvenance`.
localAuthoritativedynamic—The local authoritative input consumed by `originalServerInteropNetworkProvenance`.
demoPlaybackdynamic—The demo playback input consumed by `originalServerInteropNetworkProvenance`.

View source

referenceContractHasRequiredFields

function referenceContractHasRequiredFields()

Implements the `referenceContractHasRequiredFields` operation for `miniquake.external_reference_contract` (reference contract has required fields).

View source

referenceContractText

function referenceContractText()

Implements the `referenceContractText` operation for `miniquake.external_reference_contract` (reference contract text).

View source

referenceValues

function referenceValues()

Return reference values derived from the active module state.

View source

requiredExternalGates

function requiredExternalGates()

Validates d external gates for `miniquake.external_reference_contract`.

View source

validateReferenceContract

function validateReferenceContract()

Validate reference contract and report any incompatibility.

View source

visualScenarios

function visualScenarios()

Implements the `visualScenarios` operation for `miniquake.external_reference_contract` (visual scenarios).

View source

visualThreshold

function visualThreshold()

Implements the `visualThreshold` operation for `miniquake.external_reference_contract` (visual threshold).

View source