Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

GMLive.gml

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

[Fixed in 1.0.26+] Macro's containing macros not resolving

A topic by Goldfinger created Aug 18, 2020 Views: 192 Replies: 4
Viewing posts 1 to 5
(1 edit)

In 2.2 / 2.3  have a script constants.gml contains

// World settings
#macro TILE_SIZE 16
#macro TILE_SIZE_MINUS_ONE TILE_SIZE-1

Without any live code changes GMLive errors appears GMLive does not currently support macro resolving

[live][18/08/2020 22:39:04] Runtime error: [error] `100003` (obj_player) does not have a variable `TILE_SIZE_MINUS_ONE`

Moving macros into player object step event causes

[live][18/08/2020 22:49:25] Error in obj_player:Step_0:
[live][18/08/2020 22:49:25] obj_player:Step_0[L4,c37]: Expected a statement, got number

changing macro to a number 

// World settings
#macro TILE_SIZE 16
#macro TILE_SIZE_MINUS_ONE 15

result is a warning

[live][18/08/2020 23:03:45] Warning in obj_player:Step_0:
[live][18/08/2020 23:03:45] macro:TILE_SIZE_MINUS_ONE[L1,c37]: Expected a statement, got number
[live][18/08/2020 23:03:45] Reloaded obj_player:Step_0.

All changes were made in gamemaker without game running

Developer

Please email me (yellowafterlife@hotmail.com) a sample? Ideally a 2.3 project

I fixed this in 1.0.26 https://yellowafterlife.itch.io/gamemaker-live/devlog/164817/1026-various-fixes