Allow opening a replay from the command line

Open
#803 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
57/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
lua
Domain
cli

Research direction

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.

Written by the indexing model from the issue text.

Description

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.
Dominant language
Lua
Stars
30
Forks
20
Avg merge
3d 15h
Merged PRs (30d)
17

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from panel-attack/panel-game

All issues in panel-attack/panel-game

Similar issues

More Lua issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.