Hi all, i cannot open *.livecode
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 1
- Joined: Tue Jun 16, 2020 10:53 am
Hi all, i cannot open *.livecode
Hi forum im a new so i want to say hello.
And second,
After the last time I saved and closed my livecode project now when I double click on the *.livecode file it opens livecode but not the stack. if i am in livecode and click file/open it never opens either. No error messages, just nothing. If i try to open a backup from a few weeks ago they open just fine. Is there a way to fix my up to date broken file? I the past when a file got broken I was able to send it to support and they fixed it. Is that still an option or maybe is there anything I can try to fix it myself? I tried uninstalling and renaming all the runrev folders in appdata and renaming the my livecode folder as suggested in another post, but due to the fact that only 1 stack wont open leads me to believe that solution wasn't going to work and it didn't.
Tks in advance!
And second,
After the last time I saved and closed my livecode project now when I double click on the *.livecode file it opens livecode but not the stack. if i am in livecode and click file/open it never opens either. No error messages, just nothing. If i try to open a backup from a few weeks ago they open just fine. Is there a way to fix my up to date broken file? I the past when a file got broken I was able to send it to support and they fixed it. Is that still an option or maybe is there anything I can try to fix it myself? I tried uninstalling and renaming all the runrev folders in appdata and renaming the my livecode folder as suggested in another post, but due to the fact that only 1 stack wont open leads me to believe that solution wasn't going to work and it didn't.
Tks in advance!
Re: Hi all, i cannot open *.livecode
Have you opened the Project Browser to be sure that it is not open? The stack may be just off screen.
Linda
Linda
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Re: Hi all, i cannot open *.livecode
I NEVER attempt to open LiveCode by clicking on a *.livecode file, I ALWAYS open LiveCode files via LiveCode itself.
In the past, when I tried clicking on a file things always went wrong.
In the past, when I tried clicking on a file things always went wrong.
Re: Hi all, i cannot open *.livecode
Hi 88vpledung,
welcome to the forum!
Do this:
1. Create a new stack with a button
2. Give the button this script:
3. Click the button
4. Tell us if it worked.
Best
Klaus
welcome to the forum!
Do this:
1. Create a new stack with a button
2. Give the button this script:
Code: Select all
on mouseUp
answer file "Where is your stack?"
put it into tStack
if tStack = EMPTY then
exit mouseup
end if
## We center the stack on the screen in case it it off-screen
set the loc of stack tStack to the screenloc
## We SHOW the stack in case it might be invisible
set the visible of stack tStack to TRUE
## Avoid any possible PRE-OPEN-STACK-CARD handlers that may get in the way
lock messages
## Now see if the stack can be opened
go stack tStack
end mouseUp
4. Tell us if it worked.

Best
Klaus
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Re: Hi all, i cannot open *.livecode
I may be a bit goofy, but:
If the stack can be centred and made visible, surely that means it is already open?
Code: Select all
## Now see if the stack can be opened
go stack tStack
Re: Hi all, i cannot open *.livecode
No, we can set properties for "not yet open" stacks.
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Re: Hi all, i cannot open *.livecode
I learn something useful almost every time you post something Klaus.
Thank you.

Re: Hi all, i cannot open *.livecode
Some more info...
In this case:
LC will load that stack invisibly into memory without MESSAGES.
LC will apply the changes to the MAINSTACK in that stackfile, in case that stacks has substacks
If you quit LC, the changes to that stack will NOT be saved unless you do:
And that stack will stay in memory until you quit LC or explicitely:
In this case:
Code: Select all
on mouseUp
answer file "Where is your stack?"
put it into tStack
if tStack = EMPTY then
exit mouseup
end if
## We center the stack on the screen in case it it off-screen
set the loc of stack tStack to the screenloc
...
LC will apply the changes to the MAINSTACK in that stackfile, in case that stacks has substacks
If you quit LC, the changes to that stack will NOT be saved unless you do:
Code: Select all
...
save stack tStack
...
Code: Select all
...
close stack tStack
...