English Amiga Board


Go Back   English Amiga Board > Support > support.Other

 
 
Thread Tools
Old 11 April 2022, 21:46   #1
dreadnought
Registered User
 
Join Date: Dec 2019
Location: Ur, Atlantis
Posts: 1,899
Is it possible to corrupt lha archives by unpacking them in Windows?

I made a container hdf for my Play It By Year collection recently. There are all the WHDL games on it, ready to run if user mounts it as a secondary HDD to a primary hdf with system & WHDLoad install.


Problem is, while most games work fine, some throw up errors. I'm not sure why, because when I install them manually, they work okay too.



How I made the hdf itself was first described here, and then I mass-copied all my WHDL games to it using WinUAE. Thing is, I prepared the directories in Windows first, by unpacking all the relevant games from the latest WHDL set's lha archives. I'm using Total Commander for that, and it has native lha support.



So I'm not sure why some games won't work after this operation. Is it possible for them to get corrupted by being handled in Windows, and should I do it all in WinUAE instead?
dreadnought is offline  
Old 11 April 2022, 21:54   #2
fryguy
Registered User
 
Join Date: Aug 2005
Location: Skarabörg, Sweden
Age: 44
Posts: 1,019
Unpack them in AmigaOS or you will likely have some issues, maybe mostly with protection bits but probably not only that.
fryguy is offline  
Old 11 April 2022, 22:09   #3
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,334
Yup, filenames that use certain slightly exotic characters (including space) will cause you problems if they're unpacked on the PC side. Unpack on the Amiga side for the best results.

There could be other issues too - part of the problem with using WHDLoad games prepared by someone else is that it will be configured for their setup, not yours. Some games are more sensitive to the various hardware configurations than others.
Daedalus is offline  
Old 11 April 2022, 23:02   #4
dreadnought
Registered User
 
Join Date: Dec 2019
Location: Ur, Atlantis
Posts: 1,899
Ahhh...thanks. I had an inkling it might be the case, but doing it in Windows is just so darn convenient/fast. Even just copying to hdf in WinUAE takes a while.

