MiniQuake2

src/miniquake2/runtime/application.ml

Provides miniquake2 runtime application facilities for this project.

Package
miniquake2.runtime.application
Reachable
Yes

Imports

Declarations

APPLICATION_SOUND_CACHE_CAPACITY

const APPLICATION_SOUND_CACHE_CAPACITY = 512

Defines the application sound cache capacity constant used by the miniquake2 runtime application module.

View source

applicationAudioRefillBudget

inline function applicationAudioRefillBudget(queuedBlocks)

Pump play audio.

ParameterTypeDefaultDescription
queuedBlocksdynamic—queuedBlocks value consumed by this operation.

View source

applicationAutomatedChangeLevel

applicationAutomatedChangeLevel

Stores module-wide application automated change level state for the miniquake2 runtime application module.

View source

applicationAutomatedChangeLevelReached

applicationAutomatedChangeLevelReached

Stores module-wide application automated change level reached state for the miniquake2 runtime application module.

View source

applicationAutomatedChangeLevelTarget

applicationAutomatedChangeLevelTarget

Stores module-wide application automated change level target state for the miniquake2 runtime application module.

View source

applicationAutomatedChangeLevelTriggered

applicationAutomatedChangeLevelTriggered

Stores module-wide application automated change level triggered state for the miniquake2 runtime application module.

View source

applicationAutomatedProjectileAttack

applicationAutomatedProjectileAttack

Stores module-wide application automated projectile attack state for the miniquake2 runtime application module.

View source

applicationAutomatedWeaponWheel

applicationAutomatedWeaponWheel

Stores module-wide application automated weapon wheel state for the miniquake2 runtime application module.

View source

applicationFrozenPresentationFrame

applicationFrozenPresentationFrame

Stores module-wide application frozen presentation frame state for the miniquake2 runtime application module.

View source

applicationGamemapAutosaveRequested

applicationGamemapAutosaveRequested

Stores module-wide application gamemap autosave requested state for the miniquake2 runtime application module.

View source

applicationGamemapEndOfUnit

applicationGamemapEndOfUnit

Stores module-wide application gamemap end of unit state for the miniquake2 runtime application module.

View source

applicationGroundPusherCache

applicationGroundPusherCache

Stores module-wide application ground pusher cache state for the miniquake2 runtime application module.

View source

miniquake2.runtime.application.ApplicationGroundPusherCache struct

applicationLevelCaptureChecksum

applicationLevelCaptureChecksum

Stores module-wide application level capture checksum state for the miniquake2 runtime application module.

View source

applicationLevelCaptureError

applicationLevelCaptureError

Stores module-wide application level capture error state for the miniquake2 runtime application module.

View source

applicationLevelCapturePath

applicationLevelCapturePath

Stores module-wide application level capture path state for the miniquake2 runtime application module.

View source

applicationLocalPusher

function applicationLocalPusher(session)

Return the managed pusher currently supporting the local player. The game keeps the ground contact as an Edict, whereas renderer interpolation needs the corresponding WorldEntity. Cache this identity-paired lookup because ordinary presentation frames commonly revisit the same floor or lift.

ParameterTypeDefaultDescription
sessiondynamic—session value consumed by this operation.

View source

applicationLocalPusherOffset

function applicationLocalPusherOffset(session, fraction)

Return the residual interpolation offset for a locally ridden MOVETYPE_PUSH/STOP brush. Translation is already covered by the stock prediction-error path; rotating pushers still need their nonlinear arc.

ParameterTypeDefaultDescription
sessiondynamic—session value consumed by this operation.
fractiondynamic—fraction value consumed by this operation.

View source

applicationLocalPusherRider

function applicationLocalPusherRider(session)

Return whether local prediction is currently riding a moving brush. This feeds the client stair smoother before prediction replays the usercmd ring.

ParameterTypeDefaultDescription
sessiondynamic—session value consumed by this operation.

View source

applicationMediaCooperative

applicationMediaCooperative

Stores module-wide application media cooperative state for the miniquake2 runtime application module.

View source

applicationPaceFrame

function applicationPaceFrame(clock, deadline, maxFps)

Wait until the next presentation deadline and return the following one. Quake II's cl_maxfps gate is independent of the renderer swap interval: a blocking swap can satisfy the deadline, while windowed drivers that ignore WGL_EXT_swap_control still receive stable high-resolution pacing here.

ParameterTypeDefaultDescription
clockdynamic—clock value consumed by this operation.
deadlinedynamic—deadline value consumed by this operation.
maxFpsdynamic—maxFps value consumed by this operation.

View source

applicationPersistProductConfig

applicationPersistProductConfig

Stores module-wide application persist product config state for the miniquake2 runtime application module.

