Cant open *.livecode

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Cant open *.livecode

Post by Klaus » Thu Nov 14, 2019 7:44 pm

You should also check THE RESULT, maybe this will give you a clue:

Code: Select all

...
answer file "Select your stack file:"
go stack it
##!!
answer the result
...

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9842
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Cant open *.livecode

Post by FourthWorld » Thu Nov 14, 2019 7:57 pm

DavJans wrote:
Thu Nov 14, 2019 7:34 pm
FourthWorld:
The backup that works is 30MB
The broken file is 26MB
Makes me feel like as it was saving the last time LC crashed at the end explaining the missing script at the end of the file while viewing in Notepad.

Smart status is OK
Thanks. And glad we can rule out the hardware.

Can you describe what's in the stack file? How many substacks, total number of cards, rough estimate of number of images, etc. And was the size and structure of the previously-crashed stack file similar to the one you're dealing with now?

Also, LC saves using this sequence:
1. Makes a backup copy of the file, named the same as the original stack file but with "~" added to the file name.
2. Then it writes the currently-open stack file data to disk.
3. Performs a checksum on the freshly-written data.
4. If the checksum succeeds, it then deletes the backup copy.

If it crashed while saving, chances are good (unless it crashed specifically after step #4) that there's a complete backup of the last successfully-saved stack file in that directory.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Cant open *.livecode

Post by bogs » Thu Nov 14, 2019 9:28 pm

mwieder wrote:
Thu Nov 14, 2019 3:43 am
One more thing: lock messages from the IDE or the messagebox, then open the stack from the menubar. See if the stack loads without triggering any messages.
DavJans wrote:
Thu Nov 14, 2019 7:34 pm
mwieder:
I don't know how to do that
Simply click on the messages icon in the menu bar before launching the stack...
ksnip_lockMessages.png
Locker up!
..so that it looks like this....
ksnip_lockMessagesLocked.png
Done and launch your stack....
ksnip_lockMessagesLocked.png (7.37 KiB) Viewed 3118 times
Image

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: Cant open *.livecode

Post by mwieder » Thu Nov 14, 2019 10:17 pm

I have had the situation in LC9.x where editing multiple scripts in the Script Editor saves the wrong one, i.e.:
edit three scripts, save one, get the wrong script stored in the wrong object.
Easy to see how this would end up with a corrupted stack, or at least a stack that acts like it's corrupted.
Luckily Dropbox's previous-versions feature let me recover.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9670
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Cant open *.livecode

Post by dunbarx » Thu Nov 14, 2019 11:43 pm

Mark,
I have had the situation in LC9.x where editing multiple scripts in the Script Editor saves the wrong one, i.e.:
edit three scripts, save one, get the wrong script stored in the wrong object.
Yipes. I have never seen that, but now am worried. Do you use separate tabs or separate windows to edit multiple scripts?

Craig

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: Cant open *.livecode

Post by mwieder » Fri Nov 15, 2019 2:12 am

Just separate tabs. This has only happened to me twice that I know of, and not with the current (9.5.1 9.0.5) builds. And of course no repeatable sequence of events, so I can't point a finger of blame in a particular direction.

DavJans
Posts: 270
Joined: Thu Dec 12, 2013 4:21 pm
Location: Spokane, WA USA

Re: Cant open *.livecode

Post by DavJans » Wed Nov 27, 2019 9:40 pm

Thank you all for the help, support asked if I had a file that was *.livecode~
I did and apparently whats a backup livecode makes when, I don't know, never seen it before. removed the ~ and it works.
"Det bästa stället att hitta en hjälpande hand är i slutet av din egen arm" förutom här

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9842
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Cant open *.livecode

Post by FourthWorld » Wed Nov 27, 2019 9:44 pm

DavJans wrote:
Wed Nov 27, 2019 9:40 pm
Thank you all for the help, support asked if I had a file that was *.livecode~
I did and apparently whats a backup livecode makes when, I don't know, never seen it before. removed the ~ and it works.
That seems like sound guidance. ;)
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”