Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Can't get shader_set_live to work in GMS 2.3.4

A topic by K.Blank created Sep 19, 2021 Views: 443 Replies: 5
Viewing posts 1 to 2

I have imported both latest version of GMLive & shader_replace_simple.

Everytime i save a live shader, the GMLive command prompt throws "Couldn't find the runtime directory! Please provide one via --runtimePath in command-line" and nothing happens.

Please forgive my ignorance, but how exactly do i provide my runtime path to it?

Developer

This is caused by the new runtime misreporting GM_runtime_version as 1.0.999.13655

The easiest would be to override the constant yourself, e.g.

#macro GM_runtime_version "2.3.4.442"

more broadly, to run GMLive-server with command-line arguments, you’d shift-right-click in its directory in Explorer, pick “Open command prompt”, and do

.\gmlive-server.exe --runtimePath C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.3.4.442

or alike.

Thank you! :)

Hullo! Sorry to necro this but since it's relevant, when putting LTS runtime versions into this macro GMLive doesn't seem to find it. I can work around this by running GMLive manually through command line in the way you describe where I can provide the full path, but also notice that removing the macro entirely still causes this issue. Do you know if the current runtime still misreports the version and/or does GMLive perhaps not check LTS cache folders for runtimes?

Developer

does GMLive perhaps not check LTS cache folders for runtimes?

Apparently it doesn’t! Either you’re the first person to use shader reloading in LTS or everyone else did the workaround without pointing it out to me.

I’ll fix this for the next version.

<3 <3 <3