# APPLICATION_SOUND_CACHE_CAPACITY
const APPLICATION_SOUND_CACHE_CAPACITY = 512Defines the application sound cache capacity constant used by the miniquake2 runtime application module.
src/miniquake2/runtime/application.mlProvides miniquake2 runtime application facilities for this project.
miniquake2/audio/device.ml as appaudiodevice → src/miniquake2/audio/device.mlminiquake2/audio/mixer.ml as appaudiomixer → src/miniquake2/audio/mixer.mlminiquake2/audio/wav.ml as appwav → src/miniquake2/audio/wav.mlminiquake2/client/assets/registry.ml as appassetregistry → src/miniquake2/client/assets/registry.mlminiquake2/client/cinematic/audio.ml as appcinaudio → src/miniquake2/client/cinematic/audio.mlminiquake2/client/cinematic/picture.ml as appcinpicture → src/miniquake2/client/cinematic/picture.mlminiquake2/client/cinematic/player.ml as appcinplayer → src/miniquake2/client/cinematic/player.mlminiquake2/client/demo_recording.ml as appdemorecording → src/miniquake2/client/demo_recording.mlminiquake2/client/downloads.ml as appdownloads → src/miniquake2/client/downloads.mlminiquake2/client/effects/constants.ml as appeffectconstants → src/miniquake2/client/effects/constants.mlminiquake2/client/effects/entity.ml as appentityeffects → src/miniquake2/client/effects/entity.mlminiquake2/client/effects/handoff.ml as appeffecthandoff → src/miniquake2/client/effects/handoff.mlminiquake2/client/effects/state.ml as appeffectstate → src/miniquake2/client/effects/state.mlminiquake2/client/prediction.ml as appprediction → src/miniquake2/client/prediction.mlminiquake2/client/runtime/dispatcher.ml as appruntimedispatcher → src/miniquake2/client/runtime/dispatcher.mlminiquake2/client/runtime/handoff.ml as appruntimehandoff → src/miniquake2/client/runtime/handoff.mlminiquake2/client/screenshot.ml as appscreenshot → src/miniquake2/client/screenshot.mlminiquake2/client/state.ml as appclientstate → src/miniquake2/client/state.mlminiquake2/client/ui/commands.ml as appuicommands → src/miniquake2/client/ui/commands.mlminiquake2/client/ui/config.ml as appuiconfig → src/miniquake2/client/ui/config.mlminiquake2/client/ui/console.ml as appuiconsole → src/miniquake2/client/ui/console.mlminiquake2/client/ui/constants.ml as appuiconstants → src/miniquake2/client/ui/constants.mlminiquake2/client/ui/controller.ml as appuicontroller → src/miniquake2/client/ui/controller.mlminiquake2/client/ui/input.ml as appuiinput → src/miniquake2/client/ui/input.mlminiquake2/client/ui/keys.ml as appuikeys → src/miniquake2/client/ui/keys.mlminiquake2/client/ui/menu.ml as appuimenu → src/miniquake2/client/ui/menu.mlminiquake2/client/ui/screen.ml as appuiscreen → src/miniquake2/client/ui/screen.mlminiquake2/collision/model.ml as appcollision → src/miniquake2/collision/model.mlminiquake2/format/bsp.ml as appbsp → src/miniquake2/format/bsp.mlminiquake2/format/cinematic.ml as appcinformat → src/miniquake2/format/cinematic.mlminiquake2/format/md2.ml as appmd2 → src/miniquake2/format/md2.mlminiquake2/game/base/spawn.ml as appspawn → src/miniquake2/game/base/spawn.mlminiquake2/game/constants.ml as appgameconstants → src/miniquake2/game/constants.mlminiquake2/game/gameplay/constants.ml as appgameplayconstants → src/miniquake2/game/gameplay/constants.mlminiquake2/game/gameplay/item_rules.ml as appgameplayitems → src/miniquake2/game/gameplay/item_rules.mlminiquake2/game/gameplay/registry.ml as appgameplayregistry → src/miniquake2/game/gameplay/registry.mlminiquake2/game/integration/baseq2.ml as appbaseq2 → src/miniquake2/game/integration/baseq2.mlminiquake2/game/integration/campaign_progression.ml as appcampaignprogression → src/miniquake2/game/integration/campaign_progression.mlminiquake2/game/null_game.ml as appgame → src/miniquake2/game/null_game.mlminiquake2/game/player/transition.ml as appplayertransition → src/miniquake2/game/player/transition.mlminiquake2/game/world/constants.ml as appworldconstants → src/miniquake2/game/world/constants.mlminiquake2/native.ml as appnative → src/miniquake2/native.mlminiquake2/network/client.ml as appnetworkclient → src/miniquake2/network/client.mlminiquake2/network/runtime/commands.ml as appservercommands → src/miniquake2/network/runtime/commands.mlminiquake2/network/runtime/transport.ml as appnetworktransport → src/miniquake2/network/runtime/transport.mlminiquake2/physics/vector.ml as appphysicsvector → src/miniquake2/physics/vector.mlminiquake2/platform/dedicated_console.ml as appdedicatedconsole → src/miniquake2/platform/dedicated_console.mlminiquake2/platform/system.ml as appsystem → src/miniquake2/platform/system.mlminiquake2/platform/udp.ml as appudp → src/miniquake2/platform/udp.mlminiquake2/platform/window.ml as appwindow → src/miniquake2/platform/window.mlminiquake2/qcommon/byteio.ml as appbyteio → src/miniquake2/qcommon/byteio.mlminiquake2/qcommon/cmd.ml as appqcmd → src/miniquake2/qcommon/cmd.mlminiquake2/qcommon/constants.ml as appqconstants → src/miniquake2/qcommon/constants.mlminiquake2/qcommon/filesystem.ml as appfs → src/miniquake2/qcommon/filesystem.mlminiquake2/qcommon/info.ml as appinfo → src/miniquake2/qcommon/info.mlminiquake2/qcommon/text.ml as apptext → src/miniquake2/qcommon/text.mlminiquake2/qcommon/types.ml as appqtypes → src/miniquake2/qcommon/types.mlminiquake2/renderer/capture.ml as appcapture → src/miniquake2/renderer/capture.mlminiquake2/renderer/opengl.ml as appgl → src/miniquake2/renderer/opengl.mlminiquake2/renderer/types.ml as apprtypes → src/miniquake2/renderer/types.mlminiquake2/runtime/campaign_playtest.ml as appcampaignplaytest → src/miniquake2/runtime/campaign_playtest.mlminiquake2/runtime/client_assets.ml as appclientassets → src/miniquake2/runtime/client_assets.mlminiquake2/runtime/client_session.ml as appclientsession → src/miniquake2/runtime/client_session.mlminiquake2/runtime/demo_session.ml as appdemosession → src/miniquake2/runtime/demo_session.mlminiquake2/runtime/media_sequence.ml as appmediaseq → src/miniquake2/runtime/media_sequence.mlminiquake2/runtime/pause_policy.ml as apppause → src/miniquake2/runtime/pause_policy.mlminiquake2/runtime/play_session.ml as appplay → src/miniquake2/runtime/play_session.mlminiquake2/runtime/preview_camera.ml as appcamera → src/miniquake2/runtime/preview_camera.mlminiquake2/runtime/product_host.ml as appproducthost → src/miniquake2/runtime/product_host.mlminiquake2/runtime/product_startup.ml as appstartup → src/miniquake2/runtime/product_startup.mlminiquake2/runtime/save_metadata.ml as appsavemetadata → src/miniquake2/runtime/save_metadata.mlminiquake2/runtime/server_session.ml as appsession → src/miniquake2/runtime/server_session.mlminiquake2/runtime/session_persistence.ml as apppersistence → src/miniquake2/runtime/session_persistence.mlminiquake2/server/game_bridge.ml as appbridge → src/miniquake2/server/game_bridge.mlstd/fs.ml as appnativefs → ../MiniLangCompilerML/std/fs.ml external dependencystd/process.ml as appprocess → ../MiniLangCompilerML/std/process.ml external dependencyconst APPLICATION_SOUND_CACHE_CAPACITY = 512Defines the application sound cache capacity constant used by the miniquake2 runtime application module.
inline function applicationAudioRefillBudget(queuedBlocks)Pump play audio.
| Parameter | Type | Default | Description |
|---|---|---|---|
queuedBlocks | dynamic | — | queuedBlocks value consumed by this operation. |
applicationAutomatedChangeLevelStores module-wide application automated change level state for the miniquake2 runtime application module.
applicationAutomatedChangeLevelReachedStores module-wide application automated change level reached state for the miniquake2 runtime application module.
applicationAutomatedChangeLevelTargetStores module-wide application automated change level target state for the miniquake2 runtime application module.
applicationAutomatedChangeLevelTriggeredStores module-wide application automated change level triggered state for the miniquake2 runtime application module.
applicationAutomatedProjectileAttackStores module-wide application automated projectile attack state for the miniquake2 runtime application module.
applicationAutomatedWeaponWheelStores module-wide application automated weapon wheel state for the miniquake2 runtime application module.
applicationFrozenPresentationFrameStores module-wide application frozen presentation frame state for the miniquake2 runtime application module.
applicationGamemapAutosaveRequestedStores module-wide application gamemap autosave requested state for the miniquake2 runtime application module.
applicationGamemapEndOfUnitStores module-wide application gamemap end of unit state for the miniquake2 runtime application module.
applicationGroundPusherCacheStores module-wide application ground pusher cache state for the miniquake2 runtime application module.
miniquake2.runtime.application.ApplicationGroundPusherCache struct
applicationLevelCaptureChecksumStores module-wide application level capture checksum state for the miniquake2 runtime application module.
applicationLevelCaptureErrorStores module-wide application level capture error state for the miniquake2 runtime application module.
applicationLevelCapturePathStores module-wide application level capture path state for the miniquake2 runtime application module.
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
session | dynamic | — | session value consumed by this operation. |
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
session | dynamic | — | session value consumed by this operation. |
fraction | dynamic | — | fraction value consumed by this operation. |
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
session | dynamic | — | session value consumed by this operation. |
applicationMediaCooperativeStores module-wide application media cooperative state for the miniquake2 runtime application module.
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
clock | dynamic | — | clock value consumed by this operation. |
deadline | dynamic | — | deadline value consumed by this operation. |
maxFps | dynamic | — | maxFps value consumed by this operation. |
applicationPersistProductConfigStores module-wide application persist product config state for the miniquake2 runtime application module.
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
now | dynamic | — | now value consumed by this operation. |
snapshotTime | dynamic | — | snapshotTime value consumed by this operation. |
applicationProjectileAttackCommandsStores module-wide application projectile attack commands state for the miniquake2 runtime application module.
applicationProjectileExportMaximumStores module-wide application projectile export maximum state for the miniquake2 runtime application module.
applicationProjectileLastEngineNumberStores module-wide application projectile last engine number state for the miniquake2 runtime application module.
applicationProjectileParticleMaximumStores module-wide application projectile particle maximum state for the miniquake2 runtime application module.
applicationProjectileRenderMaximumStores module-wide application projectile render maximum state for the miniquake2 runtime application module.
applicationProjectileServerMaximumStores module-wide application projectile server maximum state for the miniquake2 runtime application module.
applicationProjectileSnapshotMaximumStores module-wide application projectile snapshot maximum state for the miniquake2 runtime application module.
applicationProjectileVisibilityDiagnosticStores module-wide application projectile visibility diagnostic state for the miniquake2 runtime application module.
applicationProjectileVisibleMaximumStores module-wide application projectile visible maximum state for the miniquake2 runtime application module.
applicationProjectileWeaponSoundMaximumStores module-wide application projectile weapon sound maximum state for the miniquake2 runtime application module.
applicationPusherOffsetValueStores module-wide application pusher offset value state for the miniquake2 runtime application module.
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
client | dynamic | — | client value consumed by this operation. |
groundNumber | dynamic | — | groundNumber value consumed by this operation. |
fraction | dynamic | — | fraction value consumed by this operation. |
riderOrigin | dynamic | — | riderOrigin value consumed by this operation. |
applicationPusherPredictionOffsetValueStores module-wide application pusher prediction offset value state for the miniquake2 runtime application module.
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
client | dynamic | — | client value consumed by this operation. |
groundNumber | dynamic | — | groundNumber value consumed by this operation. |
fraction | dynamic | — | fraction value consumed by this operation. |
riderOrigin | dynamic | — | riderOrigin value consumed by this operation. |
function applicationRegisterRemoteWorld()Register application remote world.
function applicationRemoteFileExists(name)Return the application remote file exists value.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Name of the affected item. |
function applicationRemoteRegisterDownload(kind, name)Register application remote download.
| Parameter | Type | Default | Description |
|---|---|---|---|
kind | dynamic | — | kind value consumed by this operation. |
name | dynamic | — | Name of the affected item. |
applicationRemoteRegistrationAssetsStores module-wide application remote registration assets state for the miniquake2 runtime application module.
applicationRemoteRegistrationCollisionStores module-wide application remote registration collision state for the miniquake2 runtime application module.
applicationRemoteRegistrationFileSystemStores module-wide application remote registration file system state for the miniquake2 runtime application module.
applicationRemoteRegistrationMapStores module-wide application remote registration map state for the miniquake2 runtime application module.
applicationRemoteRegistrationMapPathStores module-wide application remote registration map path state for the miniquake2 runtime application module.
applicationRemoteRegistrationRendererStores module-wide application remote registration renderer state for the miniquake2 runtime application module.
applicationRemoteRegistrationSessionStores module-wide application remote registration session state for the miniquake2 runtime application module.
applicationRemoteRegistrationWorldStores module-wide application remote registration world state for the miniquake2 runtime application module.
function applicationRendererEmpty1(value)Report whether application renderer empty 1.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
function applicationRendererImports()Return the application renderer imports value.
function applicationRendererMode(mode)Return the application renderer mode value.
| Parameter | Type | Default | Description |
|---|---|---|---|
mode | dynamic | — | Mode selecting the requested behavior. |
function applicationRendererNoResult0()Report whether application renderer no result 0.
function applicationRendererNoResult1(value)Report whether application renderer no result 1.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
function applicationRendererNoResult2(first, second)Report whether application renderer no result 2.
| Parameter | Type | Default | Description |
|---|---|---|---|
first | dynamic | — | first value consumed by this operation. |
second | dynamic | — | second value consumed by this operation. |
function applicationRendererNoResult3(first, second, third)Report whether application renderer no result 3.
| Parameter | Type | Default | Description |
|---|---|---|---|
first | dynamic | — | first value consumed by this operation. |
second | dynamic | — | second value consumed by this operation. |
third | dynamic | — | third value consumed by this operation. |
function applicationRendererVoid3(first, second, third)Return the application renderer void 3 value.
| Parameter | Type | Default | Description |
|---|---|---|---|
first | dynamic | — | first value consumed by this operation. |
second | dynamic | — | second value consumed by this operation. |
third | dynamic | — | third value consumed by this operation. |
function applicationRendererZero0()Return the application renderer zero 0 value.
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
frozen | dynamic | — | frozen value consumed by this operation. |
cachedFrame | dynamic | — | cachedFrame value consumed by this operation. |
newFrame | dynamic | — | newFrame value consumed by this operation. |
applicationResourceCacheStores module-wide application resource cache state for the miniquake2 runtime application module.
miniquake2.runtime.application.ApplicationResourceCache struct
function applicationSharedFileSystem(baseDirectory)Return the shared read-only filesystem for one retail data root.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
function applicationSubmitDemoFrame(renderer, world, frame, screen, now, window, stats, configStrings)Submit application demo frame.
| Parameter | Type | Default | Description |
|---|---|---|---|
renderer | dynamic | — | renderer value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
frame | dynamic | — | frame value consumed by this operation. |
screen | dynamic | — | screen value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |
window | dynamic | — | window value consumed by this operation. |
stats | dynamic | — | stats value consumed by this operation. |
configStrings | dynamic | — | configStrings value consumed by this operation. |
function applicationSynchronizeSoundCache(filesystem)Reset decoded sounds when a direct tool path selects a different data root.
| Parameter | Type | Default | Description |
|---|---|---|---|
filesystem | dynamic | — | filesystem value consumed by this operation. |
applicationWeaponWheelCommandsStores module-wide application weapon wheel commands state for the miniquake2 runtime application module.
applicationWeaponWheelLastGunIndexStores module-wide application weapon wheel last gun index state for the miniquake2 runtime application module.
applicationWeaponWheelStageStores module-wide application weapon wheel stage state for the miniquake2 runtime application module.
applicationWeaponWheelTransitionsStores module-wide application weapon wheel transitions state for the miniquake2 runtime application module.
function applyPlayHandoff(screen, handoff)Apply play handoff.
| Parameter | Type | Default | Description |
|---|---|---|---|
screen | dynamic | — | screen value consumed by this operation. |
handoff | dynamic | — | handoff value consumed by this operation. |
function assetSmoke(baseDirectory, mapName)Return the asset smoke value.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
mapName | dynamic | — | mapName value consumed by this operation. |
miniquake2.runtime.application.AssetSmokeResult struct
function auditRetailCinematic(filesystem, name)Return the audit retail cinematic value.
| Parameter | Type | Default | Description |
|---|---|---|---|
filesystem | dynamic | — | filesystem value consumed by this operation. |
name | dynamic | — | Name of the affected item. |
function auditRetailDemo(filesystem, name, randomSeed)Return the audit retail demo value.
| Parameter | Type | Default | Description |
|---|---|---|---|
filesystem | dynamic | — | filesystem value consumed by this operation. |
name | dynamic | — | Name of the affected item. |
randomSeed | dynamic | — | randomSeed value consumed by this operation. |
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.
function campaignSignonError(session, mapName)Return the campaign signon error value.
| Parameter | Type | Default | Description |
|---|---|---|---|
session | dynamic | — | session value consumed by this operation. |
mapName | dynamic | — | mapName value consumed by this operation. |
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
mapName | dynamic | — | mapName value consumed by this operation. |
outputPath | dynamic | — | Path associated with output. |
frameLimit | dynamic | — | frameLimit value consumed by this operation. |
function cinematicPath(name)Return the cinematic path.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Name of the affected item. |
function closePlayAudio(device, mixer)Close play audio.
| Parameter | Type | Default | Description |
|---|---|---|---|
device | dynamic | — | device value consumed by this operation. |
mixer | dynamic | — | mixer value consumed by this operation. |
function countAvailableAssets(entries)Report whether count available assets.
| Parameter | Type | Default | Description |
|---|---|---|---|
entries | dynamic | — | entries value consumed by this operation. |
extern function CreateDirectoryW(path as wstr, security as ptr) from "kernel32.dll" returns boolInvokes the native CreateDirectoryW entry point used by the miniquake2 runtime application module.
| Parameter | Type | Default | Description |
|---|---|---|---|
path | wstr | — | Path of the file or directory used by the operation. |
security | ptr | — | security value consumed by this operation. |
Returns: Native bool result produced by the call.
function demoPath(name)Return the demo path.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Name of the affected item. |
function endsWith(value, suffix)Return the ends with value.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
suffix | dynamic | — | suffix value consumed by this operation. |
function executeDedicatedCommand(session, baseDirectory, text)Performs the executeDedicatedCommand operation for the miniquake2 runtime application module.
| Parameter | Type | Default | Description |
|---|---|---|---|
session | dynamic | — | session value consumed by this operation. |
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
text | dynamic | — | Text consumed by the operation. |
function loadPlaySound(name)Load play sound.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Name of the affected item. |
function loadPreviewFile(path)Load preview file.
| Parameter | Type | Default | Description |
|---|---|---|---|
path | dynamic | — | Path of the file or directory used by the operation. |
function mapPath(name)Map path.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Name of the affected item. |
function missingPlayAssetSummary(state)Report whether missing play asset summary.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
function noteMissingPlayAsset(value)Report whether note missing play asset.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
function picturePath(name)Return the picture path.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Name of the affected item. |
playAssetBindingsStores module-wide play asset bindings state for the miniquake2 runtime application module.
playAssetStateStores module-wide play asset state state for the miniquake2 runtime application module.
playClientRuntimeStores module-wide play client runtime state for the miniquake2 runtime application module.
function playConfigPath(baseDirectory)Play config path.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
function playCurrentArchivePaths(baseDirectory)Private `current` archive used between maps within one Quake II unit.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
function playDemoDirectory(baseDirectory)Play demo directory.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
playEffectStateStores module-wide play effect state state for the miniquake2 runtime application module.
function playPreferencesPath(baseDirectory)Play preferences path.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
function playProfileUserInfo(profile)Play profile user info.
| Parameter | Type | Default | Description |
|---|---|---|---|
profile | dynamic | — | profile value consumed by this operation. |
function playSaveMetadataPath(baseDirectory, slot)Play save metadata path.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
slot | dynamic | — | slot value consumed by this operation. |
function playSavePaths(baseDirectory, slot)Play save paths.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
slot | dynamic | — | slot value consumed by this operation. |
function playSaveSlotLabel(slot)Return the stock autosave/manual slot label.
| Parameter | Type | Default | Description |
|---|---|---|---|
slot | dynamic | — | slot value consumed by this operation. |
function playScreenshotDirectory(baseDirectory)Play screenshot directory.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
function playUserInfo(hand)Play user info.
| Parameter | Type | Default | Description |
|---|---|---|---|
hand | dynamic | — | hand value consumed by this operation. |
previewFileSystemStores module-wide preview file system state for the miniquake2 runtime application module.
function previewMap(baseDirectory, mapName, frameLimit)Map preview.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
mapName | dynamic | — | mapName value consumed by this operation. |
frameLimit | dynamic | — | frameLimit value consumed by this operation. |
function productAddressBook(menu)Return the product address book value.
| Parameter | Type | Default | Description |
|---|---|---|---|
menu | dynamic | — | menu value consumed by this operation. |
miniquake2.runtime.application.ProductMenuSelection struct
function productPathInside(baseDirectory, parentDirectory)Report whether product path inside.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
parentDirectory | dynamic | — | parentDirectory value consumed by this operation. |
function productSettingsDirectory(baseDirectory)Return the product settings directory value.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
localAppData | dynamic | — | localAppData value consumed by this operation. |
programFiles | dynamic | — | programFiles value consumed by this operation. |
programFilesX86 | dynamic | — | programFilesX86 value consumed by this operation. |
function pumpPlayAudio(device, mixer)Pump play audio.
| Parameter | Type | Default | Description |
|---|---|---|---|
device | dynamic | — | device value consumed by this operation. |
mixer | dynamic | — | mixer value consumed by this operation. |
function randomPlayClientEffect()Play random client effect.
function remoteMapModelPath(session)Map remote model path.
| Parameter | Type | Default | Description |
|---|---|---|---|
session | dynamic | — | session value consumed by this operation. |
function resolvePlayEffectModel(name)Resolve play effect model.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Name of the affected item. |
function resolvePlayEntityPosition(number)Resolve play entity position.
| Parameter | Type | Default | Description |
|---|---|---|---|
number | dynamic | — | number value consumed by this operation. |
function resolvePlayModelIndex(index)Resolve play model index.
| Parameter | Type | Default | Description |
|---|---|---|---|
index | dynamic | — | Zero-based index of the affected item. |
function resultLines(result)Return the result lines value.
| Parameter | Type | Default | Description |
|---|---|---|---|
result | dynamic | — | Result object populated or inspected by the operation. |
miniquake2.runtime.application.RetailMediaAudit struct
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
maximumMaps | dynamic | — | maximumMaps value consumed by this operation. |
function runChangeLevelSmoke(baseDirectory, mapName, nextMap, frameLimit)Run change level smoke.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
mapName | dynamic | — | mapName value consumed by this operation. |
nextMap | dynamic | — | nextMap value consumed by this operation. |
frameLimit | dynamic | — | frameLimit value consumed by this operation. |
function runDedicated(baseDirectory, mapName, port, frameLimit)Runs dedicated for the miniquake2 runtime application workflow.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
mapName | dynamic | — | mapName value consumed by this operation. |
port | dynamic | — | port value consumed by this operation. |
frameLimit | dynamic | — | frameLimit value consumed by this operation. |
function runHeadlessClient(address, port, frameLimit)Run headless client.
| Parameter | Type | Default | Description |
|---|---|---|---|
address | dynamic | — | address value consumed by this operation. |
port | dynamic | — | port value consumed by this operation. |
frameLimit | dynamic | — | frameLimit value consumed by this operation. |
function runListen(baseDirectory, mapName, frameLimit)Run listen.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
mapName | dynamic | — | mapName value consumed by this operation. |
frameLimit | dynamic | — | frameLimit value consumed by this operation. |
function runPlay(baseDirectory, mapName, frameLimit)Run play.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
mapName | dynamic | — | mapName value consumed by this operation. |
frameLimit | dynamic | — | frameLimit value consumed by this operation. |
function runPlayAt(baseDirectory, mapName, spawnPoint, frameLimit)Run play at.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
mapName | dynamic | — | mapName value consumed by this operation. |
spawnPoint | dynamic | — | spawnPoint value consumed by this operation. |
frameLimit | dynamic | — | frameLimit value consumed by this operation. |
function runPlayAtOnHost(baseDirectory, mapName, spawnPoint, frameLimit, productHost, skill)Report whether run play at on host.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
mapName | dynamic | — | mapName value consumed by this operation. |
spawnPoint | dynamic | — | spawnPoint value consumed by this operation. |
frameLimit | dynamic | — | frameLimit value consumed by this operation. |
productHost | dynamic | — | productHost value consumed by this operation. |
skill | dynamic | — | skill value consumed by this operation. |
function runPlayAtOnHostConfigured(baseDirectory, mapName, spawnPoint, frameLimit, productHost, skill, menuAtStart, serverOptions, playerProfile)Report whether run play at on host configured.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
mapName | dynamic | — | mapName value consumed by this operation. |
spawnPoint | dynamic | — | spawnPoint value consumed by this operation. |
frameLimit | dynamic | — | frameLimit value consumed by this operation. |
productHost | dynamic | — | productHost value consumed by this operation. |
skill | dynamic | — | skill value consumed by this operation. |
menuAtStart | dynamic | — | menuAtStart value consumed by this operation. |
serverOptions | dynamic | — | serverOptions value consumed by this operation. |
playerProfile | dynamic | — | playerProfile value consumed by this operation. |
function runPlayAtOnHostConfiguredWithConfig(baseDirectory, mapName, spawnPoint, frameLimit, productHost, skill, menuAtStart, serverOptions, playerProfile, initialConfig)Report whether run play at on host configured with config.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
mapName | dynamic | — | mapName value consumed by this operation. |
spawnPoint | dynamic | — | spawnPoint value consumed by this operation. |
frameLimit | dynamic | — | frameLimit value consumed by this operation. |
productHost | dynamic | — | productHost value consumed by this operation. |
skill | dynamic | — | skill value consumed by this operation. |
menuAtStart | dynamic | — | menuAtStart value consumed by this operation. |
serverOptions | dynamic | — | serverOptions value consumed by this operation. |
playerProfile | dynamic | — | playerProfile value consumed by this operation. |
initialConfig | dynamic | — | initialConfig value consumed by this operation. |
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
mapName | dynamic | — | mapName value consumed by this operation. |
spawnPoint | dynamic | — | spawnPoint value consumed by this operation. |
frameLimit | dynamic | — | frameLimit value consumed by this operation. |
productHost | dynamic | — | productHost value consumed by this operation. |
skill | dynamic | — | skill value consumed by this operation. |
menuAtStart | dynamic | — | menuAtStart value consumed by this operation. |
serverOptions | dynamic | — | serverOptions value consumed by this operation. |
playerProfile | dynamic | — | playerProfile value consumed by this operation. |
initialConfig | dynamic | — | initialConfig value consumed by this operation. |
initialGameplayHandover | dynamic | — | initialGameplayHandover value consumed by this operation. |
function runPlayInputSmoke(baseDirectory, mapName, commandSteps)Run play input smoke.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
mapName | dynamic | — | mapName value consumed by this operation. |
commandSteps | dynamic | — | commandSteps value consumed by this operation. |
function runProduct(baseDirectory, frameLimit)Run product.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
frameLimit | dynamic | — | frameLimit value consumed by this operation. |
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
productHost | dynamic | — | productHost value consumed by this operation. |
frameLimit | dynamic | — | frameLimit value consumed by this operation. |
initialProfile | dynamic | — | initialProfile value consumed by this operation. |
function runProjectileVisualSmoke(baseDirectory, mapName, frameLimit)Run projectile visual smoke.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
mapName | dynamic | — | mapName value consumed by this operation. |
frameLimit | dynamic | — | frameLimit value consumed by this operation. |
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
endpoint | dynamic | — | endpoint value consumed by this operation. |
productHost | dynamic | — | productHost value consumed by this operation. |
playerProfile | dynamic | — | playerProfile value consumed by this operation. |
downloadPolicy | dynamic | — | downloadPolicy value consumed by this operation. |
frameLimit | dynamic | — | frameLimit value consumed by this operation. |
function runRemoteProductSmoke(baseDirectory, endpoint, frameLimit)Run remote product smoke.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
endpoint | dynamic | — | endpoint value consumed by this operation. |
frameLimit | dynamic | — | frameLimit value consumed by this operation. |
function runRetailCinematic(baseDirectory, name, frameLimit, looping)Run retail cinematic.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
name | dynamic | — | Name of the affected item. |
frameLimit | dynamic | — | frameLimit value consumed by this operation. |
looping | dynamic | — | looping value consumed by this operation. |
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
name | dynamic | — | Name of the affected item. |
frameLimit | dynamic | — | frameLimit value consumed by this operation. |
looping | dynamic | — | looping value consumed by this operation. |
productHost | dynamic | — | productHost value consumed by this operation. |
attractLoop | dynamic | — | attractLoop value consumed by this operation. |
function runRetailDemo(baseDirectory, name, frameLimit)Run retail demo.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
name | dynamic | — | Name of the affected item. |
frameLimit | dynamic | — | frameLimit value consumed by this operation. |
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
name | dynamic | — | Name of the affected item. |
frameLimit | dynamic | — | frameLimit value consumed by this operation. |
productHost | dynamic | — | productHost value consumed by this operation. |
attractLoop | dynamic | — | attractLoop value consumed by this operation. |
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
function runRetailMediaSequence(baseDirectory, specification, frameLimit)Run retail media sequence.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
specification | dynamic | — | specification value consumed by this operation. |
frameLimit | dynamic | — | frameLimit value consumed by this operation. |
function runRetailMediaSequenceOnHost(baseDirectory, specification, frameLimit, productHost, skill)Report whether run retail media sequence on host.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
specification | dynamic | — | specification value consumed by this operation. |
frameLimit | dynamic | — | frameLimit value consumed by this operation. |
productHost | dynamic | — | productHost value consumed by this operation. |
skill | dynamic | — | skill value consumed by this operation. |
function runRetailMediaSequenceOnHostWithSettings(baseDirectory, specification, frameLimit, productHost, skill, initialConfig, playerProfile)Report whether run retail media sequence on host with settings.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
specification | dynamic | — | specification value consumed by this operation. |
frameLimit | dynamic | — | frameLimit value consumed by this operation. |
productHost | dynamic | — | productHost value consumed by this operation. |
skill | dynamic | — | skill value consumed by this operation. |
initialConfig | dynamic | — | initialConfig value consumed by this operation. |
playerProfile | dynamic | — | playerProfile value consumed by this operation. |
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
specification | dynamic | — | specification value consumed by this operation. |
frameLimit | dynamic | — | frameLimit value consumed by this operation. |
productHost | dynamic | — | productHost value consumed by this operation. |
skill | dynamic | — | skill value consumed by this operation. |
initialConfig | dynamic | — | initialConfig value consumed by this operation. |
playerProfile | dynamic | — | playerProfile value consumed by this operation. |
initialGameplayHandover | dynamic | — | initialGameplayHandover value consumed by this operation. |
function runRetailPicture(baseDirectory, name, frameLimit)Run retail picture.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
name | dynamic | — | Name of the affected item. |
frameLimit | dynamic | — | frameLimit value consumed by this operation. |
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
name | dynamic | — | Name of the affected item. |
frameLimit | dynamic | — | frameLimit value consumed by this operation. |
productHost | dynamic | — | productHost value consumed by this operation. |
function runRetailVideoRestartSmoke(baseDirectory, mapName)Run retail video restart smoke.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
mapName | dynamic | — | mapName value consumed by this operation. |
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
mapName | dynamic | — | mapName value consumed by this operation. |
targetVideoMode | dynamic | — | targetVideoMode value consumed by this operation. |
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
productHost | dynamic | — | productHost value consumed by this operation. |
function runWeaponWheelSmoke(baseDirectory, mapName, frameLimit)Run weapon wheel smoke.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
mapName | dynamic | — | mapName value consumed by this operation. |
frameLimit | dynamic | — | frameLimit value consumed by this operation. |
function settleCampaignSession(session, maximumSteps)Return the settle campaign session value.
| Parameter | Type | Default | Description |
|---|---|---|---|
session | dynamic | — | session value consumed by this operation. |
maximumSteps | dynamic | — | maximumSteps value consumed by this operation. |
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
commandState | dynamic | — | commandState value consumed by this operation. |
playerProfile | dynamic | — | playerProfile value consumed by this operation. |
productConfig | dynamic | — | productConfig value consumed by this operation. |
function updateProductBrowserMenu(menu, browser)Update product browser menu.
| Parameter | Type | Default | Description |
|---|---|---|---|
menu | dynamic | — | menu value consumed by this operation. |
browser | dynamic | — | browser value consumed by this operation. |