English Amiga Board


Go Back   English Amiga Board > Support > support.Other

 
 
Thread Tools
Old 01 May 2014, 12:54   #1
Zapotek
Registered User

Zapotek's Avatar
 
Join Date: Nov 2010
Location: Haugesund / Norway
Age: 38
Posts: 65
Question LZX archives - corrupted files

Hi!

ref: http://eab.abime.net/showthread.php?t=59875

two lzx archives found on one of the disks fails when unpacking them.

Is it possible to fix this somehow?

Ive tried:
- unpacking them directly from the dumped image using unarc on OS3.9 in WinUAE
- transferred the archives using CF+PCMCIA and unpacking them on the A1200 using UNLZX (1.21)

Zapotek is offline  
AdSense AdSense  
Old 01 May 2014, 13:24   #2
alexh
Thalion Webshrine
alexh's Avatar
 
Join Date: Jan 2004
Location: Oxford
Posts: 11,901
Use the latest 68000 (not 020 or 040) version of LZX (1.21r1 Y2K patched)

http://xavprods.free.fr/lzx/

Failing that post the files to the Zone and let us take a look.
alexh is offline  
Old 01 May 2014, 14:47   #3
Zapotek
Registered User

Zapotek's Avatar
 
Join Date: Nov 2010
Location: Haugesund / Norway
Age: 38
Posts: 65
Quote:
Originally Posted by alexh View Post
Use the latest 68000 (not 020 or 040) version of LZX (1.21r1 Y2K patched)

http://xavprods.free.fr/lzx/

Failing that post the files to the Zone and let us take a look.
unfortunately it didnt work with the latest version of lzx from the above url.

Uploaded to the zone:
KillGates1.lzx - 1 file
KillGates2.lzx - 3 files (2 bad, 1 ok)
Zapotek is offline  
Old 01 May 2014, 15:26   #4
alexh
Thalion Webshrine
alexh's Avatar
 
Join Date: Jan 2004
Location: Oxford
Posts: 11,901
There are no blatantly obvious problems with the LZX files.

They are LZX files.

The entropy of the files looks good (they don't contain any lots of repeating patterns which would point to basic archive corruption).

The dates of the files inside seem to indicate 1997 a point after LZX development had finished (i.e. a you could have used LZX v1.21)

Perhaps the files have been truncated? The ends chopped off?

I tried the technique described here (replace "0x0D 0x0A" with "0x0A") but it did not help. I didn't use that tool, just hexedit.

You could try the different versions of LZX in case you use a buggy one?

The filenames do contain strange characters and so that could be an issue? Are you sure that the CF was not formatted in FAT32? Have you tried un-archiving to a disk with an Amiga File system or RAM disk?
alexh is offline  
Old 01 May 2014, 15:42   #5
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hmeenlinna/Finland
Age: 42
Posts: 19,793
Header size don't match file size.

KillGates1.lzx header compressed data size (little endian) for "Vren" (which is also only file in archive) is $129b7c = 1219452 bytes but file is much larger. Same problem with KillGates2.lzx.
Toni Wilen is offline  
Old 01 May 2014, 16:30   #6
Zapotek
Registered User

Zapotek's Avatar
 
Join Date: Nov 2010
Location: Haugesund / Norway
Age: 38
Posts: 65
Quote:
Originally Posted by Toni Wilen View Post
Header size don't match file size.

KillGates1.lzx header compressed data size (little endian) for "Vren" (which is also only file in archive) is $129b7c = 1219452 bytes but file is much larger. Same problem with KillGates2.lzx.
A bit too technical - what does this mean in layman's terms?

Am I screwed, or can this be remedied?
Zapotek is offline  
Old 01 May 2014, 18:25   #7
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hmeenlinna/Finland
Age: 42
Posts: 19,793
They are broken, part of file comes from somewhere else.

It is possible to decrunch first 1171575 bytes of KillGates1.lzx (before decoder returns invalid data error) and at least beginning of decompressed data is valid:

Code:
00000000h: 46 4F 52 4D 00 5C 3C D8 38 53 56 58 56 48 44 52 ; FORM.\<8SVXVHDR
00000010h: 00 00 00 14 00 5C 3C 58 00 00 00 00 00 00 00 00 ; .....\<X........
00000020h: 5E 7A 01 00 00 01 00 00 4E 41 4D 45 00 00 00 20 ; ^z......NAME... 
00000030h: 56 E5 72 65 6E 00 00 00 00 00 00 00 00 00 00 00 ; Vren...........
00000040h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................
00000050h: 41 4E 4E 4F 00 00 00 1C 44 53 53 20 56 78 2E 78 ; ANNO....DSS Vx.x
00000060h: 78 20 20 A9 20 47 56 50 2C 20 31 39 39 32 20 20 ; x   GVP, 1992  
00000070h: 00 00 00 00 43 48 41 4E 00 00 00 04 00 00 00 02 ; ....CHAN........
00000080h: 42 4F 44 59 00 5C 3C 58 68 66 7D 58 00 F5 BF 00 ; BODY.\<Xhf}X..
00000090h: FB FC FB FC FC FC FC FC FC FC FC FC FC FC FC FD ; 
000000a0h: FD FD FD FD FD FD FD FD FD FD FD FD FD FD FE FE ; 
Toni Wilen is offline  
Old 03 May 2014, 01:13   #8
prowler
Global Moderator

