Skip to content

fix data file version being wrongfully increased from 2024.13 to 2026.1 when it has 0 objects - #2471

Open
skirlez wants to merge 1 commit into
UnderminersTeam:masterfrom
skirlez:fix-wrong-version-bump
Open

skirlez wants to merge 1 commit into
UnderminersTeam:masterfrom
skirlez:fix-wrong-version-bump

Conversation

@skirlez

@skirlez skirlez commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Description

In 2153d70, code was added to bump the data file's version from 2024.13 to 2026.1 if the Managed field was not detected. However, the code assumes the field is missing even if the data file has 0 objects.

This means that every 2024.13 game that has no game objects gets its version bumped to 2026.1, which can cause loading issues. This PR simply makes it so the version upgrades don't happen if there aren't any objects.

Here's a data file created from a blank 2024.13 project: sample.zip. It loads without issue on 0.9.1.2 and on this PR's commit, but loads with warnings on 0.9.2.0.

Caveats

None

@github-actions

Copy link
Copy Markdown

skirlez added a commit to skirlez/g3man that referenced this pull request Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant