Timmy on Wheels Unity IL2CPP physics seed, no gameplay needed

rev
flag L3m0n{gr4v1ty_1s_ju5t_4_sugg3st10n}

"My friend has been building a game... There's one level left. A ramp, a gap, and a platform way up in the sky... Timmy has been stuck at the bottom of that ramp ever since."

A Unity 6 IL2CPP Windows build (Sad_wheels.exe). The whole "get Timmy up the ramp" framing is a decoy for a player - everything needed is in the game data, no playing (or even running under Wine) required.

Hint

Three different outcomes are baked into the game's logic, not just one. What decides which text you'd actually see?

Dumping the IL2CPP metadata

global-metadata.dat reports version 107 (Unity 6000.5.5f1+), which the mainstream Il2CppDumper build rejects outright - a newer fork targeting .NET 10 handles it and dumps Assembly-CSharp's types cleanly, including FlagZone, BikeController, and SpringMath.

Insight

FlagZone.OnTriggerEnter2D picks one of three different encrypted byte-array curves depending on physics state at the moment Timmy crosses the trigger: crashed into the ramp (a hardcoded debug taunt), high slip (F0), tampered gravity (F1), or the legit clean landing (F2). All three ciphertexts, plus a plaintext decoy string ("s0_cl0s3_but_n0t_qu1t3_th3r3"), sit in global-metadata.dat's field-default-value region - reachable without ever launching the executable.

output
get_A    = (int)( transform.position.y * 100.0 )
get_B    = (int)( _ramp.eulerAngles.z * 500.0 / 3.0 )
get_Salt = (uint)( _suspension.suspension.frequency * 2000.0 )

Each result feeds SpringMath.Settle(curve, A, B, Salt):

output
seed = (A*0x0466f45d) ^ (B*0x0127409f) ^ Salt
       (with a 0x9e3779b9 fallback if the two halves happen to collide)
# xorshift32: x ^= x<<13; x ^= x>>17; x ^= x<<5  (advance before use)
out[i] = curve[i] ^ (byte)(state & 0xff)

Deriving the inputs from the scene, not from play

Pitfall

My first pass brute-forced the seed directly against the three ciphertexts' expected printable-ASCII range - over 2^32 candidates, with a false-positive probability around 1e-33 for all three decrypting to printable text simultaneously. It's a sound approach, but it's also unnecessary work: the actual scene values are sitting in the Unity scene files themselves. A, B, and Salt are scene constants, not runtime player state - loading level0/sharedassets0.assets with UnityPy and reading the FlagZone MonoBehaviour's GameObject transform, the _ramp Transform it references, and the _suspension's JointSuspension2D frequency gives every input directly:

output
transform.position.y = 3.0          -> A = 300
_ramp.eulerAngles.z  = 15 degrees   -> B = 2500
suspension.frequency = 5.0          -> Salt = 10000

Computing the seed from those exact values and decrypting all three curves gives printable output for every single one - the confirmation that the scene-read values, not a brute-forced guess, are correct:

output
F2 (28 bytes, clean landing: no slip, normal gravity) = gr4v1ty_1s_ju5t_4_sugg3st10n   <- flag
F0 (20 bytes, slip > 1)                               = th4t_w4s_0n3_b1g_h0p
F1 (31 bytes, gravity tampered below -9.8)             = n1c3_try_but_gr4v1ty_n3v3r_l13s
output
L3m0n{gr4v1ty_1s_ju5t_4_sugg3st10n}

Note

F0 and F1 are also real decoded messages, not noise - they're what the game would show you for the wrong physics outcome (slipping the wheels, or tampering with gravity to clear the gap). Only F2, tied to the clean, intended jump, decodes to the actual flag. All three decoding to readable English at once is itself strong confirmation that the seed and blob boundaries were recovered correctly.