Page MenuHomeWildfire Games

Autostart victoryduration times
ClosedPublic

Authored by bb on Feb 6 2018, 6:54 PM.

Details

Summary

Since rP20122 the autostart support for victorydurations is broken, since it used to be 1 time for both relic and wonder victory, but that was split but forgotten for the autostart feature.

Noticed by @mimo

Test Plan

Autostart a relic and a wonder game
Dislike the hardcodation of victoryconditions in the engine
Notice there is an error with ceasefire when opening the observatives dialog, but consider it unrelated
Notice more gamesetup options are not settable in autostart, I guess we need to fix that by making an option.json like file with the gamesetup options and use that in both places, consider this out of scope

Diff Detail

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

Event Timeline

bb created this revision.Feb 6 2018, 6:54 PM
bb retitled this revision from Autoostart victoryduration times to Autostart victoryduration times.
Vulcan added a subscriber: Vulcan.Feb 6 2018, 6:59 PM

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

Updating workspaces...
Build (release)...
Build (debug)...
Running release tests...
Running cxxtest tests (309 tests).....................................................................................................................................................................................................................................................................................................................OK!
Running debug tests...
Running cxxtest tests (309 tests).....................................................................................................................................................................................................................................................................................................................OK!
Checking XML files...
Vulcan added a comment.Feb 6 2018, 7:00 PM
Executing section Default...
Executing section Source...
Executing section JS...
mimo added a comment.Feb 6 2018, 8:02 PM

Patch looks good to me. But i think we should have either a default (10 mn?) or an error message if the player set a victory=wonder and forget the wonderduration, as Setup.js has no such default and will set it silently to undefined.

bb updated this revision to Diff 5684.Feb 6 2018, 8:17 PM
Vulcan added a comment.Feb 6 2018, 8:21 PM

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

Updating workspaces...
Build (release)...
Build (debug)...
Running release tests...
Running cxxtest tests (309 tests).....................................................................................................................................................................................................................................................................................................................OK!
Running debug tests...
Running cxxtest tests (309 tests).....................................................................................................................................................................................................................................................................................................................OK!
Checking XML files...
Vulcan added a comment.Feb 6 2018, 8:22 PM
Executing section Default...
Executing section Source...
Executing section JS...
mimo accepted this revision.Feb 6 2018, 8:26 PM

Patch works as expected, Thanks.

This revision is now accepted and ready to land.Feb 6 2018, 8:26 PM
This revision was automatically updated to reflect the committed changes.