Page 1 of 2
[Apple II/e] Most .po disk images fail to boot
Posted: Mon Jul 01, 2024 5:14 pm
by vanfanel
Hi there again,
I have been trying some games on the fantastic Play-By-Year collection:
https://archive.org/details/apple-ii-pl ... tion-v-0.1
However, all of the games in .po format seem to fail to boot, even if .po is one of the extensions supported by the core.
Any idea on what's going on? Is .po support partial somehow?
Looking at the core docs in https://github.com/MiSTer-devel/Apple-II_MiSTer, I can't see anything particular about .po (PRoDOS floppies?) images... It refers to .2MG images, but these are HDD images, while .po are supposed to be floppy images.
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Mon Jul 01, 2024 6:12 pm
by thorr
Try renaming it to .dsk and see if it helps.
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Tue Jul 02, 2024 3:17 am
by Newsdee
You can also try mounting them as a hard drive (which are also Prodos images)
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Tue Jul 02, 2024 3:52 am
by akeley
thorr wrote: ↑Mon Jul 01, 2024 6:12 pm
Try renaming it to .dsk and see if it helps.
Nice trick! I've tried it on a few and it seems to work.
Generally I tried to include .dsk images as priority in this collection, so there shouldn't be many .po ones overall - but if there are it probably means I couldn't find a .dsk verison (same goes for .woz and any other format included there which doesn;t work on MiSTer)
And yes, some, as Newsdee says are actually hdd images, eg Minotaur (1981), though not sure how to mount them as such in core. Change extension to .hdv?
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Tue Jul 02, 2024 7:42 pm
by thorr
akeley wrote: ↑Tue Jul 02, 2024 3:52 am
thorr wrote: ↑Mon Jul 01, 2024 6:12 pm
Try renaming it to .dsk and see if it helps.
Nice trick! I've tried it on a few and it seems to work.
Generally I tried to include .dsk images as priority in this collection, so there shouldn't be many .po ones overall - but if there are it probably means I couldn't find a .dsk verison (same goes for .woz and any other format included there which doesn;t work on MiSTer)
And yes, some, as Newsdee says are actually hdd images, eg Minotaur (1981), though not sure how to mount them as such in core. Change extension to .hdv?
If the file size is exactly the same as a typical .dsk, then I believe the filename is the only actual difference and the data is exactly the same (just rename it and now you have a real .dsk file). Back when I was a kid, I actually put a bunch of my favorite BASIC programs and games onto a floppy and then created my own .dsk file by connecting my Laser 128/EX to a PC via a serial cable. I went into Copy II Plus where I could examine the bytes of each sector on the floppy. I dumped the screen output a page at a time to the serial port by "printing" it. Then on the PC side, I wrote a QuickBasic program to read the text data and dump it into a binary file which became the .dsk file. I was then able to use this with an Apple IIe emulator that ran on DOS. I was super excited when it worked. So basically, a .DSK file is just a binary version of all the data on the floppy, byte for byte. A .po file is exactly the same size so therefore it is identical because there are no extra bytes to do anything with for a header, etc.
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Tue Jul 02, 2024 9:28 pm
by vanfanel
Newsdee wrote: ↑Tue Jul 02, 2024 3:17 am
You can also try mounting them as a hard drive (which are also Prodos images)
Renaming the .po files .hdv seems to work! The core works perfectly with them as hdv it seems! ![Smile :)](./images/smilies/icon_e_smile.gif)
Which confirms your advise.
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Tue Jul 02, 2024 10:08 pm
by vanfanel
@Newsdee: However, .po/.do support seems... flaky.
For example, if you try to load this one --> https://archive.org/download/apple-ii-p ... ided%5D.po
... You will see this only loads like half of the times you try (ie: half of the times you reset the core).
Is that expected or could it be a bug?
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Wed Jul 03, 2024 7:55 am
by vanfanel
@Newsdee: you have to rename https://archive.org/download/apple-ii-p ... ided%5D.po to .DSK, and then it loads half of the times you try.
As a .PO file, it never loads.
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Wed Jul 03, 2024 12:41 pm
by Flandango
That particular image is not actually stored in a PO image format but actually in DO format (sector ordering).
When a PO image is loaded, it's processed differently then DO and DSK images by Mister so that's why it fails to load it properly.
When renaming it to DO or DSK, it, in essence, bypasses the PO processing and loads it properly.
Unfortunately, there is no automated/easy way to verify that a PO image is in fact a PO and not a DO/DSK image outside of the filename extension.
On a side note, I just tried it out on Mame too, and it too fails until you rename it to DO or DSK.
Hope that helps.
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Wed Jul 03, 2024 1:54 pm
by vanfanel
Flandango wrote: ↑Wed Jul 03, 2024 12:41 pm
That particular image is not actually stored in a PO image format but actually in DO format (sector ordering).
When a PO image is loaded, it's processed differently then DO and DSK images by Mister so that's why it fails to load it properly.
When renaming it to DO or DSK, it, in essence, bypasses the PO processing and loads it properly.
Unfortunately, there is no automated/easy way to verify that a PO image is in fact a PO and not a DO/DSK image outside of the filename extension.
On a side note, I just tried it out on Mame too, and it too fails until you rename it to DO or DSK.
Hope that helps.
Ahhh! I see. I must take note about this, too: some .PO are .DO under disguise! ![Laughing :lol:](./images/smilies/icon_lol.gif)
Thanks, Flandango. But then again, it only loads sometimes... even if renamed. Doesn't it happen there?
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Wed Jul 03, 2024 4:29 pm
by Flandango
vanfanel wrote: ↑Wed Jul 03, 2024 1:54 pm
... it only loads sometimes... even if renamed. Doesn't it happen there?
I did not do intensive testing on it but once I named it as DO, I booted it up about 8-10 times and it worked every time.
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Wed Jul 03, 2024 9:02 pm
by vanfanel
Flandango wrote: ↑Wed Jul 03, 2024 4:29 pm
vanfanel wrote: ↑Wed Jul 03, 2024 1:54 pm
... it only loads sometimes... even if renamed. Doesn't it happen there?
I did not do intensive testing on it but once I named it as DO, I booted it up about 8-10 times and it worked every time.
If you reload the core in between, I think you will discover it fails some times, specially first time after loading the core. Can you confirm this?
Also, another game that has the same exact problem (boots only half the times, fails specially after reloading the core) is https://archive.org/download/apple-ii-p ... %5Bb%5D.po
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Wed Jul 03, 2024 9:24 pm
by vanfanel
In fact, there doesn't seem to be a single Zork Zero set of disks that works correctly with the core...
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Thu Jul 04, 2024 2:53 am
by akeley
vanfanel wrote: ↑Wed Jul 03, 2024 9:24 pm
In fact, there doesn't seem to be a single Zork Zero set of disks that works correctly with the core...
Yeah, it's strange, in fact I couldn't get it to run even in WinApple. Mostly gets stuck looking for Side 3, and the woz version reports some error.
It's supposed to be a 128k game in any case...is our core 128k?
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Thu Jul 04, 2024 3:48 am
by Flandango
I tested both the Ultima image and the Zork Zero (the one you linked above), renamed both to DO files and they work each time I booted it up.
I tested the following scenarios....1- Initial Load of core, 2- Reload the core (by going to OSD->Core and re-selecting the Apple II core) and 3- by doing a Cold Reset via the menu. I did it over and over and it worked.
Now....how are you reloading the core? If you are resetting it by doing the CTRL-ALT-ALT method, it will not work...it needs to be a cold reset from the OSD.
Without looking at the code (since I don't have it front of me at the moment), it's most likely needed to be done that way to tell Main (who's doing the disk image processing) to reset pointers and what not for the disk image and simply resetting the core doesn't tell Main to handle it's business.
As for WOZ images, yeah they are not supported.
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Thu Jul 04, 2024 4:07 am
by akeley
Flandango wrote: ↑Thu Jul 04, 2024 3:48 am
I tested both the Ultima image and the Zork Zero (the one you linked above)
Did you try all the Zork Zero disks? After Side 3 (needs to be loaded in Drive 2 apparently) I get "Dungeon - Internal error 80 - End of Session" message.
I meant using woz in an emulator btw.
EDIT: ok, this set (renamed to .do) works in microm8 emulator, so at least there's that. In AppleWin it fails the same way as in MiSTer.
Also, as an aside, what happened to coloured (artifacting) fonts? The core used to display them back in the day, now they're black and white.
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Thu Jul 04, 2024 5:06 am
by Flandango
Sorry, I didn't try anything past loading the game and going just past the intro.
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Thu Jul 04, 2024 5:29 am
by akeley
Flandango wrote: ↑Thu Jul 04, 2024 5:06 am
Sorry, I didn't try anything past loading the game and going just past the intro.
Do you mean just loading disk 1 and seeing the initial "choose input" screen? ("Enter the letter of pointing device [...]")
To load the actual game you need to use 3 disks. Sorry, just want to make sure we're on the same page and curious why this doesn't seem to work in MiSTer ![Wink ;)](./images/smilies/icon_e_wink.gif)
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Thu Jul 04, 2024 3:24 pm
by Flandango
akeley wrote: ↑Thu Jul 04, 2024 5:29 am
Flandango wrote: ↑Thu Jul 04, 2024 5:06 am
Sorry, I didn't try anything past loading the game and going just past the intro.
Do you mean just loading disk 1 and seeing the initial "choose input" screen? ("Enter the letter of pointing device [...]")
To load the actual game you need to use 3 disks. Sorry, just want to make sure we're on the same page and curious why this doesn't seem to work in MiSTer ![Wink ;)](./images/smilies/icon_e_wink.gif)
Yes, I only tested to see if it boots. Sorry I didn't go past that Choose Input screen.
I just tried it and yes it fails on properly reading disk 3 from Drive 2.
Seems that either in the Core or in Main, having two disks mounted causes some kind of syncing issues. I don't have the means at the moment to debug it so sorry I can't be of much help at the moment.
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Sat Feb 08, 2025 8:43 pm
by knotpot
Hi, I am joining a bit late. I've tried to get Odyssey, The Compleat Adventure (1980)(Synergistic Software) / [ b ] in .do format to boot and I only get a blank screen with Apple ][.
I've tried to change the .do to .po and that brings me a hex dump. I also tried renaming to .dsk and that didn't bring any positive results either.
In the game manual it says Integer Basic and 48k required. I got the disk images from TOSEC 2012 collection. What else could I try? I didn't mess with any settings for the core.
Link to file:
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Sun Feb 09, 2025 9:02 pm
by rhester72
Doesn't \[b\] indicate "bad dump"?
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Sun Feb 09, 2025 11:03 pm
by theflynn49
rhester72 wrote: ↑Sun Feb 09, 2025 9:02 pm
Doesn't \[b\] indicate "bad dump"?
Indeed, well spotted!
=> https://wiki.recalbox.com/en/tutorials/ ... -rom-names
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Mon Feb 10, 2025 2:45 am
by akeley
There is a "normal" dump of this game in latest TOSEC, but it doesn't boot properly either (tried it in AppleWin).
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Mon Feb 10, 2025 7:32 am
by knotpot
rhester72 wrote: ↑Sun Feb 09, 2025 9:02 pm
Doesn't \[b\] indicate "bad dump"?
Darn I never knew that. There are two dumps, one of them without the [ b ]. But the other one might also be bad. I will see if I can reproduce this with MAME on my Windows install. Even though getting anything 8-bit to run on MAME is a nightmare.
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Mon Feb 10, 2025 7:38 am
by knotpot
akeley wrote: ↑Mon Feb 10, 2025 2:45 am
There is a "normal" dump of this game in latest TOSEC, but it doesn't boot properly either (tried it in AppleWin).
This was present in the 2012 dump as well, I wasn't aware that the [ b ] made a difference when I linked to that file. I've tried with both, and I didn't get a good result either.
Going to try this on MAME and see what that gets me.
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Mon Feb 10, 2025 7:52 pm
by knotpot
Alright I tried to boot the two dumps of the game I could find in MAME 261. The [ b] one doesn't work, but I can load the normal "good" dump and boot the game just fine. When I change the .do to .dsk on the good dump, it also booted. I got a copy from the 2012 TOSEC and also from the 2023 update. They seem to be identical.
... and then it worked! I don't know what is going on, but it seems that sometimes bad dumps makes any later attempt at booting a good one fail? Now it loads both the .do and renamed to .dsk.
Weird. If I have this problem again, I'll run it through MAME and see if it behaves.
Is it a problem with me only or is there something going on with the core at the same time?
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Tue Feb 11, 2025 3:17 am
by akeley
So, do you mean it works for you in MAME, or here on MiSTer too?
I didn't mess with the bad dumps, but managed to get the "good" image to run in Microm8 Apple II emulator. It fails for me in this core though.
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Tue Feb 11, 2025 7:03 am
by knotpot
akeley wrote: ↑Tue Feb 11, 2025 3:17 am
So, do you mean it works for you in MAME, or here on MiSTer too?
I didn't mess with the bad dumps, but managed to get the "good" image to run in Microm8 Apple II emulator. It fails for me in this core though.
Both places. The one good dump works fine now in MAME and the Apple II MiSTer core. Thing is, it didn't a few days ago. I tried to boot it many times, also changing file format on both dumps (before I realised that the [ b] one was bad. I can't really figure out why. Nothing changed on the MiSTer FPGA from what I can tell. It must be a case of PEBCAK
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Tue Feb 11, 2025 9:34 am
by akeley
Thanks for checking. To add to the confusion, changing to .do & .dsk doesn't work for me, but .po does
Loads every time.
Re: [Apple II/e] Most .po disk images fail to boot
Posted: Tue Feb 11, 2025 10:40 am
by knotpot
Yeah, hard to figure out what is going on. Just to make it fun, I managed to boot the broken image a moment ago on MAME. ![🤷♂️](//twemoji.maxcdn.com/2/svg/1f937-200d-2642-fe0f.svg)