After upgrading from GMLive 1.0.67, scripts have stopped loading.
The server shows "0 scripts" when it's ready, but everything else is fine.
I'm using GM2023.8.2. Is there a fix for this?
Code and asset live-reloading for GameMaker! · By
I just tried it on an empty project with one script and GMLive.
The output still shows 0 scripts, but it's able to update it now.
The previous project didn't react at all to live_call in script functions, but it did work on objects.
Maybe it's because the project is massive. I remember it taking exactly 10000ms to ready.
Upon further review, “X scripts” after “ready!” message on the server now always shows 0 as I found it to be possible to consistently enumerate scripts on the game’s side. I’ll see about removing it later.
Long init times can be overcome by using gmlive-server-alt, but that shouldn’t generally stop it from working - check what’s in the output (and other steps)
Just chiming in to add I found the same problem after updating to the newest version. Runtime: v2023.2.0.87. Using gmlive-server-alt works for scripts, gmlive-server does not. Running gmlive-server in admin didn't make a difference. Noticed there's a small difference between the two when starting the game. Start up log below:
GMServer: ready! 1 live file, 0 global vars, 192 macros, 0 scripts, 49 enums. Took 2923ms.
GMServerAlt: ready! 2 live files, 0 global vars, 192 macros, 0 scripts, 49 enums. Took 972ms.
I didn't see any error messages in the output log.
Been trying to reproduce it in a smaller project this evening and having no luck. Perhaps the size of my project is the problem? My main project has 7056 assets and 2629 scripts that it is trying to load through GMLive. As a side note I noticed that about 10% of the time server would work while testing out how to repro.