Skip to content

EntityData.Version not serialized - #113

Draft
Shard wants to merge 2 commits into
genaray:masterfrom
Shard:fix/entitydata-version-serialization
Draft

EntityData.Version not serialized#113
Shard wants to merge 2 commits into
genaray:masterfrom
Shard:fix/entitydata-version-serialization

Conversation

@Shard

@Shard Shard commented Dec 22, 2025

Copy link
Copy Markdown

I ran into an issue with de-serialization where all the entities that were re-loaded into the world were failing isAlive checks and breaking code that utilizes it. Looking into it, it seems like the version is being reset and not serialized which then breaks isAlive?

I could be wrong in my approach as i don't understand the library all that well only just getting into ECS, but i thought i would submit the test case and a fix which im not really sure is warranted but seems to fix the test case and ill probably use for my own project for now as it seems to fix the issue for me.

@MikeWyatt

Copy link
Copy Markdown

How import is backwards compatibility? Adding the version field means deserializing files serialized by an earlier version of Arch.Persistence will fail.

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.

2 participants