Skip to content

In-Game: [GMRT] asset_get_ids() returns Scripts as empty functions with long names #15343

@maklore

Description

@maklore

Description

Script assets returned from asset_get_ids are empty functions with long names.
A script file named Script1 with a function within:

function Script1(_value) {
return _value;
}

Will get for example the name : TESTGMRT__scripts_x2F_Script1_x2F_Script1
from asset_get_ids().

The script is callable via the asset id array, but does nothing.

Steps To Reproduce

  1. Create Object, and Script.
  2. Add function to script that returns a value.
  3. Create a variable in object that get data from asset_get_ids(asset_script).
  4. Call script..
  5. See that nothing happens.

Which version of GMRT are you reporting this issue for?

IDE v2026.0.0.16 GMRT 0.16.0

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

Linux Ubuntu 26.04 LTS kernel 7.0.0.22

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

Ubuntu

52f5dba4-5cfb-4c0a-ad58-6be3579ae185

Metadata

Metadata

Assignees

No one assigned

    Labels

    gmrt-bugIn-game bugs with the "GMRT" runtimesprojectThis issue has a sample project attached
    No fields configured for In-Game Bug.

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions