docs/gpc/
GPC Programming
Syntax, combos, timing, variables, and library internals.
How a Shot Combo Is Built in GPC
A worked example of the GPC behind a 2K shot mod: a hold-then-release auto-green combo, a rhythm-style right-stick sweep, a menu page that toggles a value and saves it with set_pvar, and an OLED page that prints it.
GPC Script Basics: Syntax, Structure & Patterns
Technical introduction to GPC — variables, combos, main loops, conditionals, menu systems, and how to read commercial scripts safely.
GPC Combos & wait() Timing: Deep Dive
How combos execute, what wait() blocks, combo_run vs combo_stop, overlapping combos, and debugging timing bugs in production scripts.
How YewScripts Builds NBA 2K GPC Libraries (Engineering Notes)
Inside the implemented YewScripts delivery model: access checks, server-side generation, personalization, leak tracing, user passwords, archives, and flash-only programming.
YewScripts Patch-Day GPC Workflow (Maintainer Playbook)
How a maintained YewScripts release moves through configuration, personalization, trace assignment, password policy, exact-build archiving, and controlled delivery.
NBA 2K26 GPC Timing Variables — Practical Reference
How commercial basketball scripts expose latency offsets and release helpers in GPC.
Prime vs Hoops vs Green — GPC Architecture Differences
How menu depth and combo surface area differ across YewScripts libraries.
What NBA 2K27's Tempo Tick Mark Means for GPC Shot Logic
NBA 2K27 makes shot success a function of two axes — Timing and Tempo. Why fixed-delay GPC patterns break against the tempo tick mark, and how rhythm windows map onto state-machine shot logic.
GPC Patterns for a Dynamic Dunk Meter
NBA 2K27's Dunk Meter re-evaluates the defense from takeoff through the finish — a green window that moves mid-animation. Why static timing tables fail, and how to think about validation harnesses.
Per-User Build Compilation: How Protected GPC Delivery Works
The architecture story of per-user compiled GPC builds — what happens at generation time, what build-level protection means, and how to tell a generated build from a copied file.
Migration Engineering: Porting 2K26 GPC Logic to 2K27
What survives a 2K generation jump and what doesn't — structure, documentation habits, and menu architecture carry over; timing tables and animation assumptions are dead weight.
Badge Synergy as a State Machine: Modeling Mid-Game Boosts
NBA 2K27's Fuse and Reaction Synergy boosts change badge tiers mid-game — the first 2K where session state isn't constant. Modeling boosts as state transitions, and what that means for script logic.
SPVAR Strategies for NBA 2K27 Build Loadouts
Using the Zen's persistent SPVAR storage to survive the 2K27 season: schema versioning, per-loadout timing profiles, migration on script updates, and defaults that fail safe.
Anti-Pattern: Hardcoded wait() Timings After the 2K27 Tempo Changes
Magic-number wait() calls were survivable when 2K timing was one delay. Under 2K27's tempo model they make scripts unmaintainable. The refactor: named tables, derived segments, one tuning surface.