View source

applicationPresentationFraction

function applicationPresentationFraction(now, snapshotTime)

Derive the renderer interpolation phase from when a new authoritative snapshot actually arrived, rather than from the independent usercmd clock. If a packet is late, holding at one is stable; restarting at zero would replay the old 100-ms interval and make the view visibly jump backward.

ParameterTypeDefaultDescription
nowdynamic—now value consumed by this operation.
snapshotTimedynamic—snapshotTime value consumed by this operation.

View source

applicationProjectileAttackCommands

applicationProjectileAttackCommands

Stores module-wide application projectile attack commands state for the miniquake2 runtime application module.

View source

applicationProjectileExportMaximum

applicationProjectileExportMaximum

Stores module-wide application projectile export maximum state for the miniquake2 runtime application module.

View source

applicationProjectileLastEngineNumber

applicationProjectileLastEngineNumber

Stores module-wide application projectile last engine number state for the miniquake2 runtime application module.

View source

applicationProjectileParticleMaximum

applicationProjectileParticleMaximum

Stores module-wide application projectile particle maximum state for the miniquake2 runtime application module.

View source

applicationProjectileRenderMaximum

applicationProjectileRenderMaximum

Stores module-wide application projectile render maximum state for the miniquake2 runtime application module.

View source

applicationProjectileServerMaximum

applicationProjectileServerMaximum

Stores module-wide application projectile server maximum state for the miniquake2 runtime application module.

View source

applicationProjectileSnapshotMaximum

applicationProjectileSnapshotMaximum

Stores module-wide application projectile snapshot maximum state for the miniquake2 runtime application module.

View source

applicationProjectileVisibilityDiagnostic

applicationProjectileVisibilityDiagnostic

Stores module-wide application projectile visibility diagnostic state for the miniquake2 runtime application module.

View source

applicationProjectileVisibleMaximum

applicationProjectileVisibleMaximum

Stores module-wide application projectile visible maximum state for the miniquake2 runtime application module.

View source

applicationProjectileWeaponSoundMaximum

applicationProjectileWeaponSoundMaximum

Stores module-wide application projectile weapon sound maximum state for the miniquake2 runtime application module.

View source

applicationPusherOffsetValue

applicationPusherOffsetValue

Stores module-wide application pusher offset value state for the miniquake2 runtime application module.

View source

applicationPusherPredictionOffset

function applicationPusherPredictionOffset(client, groundNumber, fraction, riderOrigin)

Return only the pusher correction not already supplied by Quake II's normal prediction-error interpolation. A carried player produces the complete endpoint displacement as a prediction error, so adding the raw snapshot offset again would ease the same 100-ms translation twice. The residual is zero for a translating lift and retains only the curved-path correction for a rotating pusher.

ParameterTypeDefaultDescription
clientdynamic—client value consumed by this operation.
groundNumberdynamic—groundNumber value consumed by this operation.
fractiondynamic—fraction value consumed by this operation.
riderOrigindynamic—riderOrigin value consumed by this operation.

View source

applicationPusherPredictionOffsetValue

applicationPusherPredictionOffsetValue

Stores module-wide application pusher prediction offset value state for the miniquake2 runtime application module.

View source

applicationPusherSnapshotOffset

function applicationPusherSnapshotOffset(client, groundNumber, fraction, riderOrigin)

Return the camera-space correction produced by rendering one ridden pusher between two adjacent snapshots. Deriving the correction from the snapshot transforms keeps the rider and brush on the same clock even when Move_Done has already cleared the live gameplay velocity.

ParameterTypeDefaultDescription
clientdynamic—client value consumed by this operation.
groundNumberdynamic—groundNumber value consumed by this operation.
fractiondynamic—fraction value consumed by this operation.
riderOrigindynamic—riderOrigin value consumed by this operation.

View source

applicationRegisterRemoteWorld

function applicationRegisterRemoteWorld()

Register application remote world.

View source

applicationRemoteFileExists

function applicationRemoteFileExists(name)

Return the application remote file exists value.

ParameterTypeDefaultDescription
namedynamic—Name of the affected item.

View source

applicationRemoteRegisterDownload

function applicationRemoteRegisterDownload(kind, name)

Register application remote download.

ParameterTypeDefaultDescription
kinddynamic—kind value consumed by this operation.
namedynamic—Name of the affected item.

View source

applicationRemoteRegistrationAssets

applicationRemoteRegistrationAssets

Stores module-wide application remote registration assets state for the miniquake2 runtime application module.

View source

applicationRemoteRegistrationCollision

applicationRemoteRegistrationCollision

Stores module-wide application remote registration collision state for the miniquake2 runtime application module.

View source

