

Apparently GOG Galaxy will overwrite all files that it thinks are part of the game, whether they changed or not. What we completely didn't account for was GOG Galaxy, and that its behavior might be different than Steam's. To fix the actual problem, we decided to NOT TOUCH the existing WG.WGT, and instead add code to create and use a backup file (WG.backup-current.WGT), so that uninstalling or re-verifying the game's files didn't wipe your teams. We verified this to be true during the testing period. What we did was work on the assumption that a game update on Steam will not change files that didn't change between the two versions of the game, even if they had changed on the user's disk. Since we didn't know if Team17 would be able to correctly edit the metadata, we opted to fix this in another way. We couldn't simply delete the file from the distribution - although that would "fix" the problem causing Steam to delete it when verifying files, it would also delete users' teams when Steam updated the game. Unfortunately that is not an aspect of the game that we had access to.

The proper way to fix this would be to change the game's Steam metadata. This had the unfortunate effect that if a user were to reinstall the game, or even "verify integrity" of the game's files, they would lose their teams. When Team17 initially published the game on Steam, they included the file containing all team data (User\Teams\WG.WGT) as part of game files.
