Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

GMLive.gml

Livecoding for GameMaker: Studio / GameMaker Studio 2 · By YellowAfterlife

[Fixed] Syntax errors with GMS1

A topic by gravelblock created Nov 18, 2017 Views: 450 Replies: 4
Viewing posts 1 to 5
(1 edit)

When I try to use the extension, my changes don't apply and I get syntax error messages. The game compiles fine though, so I don't understand what I'm doing wrong.

For example, I created an event with only the following lines:

live_call();
for (var i = 0; i < 10; i = i + 1) {
    show_debug_message("test");
}

And I get "Expected a statement, got number" at [3:24].

Again, I created an event with only:

live_call();
if (10 > 0) {
    show_debug_message("test");
}

And I get "Expected a closing parenthesis" at [3:11].

I'm using GMS1. Anyone can help me?

Developer

I'm currently investigating this - something is throwing it off in syntax recognition, which is probably a side effect of some last-minute fix because that does not happen in GMS2 version.

Developer

Update: the issue is that apparently that the XML parser sometimes doesn't unescape "<" / ">" (originally "<" / ">" in code), breaking things. The issue is exclusive to GMS1 events.

Using live-coding on scripts instead works for a workaround until next build.

Alright, thanks!

Developer

Hotfix for this is now live.