applicationRemoteRegistrationFileSystem

applicationRemoteRegistrationFileSystem

Stores module-wide application remote registration file system state for the miniquake2 runtime application module.

View source

applicationRemoteRegistrationMap

applicationRemoteRegistrationMap

Stores module-wide application remote registration map state for the miniquake2 runtime application module.

View source

applicationRemoteRegistrationMapPath

applicationRemoteRegistrationMapPath

Stores module-wide application remote registration map path state for the miniquake2 runtime application module.

View source

applicationRemoteRegistrationRenderer

applicationRemoteRegistrationRenderer

Stores module-wide application remote registration renderer state for the miniquake2 runtime application module.

View source

applicationRemoteRegistrationSession

applicationRemoteRegistrationSession

Stores module-wide application remote registration session state for the miniquake2 runtime application module.

View source

applicationRemoteRegistrationWorld

applicationRemoteRegistrationWorld

Stores module-wide application remote registration world state for the miniquake2 runtime application module.

View source

applicationRendererEmpty1

function applicationRendererEmpty1(value)

Report whether application renderer empty 1.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source

applicationRendererImports

function applicationRendererImports()

Return the application renderer imports value.

View source

applicationRendererMode

function applicationRendererMode(mode)

Return the application renderer mode value.

ParameterTypeDefaultDescription
modedynamic—Mode selecting the requested behavior.

View source

applicationRendererNoResult0

function applicationRendererNoResult0()

Report whether application renderer no result 0.

View source

applicationRendererNoResult1

function applicationRendererNoResult1(value)

Report whether application renderer no result 1.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source

applicationRendererNoResult2

function applicationRendererNoResult2(first, second)

Report whether application renderer no result 2.

ParameterTypeDefaultDescription
firstdynamic—first value consumed by this operation.
seconddynamic—second value consumed by this operation.

View source

applicationRendererNoResult3

function applicationRendererNoResult3(first, second, third)

Report whether application renderer no result 3.

ParameterTypeDefaultDescription
firstdynamic—first value consumed by this operation.
seconddynamic—second value consumed by this operation.
thirddynamic—third value consumed by this operation.

View source

applicationRendererVoid3

function applicationRendererVoid3(first, second, third)

Return the application renderer void 3 value.

ParameterTypeDefaultDescription
firstdynamic—first value consumed by this operation.
seconddynamic—second value consumed by this operation.
thirddynamic—third value consumed by this operation.

View source

applicationRendererZero0

function applicationRendererZero0()

Return the application renderer zero 0 value.

View source

applicationResolvePresentationFrame

function applicationResolvePresentationFrame(frozen, cachedFrame, newFrame)

Keep the last complete gameplay refdef while the local single-player console pauses simulation. The console is an overlay, so rebuilding a predicted refdef behind it can otherwise alternate between packet and local command clocks even though the visible game is meant to be stationary.

ParameterTypeDefaultDescription
frozendynamic—frozen value consumed by this operation.
cachedFramedynamic—cachedFrame value consumed by this operation.
newFramedynamic—newFrame value consumed by this operation.

View source

applicationResourceCache

applicationResourceCache

Stores module-wide application resource cache state for the miniquake2 runtime application module.

View source

miniquake2.runtime.application.ApplicationResourceCache struct

applicationSharedFileSystem

function applicationSharedFileSystem(baseDirectory)

Return the shared read-only filesystem for one retail data root.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.

View source

applicationSubmitDemoFrame

function applicationSubmitDemoFrame(renderer, world, frame, screen, now, window, stats, configStrings)

Submit application demo frame.

ParameterTypeDefaultDescription
rendererdynamic—renderer value consumed by this operation.
worlddynamic—world value consumed by this operation.
framedynamic—frame value consumed by this operation.
screendynamic—screen value consumed by this operation.
nowdynamic—now value consumed by this operation.
windowdynamic—window value consumed by this operation.
statsdynamic—stats value consumed by this operation.
configStringsdynamic—configStrings value consumed by this operation.

View source

applicationSynchronizeSoundCache

function applicationSynchronizeSoundCache(filesystem)

Reset decoded sounds when a direct tool path selects a different data root.

ParameterTypeDefaultDescription
filesystemdynamic—filesystem value consumed by this operation.

View source

applicationWeaponWheelCommands

applicationWeaponWheelCommands

Stores module-wide application weapon wheel commands state for the miniquake2 runtime application module.

View source

applicationWeaponWheelLastGunIndex

applicationWeaponWheelLastGunIndex

Stores module-wide application weapon wheel last gun index state for the miniquake2 runtime application module.

View source

applicationWeaponWheelStage

applicationWeaponWheelStage

