retrieve livecode code from standalone desktop app

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

Tribblehunter
Posts: 78
Joined: Wed Apr 10, 2013 9:08 pm

retrieve livecode code from standalone desktop app

Post by Tribblehunter » Fri Jul 04, 2014 10:21 pm

Help!!
Have lost original livecode code from standalone app built for desktop.

Can I retrieve it from the standalone?

I am guessing the answer is no, but it does not hurt to ask!
Returning to try to learn livecode again.

But much greyer at the temples than the last time.

keram
Posts: 340
Joined: Fri Nov 08, 2013 4:22 am

Re: retrieve livecode code from standalone desktop app

Post by keram » Sat Jul 05, 2014 1:14 am

I had the same question in the past and Neil Roger from LC answered: no
see here: http://forums.livecode.com/viewtopic.ph ... nse#p95238

I usually keep 2 backups of the LC files just in case...

keram
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9385
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: retrieve livecode code from standalone desktop app

Post by richmond62 » Sat Jul 05, 2014 12:40 pm

If you made your standalone with the Commercial version & you password protected the stacks you will be unable to retrieve the code.

If you made your standalone with the Commercial version and did NOT password protect the stacks

OR

you made your stanadalone with the Community version

You SHOULD be able to open the standalone with a text editor and retrieve the code.

Having said that; I tired just now and got in a right mess :/

AxWald
Posts: 578
Joined: Thu Mar 06, 2014 2:57 pm

Re: retrieve livecode code from standalone desktop app

Post by AxWald » Sat Jul 05, 2014 4:52 pm

Hi,
richmond62 wrote:If you made [...] your stanadalone with the Community version
You SHOULD be able to open the standalone with a text editor and retrieve the code.
Having said that; I tired just now and got in a right mess :/
Just opened a small standalone.exe (3MB+) in my editor and searched for "mouseup". A few finds, but no code nearby. Then searched for a special word that I copied directly from my stack code: "ServerMessageReceived" - no finds either. (Community Version 6.6.1)

So if there's no way to decode the .exe in some way you're out of luck.

Have fun!

PS: That's why I always keep a copy of all my released versions (for the recent year at least), and make a new backup copy of my whole project folder before I start working - this can be priceless!
All code published by me here was created with Community Editions of LC (thus is GPLv3).
If you use it in closed source projects, or for the Apple AppStore, or with XCode
you'll violate some license terms - read your relevant EULAs & Licenses!

Tribblehunter
Posts: 78
Joined: Wed Apr 10, 2013 9:08 pm

Re: retrieve livecode code from standalone desktop app

Post by Tribblehunter » Sun Jul 06, 2014 4:08 pm

Thought so. It was only a small app anyway. One of my first attempts.

Needed blinging anyway!! lol
Returning to try to learn livecode again.

But much greyer at the temples than the last time.

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

Re: retrieve livecode code from standalone desktop app

Post by Klaus » Sun Jul 06, 2014 6:24 pm

In case you are in REAL trouble, RunRev will be decompile your app (for a fee, of course), if I remember correctly.

Frank Deutsch
Posts: 5
Joined: Mon Aug 24, 2015 5:05 am

Re: retrieve livecode code from standalone desktop app

Post by Frank Deutsch » Mon Aug 24, 2015 5:13 am

Hi Klaus,
I would be VERY interested in this. I got a small Rev 2.7 app. from about 10 years ago or older, where I lost the code.
Whom do I contact to have it decompiled?
Regards
Frank

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

Re: retrieve livecode code from standalone desktop app

Post by Klaus » Mon Aug 24, 2015 11:25 am

Hi Frank,

try here: support@runrev.com


Best

Klaus

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: retrieve livecode code from standalone desktop app

Post by sphere » Mon Aug 24, 2015 1:31 pm

With 7-zip you can open the exe and see the contents.
But the files inside are probably encoded, so you can read nothing unless you know what to do next.
You can read Dinkumware at the end of some files, it's the supplier of C++ libraries.
I opened a file with notepad++, but it is unreadable for us humans.

edit---
i saw code in the .rdata file

But it is undo-able to get it all together again without properly decoding the file i guess. Right now it looks like a big mess.
So have fun getting your stack script back :twisted:

Frank Deutsch
Posts: 5
Joined: Mon Aug 24, 2015 5:05 am

Re: retrieve livecode code from standalone desktop app

Post by Frank Deutsch » Tue Aug 25, 2015 2:33 am

Thanks Fellas,

It's now in the hands of the gods of RunRev.
FD

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

Re: retrieve livecode code from standalone desktop app

Post by FourthWorld » Tue Aug 25, 2015 3:29 am

Way back in the MetaCard days a member of this community made this tool for extracting a stack file out of a standalone:
http://fourthworld.net/lc/disassembler.mc

It only works on very old versions, but may be useful since you said yours was build with v2.7.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Frank Deutsch
Posts: 5
Joined: Mon Aug 24, 2015 5:05 am

Re: retrieve livecode code from standalone desktop app

Post by Frank Deutsch » Tue Aug 25, 2015 4:03 am

Thank you Richard,
This works wonderful!
Except one problem. It asks me for a password to the Script Editor.
I know I did not password protect anything on this app. so I imagine that the author of this wonderful tool had it password protected.

Would this author still be around? or perhaps would anyone know the password?
Best regards
Frank

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

Re: retrieve livecode code from standalone desktop app

Post by FourthWorld » Tue Aug 25, 2015 4:20 am

The disassembler stack isn't password-protected (you can open and read its scripts), so any request for a script password must be related to something else.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: retrieve livecode code from standalone desktop app

Post by Simon » Tue Aug 25, 2015 4:40 am

Hey aren't we in Red Flag territory here?
Sorry to cast aspersions on you Frank, but isn't this the path a bad client would take? Got the .exe/.app > Failed final payment > Never got the source code.
Yes, my twisted mind does wonder about these things.
My deepest apologies Frank for my line of thinking.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Frank Deutsch
Posts: 5
Joined: Mon Aug 24, 2015 5:05 am

Re: retrieve livecode code from standalone desktop app

Post by Frank Deutsch » Tue Aug 25, 2015 7:38 am

Thank you for the info, Richard.
I'll just have to figure out where the "password" request is generated from.

To Simon,
Yes, you do have a twisted mind, but maybe you have had some experience that justifies your thinking, so I forgive you :-)
No, I am NOT in red flag territory. I (with help of others) wrote this little program some 8-10 years ago, but due to hard drive failure, my source code with lots of other stuff went to digital heaven.
I made this app. available to all and sundry completely free of charge, so I never got a cent for it.
University of Ballarat (VIOSH) and triple-w.industrial ebooks com CBT software are samples of organisations that have used this app. As a matter of fact, it is from
Industrial e-books web site, where I retrieved my "lost" Risk Terminator.

As I have now taken on some responsibility in the field of Risk Assessments on the Municipal Council, where I serve as Councillor, I felt that my application would be of benefit to the
risk assessment tools that are currently used, which in the main are very cumbersome to use.
Thus ends my explanation.

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”