Page 1 of 1
"Can't Find Stack" error when trying to use a livecodescript
Posted: Mon Mar 14, 2022 3:41 pm
by M-A Kuttner
Hi. I'm using a stack that is trying to run a livecodescript file by using the following on the openStack command:
Code: Select all
start using stack "D:/filepath/TinyColor.livecodescript"
I've checked the path and it's correct, but I keep getting this error:

- image (8).png (6.95 KiB) Viewed 1721 times
Any ideas on what I'm doing wrong here?
Thanks in advance.
M-A Kuttner
Re: "Can't Find Stack" error when trying to use a livecodescript
Posted: Mon Mar 14, 2022 4:25 pm
by M-A Kuttner
OK, I found the following embarrassing resolution to my own question. I'll post this in case anyone encounters the same thing.
It turns out I downloaded the .livecodescript file as HTML somehow. So, the beginning of the script file, instead of starting with:
instead started with:
So I was trying to run an HTML file inside of a file that was expecting Livecode script.
To correct, I copied the raw contents of the script from its github page and replaced it for the HTML that was in the text file. Voila, done!
Cheers
M-A
Re: "Can't Find Stack" error when trying to use a livecodescript
Posted: Mon Mar 14, 2022 6:21 pm
by stam
It's a really useful library, but it's a direct conversion from javascript and some things didn't work correctly off the bat.
For example you couldn't pass "111,222,111" as an RGB, it had to be in the format RBG(111,222,111) or JSON. I've raised a few issues on the GitHub and made a pull request with a quick fix for passing liveCode style RBG values.
Never quite sure if i should mention issues on this forum or on GitHub (or both!) - i think the authors prefer GitHub.
Fantastic effort from FerrusLogic and very much appreciated!