Can you recommend the fastest WinUAE setup for doing this (we're talking hundreds of archives atm, thousands soon)? I think I was using A4000 default, but not sure this is a safe choice safe as well?

Quote:
Originally Posted by Daedalus View Post
There could be other issues too - part of the problem with using WHDLoad games prepared by someone else is that it will be configured for their setup, not yours. Some games are more sensitive to the various hardware configurations than others.
Sure, but that's up to the users to deal with.... I can only mention that.

Basically, I just provide the games as-is (which are from the latest Retroplay packs). On the hdf are the same lhas, just unpacked and put in directories for convenience, and also for people who are unfamiliar with Amiga and for whom making hdfs is black magic (had quite a few requests for that).
dreadnought is offline  
Old 11 April 2022, 23:33   #5
Aardvark
Registered User
 
Join Date: Jan 2019
Location: Finland
Posts: 634
Quote:
Originally Posted by dreadnought View Post
Can you recommend the fastest WinUAE setup for doing this (we're talking hundreds of archives atm, thousands soon)? I think I was using A4000 default, but not sure this is a safe choice safe as well
I don't think the emulated architecture matters much as long the JIT is enabled, More compatible is disabled, and CPU speed is set to Fastest possible.
Aardvark is offline  
Old 12 April 2022, 00:17   #6
klx300r
Registered User
 
klx300r's Avatar
 
Join Date: Oct 2007
Location: Toronto, Canada
Posts: 1,593
@ dreadnought


yes so don't do it
klx300r is offline  
Old 12 April 2022, 20:16   #7
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,334
Quote:
Originally Posted by dreadnought View Post
Can you recommend the fastest WinUAE setup for doing this (we're talking hundreds of archives atm, thousands soon)? I think I was using A4000 default, but not sure this is a safe choice safe as well?
As was said, the emulation itself isn't the issue, so using the fastest setup you have will be the fastest way to do it. Note that emulating different models, and even different CPUs, largely doesn't affect the speed of the emulated machine.

The issue stems from using a non-Amiga filesystem and a non-Amiga unarchiving tool. Once it's all kept within an Amiga environment, it'll be fine.
Daedalus is offline  
Old 12 April 2022, 21:23   #8
dreadnought
Registered User
 
Join Date: Dec 2019
Location: Ur, Atlantis
Posts: 1,899
I don't know anything about high-end Amigas + add ons, and am not sure how compatible they are across the board. I'd rather ask than run into some problems again.

So, in WinUAE, going into Quickstart and choosing "A4000"+"60840" would be enough? Or is there anything else I could choose to speed it up even more?
dreadnought is offline  
Old 12 April 2022, 21:33   #9
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,161
Ticking JIT is fast. CPU choice isn't that important.

I tried for years to get a windows solution for lha but it just doesn't work. And archives you're creating with windows lha have permission issues on linux...

that said, because of software that can be burned on CD and all, whdload installs tend to fix Amiga-only filenames when installing. 2 examples come to mind: Batman and Puzznic (spaces at the end of the filenames AFAIR)

So if those constraints are respected (which is 95% of the time) you could use windows lha to extract stuff.
jotd is offline  
Old 13 April 2022, 00:09   #10
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
Quote:
Originally Posted by jotd View Post
that said, because of software that can be burned on CD and all, whdload installs tend to fix Amiga-only filenames when installing. 2 examples come to mind: Batman and Puzznic (spaces at the end of the filenames AFAIR)

The spaces at the end in the Batman file names were caused by a buggy imager. In the fixed version, the file names are saved with their correct names (i.e. without space at the end) but no measures have been taken to make them Windows compatible.
StingRay is offline  
Old 13 April 2022, 08:18   #11
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,161
That's not deliberate but just bad luck then

but it still worked on an amiga but not on windows.

The puzznic example is a real one where the filenames are truly incompatible. But there are others.

Murphy's law... "Anything that can go wrong will go wrong."

Personally if I think that a superior solution (which is automate stuff from windows) works 95% of the time, I manage to handle the 5% other separately or detect the issues beforehand, but I stick to the superior solution, instead of ditching it because of a few corner cases.

Another issue of lha/windows filesystems is the protection bits. Those are rarely a problem, specially with whdload.
jotd is offline  
Old 13 April 2022, 11:24   #12
dreadnought
Registered User
 
Join Date: Dec 2019
Location: Ur, Atlantis
Posts: 1,899
One lha that acted really weird was Mach 3. That one's causing me problems directly in Windows, when unpacked I sort of couldn't delete it or unpack a new one to that directory.
dreadnought is offline  
Old 13 April 2022, 12:02   #13
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,334
Quote:
Originally Posted by dreadnought View Post
I don't know anything about high-end Amigas + add ons, and am not sure how compatible they are across the board. I'd rather ask than run into some problems again.
For system-friendly software like this, there's generally no issue with higher end Amigas - it's mostly system-friendly software that really benefits from faster setups.

Quote:
So, in WinUAE, going into Quickstart and choosing "A4000"+"60840" would be enough? Or is there anything else I could choose to speed it up even more?
Yeah, using JIT will give you a massive boost in speed. Choosing a 68040 doesn't make the emulation any faster than emulating a 68030 - the maximum speed you get depends on the single-core performance of the host CPU, not the emulated CPU. And while you can emulate a 68040 or a 68060, you then have to make sure you have suitable CPU libraries installed and so on. I generally use 68030 emulation for my setups.
Daedalus is offline  
Old 13 April 2022, 20:46   #14
dreadnought
Registered User
 
Join Date: Dec 2019
Location: Ur, Atlantis
Posts: 1,899
Alright...thanks for all the tips.

Now I'm stuck on something else. How do I get DiskMaster to unpack archives?

So far I downloaded lha.run, put it in C, and typed "lha.run" in Execute...this I suppose unpacked it (there are a few lha-related files in C now).

But in DiskMaster I still can't unpack anything: when I click on an lha archive, or go to Archives drop menu and use Lha X or Unpack, nothing happens...DM kinda blinks an that's it.

(I know about DOpus, but I'm used to DM and I guess it's not its fault anyway...)
dreadnought is offline  
Old 13 April 2022, 23:25   #15
Aardvark
Registered User
 
Join Date: Jan 2019
Location: Finland
Posts: 634
Quote:
Originally Posted by dreadnought View Post
So far I downloaded lha.run, put it in C, and typed "lha.run" in Execute...this I suppose unpacked it (there are a few lha-related files in C now).
Rename one of them as lha
Aardvark is offline  
Old 14 April 2022, 16:32   #16
dreadnought
Registered User
 
Join Date: Dec 2019
Location: Ur, Atlantis
Posts: 1,899
Nice one, that has sorted it out. Now, to do all the legwork....
dreadnought is offline  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about lha and large archives liquidsmoke support.Other 9 27 October 2019 17:18
Using Xdftool with LHA archives.. bugsymalone666 support.Other 6 25 June 2017 02:27
Self Extracting LHA Archives hipoonios support.Apps 7 16 January 2015 23:15
Unpacking Quarterback archives mai request.Apps 5 11 January 2009 00:22
problem unpacking archives on my 1200 VermillioN support.Hardware 16 22 February 2007 21:33

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 19:19.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08918 seconds with 15 queries