prowler's Avatar
 
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,264
Hi Zapotek,

I see that, you may have achieved something like this already [Kill Gates (incomplete)] (I haven't seen the video yet), but in having a look at the archives you uploaded to The Zone, I have extracted - so far as is possible without modifying them - both KillGates1.lzx and KillGates2.lzx using unlzx.exe for Windows:

Code:
C:\>unlzx -v KillGates1.lzx

Unpacked   Packed Time     Date        Attrib   Name
-------- -------- -------- ----------- -------- ----
_6044896  2379648 15:38:19 29-mar-1997 ----rwed "KillGates-ProbityDrawer/Vren"
CRC: Archive_Header

C:\>unlzx -x KillGates1.lzx

Extracting "KillGates-ProbityDrawer/Vren"... crc bad
CRC: Archive_Header

C:\>unlzx -v KillGates2.lzx

Unpacked   Packed Time     Date        Attrib   Name
-------- -------- -------- ----------- -------- ----
_1932372  1219452 15:37:22 29-mar-1997 ----rwed "KillGates-ProbityDrawer/RAIderSPlit-^NESTOR^"
__580754   301302 15:37:50 29-mar-1997 ----rwed "KillGates-ProbityDrawer/stasjonrocketdel2-^NESTOR^"
_2983036  1419248 15:37:57 29-mar-1997 ----rwed "KillGates-ProbityDrawer/Stasjontepers.anim32-^NESTOR^"
CRC: Archive_Header

C:\>unlzx -x KillGates2.lzx

Extracting "KillGates-ProbityDrawer/RAIderSPlit-^NESTOR^"... crc bad
Extracting "KillGates-ProbityDrawer/stasjonrocketdel2-^NESTOR^"... crc good
Extracting "KillGates-ProbityDrawer/Stasjontepers.anim32-^NESTOR^"... crc bad
CRC: Archive_Header

C:\>dir KillGates-ProbityDrawer
_Volume in drive C has no label.
_Volume Serial Number is B0D1-4446

_Directory of C:\KillGates-ProbityDrawer

02/05/2014  21:53    <DIR>          .
02/05/2014  21:53    <DIR>          ..
02/05/2014  21:53         1,932,372 RAIderSPlit-^NESTOR^
02/05/2014  21:53           580,754 stasjonrocketdel2-^NESTOR^
02/05/2014  21:53         2,983,036 Stasjontepers.anim32-^NESTOR^
02/05/2014  21:51         6,044,896 Vren
               4 File(s)     11,541,058 bytes
               2 Dir(s)   1,305,600,000 bytes free

I've zipped them up and put them in The Zone to see if they can possibly help you complete your Killing Gates Demo.

I haven't finished with these yet; this is just the first step. I have repaired LZX archives in the past and may be able to repair these too, eventually, but I can't promise anything.

PS. Before you can use these files in emulation, you may have to fix up the Amiga file names and attributes.
prowler is online now  
Old 03 May 2014, 23:45   #9
Zapotek
Registered User

Zapotek's Avatar
 
Join Date: Nov 2010
Location: Haugesund / Norway
Age: 38
Posts: 65
Hi Prowler!

Thank you for your effort. Would be nice if youre able to fix some of the files in the archives. I tested them, but they dont work. One anim gives me a guru message and the other one plays for one second before the screen goes blank. The last file "vren", a sound file, almost finishes before the music turns in to scratching/crackling noise.

But Ive noticed there is also one archive thats missing, must be KillGates11.lzx. I wrote in the instructions that there were 11 files to unpack, but I only have 10. It should contain the speech files for the trenchcoat guy during the phone call amongst other things.
As this is put together using Scala and played with the ScalaMMplayer I can see there are files missing from the play script.
Bummer!
Zapotek is offline  
Old 04 May 2014, 01:38   #10
prowler
Global Moderator

prowler's Avatar
 
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,264
I did make some progress on the KillGates1.lzx archive today using WinUAE, but nothing which resulted in (more) useable files yet, I'm afraid.

Code:
list
~~~~
KillGates1.lzx           4187832 ----rwed 08-Jul-94 16:52:14
1 file - 8181 blocks used

lzx vn KillGates1.lzx
~~~~~~~~~~~~~~~~~~~~~
LZX 1.21 (Registered) Archive/Extract utility - 68020/68030 Version.
Copyright  1995 Data Compression Technologies.  All rights reserved.
Registered to the Amiga community for non-commercial use.

Viewing archive 'KillGates1.lzx':

Original  Packed  Ratio   Date      Time   FileAttr  CRC-32  M Name
-------- -------- ----- --------- -------- -------- -------- - -----------
 6044896  2379648 39.3% 29-Mar-97 15:38:19 ----rwed 7C487654 1 KillGates-ProbityDrawer/Vren
*** Corrupt file header; aborting this archive
-------- -------- ----- --------- --------
 6044896  2379648 39.3% 08-Jul-94 16:52:14 ----rwed 1 file(s)

Operation successful

lzx2 vn KillGates1.lzx
~~~~~~~~~~~~~~~~~~~~~~
LZX 1.20 (Registered) Archive/Extract utility - 68020/68030 Version
Copyright  1995 Data Compression Technologies.  All rights reserved.
Registered to the Amiga community for non-commercial use

Viewing archive 'KillGates1.lzx':

Original  Packed  Ratio   Date      Time   FileAttr  CRC-32  M Name
-------- -------- ----- --------- -------- -------- -------- - -----------
 6044896  2379648 39.3% 29-Mar-97 15:38:19 ----rwed 7C487654 1 KillGates-ProbityDrawer/Vren
 6044896   merged  n/a  29-Mar-97 15:38:19 -spa-w-- 7C487654 1 <non-printable characters>
 6044896  2379648 39.3%
File seek error; couldn't seek past 2379648 bytes of data
Archive is corrupt
-------- -------- ----- --------- --------
12089792  4759296 39.3% 08-Jul-94 16:52:14 ----rwed 2 file(s)

Operation failed

lzx x KillGates1.lzx
~~~~~~~~~~~~~~~~~~~~
LZX 1.21 (Registered) Archive/Extract utility - 68020/68030 Version.
Copyright  1995 Data Compression Technologies.  All rights reserved.
Registered to the Amiga community for non-commercial use.

Extracting files from archive 'KillGates1.lzx':
  (       0 /  6044896) KillGates-ProbityDrawer/Vren
  (   65279
  (  130550
  (  163243
  (  195822
  (  261095
  (  304495
  (  326368
  (  391648
  (  427964
  (  456928
  (  522206
  (  542922
  (  587487
  (  652758
  (  663795
  (  718033
  (  772919
  (  783308
  (  848586
  (  913899
  (  916862
  (  979170
  ( 1044450
  ( 1068604
  ( 1109723
  ( 1171578
  *** Corrupted file: KillGates-ProbityDrawer/Vren          

  ** 1 file(s) extracted, [ 1 file(s) BAD ]

Operation failed

list all
~~~~~~~~
KillGates1.lzx           4187832 ----rwed 08-Jul-94 16:52:14
KillGates-ProbityDrawer      Dir ----rwed Today     19:17:16
1 file - 1 directory - 8183 blocks used

Directory "KillGates-ProbityDrawer" is empty

TOTAL: 1 file - 1 directory - 8183 blocks used

Changed deleted "Vren" filename to "Varen" using DiskMonTools 
($E5->$61).

undelete KillGates-ProbityDrawer/Varen
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
wait... VAREN undeleted.

Restored undeleted "Varen" filename to "Vren" using DiskMonTools 
($61->$E5).

list all
~~~~~~~~
KillGates1.lzx           4187832 ----rwed 08-Jul-94 16:52:14
KillGates-ProbityDrawer      Dir ----rwed Today     19:36:43
1 file - 1 directory - 8183 blocks used

Directory "KillGates-ProbityDrawer" on Saturday 03-May-14
Vren                    1171578 ----rwed Today     19:17:16
1 file - 2290 blocks used

TOTAL: 2 files - 1 directory - 10473 blocks used

Lzx -x a Varen.lzx KillGates-ProbityDrawer/#?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Cannot open file: KillGates-ProbityDrawer/Vren for input. !!!

I managed to extract a Vren file from the archive, of a similar size to the one extracted by Toni, but I could not open the file either for copying out or archiving, and I don't know why.

(I changed the filename from "Vren" to "Varen", in a bid to copy the file out to a FAT formatted disk, but it failed for the same reason I couldn't archive it. )

I used the v1.20 version of LZX as an alternative to version 1.21 at one point, and this suggested that there might be more than one file in the archive, and that they were merged before compressing (this is a special feature of LZX).

Edit: Thanks for mentioning the missing archive. It's possible that KillGates11.lzx is on that disk somewhere. I'll search the image for evidence of deleted files.

Last edited by prowler; 04 May 2014 at 01:47.
prowler is online now  
AdSense AdSense  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
.LZX archives conversion Supamax support.Other 15 27 May 2015 13:04
The Zone and lzx archives Retro-Nerd project.EAB 2 30 December 2010 01:41
Files copied from CDs are getting corrupted Computolio support.Hardware 4 02 August 2006 09:55
LZX Files Unregistered support.Apps 3 14 March 2005 04:13
LZX Files. ShortStuff support.WinUAE 4 22 December 2001 15:34

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 22:11.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.16487 seconds with 12 queries