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

In-Game: Methods use a different scope to expected in 2024.200 Betas #4740

Closed
gm-bug-reporter bot opened this issue Feb 15, 2024 · 3 comments
Closed
Assignees
Labels
project This issue has a sample project attached runner-bug In-game bugs with the "GameMaker Studio 2" runtimes
Milestone

Comments

@gm-bug-reporter
Copy link

Description

In this last Beta Method is acting diferent that in Stable, when i do a method(owner, function) and save it in the Stable version when i executed the method its gonna use the corrent scope (owner) but in the last beta this not happen.

i genuinely think this is a bug and not a mistake made by me because i can compile and use the title menu in the stable version.

you can check the .mp4 video that show the error too. If this is intentional please tell.

Steps To Reproduce

  • Put the files attached on the folder created in the local folder. local/Ghost_Seed
  1. Check FastsSM build static method on line 419 and check how the methods are saved using method(__owner, _fn)
  2. Use Stable and compile, now in uiTitleScreen the fsm execution is gonna throw an error after pressing the enter. key
  3. Use Beta and compile, now in uiTitleScreen the fsm execution is gonna throw an error after pressing the enter key.

Which version of GameMaker are you reporting this issue for?

IDE v2024.200.0.494 Runtime v2024.200.0.511

Which operating system(s) are you seeing the problem on?

Windows 10.0.19045.0

02b86cba-3346-47b5-9c5b-6741c796b29f

@gm-bug-reporter gm-bug-reporter bot added crash Crashes or other major stability issues with the GameMaker IDE project This issue has a sample project attached labels Feb 15, 2024
@Totobal5
Copy link

So everyone can see the video

GameMaker_FXdhtzQA3N.mp4

@stuckie stuckie added this to the 2024.2 milestone Feb 16, 2024
@YYDan YYDan added runner-bug In-game bugs with the "GameMaker Studio 2" runtimes and removed crash Crashes or other major stability issues with the GameMaker IDE labels Feb 16, 2024
@YYDan YYDan changed the title method act diferent in Stable and in Beta In-Game: Methods use a different scope to expected in 2024.200 Betas Feb 16, 2024
@rwkay
Copy link

rwkay commented Feb 19, 2024

Fixed in 2024.2 - the problem was actually with an optimisation that was added for handling variable_struct_get() with constant parameters and the code that is similar to _var[$ "foo" ] ??= value

@sihammill
Copy link

Fix verified in IDE v2024.200.0.498 Runtime v2024.200.0.515

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project This issue has a sample project attached runner-bug In-game bugs with the "GameMaker Studio 2" runtimes
Projects
Status: Verified
Development

No branches or pull requests

5 participants