How it works

The point of the timing code is to keep the visible mechanism honest. The game owns the real gear angle, which decides contact and collision. The mod owns the doors and linkage, which only look right if they follow the game's gear without teleporting. A small clock turns the native gear progress into a source clip phase, where 0 is extended and 1 is stowed. While the game's gear sits at an endpoint, the clock lets the authored doors finish their travel at a rate of one door share (72 / 552, about 13 %) per 3 s, which works out at about 4.35 % of the cycle per second. If the pilot commands gear down immediately, the three-second door sequence is kept, so the doors are open before the legs begin to move. If the gear is reversed part of the way, the clock preserves the visible pose instead of snapping. Paused game time does not advance the doors. Retraction clocks are held native: the offline test steps 480 frames at 24 per second and requires the visible phase to match native progress at every step.
The mod must also not disturb the game's own leg actuator. A hold object captures a custom leg speed, sets the rate to zero while the doors lead, and restores the original rate afterwards. The offline test checks that a captured 3.25 degrees per second is restored exactly, and that the stock 4.5 degrees per second is back after the cycle.
Mass is handled separately. When a wheel breaks, the game's native routine subtracts only the rigid body mass and leaves the part's persistent mass untouched, so fuel or mode rebuilds would resurrect the lost mass. The mod keeps a ledger of one event per native gear split and moves the mass off the host part at the gear's hinge, using the native gear hierarchy, which must have unit scale. If the native member names change, the mod raises a missing-member error instead of guessing. The public guide describes four nose wheels and two six-wheel main trucks; no constant in the source read here counts wheels, so that is listed as an open question and not as a table value.
What is verified: the timing is exercised by an offline harness, with named assertions such as "Native wheel and visible deployment finish together" and "Twenty-second retract stays native". That proves the clock arithmetic. It does not prove that the gear looks right in the game or that the doors clear the truck; no flight has been made in the game for this release.
Specification
- SimulatedThe value the mod uses in the game, read from its source.
- DerivedCalculated from other cited values; the working is shown.
| Field | Value | Unit | Basis | Source |
|---|---|---|---|---|
| Timing | ||||
| Authored clip length | 552 | frames | Simulated | [1] [2] |
| Authored clip frame rate | 24 | frames/s | Simulated | [1] |
| Authored door sequence length | 72 | frames | Simulated | [1] |
| Door sequence duration | 3.0 | s | Simulated | [1] [2] |
| Full authored cycle | 23 | s | Derived | [1] [2] D1 |
| Door share of the authored cycle | 0.1304 | fraction | Derived | [1] D1 |
| Native fold start after the doors open | 3 | s | Simulated | [2] |
| Native wheel and visible deployment finish | 23 | s | Simulated | [2] |
| Native gear leg actuator rate | 4.5 | °/s | Simulated | [2] |
| Native leg hinge travel | 90 | ° | Simulated | [2] |
| Leg travel time at the native rate | 20 | s | Derived | [2] D2 |
| Retract time | 20 | s | Simulated | [2] |
| Immediate gear-down door sequence | 3 | s | Simulated | [2] |
| Doors | ||||
| Door track clock rate while finishing | 0.0435 | fraction/s | Derived | [1] D3 |
| Mass | ||||
| Gear mass bookkeeping event | One per native gear split | Simulated | [3] | |
| Wheel-break mass handling | Mass is moved off the host part, not erased | Simulated | [3] | |
| Required native method | LandingGear.BreakWheel | Simulated | [3] | |
| Required native frame scale | 1 | unit scale | Simulated | [3] |
| Offline checks | ||||
| Leg hold restores previously owned rate | 3.25 | °/s | Simulated | [2] |
| Retract frames checked at 24 fps | 480 | frames | Simulated | [2] |
Derivations
How each derived value in the table is calculated, with its inputs and assumptions.
D1 authored cycle length
552 frames / 24 frames per second = 23 s. Door sequence = 72 / 24 = 3.0 s. Door fraction = 72 / 552 = 0.1304. Inputs 1. The harness asserts the same finish time, 23 s, within two frame intervals 2.
D2 leg travel time
90 deg / 4.5 deg/s = 20 s. The native fold starts at 3 s and ends at 23 s, so 3 s plus 20 s equals 23 s, matching the authored cycle 2.
D3 door finishing rate
FinishRate = DoorFraction / SourceDoorSeconds = 0.1304 / 3.0 s = 0.0435 per second 1.
References
Internal sources
Swampsoft design records and mod source files behind the in-game values.
- Mod sourceB/A-170X 0.22.9,
src/gameplay/Ba170xMechanismClock.cs,Ba170xMechanismClock.SourceDoorSeconds,DoorFraction,FinishRate,Step. - Mod sourceB/A-170X 0.22.9,
src/tools/tests/GearTimingTests/Program.cs,"Native wheel and visible deployment finish together"; "Native fold starts after doors open"; "Original 4.5 degree/s native actuator restored"; "Twenty-second retract stays native"; "Capture custom native leg speed". - Mod sourceB/A-170X 0.22.9,
src/gameplay/Ba170xGearMassProperties.cs,Ba170xGearMassProperties.Capture,Transfer,LandingGear.BreakWheelcheck; "Invalid native gear mass transfer.".