How to create stand alone application/use own script library
Posted: Thu Oct 21, 2021 5:40 am
Kia ora,
Using livecode Indy 9.6 (rc 1) on Windows
I'm trying to create an application using some script-only stacks and a library, but I'm having various problems.
1. It often tells me I have a stack already open and is not happy with my choice of any of the 3 options in the dialog
2. I can't make a stand-alone application - I get an error but it doesn't actually seem to say what the error is.
I couldn't find very much information on how to actually implement script-only stacks and libraries so that part is probably a bit mucked up.
The library:
a file called loggingLib.livecode
in its own stack called loggingLib
I'm not sure how to actually load it as I saw lots of conflicting information about this, so I went with putting the following in preOpenStack in one of the cards in one of the script-only stacks
start using stack (specialFolderPath("resources") & "\libraries\loggingLib.livecode")
The script-only stacks:
one for the stack, and one for each of the two cards.
These are .livecodescript files.
Each of the stacks have empty cards in them when I look in the project browser which don't go away even if I delete them
The script-only stacks are linked to the application via behaviours which I set up using the Property Inspector
All of this works, except for when it decides to complain that a stack is already open, which it seems to do at random e.g. sometimes when I try to view the stack script or run the application it will complain the stack is already open and other times it will not.
In terms of trying to make a stand alone application - it did not add my library script automatically, and then when I tried to add it it complained it was already open. However it still added it to the list of stack files.
When I choose to make the standalone, it first asks if I want to save all my changes before closing - don't know why it needs to ask that.
Then it says "A stack with the same name as the one you are trying to load is already open" (library stack)
If I choose purge, it says the same thing.
If I choose save, it says it can't save it because it can't open it.
It then says the same thing again. I choose purge again for fun.
Then it says there was an error while saving the standalone application. It doesn't really say what the error is. I cannot select the text to copy it, but it starts like this:
219,3,8,getDataFilePath
465,3,8
241,3,1,preOpenCard
353,0,0,stack
and continues on.
Any ideas, or specific instructions on how to actually add and use the library file as that seems to be the main problem and might fix it.
Using livecode Indy 9.6 (rc 1) on Windows
I'm trying to create an application using some script-only stacks and a library, but I'm having various problems.
1. It often tells me I have a stack already open and is not happy with my choice of any of the 3 options in the dialog
2. I can't make a stand-alone application - I get an error but it doesn't actually seem to say what the error is.
I couldn't find very much information on how to actually implement script-only stacks and libraries so that part is probably a bit mucked up.
The library:
a file called loggingLib.livecode
in its own stack called loggingLib
I'm not sure how to actually load it as I saw lots of conflicting information about this, so I went with putting the following in preOpenStack in one of the cards in one of the script-only stacks
start using stack (specialFolderPath("resources") & "\libraries\loggingLib.livecode")
The script-only stacks:
one for the stack, and one for each of the two cards.
These are .livecodescript files.
Each of the stacks have empty cards in them when I look in the project browser which don't go away even if I delete them
The script-only stacks are linked to the application via behaviours which I set up using the Property Inspector
All of this works, except for when it decides to complain that a stack is already open, which it seems to do at random e.g. sometimes when I try to view the stack script or run the application it will complain the stack is already open and other times it will not.
In terms of trying to make a stand alone application - it did not add my library script automatically, and then when I tried to add it it complained it was already open. However it still added it to the list of stack files.
When I choose to make the standalone, it first asks if I want to save all my changes before closing - don't know why it needs to ask that.
Then it says "A stack with the same name as the one you are trying to load is already open" (library stack)
If I choose purge, it says the same thing.
If I choose save, it says it can't save it because it can't open it.
It then says the same thing again. I choose purge again for fun.
Then it says there was an error while saving the standalone application. It doesn't really say what the error is. I cannot select the text to copy it, but it starts like this:
219,3,8,getDataFilePath
465,3,8
241,3,1,preOpenCard
353,0,0,stack
and continues on.
Any ideas, or specific instructions on how to actually add and use the library file as that seems to be the main problem and might fix it.