Stores module-wide application weapon wheel stage state for the miniquake2 runtime application module.

View source

applicationWeaponWheelTransitions

applicationWeaponWheelTransitions

Stores module-wide application weapon wheel transitions state for the miniquake2 runtime application module.

View source

applyPlayHandoff

function applyPlayHandoff(screen, handoff)

Apply play handoff.

ParameterTypeDefaultDescription
screendynamic—screen value consumed by this operation.
handoffdynamic—handoff value consumed by this operation.

View source

assetSmoke

function assetSmoke(baseDirectory, mapName)

Return the asset smoke value.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
mapNamedynamic—mapName value consumed by this operation.

View source

miniquake2.runtime.application.AssetSmokeResult struct

auditRetailCinematic

function auditRetailCinematic(filesystem, name)

Return the audit retail cinematic value.

ParameterTypeDefaultDescription
filesystemdynamic—filesystem value consumed by this operation.
namedynamic—Name of the affected item.

View source

auditRetailDemo

function auditRetailDemo(filesystem, name, randomSeed)

Return the audit retail demo value.

ParameterTypeDefaultDescription
filesystemdynamic—filesystem value consumed by this operation.
namedynamic—Name of the affected item.
randomSeeddynamic—randomSeed value consumed by this operation.

View source

campaignMapNames

function campaignMapNames()

Canonical classic baseq2 single-player BSP set. The read-only Python gate discovers every PAK map dynamically; this stable order is the product-level repeated-session stress matrix and deliberately excludes q2dm maps.

View source

campaignSignonError

function campaignSignonError(session, mapName)

Return the campaign signon error value.

ParameterTypeDefaultDescription
sessiondynamic—session value consumed by this operation.
mapNamedynamic—mapName value consumed by this operation.

View source

captureLevelStart

function captureLevelStart(baseDirectory, mapName, outputPath, frameLimit)

Render one deterministic 1920x1080 product frame at an authored campaign spawn without reading or overwriting the player's persistent configuration.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
mapNamedynamic—mapName value consumed by this operation.
outputPathdynamic—Path associated with output.
frameLimitdynamic—frameLimit value consumed by this operation.

View source

cinematicPath

function cinematicPath(name)

Return the cinematic path.

ParameterTypeDefaultDescription
namedynamic—Name of the affected item.

View source

closePlayAudio

function closePlayAudio(device, mixer)

Close play audio.

ParameterTypeDefaultDescription
devicedynamic—device value consumed by this operation.
mixerdynamic—mixer value consumed by this operation.

View source

countAvailableAssets

function countAvailableAssets(entries)

Report whether count available assets.

ParameterTypeDefaultDescription
entriesdynamic—entries value consumed by this operation.

View source

CreateDirectoryW

extern function CreateDirectoryW(path as wstr, security as ptr) from "kernel32.dll" returns bool

Invokes the native CreateDirectoryW entry point used by the miniquake2 runtime application module.

ParameterTypeDefaultDescription
pathwstr—Path of the file or directory used by the operation.
securityptr—security value consumed by this operation.

Returns: Native bool result produced by the call.

View source

demoPath

function demoPath(name)

Return the demo path.

ParameterTypeDefaultDescription
namedynamic—Name of the affected item.

View source

endsWith

function endsWith(value, suffix)

Return the ends with value.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.
suffixdynamic—suffix value consumed by this operation.

View source

executeDedicatedCommand

function executeDedicatedCommand(session, baseDirectory, text)

Performs the executeDedicatedCommand operation for the miniquake2 runtime application module.

ParameterTypeDefaultDescription
sessiondynamic—session value consumed by this operation.
baseDirectorydynamic—baseDirectory value consumed by this operation.
textdynamic—Text consumed by the operation.

View source

loadPlaySound

function loadPlaySound(name)

Load play sound.

ParameterTypeDefaultDescription
namedynamic—Name of the affected item.

View source

loadPreviewFile

function loadPreviewFile(path)

Load preview file.

ParameterTypeDefaultDescription
pathdynamic—Path of the file or directory used by the operation.

View source

mapPath

function mapPath(name)

Map path.

ParameterTypeDefaultDescription
namedynamic—Name of the affected item.

View source

missingPlayAssetSummary

function missingPlayAssetSummary(state)

Report whether missing play asset summary.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.

View source

noteMissingPlayAsset

function noteMissingPlayAsset(value)

Report whether note missing play asset.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source

picturePath

function picturePath(name)

Return the picture path.

ParameterTypeDefaultDescription
namedynamic—Name of the affected item.

View source

playAssetBindings

playAssetBindings

Stores module-wide play asset bindings state for the miniquake2 runtime application module.

View source

playAssetState

playAssetState

