scp-fs2open / scp-fs2open/fs2open.github.com

Pilotfile should preserve unknown data

Open
#3,984 0 comments 0 reactions 0 assignees View on GitHub
enhancement pilot file
Dominant language
C++
Stars
487
Forks
184
Avg merge
3d 9h
Merged PRs (30d)
44

Description

The pilotfile code should be able to detect unknown data and preserve it in subsequent saves, especially when the file version is newer than what FSO is expecting.

This is to allow for backward compatibility of newer pilotfiles within older FSO versions.

Enforcing the "Only add, never remove" rule for the player .JSON will ensure that newer PLR versions will be readable by old FSO versions, since the new PLR versions will just have new data that the old versions don't have to work with. However, if we want the ability to remove old data then the pilotfile::load_player() and handlers will have to be updated to gracefully recover.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.