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

Building Projects: [YYC] Adding a variable into the "global" struct and then changing its value inside a with(global) block causes a fail in 2024.1300 #9109

Closed
2 tasks
sihammill opened this issue Jan 21, 2025 · 2 comments
Assignees
Labels
runner-bug In-game bugs with the "GameMaker Studio 2" runtimes
Milestone

Comments

@sihammill
Copy link

sihammill commented Jan 21, 2025

Description

Add the following code to a create event and run in VM, it works fine and the key 'x' is correctly updated to its new value of 4. Run again in YYC and the project will fail to compile and you will and error message stating 'Fatal Error while compiling gml_Object_Object1_Create_0 - bailing details below'.

global.x = 2;

with (global) {
	x = 4;
}

Expected Change

No response

Steps To Reproduce

  1. Start GameMaker
  2. Create a new project and add the above code to a new object
  3. Set the compiler to VM and run the project
  4. Happy days, it worked
  5. Now change the compiler to YYC
  6. Run the project
  7. See the issue

How reliably can you recreate this issue using your steps above?

Always

Which version of GameMaker are you reporting this issue for?

2024.1300 (Betas)

Which platform(s) are you seeing the problem on?

Windows

Sample Package Attached?

  • I have attached my bug package

Sample Project Added?

  • I have included a small sample project
@sihammill sihammill added the runner-bug In-game bugs with the "GameMaker Studio 2" runtimes label Jan 21, 2025
@stuckie stuckie moved this from Triage to Backlog in Team Workload Jan 22, 2025
@rwkay rwkay added this to the 2024.13 milestone Jan 23, 2025
@rwkay rwkay moved this from Backlog to In Progress in Team Workload Jan 23, 2025
@rwkay
Copy link

rwkay commented Jan 23, 2025

Fixed in 2024.13

@rwkay rwkay closed this as completed Jan 23, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in Team Workload Jan 23, 2025
@YYBartT YYBartT moved this from Done to Ready for QA in Team Workload Jan 23, 2025
@YYDan YYDan changed the title In-Game: Updating a 'Key, Value' in the 'global' variable within a 'with' statement causes 'Fatal Error while compiling gml_Object_Object1_Create_0 - bailing details below' only in YYC Building Projects: [YYC] Adding a variable into the "global" struct and then changing its value inside a with(global) block causes a fail in 2024.1300 Jan 23, 2025
@mgeddesGM
Copy link

verified as of IDE v2024.1300.0.731 Runtime v2024.1300.0.742

@mgeddesGM mgeddesGM moved this from Ready for QA to Verified in Team Workload Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
runner-bug In-game bugs with the "GameMaker Studio 2" runtimes
Projects
Status: Verified
Development

No branches or pull requests

3 participants