Stores module-wide play asset state state for the miniquake2 runtime application module.

View source

playClientRuntime

playClientRuntime

Stores module-wide play client runtime state for the miniquake2 runtime application module.

View source

playConfigPath

function playConfigPath(baseDirectory)

Play config path.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.

View source

playCurrentArchivePaths

function playCurrentArchivePaths(baseDirectory)

Private `current` archive used between maps within one Quake II unit.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.

View source

playDemoDirectory

function playDemoDirectory(baseDirectory)

Play demo directory.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.

View source

playEffectState

playEffectState

Stores module-wide play effect state state for the miniquake2 runtime application module.

View source

playPreferencesPath

function playPreferencesPath(baseDirectory)

Play preferences path.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.

View source

playProfileUserInfo

function playProfileUserInfo(profile)

Play profile user info.

ParameterTypeDefaultDescription
profiledynamic—profile value consumed by this operation.

View source

playSaveMetadataPath

function playSaveMetadataPath(baseDirectory, slot)

Play save metadata path.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
slotdynamic—slot value consumed by this operation.

View source

playSavePaths

function playSavePaths(baseDirectory, slot)

Play save paths.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
slotdynamic—slot value consumed by this operation.

View source

playSaveSlotLabel

function playSaveSlotLabel(slot)

Return the stock autosave/manual slot label.

ParameterTypeDefaultDescription
slotdynamic—slot value consumed by this operation.

View source

playScreenshotDirectory

function playScreenshotDirectory(baseDirectory)

Play screenshot directory.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.

View source

playUserInfo

function playUserInfo(hand)

Play user info.

ParameterTypeDefaultDescription
handdynamic—hand value consumed by this operation.

View source

previewFileSystem

previewFileSystem

Stores module-wide preview file system state for the miniquake2 runtime application module.

View source

previewMap

function previewMap(baseDirectory, mapName, frameLimit)

Map preview.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
mapNamedynamic—mapName value consumed by this operation.
frameLimitdynamic—frameLimit value consumed by this operation.

View source

productAddressBook

function productAddressBook(menu)

Return the product address book value.

ParameterTypeDefaultDescription
menudynamic—menu value consumed by this operation.

View source

miniquake2.runtime.application.ProductMenuSelection struct

productPathInside

function productPathInside(baseDirectory, parentDirectory)

Report whether product path inside.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
parentDirectorydynamic—parentDirectory value consumed by this operation.

View source

productSettingsDirectory

function productSettingsDirectory(baseDirectory)

Return the product settings directory value.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.

View source

productSettingsDirectoryFrom

function productSettingsDirectoryFrom(baseDirectory, localAppData, programFiles, programFilesX86)

Keep portable installs self-contained, but never try to persist settings below a protected Program Files/Steam data root. This mirrors modern Windows game behavior while leaving the retail assets read-only.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
localAppDatadynamic—localAppData value consumed by this operation.
programFilesdynamic—programFiles value consumed by this operation.
programFilesX86dynamic—programFilesX86 value consumed by this operation.

View source

pumpPlayAudio

function pumpPlayAudio(device, mixer)

Pump play audio.

ParameterTypeDefaultDescription
devicedynamic—device value consumed by this operation.
mixerdynamic—mixer value consumed by this operation.

View source

randomPlayClientEffect

function randomPlayClientEffect()

Play random client effect.

View source

remoteMapModelPath

function remoteMapModelPath(session)

Map remote model path.

ParameterTypeDefaultDescription
sessiondynamic—session value consumed by this operation.

View source

resolvePlayEffectModel

function resolvePlayEffectModel(name)

Resolve play effect model.

ParameterTypeDefaultDescription
namedynamic—Name of the affected item.

View source

resolvePlayEntityPosition

function resolvePlayEntityPosition(number)

Resolve play entity position.

ParameterTypeDefaultDescription
numberdynamic—number value consumed by this operation.

View source

resolvePlayModelIndex

function resolvePlayModelIndex(index)

Resolve play model index.

ParameterTypeDefaultDescription
indexdynamic—Zero-based index of the affected item.

View source

resultLines

function resultLines(result)

Return the result lines value.

ParameterTypeDefaultDescription
resultdynamic—Result object populated or inspected by the operation.

View source

miniquake2.runtime.application.RetailMediaAudit struct

runCampaignSessionSmoke

function runCampaignSessionSmoke(baseDirectory, maximumMaps)

Reuse one real UDP client/server session across multiple user-owned retail maps. This is intentionally headless: renderer registration is separately covered by --play, while this gate isolates level lifetime and re-signon.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
maximumMapsdynamic—maximumMaps value consumed by this operation.

View source

runChangeLevelSmoke

