Page MenuHomeWildfire Games

Ptolemian Lighthouse gamesetup bug
ClosedPublic

Authored by elexis on May 13 2017, 4:54 PM.

Details

Summary

When selecting a map that disables the ptolemian lighthouse, that setting will be saved to g_GameAttributes.
If another map is selected afterwards, the property is persisted (since all properties are persisted if not deleted explicitly at the moment).
This means the lighthouse will be unavailable if having selecting a map before that disables it, even if the current map doesn't disable it.
This has been annoying many players, so I propose to add this property to the whitelist for Alpha 22 until we have rewritten this gamesetup yet again.

Test Plan
  1. Open the gamesetup and select the maptype "random"
  2. Select the map "belgian uplands" (which disables the lighthouse)
  3. Press F9 and type warn(uneval(g_GameAttributes.settings.DisabledTemplates)) and notice the lighthouse is disabled
  4. Select another map that doesn't disable it, like cosrica vs. sardinia
  5. Press F9 again, press the "up" arrow key and notice the lighthouse is still disabled if not having applied this patch
  6. Start the game to see that it is in fact disabled without this patch

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

elexis created this revision.May 13 2017, 4:54 PM
Vulcan added a subscriber: Vulcan.May 13 2017, 5:47 PM

Build is green

Updating workspaces.
Build (release)...
Build (debug)...
Running release tests...
Running cxxtest tests (306 tests)..................................................................................................................................................................................................................................................................................................................OK!
Running debug tests...
Running cxxtest tests (306 tests)..................................................................................................................................................................................................................................................................................................................OK!

http://jw:8080/job/phabricator/1183/ for more details.

Grugnas accepted this revision.May 13 2017, 6:29 PM

the patch fixed the issue.

This revision is now accepted and ready to land.May 13 2017, 6:29 PM

Thanks for the testing!

This revision was automatically updated to reflect the committed changes.