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

Missing Object Event names #211

Open
adam-coster opened this issue Feb 19, 2024 · 0 comments
Open

Missing Object Event names #211

adam-coster opened this issue Feb 19, 2024 · 0 comments
Labels
⌨️ vscode The Stitch extension for VSCode 🆘 help wanted Lower priority for Bscotch, so external help needed to resolve

Comments

@adam-coster
Copy link
Member

adam-coster commented Feb 19, 2024

GameMaker's Object Events, like "Create", "Step", and so on, are represented in the project files by numeric IDs. The human-readable name is not anywhere in the project files -- it comes instead from the GameMaker IDE.

To be able to show human-friendly event names in the Stitch resource tree, I've had to manually track down the associations between the Object Event file names and numbers and their in-IDE counterparts. I've only taken the time to do that for the events we use at Bscotch.

PRs are welcome to provide those missing event names! But you can also just add replies here.

Here's how you'd do it when you find an event that doesn't show up in the Stitch sidebar:

  • Find the project file that corresponds to that event. It'll be named something like Create_0.gml.
  • There will be a sibling file, called YOUR_OBJECT.yy, that describes your object. It'll include an eventList field with an array of objects describing your events. Use that to figure out the numeric eventType for the event. (The eventNum is the numeric suffix for the event's filename, e.g. Create_0.gml has eventNum of 0.)
  • Get the exact English name for that event as you see it in the GameMaker IDE.

Once you've got that info, you can reply here with it. Or, even better, submit a PR:

  • Update the objectEvents to add an entry including all of that info. Try to add it in an order that makes sense.
  • Submit the PR!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⌨️ vscode The Stitch extension for VSCode 🆘 help wanted Lower priority for Bscotch, so external help needed to resolve
Projects
None yet
Development

No branches or pull requests

1 participant