English Amiga Board Amiga Lore


Go Back   English Amiga Board > Support > support.Apps

 
 
Thread Tools
Old 06 December 2005, 10:21   #1
fc.studio
Cat lover
fc.studio's Avatar
 
Join Date: May 2004
Location: Italy
Age: 47
Posts: 799
LHA/LZX format string

Could anyone suggest me the correct format for Lha or Lzx command
to compress a drawer and have the original snapshots (window, icon
positions, view only icons...)

I use:

LHA -r A DH1:Final_FileName.lha DH1rawer_To_Compress/#?

It works but when I decompress Final_FileName.lha appears a window
with all icons and in different positions.

Thanks!

Last edited by fc.studio; 06 December 2005 at 10:26.
fc.studio is offline  
AdSense AdSense  
Old 06 December 2005, 10:56   #2
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 5,526
Icon positions are stored in the icons themselves. If you get different positions after compression it means that they weren't snapshotted before and you just got always the same positions by accident. Snapshot them before creating the archive and positions are stored correctly.

The window position is stored in the window's icon. So if you want to keep the window position, you have to archive the window's icon, too. Just add it to the list like this:

lha -r a DH1:Final_FileName.lha DH1:Drawer_To_Compress/#? DH1:Drawer_To_Compress.info
thomas is offline  
Old 06 December 2005, 12:05   #3
fc.studio
Cat lover
fc.studio's Avatar
 
Join Date: May 2004
Location: Italy
Age: 47
Posts: 799
I'll try, Thanks!
fc.studio is offline  
Old 15 December 2005, 13:54   #4
fc.studio
Cat lover
fc.studio's Avatar
 
Join Date: May 2004
Location: Italy
Age: 47
Posts: 799
It works, but now I am not able to pack eventual empty sub-directories.
I use the -e option but probably in bad way.
Can anyone suggest me the correct format for LZX command?
fc.studio is offline  
Old 15 December 2005, 14:14   #5
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 5,526
I use both LhA and LZX with -e -r -a -x.
thomas is offline  
Old 16 December 2005, 08:47   #6
fc.studio
Cat lover
fc.studio's Avatar
 
Join Date: May 2004
Location: Italy
Age: 47
Posts: 799
I desired to convert Pinball Fantasies AGA found in the last Killergorilla Pack
from .zip to .lzx using a real Amiga.

I uncompressed .zip to a working directory named PinballFantasiesAGA

Unfortunately the last lzx syntax I used doesn't compress an empty sub-directory.
On executing program the Amiga give me the DOS-Error #205 Object not found
on reading "prefs/env-archive/sys/Nonvolatile/pinball"

lzx a -e -r -a -x dh1:PinballFantasiesAGA.lzx dh1:PinballFantasiesAGA/#? dh1:PinballFantasiesAGA.info

Where is my error?
fc.studio is offline  
Old 16 December 2005, 09:18   #7
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 5,526
Quote:
lzx a -e -r -a -x dh1:...
The options should be before the action. Try lzx -e -r -a -x a dh1:...
thomas is offline  
Old 16 December 2005, 11:01   #8
fc.studio
Cat lover
fc.studio's Avatar
 
Join Date: May 2004
Location: Italy
Age: 47
Posts: 799
I'll try later, thanks for your quick answer!
fc.studio is offline  
Old 16 December 2005, 12:06   #9
mr_0rga5m
Tik Gora :D

mr_0rga5m's Avatar
 
Join Date: Oct 2001
Location: Round yo momma's
Posts: 1,273
I think this is why a lot of time you get a folder with a "dir.txt" (0 bytes) or similar in packs in general, it acts as a place mark to ensure that folders get packed.

Maybe you could try this.
mr_0rga5m is offline  
Old 19 December 2005, 11:35   #10
fc.studio
Cat lover
fc.studio's Avatar
 
Join Date: May 2004
Location: Italy
Age: 47
Posts: 799
Question

Quote:
Originally Posted by thomas
The options should be before the action. Try lzx -e -r -a -x a dh1:...

It doesn't work but it seems only for this game.
Anyone know why?
fc.studio is offline  
Old 19 December 2005, 15:13   #11
mr_0rga5m
Tik Gora :D

mr_0rga5m's Avatar
 
Join Date: Oct 2001
Location: Round yo momma's
Posts: 1,273
Well i just did a test (using registered 68000 & 68020 lzx) and both worked, albeit with a niggle at the unpack stage.

Both packed OK .. Both unpacked OK but i got an 'error' message stating disk full or other problem when unpacking but i think this may be due to the fact the empty folder is last in the archive, but even tho i got the message it still unpacked ALL files n folders perfectly. (including the empty folder)
mr_0rga5m is offline  
Old 19 December 2005, 15:28   #12
mr_0rga5m
Tik Gora :D

mr_0rga5m's Avatar
 
Join Date: Oct 2001
Location: Round yo momma's
Posts: 1,273
OK .. further tests reveal its the empty folder giving the erroneous message.

I packed it all up with the empty folder NOT last in the archive and still got the message.

I then put 'dir.txt' (0 bytes) into the prefs/.../pinball folder and then packed everything, it then unpacked perfect (no problems).

All these further tests where made using the registered 68000 version.
mr_0rga5m is offline  
Old 20 December 2005, 13:32   #13
fc.studio
Cat lover
fc.studio's Avatar
 
Join Date: May 2004
Location: Italy
Age: 47
Posts: 799
Quote:
Originally Posted by mr_0rga5m
OK .. further tests reveal its the empty folder giving the erroneous message.

I packed it all up with the empty folder NOT last in the archive and still got the message.

I then put 'dir.txt' (0 bytes) into the prefs/.../pinball folder and then packed everything, it then unpacked perfect (no problems).

All these further tests where made using the registered 68000 version.


Thanks a lot, mate...
I'll create and put "dir.txt" (0 bytes) into then empty folder since it seems to be the only solution.
However I'm little disappointed about LZX working. In future I'll have
to check everytime if it packs and unpack perfectly.
fc.studio is offline  
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
Unarchiving LHA & LZX files on Windows XP amigauser Amiga scene 58 28 September 2017 23:36
SetPatch 44+ copyright string amiga_user support.Apps 20 03 April 2011 01:55
Auto lha and lzx mounting/demounting Stig request.UAE Wishlist 14 31 May 2005 18:54
PRoblems with ZIP, LZX, LHA and who knows what else :P Akira support.Apps 5 09 February 2004 11:27

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 16:39.


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