Defining structs within a ds map is classified as 'unsupported syntax.'
Z3R0ON301 opened this issue · comments
Describe the bug
In GameMaker youre normally able to define structs within a ds map like:
ds_map_set(room_map, "rmInit",
{
gmin: 200,
gmax: 700,
bgm: 0,
lv: 2,
screen: 0,
}
)
UTMT will save a data.win file like normal unless you edit the script that has structs defined like this. If you edit the script that has this in it, even if it was a part of the vanilla game UTM will refuse to let you save and claim that this is "unsupported syntax."
This should not be unsupported syntax because it works just fine in GameMaker, and UTMT does not care about it until the script that its in gets edited in any way.
Reproducing steps
- Create a simple GameMaker project and define a struct within a ds map, or find a game that has structs defined within a ds map.
- Open UTMT and edit the script this is in, anything will do.
- Attempt to save the project.
Setup Details
OS: Windows 11
UTMT Version: Windows Bundled Single File Bleeding Edge Release (as of 5/28/24)
Game(s): Pizza Tower, an empty gamemaker project
Support for structs in UTMT just aren't implemented yet. That's what it means by "unsupported syntax".