function runChangeLevelSmoke(baseDirectory, mapName, nextMap, frameLimit)

Run change level smoke.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
mapNamedynamic—mapName value consumed by this operation.
nextMapdynamic—nextMap value consumed by this operation.
frameLimitdynamic—frameLimit value consumed by this operation.

View source

runDedicated

function runDedicated(baseDirectory, mapName, port, frameLimit)

Runs dedicated for the miniquake2 runtime application workflow.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
mapNamedynamic—mapName value consumed by this operation.
portdynamic—port value consumed by this operation.
frameLimitdynamic—frameLimit value consumed by this operation.

View source

runHeadlessClient

function runHeadlessClient(address, port, frameLimit)

Run headless client.

ParameterTypeDefaultDescription
addressdynamic—address value consumed by this operation.
portdynamic—port value consumed by this operation.
frameLimitdynamic—frameLimit value consumed by this operation.

View source

runListen

function runListen(baseDirectory, mapName, frameLimit)

Run listen.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
mapNamedynamic—mapName value consumed by this operation.
frameLimitdynamic—frameLimit value consumed by this operation.

View source

runPlay

function runPlay(baseDirectory, mapName, frameLimit)

Run play.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
mapNamedynamic—mapName value consumed by this operation.
frameLimitdynamic—frameLimit value consumed by this operation.

View source

runPlayAt

function runPlayAt(baseDirectory, mapName, spawnPoint, frameLimit)

Run play at.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
mapNamedynamic—mapName value consumed by this operation.
spawnPointdynamic—spawnPoint value consumed by this operation.
frameLimitdynamic—frameLimit value consumed by this operation.

View source

runPlayAtOnHost

function runPlayAtOnHost(baseDirectory, mapName, spawnPoint, frameLimit, productHost, skill)

Report whether run play at on host.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
mapNamedynamic—mapName value consumed by this operation.
spawnPointdynamic—spawnPoint value consumed by this operation.
frameLimitdynamic—frameLimit value consumed by this operation.
productHostdynamic—productHost value consumed by this operation.
skilldynamic—skill value consumed by this operation.

View source

runPlayAtOnHostConfigured

function runPlayAtOnHostConfigured(baseDirectory, mapName, spawnPoint, frameLimit, productHost, skill, menuAtStart, serverOptions, playerProfile)

Report whether run play at on host configured.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
mapNamedynamic—mapName value consumed by this operation.
spawnPointdynamic—spawnPoint value consumed by this operation.
frameLimitdynamic—frameLimit value consumed by this operation.
productHostdynamic—productHost value consumed by this operation.
skilldynamic—skill value consumed by this operation.
menuAtStartdynamic—menuAtStart value consumed by this operation.
serverOptionsdynamic—serverOptions value consumed by this operation.
playerProfiledynamic—playerProfile value consumed by this operation.

View source

runPlayAtOnHostConfiguredWithConfig

function runPlayAtOnHostConfiguredWithConfig(baseDirectory, mapName, spawnPoint, frameLimit, productHost, skill, menuAtStart, serverOptions, playerProfile, initialConfig)

Report whether run play at on host configured with config.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
mapNamedynamic—mapName value consumed by this operation.
spawnPointdynamic—spawnPoint value consumed by this operation.
frameLimitdynamic—frameLimit value consumed by this operation.
productHostdynamic—productHost value consumed by this operation.
skilldynamic—skill value consumed by this operation.
menuAtStartdynamic—menuAtStart value consumed by this operation.
serverOptionsdynamic—serverOptions value consumed by this operation.
playerProfiledynamic—playerProfile value consumed by this operation.
initialConfigdynamic—initialConfig value consumed by this operation.

View source

runPlayAtOnHostConfiguredWithState

function runPlayAtOnHostConfiguredWithState(baseDirectory, mapName, spawnPoint, frameLimit, productHost, skill, menuAtStart, serverOptions, playerProfile, initialConfig, initialGameplayHandover)

Construct and drive one authoritative local/listen session inside an existing product host. Loading, signon and renderer warm-up finish before audio starts; every exit path returns a complete transition/diagnostic value.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
mapNamedynamic—mapName value consumed by this operation.
spawnPointdynamic—spawnPoint value consumed by this operation.
frameLimitdynamic—frameLimit value consumed by this operation.
productHostdynamic—productHost value consumed by this operation.
skilldynamic—skill value consumed by this operation.
menuAtStartdynamic—menuAtStart value consumed by this operation.
serverOptionsdynamic—serverOptions value consumed by this operation.
playerProfiledynamic—playerProfile value consumed by this operation.
initialConfigdynamic—initialConfig value consumed by this operation.
initialGameplayHandoverdynamic—initialGameplayHandover value consumed by this operation.

View source

runPlayInputSmoke

function runPlayInputSmoke(baseDirectory, mapName, commandSteps)

Run play input smoke.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
mapNamedynamic—mapName value consumed by this operation.
commandStepsdynamic—commandSteps value consumed by this operation.

View source

runProduct

function runProduct(baseDirectory, frameLimit)

Run product.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
frameLimitdynamic—frameLimit value consumed by this operation.

View source

runProductMenuOnHost

function runProductMenuOnHost(baseDirectory, productHost, frameLimit, initialProfile)

Own the menu-only product state until one typed transition is selected. Config, preferences, audio and renderer resources are finalized here so a subsequent local/remote session starts without retaining menu temporaries.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
productHostdynamic—productHost value consumed by this operation.
frameLimitdynamic—frameLimit value consumed by this operation.
initialProfiledynamic—initialProfile value consumed by this operation.

View source

runProjectileVisualSmoke

function runProjectileVisualSmoke(baseDirectory, mapName, frameLimit)

Run projectile visual smoke.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
mapNamedynamic—mapName value consumed by this operation.
frameLimitdynamic—frameLimit value consumed by this operation.

View source

runRemoteProductOnHost

function runRemoteProductOnHost(baseDirectory, endpoint, productHost, playerProfile, downloadPolicy, frameLimit)

Drive a remote Protocol-34 client with independent render, UserCmd and snapshot clocks. Registration is committed only after downloads, checksum validation and all client assets complete successfully.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
endpointdynamic—endpoint value consumed by this operation.
productHostdynamic—productHost value consumed by this operation.
playerProfiledynamic—playerProfile value consumed by this operation.
downloadPolicydynamic—downloadPolicy value consumed by this operation.
frameLimitdynamic—frameLimit value consumed by this operation.

View source

runRemoteProductSmoke

function runRemoteProductSmoke(baseDirectory, endpoint, frameLimit)

Run remote product smoke.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
endpointdynamic—endpoint value consumed by this operation.
frameLimitdynamic—frameLimit value consumed by this operation.

View source

runRetailCinematic

function runRetailCinematic(baseDirectory, name, frameLimit, looping)

Run retail cinematic.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
namedynamic—Name of the affected item.
frameLimitdynamic—frameLimit value consumed by this operation.
loopingdynamic—looping value consumed by this operation.

View source

runRetailCinematicOnHost

function runRetailCinematicOnHost(baseDirectory, name, frameLimit, looping, productHost, attractLoop)

Product CIN lifecycle: retail FS -> Huffman frames/palette -> OpenGL raw stretch, with the CIN PCM stream feeding the same managed mixer/device used by gameplay. Escape opens/closes the existing menu and pauses/resumes both video time and its mixer channel without losing the current frame.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
namedynamic—Name of the affected item.
frameLimitdynamic—frameLimit value consumed by this operation.
loopingdynamic—looping value consumed by this operation.
productHostdynamic—productHost value consumed by this operation.
attractLoopdynamic—attractLoop value consumed by this operation.

View source

runRetailDemo

function runRetailDemo(baseDirectory, name, frameLimit)

Run retail demo.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
namedynamic—Name of the affected item.
frameLimitdynamic—frameLimit value consumed by this operation.

View source

runRetailDemoOnHost

function runRetailDemoOnHost(baseDirectory, name, frameLimit, productHost, attractLoop)

Product DM2 lifecycle. Release demos are Protocol 26 streams; DemoSession owns that isolated compatibility mode while all live networking remains 34. Configstrings drive the same BSP/model/sound registration and frame/effect handoff used by a connected game.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
namedynamic—Name of the affected item.
frameLimitdynamic—frameLimit value consumed by this operation.
productHostdynamic—productHost value consumed by this operation.
attractLoopdynamic—attractLoop value consumed by this operation.

View source

runRetailMediaAudit

function runRetailMediaAudit(baseDirectory)

Deterministic, headless retail gate for the media paths that otherwise need interactive windows. It decodes one real frame from both stock CIN files, replays both release DM2 streams through their Protocol-26 compatibility dispatcher, publishes base1's worldspawn CD track through Game API v3, and opens the matching OGG through the production Vorbis bridge.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.

View source

runRetailMediaSequence

function runRetailMediaSequence(baseDirectory, specification, frameLimit)

Run retail media sequence.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
specificationdynamic—specification value consumed by this operation.
frameLimitdynamic—frameLimit value consumed by this operation.

View source

runRetailMediaSequenceOnHost

function runRetailMediaSequenceOnHost(baseDirectory, specification, frameLimit, productHost, skill)

Report whether run retail media sequence on host.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
specificationdynamic—specification value consumed by this operation.
frameLimitdynamic—frameLimit value consumed by this operation.
productHostdynamic—productHost value consumed by this operation.
skilldynamic—skill value consumed by this operation.

View source

runRetailMediaSequenceOnHostWithSettings

function runRetailMediaSequenceOnHostWithSettings(baseDirectory, specification, frameLimit, productHost, skill, initialConfig, playerProfile)

Report whether run retail media sequence on host with settings.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
specificationdynamic—specification value consumed by this operation.
frameLimitdynamic—frameLimit value consumed by this operation.
productHostdynamic—productHost value consumed by this operation.
skilldynamic—skill value consumed by this operation.
initialConfigdynamic—initialConfig value consumed by this operation.
playerProfiledynamic—playerProfile value consumed by this operation.

View source

runRetailMediaSequenceOnHostWithState

function runRetailMediaSequenceOnHostWithState(baseDirectory, specification, frameLimit, productHost, skill, initialConfig, playerProfile, initialGameplayHandover)

Execute the exact classic `map first+nextserver` media chain. A positive frame limit is a deterministic preview gate per step; zero retains normal interactive behavior (CIN to completion, PCX until Space/Enter, map until window close). DM2 uses the isolated release-demo Protocol-26 compatibility path and renders through the same Protocol-34 client state and product host.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
specificationdynamic—specification value consumed by this operation.
frameLimitdynamic—frameLimit value consumed by this operation.
productHostdynamic—productHost value consumed by this operation.
skilldynamic—skill value consumed by this operation.
initialConfigdynamic—initialConfig value consumed by this operation.
playerProfiledynamic—playerProfile value consumed by this operation.
initialGameplayHandoverdynamic—initialGameplayHandover value consumed by this operation.

View source

runRetailPicture

function runRetailPicture(baseDirectory, name, frameLimit)

Run retail picture.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
namedynamic—Name of the affected item.
frameLimitdynamic—frameLimit value consumed by this operation.

View source

runRetailPictureOnHost

function runRetailPictureOnHost(baseDirectory, name, frameLimit, productHost)

Static intermission counterpart to runCinematic. Space/Enter emits the classic nextserver intent; Escape opens the same menu/quit lifecycle.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
namedynamic—Name of the affected item.
frameLimitdynamic—frameLimit value consumed by this operation.
productHostdynamic—productHost value consumed by this operation.

View source

runRetailVideoRestartSmoke

function runRetailVideoRestartSmoke(baseDirectory, mapName)

Run retail video restart smoke.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
mapNamedynamic—mapName value consumed by this operation.

View source

runRetailVideoRestartSmokeForMode

function runRetailVideoRestartSmokeForMode(baseDirectory, mapName, targetVideoMode)

Native product acceptance for the same mode-apply path used by the live Video menu. The network/game session deliberately does not participate: the gate isolates the Win32 mode change and verifies that the registered BSP remains usable on the same renderer generation.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
mapNamedynamic—mapName value consumed by this operation.
targetVideoModedynamic—targetVideoMode value consumed by this operation.

View source

runStockAttractLoopOnHost

function runStockAttractLoopOnHost(baseDirectory, productHost)

Qcommon_Init executes the stock d1 alias when no explicit +command was supplied. Keep the four-entry alias cycle data-driven so any input can hand control back to the persistent product menu without opening another host.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
productHostdynamic—productHost value consumed by this operation.

View source

runWeaponWheelSmoke

function runWeaponWheelSmoke(baseDirectory, mapName, frameLimit)

Run weapon wheel smoke.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
mapNamedynamic—mapName value consumed by this operation.
frameLimitdynamic—frameLimit value consumed by this operation.

View source

settleCampaignSession

function settleCampaignSession(session, maximumSteps)

Return the settle campaign session value.

ParameterTypeDefaultDescription
sessiondynamic—session value consumed by this operation.
maximumStepsdynamic—maximumSteps value consumed by this operation.

View source

takeActiveProductSelection

function takeActiveProductSelection(commandState, playerProfile, productConfig)

Consume a multiplayer request made from an active local game's menu. The caller tears the current listen session down before the product loop starts the selected replacement, so no single-player Game API state leaks into the new server or remote connection.

ParameterTypeDefaultDescription
commandStatedynamic—commandState value consumed by this operation.
playerProfiledynamic—playerProfile value consumed by this operation.
productConfigdynamic—productConfig value consumed by this operation.

View source

updateProductBrowserMenu

function updateProductBrowserMenu(menu, browser)

Update product browser menu.

ParameterTypeDefaultDescription
menudynamic—menu value consumed by this operation.
browserdynamic—browser value consumed by this operation.

View source