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

YY plugin: Adjusted to changes in GameMaker file format #4142

Closed
wants to merge 1 commit into from

Conversation

bjorn
Copy link
Member

@bjorn bjorn commented Jan 13, 2025

It seems an update to GameMaker in late 2024 has broken compatibility in several ways:

  • It now requires a "type tag field" at the start of applicable JSON records.

  • The name is expected to follow the "type tag field" as a "%Name" field, in addition to the regular "name" field.

  • Except for these special properties, the JSON fields are now required to be ordered alphabetically.

Other minor differences include:

  • The "tags" field is left out when there are no tags.
  • There is no longer a space included after JSON field names.
  • Some new fields were added.

This patch does not address all alphabetical ordering issues. Propably the preferred way will be to collect the fields in a QJsonObject first and rely on automatic sorting of the fields while serializing.

Closes #4132

It seems an update to GameMaker in late 2024 has broken compatibility
in several ways:

* It now requires a "type tag field" at the start of applicable JSON
  records.

* The name is expected to follow the "type tag field" as a "%Name"
  field, in addition to the regular "name" field.

* Except for these special properties, the JSON fields are now required
  to be ordered alphabetically.

Other minor differences include:

* The "tags" field is left out when there are no tags.
* There is no longer a space included after JSON field names.
* Some new fields were added.

This patch does not address all alphabetical ordering issues. Propably
the preferred way will be to collect the fields in a QJsonObject first
and rely on automatic sorting of the fields while serializing.

Closes mapeditor#4132
@bjorn
Copy link
Member Author

bjorn commented Jan 15, 2025

Whoops, I forgot I had already opened a pull request for this. Anyway, this one is now superseded by #4143.

@bjorn bjorn closed this Jan 15, 2025
@bjorn bjorn deleted the yy-format-changes branch January 15, 2025 13:00
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.

GameMaker Studio 2 Export Broken With Recent GM Update
1 participant