Configuration

10files
12min read
Sheet 44 of 47 · Reference

Filesconfig.json · workflow.json · launch.json · config/ignitetestcamera.properties · +6

Fileconfig.jsonFileworkflow.jsonIgniteTestTool keeps its settings in two JSON files in the data folder: config.json for paths and defaults, workflow.json for the scenario folder, deploy and schedule. The Settings, Deploy and Schedule screens write both, so most people never open them. This sheet lists every key with its default.

Where the files are

Fileconfig.jsonThe data folder is %LOCALAPPDATA%\IgniteTestTool on Windows and ~/.ignitetesttool where LOCALAPPDATA is not set (Linux). --data-dir <dir> or ITT_DATA_DIR picks another one, --config <file> or ITT_CONFIG another config.json.

  • Fileconfig.jsonOn start the tool reads config.json, fills in every key the file does not have with its default and writes the file back, so a key added in a newer version shows up with its default.
  • A file that is not a JSON object stops the start with config is not a JSON object.
  • Saves go through a temp file and a move, so a crash in the middle never leaves half a file.
  • Settings starts from what is saved, so a key it has no field for keeps its value in the file.

What wins

Top first:

  1. A parameter on the call: drive=, recorder=, kitDir=, endCardUrl= and the like.
  2. The command line: --data-dir, --config, --api-port.
  3. The ITT_* environment variables.
  4. Fileconfig.jsonconfig.json.
  5. The built-in default.

Fileconfig.jsonCI mode writes its options into a fresh config.json of its own.

Checks

Values that cannot work are named in plain words, with the key in brackets: a port outside 1 to 65535, a timeout or fps below 1, a longest reconnect delay below the first one, a render timeout outside 30 to 3600, a drive, recorder, token mode, nametag mode or crash policy that is not one of its values, filmRecorder set to obs without an obsScript, and the mod camera on the API port while modCamera is on.

  • On start every problem is logged as a warning.
  • The Settings screen shows the first problem in its status line and will not save until it is fixed.
  • When --api-port or ITT_API_PORT lands on modCameraPort with the mod camera on, the tool warns on start: Mod camera and API share port N.

Older configs

Fileconfig.jsonA config.json saved by 1.3.0 or older can carry paths of the machine the tool was built on in javaPath, serverDir, clientLaunchJson and modCameraJar. On start each of them is cleared when nothing is there, and a modCameraPort of 8767 moves to 8769. The log says Moved settings from an older version. A path that exists on your machine stays as it is.

config.json

The Settings column is the group and field on the Settings screen. Lists are JSON arrays in the file and take | between the values on Settings.

Test server

KeyDefaultSettingsMeaning
serverDiremptyTest server > Server folderThe server Start server runs, and the folder deploy, checkpoints, the result cache and file steps work in. Empty until you pick one; Start server and Deploy then stop with No server folder set instead of guessing
serverJarpaper.jarTest server > Server jar fileThe jar in that folder
serverMemory3GTest server > Memory-Xmx for the server, the way Java takes it: 4G or 2048M
serverStopTimeoutSeconds60Test server > Stop timeoutSeconds the server gets after stop, then it is killed
javaPathemptyTest server > Java programThe Java the server and clients run on. Empty runs them on the Java the tool itself runs on

Bots

KeyDefaultSettingsMeaning
botHost, botPort127.0.0.1, 25565Bots > Server address and portWhere a new bot joins. The Bots header and host, port on the API change it per bot
velocityForwardingSecretemptyBots > Velocity forwarding secretThe forwarding.secret of a Velocity proxy, for joining a backend straight, see Proxies & Transfers
botVersionemptyBots > Minecraft versionThe version bots speak. Empty or auto asks the server, see Bots
botViewDistance4Bots > Chunks a bot loadsAround the bot, fewer is lighter on the server
chatLogLines300Bots > Chat lines keptPer bot, older lines are dropped
swarmPatternTest_{n}Bots > Swarm namesThe names a swarm gets
swarmStaggerMillis600Bots > Pause between swarm joinsMilliseconds between two joins of a swarm
reconnectDelaySeconds5Bots > First reconnect delaySeconds before the first reconnect, doubled after every failed try
reconnectMaxDelaySeconds60Bots > Longest reconnect delayThe doubling stops here. At least the first delay

Game client

A plain Minecraft window started from the Live screen, to watch a test with your own eyes.

KeyDefaultSettingsMeaning
clientLaunchJsonemptyGame client > Client launch fileThe launch.json of the old launcher flow, only for Start client. Empty stops Start client with No client launch file set; a takeover downloads its own client
clientMemory3GGame client > Memory
clientUsernameemptyGame client > UsernameThe name the client joins with. Empty keeps the name in launch.json
clientWidth, clientHeight1920, 1080Game client > Window sizeIn pixels

Takeover

