T8 Move Viewer
==============

A standalone Windows app (no Python needed) that shows Tekken 8's current move
for both player slots live, frame by frame, and keeps a history of moves performed.

It only READS the game's memory. It never writes to it.
Use it offline / in Practice mode only.

HOW TO USE
  1. Start Tekken 8 and enter Practice mode.
  2. Double-click T8MoveViewer.exe. A black console window and the app window open.
     Keep the console open; closing it (or pressing Quit in the app) stops the app.
  3. Perform moves. The big number is the current move index, with the raw value,
     move frame, optional game frame and character ID under it. Every observed
     move change is added to the history. Use Stop recording / Start recording
     to control the session log without stopping the live reader.

ADDRESSES (important after a game patch)
  The exe contains a built-in T8 address profile. If a game_addresses.txt
  is next to the exe, or in a folder next to
  it (e.g. the extractor's folder), that file is used instead and re-read about
  once a second. After a patch: click "[UPDATE] game_addresses.txt" in the
  extractor and this app picks the new addresses up by itself. The Update addresses
  button checks the same maintained address feed used by the Tekken Move Loader;
  it needs an internet connection and saves an updated profile in your user config
  folder. The bundled profile works for other people on the same Tekken build, but
  every game update can change addresses. If the maintained feed has not yet been
  updated for a new build, use the extractor's updated game_addresses.txt instead.
  You can also paste a full path into the "Addresses file" box and press Apply.
  P1 and P2 are looked up through the same round registry and player slots used
  by the Tekken Moveset Editor on every poll. The current-move pointer is at
  player+0x3E0 and the move-frame timer at player+0x390. The move index is
  resolved against the live moveset root's +0x230 move array and +0x238 count.
  A zero current-move pointer during idle/loading is sampled; an unresolved
  index displays '?' but does not block logging.
  A global game-frame column is shown only when an explicitly verified
  `t8_game_frame_counter = +0x...` is present and readable.

OPTIONS
  Stop / Start recording   stop or resume adding rows (the live panel keeps updating)
  Log P1 / Log P2   choose which players add rows; both are on by default
                    and at least one player must remain selected
  Log repeats     add a row when the same move starts again (off by default,
                  otherwise idle would add a row every loop)
  Auto-scroll     keep the newest row in view
  Player 2        read from the game's player-slot registry (no fixed stride)
  Export CSV / Copy / Clear   work on the full session log
                  (Copy copies the clicked rows, or everything if none selected)

COLUMNS
  Move index   position of the move in the loaded moveset (matches the Moveset
               Editor). Shows ? if it could not be worked out.
  Raw value    the value stored in the player's "current move" field
  Last frame   highest frame-timer value seen during the move (may be one less
               than the move's true length, depending on how the game counts)
  Game frame   global in-game frame at which the move was first observed, when
               the address file provides a verified counter

CURRENT LIMITS
  Each history row represents a current-move value change. Its Last frame is
  finalized when the next move begins. The session does not yet record the
  directional input buffer or identify which direct/group cancel record the
  game selected. Those need validated runtime fields. A possible cancel route
  inferred from adjacent moves is not treated as an executed cancel.

TROUBLESHOOTING
  Status line is yellow "Waiting for Tekken 8"    the game is not running
  "Live read unavailable"                         a process memory read failed;
                                                  check the address profile and game build
  Red "Could not attach"                          try right-click > Run as administrator
  Windows SmartScreen warning                     the exe is unsigned: "More info" >
                                                  "Run anyway". The full source is in
                                                  the zip so you can inspect or rebuild.
  Try it without the game:  T8MoveViewer.exe --demo

REBUILD FROM SOURCE (install Go for Windows from go.dev)
  Double-click Build-T8MoveViewer.cmd. It builds the exe in this folder with the
  included Windows icon resource. The blue icon is also supplied as T8MoveViewer.ico.
