Skip to content
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

"change current floppy image" doesn't work after booting a freedos(98) hdd image #5251

Open
2 tasks done
Jimmy-Z opened this issue Oct 22, 2024 · 5 comments
Open
2 tasks done
Labels

Comments

@Jimmy-Z
Copy link

Jimmy-Z commented Oct 22, 2024

Describe the bug

update: it's likely a dosbox-x - freedos(98) incompatibility issue.
title updated to reflect this, previous title:

"change current floppy image" doesn't work after booting a pc98 hdd image

Steps to reproduce the behaviour

  1. machine is set to pc98
  2. mount disk A of the game on drive A:
  3. mount freedos(98) hdd image (from here) on drive C:
  4. boot c:
    • for whatever reason A: and B: are both that hdd image now (more on this later), C: is floppy
  5. start installation from C:
  6. the installer prompt to insert disk B, I choose "dos" -> "change current floppy image" and choose that.
  7. press enter, the installer still prompt to insert disk B

Expected behavior

installer should continue

What operating system(s) this bug have occurred on?

Windows 10 22H2

What version(s) of DOSBox-X have this bug?

2024.10.01 (VS SDL1 64-bit)

Used configuration

default except:

machine = pc98

Output log

Identified 'G:\pc98\night slave\Night Slave - Disk B.hdm' as C/H/S 77/2/8 1024 bytes/sector
Mounted FAT volume is FAT12 with 1221 clusters

Additional information

  • The game I tried is Night Slave, but it doesn't really matter, since it can be reproduced with any 2 floppy images and just use dir to check if change disk did take effect.

  • The game installer says "please boot from hdd, installation aborted" (in Japanese) if not boot from hdd image.

    • My first guess was drive letter issue since pc98 apparently use drive letter A for hdd.
    • I tried mounting the hdd image on A(surprisingly this is doable, while mounting floppy images on C: is not), mount the game floppy image on B, start install without booting to guest, it still complains that, I guess there's indeed a boot drive check.
  • If I install the game in np21w, then boot the hdd image with the game installed in dosbox-x and run the game, it works.

  • As for the duplicated drive letters, If I only mount the hdd image and boot c:, guest OS then only sees drive A, no more drive B, should I report this as a separate issue?

  • I did not try if this bug exist in non-pc98 mode.

Have you checked that no similar bug report(s) exist?

  • I have searched and didn't find any similar bug report.

Code of Conduct & Contributing Guidelines

  • I agree to follow the code of conduct and the contributing guidelines.
@Jimmy-Z Jimmy-Z added the bug label Oct 22, 2024
@maron2000
Copy link
Contributor

maron2000 commented Oct 23, 2024

I don't have any difficulties in installing Night Slave.
Mounted a hard drive in C: and Disk A in A: then boot c:, and "change current floppy image" accordingly to the instructions of the installer.
After installation, you don't have to boot a guest OS to launch the game.

Edit: I used genuine MS-DOS 6.2. FreeDOS doesn't work.

image
image

@Jimmy-Z
Copy link
Author

Jimmy-Z commented Oct 23, 2024

Thanks for the reply and sorry I'm new to pc98, I tried ms-dos.

after mounting a blank hd image on c: and ms-dos 6.20 disk 1 on a: and boot a:, it also shows two hd:
image
image

I chose the 1st one

then it will complain something and need to format the disk (I'm not sure about those Japanese terms)
image

then it let me chose the size and starts formatting (if I chose the 2nd hd, it will stuck here)

while formatting, log is flooded with:

PC-98 INT 1Bh unknown SCSI BIOS call AX=0100 BX=7E00 CX=F430 DX=03EF SI=0010 DI=00A1 DS=5008 ES=7000
PC-98 INT 1Bh unknown SCSI BIOS call AX=0100 BX=7E00 CX=F820 DX=03EF SI=0010 DI=00A1 DS=5008 ES=7000
PC-98 INT 1Bh unknown SCSI BIOS call AX=0100 BX=7E00 CX=FC10 DX=03EF SI=0010 DI=00A1 DS=5008 ES=7000

then it seems to be stuck on a blinking "please wait a little"
I press enter
it says "will reboot shortly"
now it's back to dosbox-x z:
imgmount will complain "could not extract drive geometry from image"
if I supply those though, it will instead complain "Cannot create drive from file"
there's these in log:

LOG: FAT: Partition type is IPL1 (PC-98)
LOG: No partition chosen

I tried -o partidx=0 and 1, same result.
I could imgmount 2 ... (I believe this is like setting up a loop device but not mounting the file system in linux?) then boot the dos floppy again but it still just start formatting again.

also the log is flooded with:

LOG: 1211856159 ERROR INT10:INT10_SetCursorPos page 77

I also tried starting from the freedos(98) hdi image, but ms-dos will still try to format it, and fails basically the same way above.

I'm currently stuck here.

@Jimmy-Z
Copy link
Author

Jimmy-Z commented Oct 23, 2024

I tried preparing a hdi with ms-dos installed using np21w, boot that in dosbox-x, then night slave hdinst will indeed work.

btw: I had to strip config.sys and autoexec.bat installed by default to a minimum, otherwise it stucks in various stages.

@Jimmy-Z Jimmy-Z changed the title "change current floppy image" doesn't work after booting a pc98 hdd image "change current floppy image" doesn't work after booting a freedos(98) hdd image Oct 23, 2024
@maron2000
Copy link
Contributor

Yeah, you're right. I can't prepare a HDD image on DOSBox-X.
It seems that you need to prepare a bootable HDD image in advance using other emulators.

@Jimmy-Z
Copy link
Author

Jimmy-Z commented Oct 23, 2024

Thanks for the confirmation.

While I do understand this is a niche in a niche, but I think we should probably update the wiki to reflect this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants