-
Notifications
You must be signed in to change notification settings - Fork 43
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
OpenFodder says Amiga WHDLoad data has wrong MD5 #69
Comments
Hey, Is that the English version of the game (WHD version)? The CD32 version is almost identical to the version im using (dont know which version that is exactly.. but it was extracted from the original disks).. there was 3 changes between them.. desbase.bht, mapm37.spt and WON.RAW Do you have stack dump? i've just tested the CD version and its not crashing for me, so knowing which function is crashing could be helpful |
@segrax I am using the CD32 version data from a WHD-installed copy. OpenFodder crashes like this:
Hope it helps. I am using GNU/Linux and the latest stable SDL2. |
Thanks @vanfanel, Looks like a sound has been removed.. ill take a look this weekend, should be a simple fix Thanks for reporting! |
ok, found the problem. its a combination of
because the md5 doesn't match, it attempts to load the exact original file names, which are all uppercase for the sound/music... the mentioned version has all filenames in lowercase (when the md5 matches, a map of filenames to filesystem file is kept) unfortunately the checksum system currently doesn't support multiple versions of the same release (i think.. its been awhile). A 'quick' fix would be renaming the ING/SNG files to all uppercase, that will atleast get the game working. |
@segrax Ah thanks! Nice explanation. |
It does work with both conditions, on startup there is a function which checks for every file of every known version
When a resource is requested for a version, it uses the path from that list.. unless its not in that list, in which case it falls back to trying the original name in the current version path At this point a simple check for upper or lower case versions of the file could probably be added.. but we had issues in the past when one release had files named something like "JON.ins" |
This engine is making me crazy :( Then made all files uppercase, then put them in Data/Amiga. Is the normal Amiga version supported, or only the Amiga CD version is supported? If the Amiga version is supported, what files should I use exactly? |
Did you copy CannonFodder/data/* to Data/Amiga or CannonFodder/* to Data/Amiga This version is also modified from the original and has invalid MD5s, appears some files have been packed with RNC (which also works, as the original does have some packed, but most not) The Amiga floppy version is definitely supported I'm not sure of the specifics of any of the pre-installed WHDLoad versions ... in my case I did my own install from floppy our tool also works if you have the RAW/IPF disk images: https://github.com/OpenFodder/SOS_Unpacker |
I copied CannonFodder/data/* to Data/Amiga, isn't that right? I will extract the files from RAW/IPF images if I can find them (I don't have/care about the original game in 2023) |
Ah, did it at long last @segrax Sadly I couldn't find vallid CF2 IPFs to get the data for both games, only CF1.
Maybe only CF1 is supported by the extraction tool? |
ahh, yes thats right, CF2 is just a standard AmigaDOS disk, you should be able to just copy the files off the image (either in Winuae / workbench, or using some adf extraction tool) |
@segrax I extracted the files from the EUROPE Cannon Fodder 2 release ADFs (mounting ADFs on GNU/Linux is trivial) but I still get:
What version of Amiga CF2 am I supposed to use? |
In the end, I got Good times ahead! :D |
thats a good question actually, |
@vanfanel So it appears there is/was actually a bug here, ive pushed a fix, it should work with different filename cases, and/or bad MD5s now (it will still warn though) |
Great! Now it's easier to make it work. |
Describe the bug
OpenFodder fails to detect Amiga WHDLoad install data properly.
I have the Amiga WHDLoad installed files in ~/cannon/Data/Amiga/, and OpenFodder can see it, but it says:
As a consequence (I guess) the game isn't available on the selection screen: Only the demos are available.
I also tried to use the AmigaCD32 data, by putting the files in
Data/Amiga_CD
, but the game segfaults after the helicopter animation...To Reproduce
Try to run OpenFodder with Amiga WHDLoad data installed.
Expected behavior
OpenFodder should detect the Amiga WHDLoad data correctly.
Desktop (please complete the following information):
Additional context
I do my own builds from latest sources.
The text was updated successfully, but these errors were encountered: