wyldcard icon indicating copy to clipboard operation
wyldcard copied to clipboard

Importing issues

Open ooper-zz opened this issue 2 years ago • 2 comments

There are several issues that makes it difficult to import, in particular, I suspect that some of the following problems may be related to decompressing stack files in emulation (I'm using SheepShaver). Te couple of stacks I was able to get without compression had script issues but came through --see "Testable Stacks" issue. As far as I can tell many stack files appear corrupted after decompressing in the SheepShaver using standard decompressing applications of the day.

NOTE: I think that importing key stacks is important, but at this point I'm moving on.

ooper-zz avatar May 24 '22 02:05 ooper-zz

I'm curious what's going on here. If you have a chance, attach a corrupted stack to this issue.

defano avatar May 25 '22 00:05 defano

@defano, Hey! So here are some of the ones I found. Not sure why, but most of them were decompressed in the appropriate applications running in the SheepShaver emulator, which I've been using for a while quite successfully. corrupted-stacks.zip

The common theme is zero-value on fields, including 'LIST', checksum, and majorVersion. You can get past the latter by using the format field (which might be better, but not required on uncorrupted files) instead. See attached pict: Screen Shot 2022-05-24 at 6 15 17 PM

source: if (block instanceof StackBlock) { String formatName = ((StackBlock) block).getFormat().name(); char formatVersion = formatName.charAt(formatName.lastIndexOf('_') + 1); if (formatVersion < 2) { throw new UnsupportedVersionException(block, "Cannot import stacks from HyperCard 1.x. Please use the "Convert Stack..." command in HyperCard 2.x to update this stack."); }

ooper-zz avatar May 25 '22 01:05 ooper-zz