Idelacio wrote: ↑Thu Apr 11, 2024 6:12 am
ItalianGrandma wrote: ↑Thu Apr 11, 2024 5:54 am
Made some progress on my batch script tonight, and I think it’s coming along well!
Does anyone have any opinions about the following:
For default I'd say 3 is fine, realistically the user should be inputting what they need from it either way as every game is different. Maybe stick a warning that the user should excercise some basic common sense.
For the file size I'd say up to 200 and then offer to let the user import maybe? Otherwise you are going to have to accomodate up to 700mb for the really big ones.
Thanks for the suggestions! I do already have warnings along those lines. I did realize that each VHD is usually already almost 3MB-ish smaller than the advertised size, so I probably need to add more like 6MB of default padding. One thing I can easily do is add sizes from maybe 7-300MB in 1MB increments and then just add a few more larger ones for 400-700MB in 50MB increments. Then if anyone needs in-between sizes, I can warn them that they need to import those on their own.
Edit: Actually, I can create the VHD of a specified size for the user with the script. I could probably also include my formatting disk with the pack so that once the new VHD is created, all the user would have to do is:
1) Open the AO486 core and mount the formatter floppy and the new VHD
2) Boot the disk, wait for it to finish and the VHD is done.
Then, you'd just drag your VHD back to the right folder on your PC and continue the build process.
Edit 2: Oh! it seems like it might actually be possible to expand an existing VHD in diskpart using Windows! If that works correctly, it could just mean that sizes could be defined by the user and I would only have to create one template VHD file for use. That said, I have a suspicion that it might prevent it from just working on MiSTer without the extra formatting steps, but I will test later tonight and see!
Edit 3: Ok, I think in order to resize properly, I'll have to include another tool that can resize FAT volumes...not sure if there's one that will just work in Windows natively through cmd prompt...
Edit 4: Yeah...I think it's going to be too cumbersome to expand the FAT16 partition in Windows, so my solution with including a formatter disk for use on MiSTer is probably the best option. I can just bake prompts into the script that tells you when to do that step if needed.
Edit 5: LOL, Actuallllly, it might be possible to do this if I bundle DOSBox with the script since that has a command line interface...going to play around with it later..
I figured it out after all! Latest version is here ----> viewtopic.php?p=85737#p85737