Skip to content

Conversation

@kchadha
Copy link

@kchadha kchadha commented Jun 2, 2022

Resolves

Some projects have costume or sound objects without an md5ext field. This is allowed by scratch-parser and scratch-vm. These changes help scratch-analysis extract the costume hash correctly in these cases.

I cannot figure out a good way to search for these projects in Kibana, but they appear as having a - instead of an md5 extension in the costumeHash field:

image

Proposed Changes

If we're trying to extract the md5ext from a costume or sound object and it's missing, use the assetId and dataFormat instead. These two fields are required by our project format and validated by scratch-parser.

Test Coverage

Added a test and a test fixture (production Scratch project) which exhibits this problem.

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.

2 participants