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-compatible tile mappings, tile converters, tile and texture deprecation #2671

Merged
merged 48 commits into from
Dec 10, 2023

Conversation

Vankata453
Copy link
Member

[Continuation of the now abandoned #2462]

Reverts the tile IDs in tiles.strf to ones, compatible with the old tile mappings, before the full tile overhaul. Any old tiles, which do not have a respective new version, are now marked as deprecated.

Tile converters can now be used to convert all tiles on all tilemaps in a level, from the editor. Contains two stock tile converters (0.5.x Crystal Tiles, Nightly Tiles -> Present), and a new tile conversions menu (accessible from the main level editor menu). The "Nightly Tiles" converter allows for converting from the current Nightly Builds mapping, to this new, final one. The tiles of the main menu and credits levels are converted in this PR.

Introduces tile deprecation and various editor locks to prevent using such tiles, as well as show whether/where such tiles are present in a level.

Additionally introduces texture deprecation. Any image files, containing .deprecated right before the extension in their filename will be used, whenever the main texture (the one, which doesn't contain the .deprecated part in its filename) does not exist, taking its place. Deprecated files do not show up on the file browsing menu.


Huge thanks to Semphris for all the initial work on this, including quite a lot of tile re-mapping, organizing the full workflow, as well as the initial process of auto-generating new tile IDs and creating converters, and the implementation of the tile conversion algorithm.

Fixes #2306.

Semphris and others added 30 commits June 29, 2023 11:10
This commit remaps the tiles to their old ID mappings, prior to the breaking changes on October 2022.

Co-authored-by: Vankata453 <78196474+Vankata453@users.noreply.github.com>
TODO: Move converter related actions to a separate menu with more explanation.
Copy link
Member

@Frostwithasideofsalt Frostwithasideofsalt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Autotiles seem to be the old ones but other then that it's all good. the autotiles could probably just be fixed later anyway.

src/editor/editor.cpp Outdated Show resolved Hide resolved
[ci skip]
@Vankata453 Vankata453 merged commit 517005b into SuperTux:master Dec 10, 2023
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.

Recent tileset changes broken
4 participants