jeffpar / pcjs.v1

PCjs Machines 1.0 (archived)
https://github.com/jeffpar/pcjs.org
GNU General Public License v3.0
475 stars 92 forks source link

Non-DOS diskette images cannot be saved #76

Open apendrag0n3 opened 5 years ago

apendrag0n3 commented 5 years ago

Currently - When I click "Save" - It saves a .IMG file.

When I try to MOUNT the .IMG just created - I get

"FDC: Unrecognized disk format (8192 bytes)"

Thoughts?

jeffpar commented 5 years ago

Not sure why. I just tried it in the latest version of Chrome and it seems to work fine. When using Chrome, you do have to make sure to tell the browser to "Keep" the file you just downloaded. In any case, an 8192-byte disk image file is definitely invalid. Can you attach it here?

apendrag0n3 commented 5 years ago

Yessir - it saved the file - that wasn't the problem. Here's the file: DIscImage.zip

apendrag0n3 commented 5 years ago

New Text Document.txt This is my machine XML

apendrag0n3 commented 5 years ago

New Text Document.txt And Here's the FDC XML

jeffpar commented 5 years ago

I see the problem -- Zork disks use a proprietary (non-DOS) format which can't be saved as an IMG. I should add an alert to PCjs that explains the problem and prevents you from saving it. PCjs can only (successfully) save and mount DOS-compatible disk images.

apendrag0n3 commented 5 years ago

AHA! THAT make's sense!

apendrag0n3 commented 5 years ago

So - how does one save a game with Zork?

jeffpar commented 5 years ago

Use Zork's "save" and "restore" commands, and a scratch disk in drive B. The PCjs demo Zork 1 machine happens to have a PC DOS 2.00 disk sitting in drive B, but I think any disk will work. The disk will be trashed as far as DOS is concerned, because Zork just writes its "save" game data in predetermined locations on the scratch disk. Save the disk before you close the browser, and mount it in drive B the next time you play.

Screen Shot 2019-05-01 at 7 34 40 PM
apendrag0n3 commented 5 years ago

Much thanks! This takes me WAY back to days of my "youth" (ok, my late teens and 20's)