KeyDefaultSettingsMeaning
takeoverVersionemptyTaking over a bot > Minecraft versionThe client version with takeoverDirect on. Empty takes what the server reports
takeoverMinecraftDiremptyTaking over a bot > Existing .minecraftCopy client files from there instead of downloading them
takeoverJavaemptyTaking over a bot > Java for the clientEmpty uses the Java runtime the tool downloads for the client
takeoverLaunchJsonemptyTaking over a bot > Modded client launch fileA launch file for a client you installed yourself. Empty downloads vanilla. See Takeover
takeoverReconnecttrueTaking over a bot > After the client exitsBring the bot back when the client closes
takeoverDirectfalseTaking over a bot > ConnectionConnect the client straight to the server, without the takeover proxy

The client files land in client-cache in the data folder. See Takeover.

Mod camera

KeyDefaultSettingsMeaning
modCamerafalseMod camera > Use the mod when presentAn optional Fabric mod inside the takeover client for roll, live fov and render-fps moves
modCameraPort8769Mod camera > PortThe mod's localhost port. Every takeover with modCamera on writes it into config/ignitetestcamera.properties of the client. Keep it off the API port
modCameraJaremptyMod camera > Mod jarThe built IgniteTestCamera jar to copy into the client. Empty copies nothing
modCameraModsDiremptyMod camera > Client mods folderEmpty is mods in cinematicProfileDir, else in the game folder of the client being taken over

Filming

A call's drive= and recorder= win over the first two. More on Filming.

KeyDefaultSettingsMeaning
filmDrivecineFilming > Camera drivecine (Server camera), keys (Keys), sendinput (Windows mouse) or mod (Camera mod)
filmRecorderinternalFilming > Recorderinternal (Built in, ffmpeg on a window grab) or obs (OBS). obs needs obsScript
ffmpegPathffmpegFilming > ffmpeg programA bare name is looked up on the PATH
obsScriptemptyFilming > OBS control scriptThe Node script that talks to OBS over its websocket. It does not ship with the tool
nodePathnodeFilming > Node programRuns the OBS script and the render kit
filmOutputDiremptyFilming > Clip folderEmpty is film in the data folder
filmFps60Filming > Frames per secondDefault fps of a shot, up to 120
filmTakeoverTimeoutSeconds150Filming > Wait for the clientSeconds a shot waits for the takeover client
filmPrewarmMillis1500Filming > Chunk warm-upUpper bound of the chunk wait before recording
filmPresetsFileemptyFilming > Shot presetsA JSON file of named shots for preset=
sendinputHz125Filming > Mouse stepsSteps a second of the sendinput drive
sendinputPixelsPerDegree8.0Filming > Mouse pixels per degreeMatch the client's sensitivity
filmHandheld0.03Filming > Handheld swayWhat handheld=on uses
filmParticleCount12Filming > Particles per burstFor particles=
cameraNametagsoffFilming > Other players' nametagsoff (Show), hide (Hide) or rename (Rename)
cameraNamesten first namesFilming > Names for RenameComma between names
cinematicShaderfalseFilming > Cinematic lookDepth of field, motion blur and bloom while filming
cinematicFovemptyFilming > Field of viewDegrees. Empty keeps the client's
cinematicProfileDiremptyFilming > Client profile folderThe profile the cinematic look patches. Empty is the game folder of the client being taken over
cinematicDofSamples16Filming > Depth of field samplesFewer is faster
cinematicSpeedScale1.5Filming > Slower with the shaderTimes the shot length

Auto director

More on Auto Director.

KeyDefaultSettingsMeaning
scanRadius48Auto director > Scan radiusBlocks around the point
autofilmMaxShots12Auto director > Shots per runFor /autofilm
autofilmSeedVarietytrueAuto director > VarietyVary angle, time and moves per build
bestLightDefaultfalseAuto director > LightPick the time of day that lights the camera side best
coverageDistance8.0Auto director > Coverage distanceBlocks from the subject, for /film/coverage and /sequence
renderKitDiremptyAuto director > Render kit folderThe shorts render kit with build.cjs, for /render and /produce. It does not ship with the tool; kitDir= on the call wins
renderTimeoutSeconds1200Auto director > Render timeoutSeconds per short, 30 to 3600
produceMaxShorts6Auto director > Shorts per runFor /produce
produceFps30Auto director > Short fpsOf the finished short
produceEndCardUrlemptyAuto director > End card addressThe address on the end card. Empty leaves the end card out
produceEndCardCtaJoinAuto director > End card button
produceTaglinesfour linesAuto director > End card taglinesOne is picked per short
produceLineseight linesAuto director > Lines on screenThree are picked per short
produceConceptsjv-world, jv-slam, jv-strip, jv-splitAuto director > Kit conceptsTemplate names in the kit
produceStyleshouse, synthwave, lofi, futurebass, techno, trap, cinematic, dnbAuto director > Music stylesMusic styles in the kit
produceAccentssix coloursAuto director > Accent coloursLike #46e6b4
produceGradecontrast(1.1) saturate(1.22) brightness(1.08)Auto director > Colour gradeA CSS filter. Empty is none

Looking inside the server

