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: [HTML5] Various ..._exists() functions incorrectly return "true" for invalid references in 2023.8/800s #1510

Closed
iampremo opened this issue Aug 16, 2023 · 1 comment
Assignees
Labels
import An issue imported from the old database runner-bug In-game bugs with the "GameMaker Studio 2" runtimes

Comments

@iampremo
Copy link
Member

iampremo commented Aug 16, 2023

When targeting HTML5 with a project using the _exists() functions on various different asset types, many incorrectly return true when passed invalid references, e.g. passing an object into sprite_exists(). Other than instance_exists(), these all return false as expected on VM target.

Typed Handles HTML5.zip

The following functions are affected:

  • sprite_exists()
  • instance_exists()
  • object_exists()
  • room_exists()
  • script_exists()

Expected
It is expected that all of the above functions return false when passed invalid references.

Steps

  • Open attached project
  • Set target to HTML5
  • Run game using debugger
  • In Debug Output, observe that the above functions all return true
    Repro: 100%
@iampremo iampremo modified the milestones: 2023.10, 2023.11 Sep 18, 2023
@YYDan YYDan changed the title In-Game: [HTML5] Various _exists() functions incorrectly return true for invalid references in Aug23 betas In-Game: [HTML5] Various ..._exists() functions incorrectly return "true" for invalid references in 2023.8/800s Sep 21, 2023
@iampremo iampremo removed this from the 2023.11 milestone Oct 12, 2023
@iampremo iampremo removed this from Team Workload Oct 12, 2023
@jackerley
Copy link

References aren't fully supported in html5, so we have no way of distinguishing between assets whose indices overlap

@jackerley jackerley closed this as not planned Won't fix, can't repro, duplicate, stale Dec 4, 2024
@YYBartT YYBartT moved this from Done to Not Planned in Team Workload Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
import An issue imported from the old database runner-bug In-game bugs with the "GameMaker Studio 2" runtimes
Projects
Status: Not Planned
Development

No branches or pull requests

2 participants