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

No constructor for resource "particles" #49

Closed
adam-coster opened this issue Apr 11, 2023 · 1 comment
Closed

No constructor for resource "particles" #49

adam-coster opened this issue Apr 11, 2023 · 1 comment
Assignees
Labels
🔥 bug Something isn't working ✨ feature New feature or request 📦 core Stitch Core and CLI

Comments

@adam-coster
Copy link
Member

adam-coster commented Apr 11, 2023

The latest GameMaker versions include a new "Particle" resource type, which is currently not implemented in Stitch.

Two options for resolving this issue:

  1. Add the Particle type to Stitch
  2. Add a fallback type to Stitch for unknown resource types (more future-compatible)

Reported in IDE v2023.2.1.75 Runtime v2023.2.1.90

stitch add sprites --source=\sprite_root --flatten --debug
Running in debug mode

loading project with options
    projectPath: g:/GameMakerStudio2/Shredders_2/Shredders_2.yyp

file:///{...path}/node_modules/@bscotch/stitch/dist/lib/components/Gms2ResourceArray.js:240
            throw new StitchError(`No constructor for resource ${resourceType} exists.`);
                  ^

StitchError: No constructor for resource particles exists.
    at Function.hydrateResource (file:///{...path}/node_modules/@bscotch/stitch/dist/lib/components/Gms2ResourceArray.js:240:19)
    at file:///{...path}/node_modules/@bscotch/stitch/dist/lib/components/Gms2ResourceArray.js:31:59
    at Array.map (<anonymous>)
    at new Gms2ResourceArray (file:///{...path}/node_modules/@bscotch/stitch/dist/lib/components/Gms2ResourceArray.js:31:27)
    at StitchProject.reload (file:///{...path}/node_modules/@bscotch/stitch/dist/lib/StitchProject.js:539:24)
    at async Function.load (file:///{...path}/node_modules/@bscotch/stitch/dist/lib/StitchProject.js:66:9)
    at async default (file:///{...path}/node_modules/@bscotch/stitch/dist/cli/lib/add-sprites.js:7:27)
@adam-coster adam-coster added 🔥 bug Something isn't working ✨ feature New feature or request 📦 core Stitch Core and CLI labels Apr 11, 2023
@adam-coster adam-coster self-assigned this Apr 11, 2023
@adam-coster
Copy link
Member Author

Closed by fceb405

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔥 bug Something isn't working ✨ feature New feature or request 📦 core Stitch Core and CLI
Projects
None yet
Development

No branches or pull requests

1 participant