Allow opening a replay from the command line

Aperta
#803 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
57/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
lua
Ambito
cli

Direzione di ricerca

Start by reading the current argument parser and replay browser/loading flow; the issue does not name specific files or tests. Check how command-line arguments are passed when launching through LÖVE, then trace how a replay is opened in the normal viewer. Done means both launch forms accept paths with spaces and outside the save directory, report missing, invalid, or unsupported files clearly, and retain normal playback controls.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Request

Add a command-line option to launch Panel Attack directly into playback of a specified replay, bypassing manual navigation through the replay browser.

For example (proposed syntax):

& "Panel Attack.exe" --replay "C:\path with spaces\replay.json"

The equivalent should also work when running from source with LÖVE.

Motivation

I generate local replay-statistics reports and would like to launch a particular game from a script or terminal after identifying an interesting replay. The current argument parser does not expose a replay-loading option.

Expected behavior

  • Accept an absolute or relative replay path, including paths with spaces and files outside the game's save directory.
  • Open it in the normal replay viewer with existing playback controls.
  • Report missing, invalid, or unsupported files clearly rather than crashing or silently starting normally.
Lingua principale
Lua
Stelle
30
Fork
20
Merge medio
4g 8h
PR unite (30g)
12

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di panel-attack/panel-game

Tutte le issue di panel-attack/panel-game

Issue simili

Altre issue su Lua

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.