Make the wiki the source of truth for map data#4
Merged
KockaAdmiralac merged 2 commits intomasterfrom Mar 16, 2026
Merged
Conversation
40e0a28 to
90dad46
Compare
e0912a0 to
b5aef41
Compare
This way, we do not have to keep Tiled files for publishing maps, because users can just pull the maps from the wiki itself and get notified if any of the maps they already pulled have been modified.
b5aef41 to
4cc9647
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Our biggest pain point so far with our current map editing flow is how we need to have access to the latest TMX files in order to perform any map editing using Tiled. If someone edits a map using Tiled and doesn't share the TMX file, nobody else can edit that map using Tiled because they would overwrite the previous version. Worse, we've had plenty of editors change marker descriptions on the wiki itself, using the regular JSON editor (which is only good for editing marker descriptions and names, really).
Proposal
Given this is a collaborative map editing effort, it makes the most sense for the wiki itself to be a source of truth, without requiring any external file sharing. For this to become reality, we need the following:
This pull request implements points 1, 3 and 4. Point 2 was already pushed to master beforehand.
Changes
Here are the practical changes that this pull request makes:
.mw-datamapsfile, which is the format in which files pulled from the wiki appear in (as opposed to a TMX file, which is Tiled's native map format), publishing a map publishes it to all wikis at onceLimitations
Here are potential issues that we may run into in the future:
Migration
To allow use of the new system, I made sure all of our TMX files are in sync with all wikis on the network, then published all of these TMX files to all the wikis. This ensures that metadata is in sync for the new system to take over.
Next steps
updaterbranch.)