Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

GMLive.gml

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

Weird behaviour with script groups in GMS1.4

A topic by correojon created Jan 29, 2018 Views: 317 Replies: 1
Viewing posts 1 to 2

I have a group of scripts scr0, scr1 and scr2, all of them joined together in the resource tree under scr0. All of these scripts have the live_call() piece of code added. When I update scr1 gmlive-server shows that scr0 was updated instead, and the changes I made to scr1 don´t seem to be applied to my running game. However, if I delete  the live_call() from scr0, then the live changes in scr1 work perfectly and I can edit the script online. It´s as if only the first script in the group to perform the live_call() will be updated.

Is this how it´s suppose to work or am I missing somehting?

BTW, I just started using the extension and am already in love with it!

Developer

I'll need to take a closer look at that - GMS1 script groups do get a bit weird in terms of handling them because it's multiple resources with the same file for all of them; If sub-scripts are only ever called by the first script, you might get away with not having live_call in them at all (as the first script's "program" would be compiling copies of them anyway).