Opened 7 years ago

Closed 7 years ago

Last modified 5 years ago

#4577 closed enhancement (fixed)

[PATCH] Nonvisual Autostart

Reported by: elexis Owned by: leper
Priority: Should Have Milestone: Alpha 22
Component: Core engine Keywords: patch
Cc: Patch: Phab:D379

Description

There should be a way to simulate a game from commandline without starting all the graphics. This is useful for AI testing or testing of scripted maps ("dry run" on danubius or survival of the fittest for example).

Change History (2)

comment:1 by leper, 7 years ago

Owner: set to leper
Resolution: fixed
Status: newclosed

In 19645:

Add a -autostart-nonvisual option. Patch by sacha_vrand. Fixes #4577.

This allows automated testing of AIs without any GUI or sound (similar to non-visual replays).

Differential Revision: https://code.wildfiregames.com/D379

comment:2 by elexis, 5 years ago

In 22991:

Save replay metadata for non-visual games too, refs #4577, #5548, fixes #5565.

Remove gui/common/ hack by going through the GUIInterface and fragile EndGame() hardcoding by saving if and only if a ReplayLogger exists following rP18613, refs #4020.
Refs D2211, D2213.

Differential Revision: https://code.wildfiregames.com/D2197
Based on patch by: irishninja
Tested on: clang 8.0.1, Jenkins

Note: See TracTickets for help on using tickets.