Page MenuHomeWildfire Games

Allows replays in autostart-nonvisual mode

Authored by vladislavbelov on Jun 27 2019, 12:13 AM.


Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
rP22432: Adds a possibility to disable saving of replay in autostart mode.

Autostart-nonvisual mode was added in D379. Currently it's impossible to save a replay in this mode. But it'd be useful to control a replay.


  1. Automatic testing with autostart, a replay will help to reproduce the problem.
  2. Game debugging, when you restart the game very frequently. Without disabled replays it will be harder to find a real replay.
Test Plan
  1. Apply the patch and compile the game
  2. Run the game as usual with and without the -disable-replays flag
  3. Run autostart mode with and without this flag
  4. Make sure that everything works as expected

Diff Detail

rP 0 A.D. Public Repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Successful build - Chance fights ever on the side of the prudent.

Link to build:

vladislavbelov added a subscriber: elexis.

Renames to autostart-disable-replay by @elexis suggestion.

Successful build - Chance fights ever on the side of the prudent.

Link to build:

elexis accepted this revision.Jun 28 2019, 1:12 AM
  • I checked D379 for replay discussions and didn't find anything related.
  • I acknowledge the use case to enable (debug) and the use case to disable (spam) per commandline for autostart games.
  • I believe that if the same choice is provided to users, it should be an ingame option in the options page, gamesetup page, or summary page.
  • I agree that it makes sense to have it enabled by default, since it already is enabled per default for all non-autostart games all visual-autostart games (consistency argument). Perhaps one could argue that most autostart-visual users want a replay and most nonvisual-autostart users don't want it, and both of these users start per hand? In that case it still makes more sense to me to have it consistent.

I didn't compile and test, given that this is a oneline change and doesn't appear to contain platform-dependent code, I take the responsibility to trust you for this change and fix or revert myself in case of badness.

24 ↗(On Diff #8630)

A bit recursive definition (X = X), so the text on the right side doesn't add any information, only placeholder so that it doesn't look weird if there is no text. Perhaps "disable saving of replays", "Do not write replay file", or keep as is (because actually it's X = X saving), all acceptable.

This revision is now accepted and ready to land.Jun 28 2019, 1:12 AM
This revision was automatically updated to reflect the committed changes.