KeyDefaultSettingsMeaning
agentUrlhttp://127.0.0.1:8768Looking inside the server > Agent addressWhere IgniteTestAgent listens. For a server on another machine it is the tunnel end or http://host:8768 after bind: 0.0.0.0, see Remote server
agentTokenemptyLooking inside the server > Agent tokenEmpty reads it from plugins/IgniteTestAgent/config.yml in the server folder on every call
agentTimeoutSeconds15Looking inside the server > Agent timeoutSeconds per agent call
rconHost, rconPort127.0.0.1, 25575Looking inside the server > RCON address and portFor /rcon and rcon steps on a server the tool did not start
rconPasswordemptyLooking inside the server > RCON password
rconTimeoutSeconds5Looking inside the server > RCON timeoutSeconds per command, for the connect and the answer

API

KeyDefaultSettingsMeaning
apiPort8766API > API portA new port applies after a restart. --api-port and ITT_API_PORT win
apiTokenModeexecAPI > Token needed forexec (Calls that change things), all (Every call) or off (No call). See HTTP API

Safety

KeyDefaultSettingsMeaning
useJobObjecttrueSafety > Kill children with the toolThe Windows job object, applies after a restart. See Process Safety
scanIntervalSeconds3Safety > Process scan everyHow often the process list refreshes, applies after a restart
survivorPolicyaskSafety > Leftovers from a crashWhat to do with processes a crashed session left: ask (Ask me), kill (Stop them) or ignore (Leave them). Headless stops them unless it is ignore
gradleUserHomeemptySafety > Gradle user homeGRADLE_USER_HOME for builds the tool runs

workflow.json

The scenario folder, Hot Deploy and Schedule. /workflow reads it and /workflow/set?key=value changes any key, call workflow/set deployProject=<dir> from a shell.

KeyDefaultMeaning
scenarioDiremptyThe scenario folder. Empty means scenarios in the data folder
deployProjectemptyWhere the build runs
deployBuildgradlew buildThe build command, empty to only copy
deployArtifactsbuild/libs/*.jarGlobs of the plugin jars, relative to the project, ; between them
deployBuildTimeoutSeconds600Seconds before the build is killed with its process tree
deployRestarttrueStop the server, copy, start and wait for Done
deployWatchfalseDeploy on its own when a jar changes
deployRunScenariosfalseRun the scenario folder after a deploy and fail the deploy on a failed scenario
scheduleEnabledfalse
scheduleModedailydaily or interval
scheduleTime03:00For daily
scheduleEveryMinutes60For interval
scheduleDeployFirstfalseBuild and deploy before a scheduled run
scheduleRepeat1Runs per file, up to 50
webhookUrlemptyA Discord URL gets an embed, anything else a JSON body
webhookOnlyFailuresfalsePost only runs that failed
webhookOnDeployfalsePost every deploy too

Environment variables

VariableWhat it does
ITT_LICENSEThe license key. Wins over license.key, and in CI mode and JUnit takes the shared CI slot. See License
ITT_API_TOKENReplaces the token in api-token.txt, for the tool and for the command line client
ITT_DATA_DIRThe data folder when --data-dir is not given. The command line client reads it too
ITT_CONFIGThe config.json to use when --config is not given
ITT_API_PORTThe API port when --api-port is not given. Wins over apiPort
LOCALAPPDATAWhere the default data folder goes on Windows
GITHUB_STEP_SUMMARYSet by GitHub Actions; CI mode writes its summary there too

The data folder

PathWhat it holds
config.json, workflow.jsonThe settings above
ui.jsonThe window: position, theme, Look settings, folded headers, tool options and saved setups
license.key, .license, .license-ciThe key and the activation tokens, see License
api-token.txt, api-port.txtThe API token and port. The command line client finds a running tool through them
instance.lockOne tool per data folder; a second start stops with IgniteTestTool is already running for <dir>
accounts.dat, premium-hosts.jsonPremium refresh tokens sealed with DPAPI, and the remote hosts you approved. See Premium Accounts
processes.jsonPID and start time of every process the tool started, for the cleanup after a crash
scenarios/The default scenario folder
history/Every run of every file, <file>-<folder hash>.jsonl, 300 kept per file
result-cache.json, impact/, jacoco/The result cache, the methods each file ran, the coverage agent
checkpoints/, snapshots/Checkpoints and menu snapshots
captures/Screenshots and recordings
film/Filmed clips, unless filmOutputDir says otherwise
fuzz/, load/, soak/One folder per job with report.json and report.html
client-cache/The takeover client's files
via/ViaLoaderViaVersion configs for bots on other server versions
logs/The tool's own logs

Exit codes

CodeWindow or --headlessCI modeCommand line client
0Clean exitEvery scenario passedEverything passed
1Could not startA scenario failed, the server did not start or a file did not parseSomething failed
2Bad option, or already running for this data folderBad command lineThe tool is not reachable
3Not licensed, or the license was lost while runningNot licensed

Loading the index

Enter openUp Down moveEsc close