Skip to content

Releases: triplea-game/triplea

2022-May-23 - Prerelease - 2.6.791

23 May 04:42
1366fde
Compare
Choose a tag to compare
Pre-release
Fix saving games from history. (#10497)

Fix saving games from history. This got broken by my recent history changes.

Also a few clean ups.

2022-May-23 - Prerelease - 2.6.790

23 May 04:20
17146bc
Compare
Choose a tag to compare
Pre-release
Fix loading of save games following nullPlayer refactoring. (#10496)

* Fix loading of save games following nullPlayer refactoring.

* Fix imports.

2022-May-23 - Prerelease - 2.6.789

23 May 03:48
8e79c95
Compare
Choose a tag to compare
Pre-release
Bump jdbiVersion from 3.28.0 to 3.29.0 (#10495)

Bumps `jdbiVersion` from 3.28.0 to 3.29.0.

Updates `jdbi3-core` from 3.28.0 to 3.29.0
- [Release notes](https://github.com/jdbi/jdbi/releases)
- [Changelog](https://github.com/jdbi/jdbi/blob/master/RELEASE_NOTES.md)
- [Commits](https://github.com/jdbi/jdbi/compare/v3.28.0...v3.29.0)

Updates `jdbi3-sqlobject` from 3.28.0 to 3.29.0
- [Release notes](https://github.com/jdbi/jdbi/releases)
- [Changelog](https://github.com/jdbi/jdbi/blob/master/RELEASE_NOTES.md)
- [Commits](https://github.com/jdbi/jdbi/compare/v3.28.0...v3.29.0)

---
updated-dependencies:
- dependency-name: org.jdbi:jdbi3-core
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.jdbi:jdbi3-sqlobject
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

2022-May-23 - Prerelease - 2.6.788

23 May 03:48
929cf49
Compare
Choose a tag to compare
Pre-release
Fix history errors when seeking through history. (#10494)

Fix history errors when seeking through history. Unfortunately, my fix for #10429, which fixed history errors on Imperialism 1974, introduced a different bug where seeking back in time in history would cause errors.

This is because the "last change" of a Node that's not a leaf is not always consistent, since more child nodes get added to it over time, and thus seeking to such a node and then later seeking away from it would result in an inconsistent sequence of changes.

This PR reworks the History class to explicitly keep track of the change index we're past, instead of the tree node (whose last change index may change), which fixes the problem. There is no problem with serialization because the History class uses writeReplace() (i.e. serializing a different object in its place) and the properties being changed are only relevant for the History object in "seek mode", which is never serialized (it's on a copy of the game data).

Tested by playing Feudal Japan Warlords 5 players with all-AIs and moving around history nodes while it's advancing. Before this change, an error dialog about trying to remove non-existent units would be encountered.

2022-May-23 - Prerelease - 2.6.787

23 May 03:08
b2a9ada
Compare
Choose a tag to compare
Pre-release
Make ChangeAttachmentChanges save a copy of the previous value. (#10483)

Make ChangeAttachmentChanges save a copy of the previous value of the property.

The previous value is used when inverting the change (e.g. when going back in history and reverting changes). By copying the properties, this fixes several issues:

* Ensuring that the inverted change is actually correct, as we don't want to be reverting to a "live view" of the current state.
* Fixing exceptions caused by my recent change where property getters return unmodifiable collections (we don't want to set the property to an unmodifiable collection, since future changes will fail).

Additionally, switches to improved syntax for some locking in a few related places and some small clean ups.

2022-May-23 - Prerelease - 2.6.786

23 May 01:30
eba93d5
Compare
Choose a tag to compare
Pre-release
Remove an unused method only referenced by tests. (#10492)

* Remove an unused method only referenced by tests.

* Remove imports.

2022-May-22 - Prerelease - 2.6.785

22 May 12:58
f7cbea7
Compare
Choose a tag to compare
Pre-release
Clean up some code in HistoryPanel. No logic changes. (#10482)

2022-May-21 - Prerelease - 2.6.784

21 May 23:29
6280d03
Compare
Choose a tag to compare
Pre-release
Remove unneeded copies done by CollectionUtils. (#10474)

* Remove unneeded copies done by CollectionUtils.

* Formatting.

2022-May-21 - Prerelease - 2.6.783

21 May 23:27
4a08a50
Compare
Choose a tag to compare
Pre-release
Introduce a cleaner pattern for locking GameData. (#10481)

2022-May-21 - Prerelease - 2.6.782

21 May 15:38
fc0782a
Compare
Choose a tag to compare
Pre-release
Fix issue with tooltips where they may appear while TripleA is in the…