Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backwards compatibility: Determine object type from sprite filename if sprite not found (WIP) #3184

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tobbi
Copy link
Member

@tobbi tobbi commented Jan 18, 2025

This is another backwards compatibility check: Some of the sprite paths changed in between version 0.6.3 and latest nightly. I've implemented something that checks the old sprite paths against a list of known earlier sprite paths and returns the proper object type in that case.

This only happens if the sprite path in question couldn't be found. To be honest, setting the object type for sprite paths that remained the same in between versions would also make sense, but the code is too flaky for that currently (e.g. we don't check the full path).

Tell me what you think.

Fixes #3183

@tobbi tobbi changed the title WIP: Determine object type from sprite filename if sprite not found Backwards compatibility: Determine object type from sprite filename if sprite not found (WIP) Jan 18, 2025
@tobbi tobbi requested review from MatusGuy, Vankata453 and Rusty-Box and removed request for MatusGuy January 18, 2025 23:59
@tobbi
Copy link
Member Author

tobbi commented Jan 19, 2025

This is still missing the existing sprite paths to be honest.

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.

Backward compatibility for 0.6.3 -> object types
1 participant