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: "event_object" still returns a number, not an object reference #7800

Closed
1 of 2 tasks
backYard321 opened this issue Sep 26, 2024 · 6 comments
Closed
1 of 2 tasks
Assignees
Labels
feature request New feature (or a request for one)
Milestone

Comments

@backYard321
Copy link

backYard321 commented Sep 26, 2024

Description

event_object should be returning an object asset reference, as the manual states it should

Steps To Reproduce

  1. Start GameMaker and import event_object.zip
  2. Run it (e.g., Win VM)
  3. Observe the two values drawn on-screen are reals, not references

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

Always

Which version of GameMaker are you reporting this issue for?

2024.8.1 (Monthly)

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
@backYard321 backYard321 added the runner-bug In-game bugs with the "GameMaker Studio 2" runtimes label Sep 26, 2024
@backYard321 backYard321 changed the title event_object is a number, not an object asset event_object is still a number, not an object asset Sep 26, 2024
@YYDan YYDan added feature request New feature (or a request for one) and removed runner-bug In-game bugs with the "GameMaker Studio 2" runtimes labels Sep 27, 2024
@YYDan
Copy link
Collaborator

YYDan commented Sep 27, 2024

The manual does not say this has been changed to be a reference yet, so it's expected to still be the object index, as documented:

https://manual.gamemaker.io/monthly/en/#t=GameMaker_Language%2FGML_Reference%2FAsset_Management%2FObjects%2Fobject_get_name.htm

@YYDan YYDan changed the title event_object is still a number, not an object asset In-Game: "event_object" still returns a number, not an object reference Sep 27, 2024
@stuckie stuckie moved this from Triage to Todo in Team Workload Sep 27, 2024
@stuckie stuckie added this to the 2024.11 milestone Sep 27, 2024
@backYard321
Copy link
Author

The manual does not say this has been changed to be a reference yet, so it's expected to still be the object index, as documented:

https://manual.gamemaker.io/monthly/en/#t=GameMaker_Language%2FGML_Reference%2FAsset_Management%2FObjects%2Fobject_get_name.htm

That's the page for object_get_name() - the page for event_object says it returns "object asset" not "real". My understanding is that anything returning an object asset is always meant to return a ref, not an integer, so in that case it would be a bug.

image

https://manual.gamemaker.io/monthly/en/GameMaker_Language/GML_Reference/Asset_Management/Objects/Object_Events/event_object.htm

@YYDan
Copy link
Collaborator

YYDan commented Sep 30, 2024

Hehe, copy-paste error there - that IS the page I meant to link to ;)

@github-project-automation github-project-automation bot moved this from Todo to Done in Team Workload Sep 30, 2024
gurpreetsinghmatharoo added a commit to YoYoGames/GameMaker-Manual that referenced this issue Oct 1, 2024
@gurpreetsinghmatharoo gurpreetsinghmatharoo moved this from Done to Ready for QA in Team Workload Oct 1, 2024
@Emc1923
Copy link

Emc1923 commented Oct 2, 2024

The HTML5 target is still returning an integer as of IDE v2024.1100.0.631 Runtime v2024.1100.0.656. Reopening for now, thanks.

@stuckie
Copy link

stuckie commented Oct 3, 2024

Closing as HTML5 does not support references for all things.

@stuckie stuckie closed this as not planned Won't fix, can't repro, duplicate, stale Oct 3, 2024
@github-project-automation github-project-automation bot moved this from Triage to Done in Team Workload Oct 3, 2024
@stuckie stuckie closed this as completed Oct 3, 2024
@YYDan YYDan moved this from Done to Verified in Team Workload Oct 3, 2024
@YYDan YYDan moved this from Verified to Ready for QA in Team Workload Oct 3, 2024
@Emc1923 Emc1923 moved this from Ready for QA to Verified in Team Workload Oct 7, 2024
@Emc1923
Copy link

Emc1923 commented Oct 7, 2024

Verified as per comment above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature (or a request for one)
Projects
Status: Verified
Development

No branches or pull requests

5 participants