Skip to content

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, Rusty-Box and provigz 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

2 participants