Skip to content

Releases: triplea-game/triplea

2024-July-26 - 2.7.14828

26 Jul 20:57
d3186d4
Compare
Choose a tag to compare
Pre-release
Consolidate Dependencies & Cleanup (#12780)

* Consolidate all dependencies to top level project (simpler/one place for all deps)

* Remove unused dependencies and dependency version variables

* Sort dependency version variables

2024-July-25 - 2.7.14825

25 Jul 23:06
db81eac
Compare
Choose a tag to compare
Pre-release
Simpler Map unzip - delete old & simple unzip  (#12773)

Updates map extraction algorithm to the following:
  -  on startup, or immediately following map download: detect '.zip' file in 'downloadedMaps' folder
  -  determine target folder for extraction (strip '-master' suffix if present)
  -  delete target folder
  -  unzip the zip file to the target folder

The above is simpler notably because we just 'unzip'. Before the algorithm would check the case whether the extracted contents is a single folder, or if the zip contained all the map files in an exploded format. With this update, it does not matter, we just unzip into a destination folder.

The delete is unfortunate but required. Existing maps will potentially have this format: `[map-name]/*`, rather than something like `[map-name]/[map-name-mastter]/*`. Because of this mismatch, if we just extract, then we would wind up with duplicate map files.

2024-July-25 - 2.7.14824

25 Jul 23:06
5eb87c9
Compare
Choose a tag to compare
Pre-release
Game selector panel fixes: update button text (#12771)

The button text was updated recently with the mistaken thought
the buttons only appeared in bot servers. The buttons actually
show up in all cases (single game, hosted game, bot game),
hence "upload save game" does not make sense in all of those context.

2024-July-25 - 2.7.14823

25 Jul 21:03
8f856ad
Compare
Choose a tag to compare
Pre-release
Fix for crash during air battle (#12772)

Problem: 'oldUnits' is stateful and may already contain units.
We then "double add" a unit in the following code block

(RemoveUnitsHistoryChange.java:71)

```
    final Collection<Unit> allUnloadedUnits = new HashSet<>();
    for (Unit u : killedUnits) {
      oldUnits.add(u);
```

To resolve this issue, the 'oldUnits' and 'killedUnits' is converted
into a set, which removes duplicate units. (This 'fix' is not very deep,
arguably this is a hack. Why is the duplicate unit being added in the first
place?)

Resolves: #12770

2024-July-25 - 2.7.14822

25 Jul 02:15
d9e67ea
Compare
Choose a tag to compare
Pre-release
Map zip extraction: smarter precondition (#12769)

Multiple bots starting up at the same time can clobber each others
files. This update makes the precondition check during map extraction
smarter, to just no-op if the map-to-extract no longer exists.

2024-July-25 - 2.7.14821

25 Jul 02:00
caad104
Compare
Choose a tag to compare
Pre-release
Simplify zipped maps extraction error handling (#12768)

Update to, if a bot - then simply delete the zip file.
If not a bot, then move the zip file to bad-zips.

2024-July-25 - 2.7.14820

25 Jul 00:52
1ccdf80
Compare
Choose a tag to compare
Pre-release
Startup behavior: Simplify extraction algorithm (#12767)

When handling '.zip' files in the 'downloadedMaps' folder on startup,
update extraction algorithm to be:
- If "extraction target" does not exist, then proceed with extraction
- If extraction target exists & is game-headed, then no-op
- If extraction target exists & is game-headless, then delete extraction
  target, and then proceed with extraction.

We also simplify extraction, we can rename the temp folder and/or delete
it more simply.

2024-July-24 - 2.7.14819

24 Jul 23:30
2417e5f
Compare
Choose a tag to compare
Pre-release
Startup behavior: Map extraction enhancements (#12766)

Changes behavior of the system when zipped map files are encountered on startup.

For context, current system will:
- see zip folder in downloaded maps folders
- create a temp folder in the downloaded maps folder
- extracts the zip file to the new temp folder
- creates the target map folder and moves all extracted files to that folder
- deletes the zip file

Changes:
- zip file is now extracted to a temporary folder in the systems temporary folder.
This way if the process fails later on, the temp files will not be seen as potential maps
(which can create duplicates). Additionally, any such files will now be automatically
cleaned up, the system temp folder is usually emptied on system reboot.

- smarter attempt to move zip files to a 'bad-zip' folder. Only attempt to do so if
the 'bad-zip' still exists

- cleanup temporary folder where map files are extracted. The folder was not being deleted
in a successful extraction case.

2024-July-24 - 2.7.14818

24 Jul 22:39
494ca21
Compare
Choose a tag to compare
Pre-release
Bot docker: create folder where saved files are saved. (#12765)

2024-July-24 - 2.7.14817

24 Jul 22:28
31479d3
Compare
Choose a tag to compare
Pre-release
Automatic Bot Moderators (#12758)

Updates to give the host of a network game 'mod' powers. If the game is a bot, then also give the 'oldest' player 'mod' powers.

Mod powers allow:

    disconnect players
    ban players (effective until restart of bot)

The bot case is interesting since the 'oldest' player can change. For example, two players enter a bot (to the staging screen), first is mod & then leaves. Now the second player needs to become moderator.

To achieve this we add a "moderator promoted" message which is sent by the server to inform players of the new moderator.