Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another odd LZH from Atari ST #1257

Closed
aonez opened this issue May 4, 2023 · 10 comments
Closed

Another odd LZH from Atari ST #1257

aonez opened this issue May 4, 2023 · 10 comments

Comments

@aonez
Copy link
Owner

aonez commented May 4, 2023

          Another odd LZH, from Atari ST

http://discmaster.textfiles.com/file/11869/www.umich.edu.archive.2014.03.zip/www.umich.edu/~archive/atari/Games/Puzzle/nanjin11.lzh

Originally posted by @gingerbeardman in #84 (comment)

@aonez aonez added this to the Look at milestone May 4, 2023
@aonez
Copy link
Owner Author

aonez commented May 4, 2023

@gingerbeardman just was taking a look at this file. It has some kind of Germanish wording before an unusual LZH signature.

I'm not sure if this is a variant of the format or just a corrupt one. Do you have any other example from the same site/provider?

@aonez
Copy link
Owner Author

aonez commented May 4, 2023

Screenshot 2023-05-04 at 16 11 06

This is what I can parse right now (not extract), removing the extra header info and fixing the LZH signature. But looking at it I can see there should be more contents.

@gingerbeardman
Copy link
Contributor

gingerbeardman commented May 4, 2023

If you browse using DiscMaster you'll see that it was able to parse the whole archive and it's all navigable and human readable, so it seems to be complete.

Here's a link to a different copy of the same LZH (hash matches):
http://discmaster.textfiles.com/browse/6694/CCE_PD.iso/pc/1000/CCE_1077.ZIP/CCE_1077/NANJIN11.LZH

DicMaster powered by Dexvert:
https://github.com/Sembiance/dexvert

Also, this is very low priority... I just mentioned it as a point of interest!

@gingerbeardman
Copy link
Contributor

gingerbeardman commented May 4, 2023

I don't have a working Atari ST setup with LHA/LZH decompressors... but:

After research: this file uses -lh5- encoding scheme see here

using brew install lha FAIL

$ lha x nanjin11.lzh
LHa: Error: Unknown level header (level 46)

using brew install lhasa GOOD
link

$ lha x nanjin11.lzh
nanjing/nanjing.app	- Melted   :  ooooooooooooooo
nanjing/doku/nanjing.doc	- Melted   :  oooo
nanjing/doku/nanjing.txt	- Melted   :  oooo
nanjing/guide/nanjing.hyp	- Melted   :  oo
nanjing/guide/nanjing.ref	- Melted   :  o
nanjing/nanjing.upl	- Melted   :  o
$ lha v nanjin11.lzh
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                53904  119645  45.1% -lh5- a554 Dec 12  1994 nanjing/nanjing.app
[generic]                 9361   25583  36.6% -lh5- 677f Dec 12  1994 nanjing/doku/nanjing.doc
[generic]                 9049   24999  36.2% -lh5- dbc2 Dec 12  1994 nanjing/doku/nanjing.txt
[generic]                13225   13467  98.2% -lh5- 3f74 Dec 12  1994 nanjing/guide/nanjing.hyp
[generic]                  467     809  57.7% -lh5- e6e7 Dec 12  1994 nanjing/guide/nanjing.ref
[generic]                  233     319  73.0% -lh5- f8ac Dec 12  1994 nanjing/nanjing.upl
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         6 files   86239  184822  46.7%            May  4 17:02

MacLHA on Macintosh System 7.5 complained but was able to extract it all.

Screen shot 2023-05-04 at 17 42 59

Screen shot 2023-05-04 at 17 41 52

@gingerbeardman
Copy link
Contributor

I'm not sure if this is a variant of the format or just a corrupt one. Do you have any other example from the same site/provider?

Other fails from this folder: http://discmaster.textfiles.com/file/11869/www.umich.edu.archive.2014.03.zip/www.umich.edu/~archive/atari/Games/Puzzle/

Screen shot 2023-05-04 at 18 00 43

@aonez
Copy link
Owner Author

aonez commented May 4, 2023

Ok my bad, I was overlooking the extra header info. It actually is a comment, starting with -com- ending with a NULL byte and followed by the proper signature -lh5-:

-com-Nanjing 1.1, 12.12.1994, Shareware eingeschr�nkt, ein PiaG-Spiel
Bei Nanjing m�ssen 72 Steine, die sich durch Motiv und/oder Farbe
unterscheiden, auf ein 12 mal 8 Felder gro�es Spielfeld plaziert
werden. GEM-Spiel, lauff�hig als Accessory oder Programm.
Neu: 4-Steine-Regel gelockert, weniger Einschr�nkungen�)*-lh5-

Just removing the comment helps:
nanjin11_nocomment.lzh.zip

I'll check all the comment specifications (if I found them) to fix it properly.

@gingerbeardman
Copy link
Contributor

Cool! Thanks.

Interestingly, the other fails are all -lh1- with no comment that I can see.

@aonez
Copy link
Owner Author

aonez commented May 4, 2023

Interestingly, the other fails are all -lh1- with no comment that I can see.

Will check those, probably are older since the compression method 1 was used instead of the 5.

@aonez
Copy link
Owner Author

aonez commented May 4, 2023

I was using 7ZZ for methods different than 4-7. Using UNAR instead now, and it will use 7ZZ as a failsafe:
Keka-v1.2.62.r5176

@aonez
Copy link
Owner Author

aonez commented May 5, 2023

Also implemented the detection and proper parsing of the commented file in the build above.

@aonez aonez modified the milestones: Look at, 1.2.62 May 5, 2023
@aonez aonez self-assigned this May 5, 2023
@aonez aonez closed this as completed Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants