Faq's for converting from HyperCard

Want to move your code and projects to LiveCode but don't know where to start?

Moderators: heatherlaine, Klaus, FourthWorld, robinmiller

Post Reply
heatherlaine
Site Admin
Site Admin
Posts: 309
Joined: Thu Feb 23, 2006 7:59 pm

Faq's for converting from HyperCard

Post by heatherlaine » Tue May 09, 2006 11:27 am

Welcome to the Converting to Revolution forum!

Some handy hints to get you started:

To open your HyperCard stacks in Revolution, make sure you enable all file types in the open file dialog, so that you can select your stacks.

You will need Revolution Studio or Revolution Enterprise, Media does not support this feature.

Check out our webpage here:

http://www.runrev.com/developers/lesson ... hypercard/

and Jaqueline Landman Gay's excellent step by step tutorial, here:

http://www.hyperactivesw.com/mctutorial/index.html

Warm regards

Heather

talb3709
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7
Joined: Thu Jan 18, 2007 3:45 pm
Location: Bowie MD USA

Advanced Hypercard conversion

Post by talb3709 » Fri Feb 16, 2007 3:17 pm

Greetings,

I have worked through the recommend tutorials on converting from HC to RV; congratulations to the authors for their big help, but I need more automation in the process. Essentially, I have 20 years of HC stacks to convert. As I filter down the list to essentials, it is on the order of 120 stacks. It appears to me a pre-processor run on HC stacks before they are converted to RV is needed. Essentially, I need to scan my stacks to build up a name list of function/command calls I have developed or XCMD/XFNC calls I have added so these names can be automatically changed to names that do not conflict with RV reserved names. For example, I have a FILES XFNC that will be replaced by RV's built-in FILES function but these two function calls are different and my HC script needs to be rewritten; I would like to do this one time, and then have my pre-processor automatically make this conversion on all future stacks I am converting. I also need to keep track of names in my home HC stack converted earlier as well as in the target stack I am converting at the moment. Due to RV's direct processing of calls, I can not trap them as they rise up the path, therefore I need to trap them before conversion by changing their names and putting in software stubs for the calls; something I would rather do before conversion rather then being driven by, and overloaded by, the RV error window (I lose overall context when dropped into low level code). I would rather have automatically generated punch out lists of things I have to work on instead of a hyperactive error window. I have two questions:

1) Has anyone developed applications to pre- or post-process HC stacks? I really do not want to reinvent the wheel here.

2) Is there a way for me to gain control over the RV conversion of HC stacks during the open stack sequence so I can augment and enhance this conversion? I would like to understand more about the conversion processor and how it functions.


Best regards,
Richard
Best regards,
Richard

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

Re: Advanced Hypercard conversion

Post by FourthWorld » Fri Feb 16, 2007 6:48 pm

talb3709 wrote: 1) Has anyone developed applications to pre- or post-process HC stacks? I really do not want to reinvent the wheel here.
I don't know of one, but there are global search-and-replace tools available.
2) Is there a way for me to gain control over the RV conversion of HC stacks during the open stack sequence so I can augment and enhance this conversion? I would like to understand more about the conversion processor and how it functions.
The conversion Rev does is limited to the binary format of the stack. It simply reads the old format and reconstructs it in Rev's own format. It doesn't alter scripts at all, but it will alert you to token conflicts after the conversion is complete.

Post Reply

Return to “Converting to LiveCode”