nfg.forums

NFG Forums => SIG PC-98 => Topic started by: kobushi on August 10, 2014, 12:37:17 AM

Title: YAHDI (yet another hard disk image)
Post by: kobushi on August 10, 2014, 12:37:17 AM
I heard you were making a PC-9801 hard disk image, so I decided to clean up mine and share it. This is a Windows-readable PC-9801 disk image that includes many essential utilities and provides a stable, versatile DOS environment for playing games and other stuff.

http://nfggames.com/PC98/HDDimages/PC98HDD.7z (http://nfggames.com/PC98/HDDimages/PC98HDD.7z)

There are no specific system requirements, but the configuration assumes that you have:
1) a 386 or better CPU
2) at least 1.6MB of RAM
3) an OPNA-equivalent sound source (either built-in, or a sound board such as the PC-9801-86)

I can't guarantee compatibility with every system out there, but I have tested and used this disk image in the following environments:
=Real hardware=
PC-9821Ap
PC-9821As
PC-9821Ce2
PC-9821V20
PC-9821Na12
PC-9821Nw150
=Emulators=
Anex86
T98-Next
np2fmgen (np2sxnt.exe/np21nt.exe)


Disk Image
First, the disk image itself. This is a 542MB raw (headerless) disk image. Why 542MB? Because that's just under the maximum allowed hard drive size imposed by a limitation in the PC98 disk BIOS. Later models have higher size limits, but 542MB is best for maximum compatibility.

542MB HD parameters:
cylinders: 8162
heads: 8
sectors per track: 17
sector length: 512
8162*8*17*512=568,336,384 bytes

To open this image in Disk Explorer, select manual HD and enter 17 sectors, 512 sector length, 8 heads, 98 format (you don't have to enter the cylinders, because Disk Explorer doesn't check that value).
(http://i.imgur.com/zTnCSDB.png)

To save yourself some time, you can also add this definition to types.ini in the Disk Explorer folder:
[Raw PC-9801 HD]
Extension   = ".IMG"
ProfileType = 3
HDDType     = 0
DiskStart   = 0
Sectors     = 17
Heads       = 8
Cylinders   = 0
SecLen      = 512

To use this image in an emulator, I recommend converting it to NHD format. NHD is recognized natively in Disk Explorer, T98-Next, and Neko Project II. I do not recommend using the HDI format and Anex86, because Anex86 is a dead emulator with a number of problems that will never be fixed. If you really really need to use Anex86, you can use the NHC utility to convert the raw image to HDI. Otherwise, just use NHD.

The NHD format is simple and well-understood. There's a 512-byte header, followed by the raw data in CHS order. This is the header format:
char  szFileID[15];                 // ID "T98HDDIMAGE.R0"
char  Reserve1[1];                  // reserved (value 00)
char  szComment[0x100];             // image comment (ASCIIz)
DWORD dwHeadSize;                   // header size
DWORD dwCylinder;                   // no. of cylinders
WORD  wHead;                        // no. of heads
WORD  wSect;                        // no. of sectors per track
WORD  wSectLen;                     // sector length
char  Reserve2[2];                  // reserved (value 00)
char  Reserve3[0xe0];               // reserved (value 00)

The correct NHD header for the raw disk image is already included, just add it to the beginning of the .IMG file with a file merge utility or hex editor. The resulting nhd file should be 568,336,896 bytes, with the T98HDDIMAGE header at the beginning, and the raw disk image starting at hex address 0x200 with the values EB 0A 90 90.

I'm also including the nhdgen utility, which can automatically generate a nhd header for a raw PC-9801 hard disk image.

Syntax:
nhdgen [/auto] [/merge] input_file.img output_file.nhd
/auto - automatically detects the HD parameters. Omit to specify parameters manually.
/merge - by default, nhdgen just generates a separate 512-byte nhd header file. By using the /merge option, nhdgen will create the full nhd disk image.


There's another cool thing about this image: it has a hybrid partition table created with the CONV98AT utility, which means it can be accessed directly on both a PC-9801 and a modern PC. You can either mount the image in Windows as a virtual disk, or write it to an SD/CF card and browse it like an ordinary flash drive. This makes it much easier to transfer files between your PC98 and modern PC. CONV98AT is included, so you can convert other PC98 hard disks in the same way.

To mount the image as a virtual disk, install the ImDisk Virtual Disk Driver.

To mount raw IMG file,
- Use right-click menu on IMG file, or open ImDisk in Control Panel and click Mount new.
- Disk size and offset (136 blocks) are detected automatically.
- Check "removable media".
- For image file access, select direct access. (If you work with a memory copy and try to save it later, ImDisk will leave out the PC98 MBR and break the image.)
(http://i.imgur.com/LUwDRB2.png)

To mount NHD file,
- Same procedure as IMG file, but manually specify an offset of 137 blocks, not 136.
(http://i.imgur.com/AF5pcWW.png)

To use this image on a real PC98, you need to write out the raw image to disk. In my case, I use Win32DiskImager to write out to an SD card, which plugs into an IDE-SD adapter connected to a PC-9821. Compact Flash cards also work great. It should even be possible to write out to a real IDE or SCSI hard drive if you want.

You can also do the reverse and back up the disk to a new image file. But if you use a 2GB flash card, for example, the 542MB backup image will also include an extra 1.5GB of empty data, so you should split the file at 568,336,384 bytes and just keep the actual disk data at the beginning. If you're using a hex editor, delete everything after (but not including) 0x21E01FFF.

BONUS: I'm also throwing in a 128MB hard disk image with a clean install of MS-DOS 3.3D. DOS3 is required by certain games, such as early Falcom titles.

DOS3 only supports FAT12, so unfortunately CONV98AT does not work and the image is not directly readable or mountable in Windows. But you can still open it with Disk Explorer, convert it to NHD, and use it in emulators.

128MB HD parameters:
cylinders: 1927
heads: 8
sectors per track: 17
sector length: 512
1927*8*17*512=134,180,864 bytes


Contents of this disk
- MS-DOS 6.20
- MS-DOS 5.00A-H
- file manager
- batch menu/program launcher
- heavy-duty text editors
- rom/disk dumping tools
- every major PC-98 CD-ROM driver
- FM synth drivers and playback software
- image viewers and converters
- game compatibility tools
- various other utilities

The core suite of OS and tools takes up about 24MB total, leaving over 512MB for games and other data.

The memory configuration is optimized as much as possible while remaining broadly compatible with most models. The default configuration provides 610K conventional memory + EMS up to your total RAM, with a largest free UMB block of 34K-48K (depending on the computer model) for additional drivers.
(http://i.imgur.com/BikBojV.png)

Ideally you'll have some extra RAM, but this disk image will happily run on 1.6MB or 64MB of memory, and everything in between.

The config.sys/autoexec.bat files are annotated, so feel free to adjust the setup as needed.

Overview of software
- MS-DOS 6.20. Standard install, used as the default OS.

- MS-DOS 5.00A-H. Installed to \DOS5 directory, available by rebooting using HSB (see below). Included for compatibility.

- Filmtn file manager. A nice and easy-to-use file manager, with convenient features like directory copy. Hold down Grph or press F2 to bring up a programmable macro menu. I already predefined some macros, so for example, pressing Grph+H will reboot via HSB, and pressing Grph+W will set a selected .MAG file as a "wallpaper" image.
(http://i.imgur.com/PVF44pb.png)

- BM. A batch menu/program launcher with mouse support. BM presents a library of up to 200 menu items across 10 pages. Each menu item can be defined as a little batch file (press Xfer to edit), so you can run almost any kind of game or programmable utility from the BM GUI. You can also define a menu item to open a completely new library file, so there's essentially no limit to how many menus you can create. I created a main library with many common actions defined, and also a separate game library.
(http://i.imgur.com/IuUMIqG.png)

- SE3/MIFES/Vz. Text editors that are much more powerful than the SEDIT utility included with DOS. SE3 is a nice little freeware editor, while MIFES and Vz are commercial text editors with many heavy-duty features. MIFES is set up as the default editor.

- HSB. A flexible soft-boot manager that enables Ctrl-Grph-Del reset on the PC98. It can also be used to easily manage multiple boot configurations by using a config.sys and autoexec.bat (and even IO.SYS and MSDOS.SYS) located in a non-root directory. Extremely useful for multi-booting among different DOS versions, and managing different game configurations.
Basic usage:
HSB - reboots using the default configuration (config.sys/autoexec.bat in the root A:\ directory)
HSB A:FOO - reboots using config.FOO and autoexec.FOO in the root directory
HSB A:GAMES\FOO\ - reboots using the config.sys/autoexec.bat files located in A:\GAMES\FOO
Note: don't put a backslash after A:


- ERCACHE. A virtual 8086 mode monitor that can be used to control almost every aspect of the machine state and trick older software into running on newer PC-9821 models. It's a very powerful and complex program, but making games work with ERCACHE is a tedious trial-and-error process, and settings that work on one computer may not work at all on another machine. Also, since none of the current PC98 emulators handle protected mode well enough, ERCACHE is only usable on real hardware. Don't bother trying it in an emulator, it will just crash or lock up. ERCACHE is pointless in an emulator anyway, because it's much simpler and more reliable to just re-configure the emulator as an older PC-9801 model.

- ERCVFD. A virtual floppy module for ERCACHE. Again, real hardware only. Useful in some cases, but you have to manually save any changes to the virtual floppy by doing a special Ctrl+Grph+Ins reset and writing out a new disk image from the memory copy (ERCVFD.EXE /VFDSAVE?). Personally, I find it easier to just write out disk images to real floppies, or use an HxC.

Music-related
- I've included the major FM synth drivers that were popular on the PC-9801 (FMP, MDX, and PMD), along with some sample music files. I've registered some command-line players with the appropriate file extensions in Filmtn, so after loading the appropriate driver set, you can simply browse in Filmtn and press Enter to play songs.
- There's also the MSDP music player, which supports playback of all three formats. Unfortunately you still have to load an appropriate music driver set ahead of time, and it's not possible to have two different driver sets active at the same time. Still, you can use the on/off utilities in each music subdirectory to quickly toggle drivers, and then browse a particular subdirectory in MDSP.
(http://i.imgur.com/G1MeQ7o.png)
- The MIMPIV4 and GMPV4 players support various other formats.
- CDP is a simple command-line CD player.
- All of the music-related files and drivers are located in a separate MUSIC directory, so if you're not interested you can safely delete the entire directory to reclaim disk space.

Image-related
- Included are the MAG and TEAM image viewers for MAG files, the most popular image format back in the PC98 days. The .mag file extension is registered in Filmtn, so you can view images directly from the file manager. You can also press Grph-W in Filmtn to designate a MAG file as a background "wallpaper" that will stay active until another program uses the graphics plane.
- Some sample images are included in the MAG directory. It's a mishmash of game CG, amateur artwork, and images from old BBS ads.
(http://i.imgur.com/EzzPPyC.png)

Dumping/imaging tools
Note: Perform a clean boot (reset and hold shift) before running the rom dumping tools.
- Mahalito. A fast way to dump or write back floppy images to disk.
- nfdmake. The best floppy dumping utility. Creates .nfd files.
- Make_hd. The name is a little confusing, but this is for dumping floppy disks to D88 format.
- mkfdd. Floppy dumping tool from the Virtual98 emulator. Creates .fdd files.
- getbios - ROM dumping utility (BIOS, FONT, SOUND) from the np2 emulator.
- rommake - ROM dumping utility (BIOS, FONT, SOUND) from the T98-Next emulator.
- mkbios - BIOS rom dumping utility (BIOS, ITF, SOUND) from the Virtual98 emulator.
- mkfont - Font rom dumping utility from the Virtual98 emulator.

Other tools:
- 86vol. A handy volume control hotkey utility. Hold down Grph and then use the numpad to adjust volume levels. Type 86VOL V1 on the command line to bring up a visual volume meter.
GRPH+ FM PCM LINE CD-DA
(mute) 7 8 9 *
(up) 4 5 6 +
(down) 1 2 3 =
Note: On later PC-9821 models that use the YMF288 (OPN3) chip (X series, V series, and notebook models), all sound output is piped to PCM out, so the volume control only works as a master control using the CD-DA meter.
Note 2: For real hardware only. This tool does not work in emulators.


- Clip. Registers a Shift+F12 hotkey that grabs any text on the current screen and saves it to a regular text file. Useful for troubleshooting error messages.

- Disk. This is actually a combination of two utilities, df and dr. df presents a list of all logical drives and their current status, while df shows a graph of hard disk usage for all files and subdirectories in the current path.
(http://i.imgur.com/TfHsCXh.png)

- MGC. A graphics controller and screen capture utility. Adds the following global hotkeys:
Grph+Ins Display graphics plane
Grph+Del Hide graphics plane
Grph+Rollup Display text plane
Grph+Rolldn Hide text plane
Grph+arrows Scroll graphics plane
Grph+F1 Toggle 16/256 color mode (PC-9821 only)
Grph+F2 Switch front/back VRAM
Grph+F10 Toggle beep sound during screen capture
Grph+VF1 Screen capture of graphics plane
Grph+Home Wipe graphics plane
Grph+Stop Reset (don't use this, HSB is better)

Screen captures taken with Grph+VF1 are saved to the mag folder as CAPxxx.BLK files. This should work in most games, so you can easily grab screenshots. You can view captures with BLKLOAD, or convert them to another format using MG.EXE.

- JON/JOFF. Simple batch files to toggle Japanese input drivers on/off when needed. After running JON, press Ctrl+Xfer to switch to Japanese input. Run JOFF when you're done to reclaim memory.

First boot
When you first boot up this hard disk image, you're 90% likely to get a screen like this:
(http://i.imgur.com/6Q1hp8x.png)

Don't panic, this is normal. In order for the HSB boot controller to work, it needs to detect and record information about the hardware setup. Press W to update the configuration. This step only needs to be performed once, after a hardware change.

The BM program launcher is configured to launch by default. You can change this behavior by editing the lines at the end of autoexec.bat.

To get to the DOS prompt, just press Esc.

The next step is optional but recommended. At the DOS prompt, type:
cd\tools
del esound.com
mksound
esound

This will delete and recreate the esound.com utility based on your specific sound hardware. This shouldn't be necessary in most cases, but you may as well do it. You only need to do this once.

I've included a couple of games just to demonstrate how the BM launcher, HSB, and ERCACHE work. Take a look at the config.sys, autoexec.bat, and boot.bat files in each game folder.

That's it! Now go party like it's 1993.
Title: Re: YAHDI (yet another hard disk image)
Post by: AnnaWu on August 10, 2014, 05:09:48 AM
Nice to see you here, kobushi. : )
Title: Re: YAHDI (yet another hard disk image)
Post by: caius on August 10, 2014, 07:09:04 AM
Thank you very much for this.I'll try to add more games through ERCVFD.
Title: Re: YAHDI (yet another hard disk image)
Post by: acridAxid on August 10, 2014, 07:09:51 AM
Nice work, kobushi!  This is an excellent resource.
Title: Re: YAHDI (yet another hard disk image)
Post by: SkyeWelse on August 10, 2014, 02:54:46 PM
Thanks very much for posting this here Kobushi. Can't wait to try it once I get my CF card and IDE adapter soon. Maybe next week if it all arrives on time.  :D

-Thomas
Title: Re: YAHDI (yet another hard disk image)
Post by: kobushi on August 10, 2014, 04:44:06 PM
Quote from: AnnaWu on August 10, 2014, 05:09:48 AM
Nice to see you here, kobushi. : )
Thanks. :) That reminds me, I've got some new PC-8801 roms for the MESS gang. I'll send them to you soon.

Quote from: caius on August 10, 2014, 07:09:04 AM
Thank you very much for this.I'll try to add more games through ERCVFD.
No problem. Generally you can just copy the config.sys/autoexec.bat/boot.bat files from the game folders and modify them as needed.
I tried to fix the speed issues in Hell Ogre, Wings, and Xenon 2. They're calibrated to a PC-9821Ce2 (486SX 25MHz), so they might still be too fast on other machines.
Try adjusting the /CPUWAIT and /TRAPGDCG options. CPUWAIT goes up to a maximum of 127, but TRAPGDCG doesn't have an upper limit.

PS - Arrow Gunner Ex has a built-in speed setting on the pause menu ;)
Title: Re: YAHDI (yet another hard disk image)
Post by: AnnaWu on August 10, 2014, 06:27:30 PM
QuoteThat reminds me, I've got some new PC-8801 roms for the MESS gang. I'll send them to you soon.

Sounds good. The "j80" support ROMs which are still missing. : )
Title: Re: YAHDI (yet another hard disk image)
Post by: H68k on August 11, 2014, 01:00:54 AM
Wait a minute.. There's an MDX music driver for the PC98?!

Hmm.. I guess it would be possible to play them back on a PC98 with a YM2608.. as both the YM2151 and the 2608's FM section are 4 operator a channel. but my question is.. how would they get around the 2 missing FM channels that the 2608 does not have? that the YM2151 does..
Title: Re: YAHDI (yet another hard disk image)
Post by: kobushi on August 11, 2014, 05:37:59 PM
By default, the MDX driver uses SSG channels to play back any missing FM channels, but you can make more FM channels available by installing another sound board.
If you download the full MDX driver package from the Vector library (http://www.vector.co.jp/soft/dos/art/se003454.html (http://www.vector.co.jp/soft/dos/art/se003454.html)), you can also use the MXDS.COM tool to reassign which sound device and channel is used to play back each FM part.
Title: Re: YAHDI (yet another hard disk image)
Post by: SkyeWelse on August 12, 2014, 02:14:03 AM
Kobushi, would there be a process that you know of for installing some older PC-98 games that were on multiple disks to the HDD that did not have install files included with them? Just wondering if there might be a method for getting rid of the need of having a floppy disk or FDD emulator altogether and simply control everything from the HDD itself. I would imagine that saving games to Userdisks may still require a disk, but perhaps even that could be done virtually as well. I know that least in the MSX scene, the continued evolution of MSX-Dos, Nextor has a new version coming out that would allow for a virtual disk to be used so that you can read and write to it.

-Thomas
Title: Re: YAHDI (yet another hard disk image)
Post by: caius on August 12, 2014, 05:54:36 AM
Quote from: SkyeWelse on August 12, 2014, 02:14:03 AM
Kobushi, would there be a process that you know of for installing some older PC-98 games that were on multiple disks to the HDD that did not have install files included with them? Just wondering if there might be a method for getting rid of the need of having a floppy disk or FDD emulator altogether and simply control everything from the HDD itself. I would imagine that saving games to Userdisks may still require a disk, but perhaps even that could be done virtually as well. I know that least in the MSX scene, the continued evolution of MSX-Dos, Nextor has a new version coming out that would allow for a virtual disk to be used so that you can read and write to it.

-Thomas

Yes, there is a process and it's a trial and error one.Like X68000 you have to extract all the contents of disk images into a folder and then create a batch files that executes system and game specific files.It may not work for all games but most of time it does.
Title: Re: YAHDI (yet another hard disk image)
Post by: SkyeWelse on August 12, 2014, 06:13:04 AM
Quote from: caius on August 12, 2014, 05:54:36 AM
Yes, there is a process and it's a trial and error one.Like X68000 you have to extract all the contents of disk images into a folder and then create a batch files that executes system and game specific files.It may not work for all games but most of time it does.

Hi Caius, that's good enough for me. If I could learn the process for how it is done on a few games that do work (Is there a previous thread about that or could one be started?) I'd definitely be willing to try putting together some disk based games that I think would be worth having on a HDD image and testing them.

-Thomas
Title: Re: YAHDI (yet another hard disk image)
Post by: caius on August 13, 2014, 01:14:29 AM
I forgot..Kobushi, can I upload your HDD image to the PC-98 NFG FTP?Thanks.
Title: Re: YAHDI (yet another hard disk image)
Post by: kobushi on August 13, 2014, 10:01:02 AM
Please do! I trust NFG more than the ad-infested file hosting services.
Title: Re: YAHDI (yet another hard disk image)
Post by: RobIvy64 on August 13, 2014, 10:54:18 AM
Great work!
Title: Re: YAHDI (yet another hard disk image)
Post by: caius on August 14, 2014, 04:10:27 PM
Uploaded!You can download the Kobushi HDD image from here:

http://nfggames.com/PC98/HDDimages/PC98HDD.7z (http://nfggames.com/PC98/HDDimages/PC98HDD.7z)
Title: Re: YAHDI (yet another hard disk image)
Post by: kobushi on August 14, 2014, 05:59:53 PM
Thanks caius, I replaced the links in the original post.
Title: Re: YAHDI (yet another hard disk image)
Post by: H68k on August 15, 2014, 04:12:54 AM
Well.. interesting use of the PSG channels of the YM2608 to make up for the missing FM channels it doesn't have over the YM2151, though as I expected.. it didn't sound very good. :)

You can get it to sound a little better if you add a soundboard with a YM2203 and set the extra FM channels to use it in MSDP in the PC98 emulator of your choice (if it supports it) but there where a few times when it sound off.. or not quite right. I guess it's something to do with the YM2203 only being a 2 OP per channel chip versus the 4 OP of the YM 2608 and 2151.
Title: Re: YAHDI (yet another hard disk image)
Post by: kobushi on August 17, 2014, 12:14:41 PM
It's better to use two YM2608 sources ;)
But you're right, it won't sound exactly the same as an X68000, because the detune function of the YM2151 also has to be emulated by the MDX driver.

The FMP/PMD songs on the other hand are designed specifically for the PC-9801. 6FM+3SSG+6 rhythm ADPCM+multiple PCM channels is nothing to sneeze at. There's a lot of interesting music written for those drivers.
Title: Re: YAHDI (yet another hard disk image)
Post by: caius on August 18, 2014, 05:41:24 AM
Quote from: kobushi on August 14, 2014, 05:59:53 PM
Thanks caius, I replaced the links in the original post.

Thanks to you!
Title: Re: YAHDI (yet another hard disk image)
Post by: H68k on August 20, 2014, 04:50:44 AM
QuoteIt's better to use two YM2608 sources ;)
But you're right, it won't sound exactly the same as an X68000, because the detune function of the YM2151 also has to be emulated by the MDX driver.

The FMP/PMD songs on the other hand are designed specifically for the PC-9801. 6FM+3SSG+6 rhythm ADPCM+multiple PCM channels is nothing to sneeze at. There's a lot of interesting music written for those drivers.


I don't suppose you know of a PC98 emulator that will allow dual 86 sound boards? I'd like to give the dual YM2608 thing ago, if it's possible.

The YM2151 also has a noise feature, witch is used by some MDX music and some X68k games to mimic the sound of a PSG. I guess you could use the the PSG channels of the 2608 to do the same. if the music driver was "smart" enough to work it it or had a feature to use an external config file to pre configure it in advance.

Yes.. the 8 channel PCM chip of the 86 soundboard is also rather nifty.. makes me wish the X68k had something similar..  (There are drivers that give you 8 virtual ADPCM channels all done via software mixing.. but it can be CPU intensive on older, slower models)

I've managed to find a zip file with a bunch of music files for the FMD and PMD music drivers. I'll give these a listen when I get some free time.
Title: Re: YAHDI (yet another hard disk image)
Post by: kobushi on August 21, 2014, 08:19:00 PM
You can try the np2s emulator for dual-2608 sound. Binaries are available here, under 私家版ねこープロジェクトII: http://www.vesta.dti.ne.jp/~tsato/soft_s98v3.html (http://www.vesta.dti.ne.jp/~tsato/soft_s98v3.html)
The binaries are dated from 2011, but it looks like the author has made some updates to the source code on github: https://github.com/rururutan/np2s (https://github.com/rururutan/np2s)

I haven't compiled the latest source code, but the 2011 binaries are apparently using an older CPU core, and I can't get EMS memory working on them, so the hard drive image in this thread will crash. To fix this, you'll need to edit the config.sys to only load himem.sys, and REM out emm386.exe and all the VEM486-related stuff.

After that, set the sampling rate to 44kHz and the sound device to Otomi x 2, and then load the mdx driver (type MXDRV -M32 on the command line). It is not necessary to load a separate PCM driver. Now you should have playback on all 8 FM channels.

Besides Gradius and Genocide, the MDX sampler folder has some 8FM+8PCM tunes which are pretty cool.
Title: Re: YAHDI (yet another hard disk image)
Post by: AnnaWu on August 21, 2014, 08:46:46 PM
Some other pages for NP2 sources/binaries.

http://turboz.to/sandbox/ (http://turboz.to/sandbox/)
https://amethyst.yui.ne.jp/svn/pc98/ (https://amethyst.yui.ne.jp/svn/pc98/)
Title: Re: YAHDI (yet another hard disk image)
Post by: H68k on August 22, 2014, 06:26:40 AM
Hmm.. after having a rummage through that github repository. I could not find any MAKE or Visual Studio project files.
the author must be using he's own preconfigured compiler suite to take care of the compiling of it.

I only have a rarely used copy of VS 2k8 on my daily workhorse box and some Linux distro that runs in a VM on my other PC for make file GCC stuff.

I could try and make a solution file with VS 2k8.. but it would take a few hours of trial and error and may not compile at all in the end.     
Title: Re: YAHDI (yet another hard disk image)
Post by: AnnaWu on August 22, 2014, 04:45:31 PM
@kobushi

Check the "np2-windows-170822.zip"
http://turboz.to/sandbox/ (http://turboz.to/sandbox/)   
This version support the AVI recording.
Select Other -> Wave record * while pressing SHIFT key *
ffdshow video codec tested and it is working > NP2_0000.avi

PS: Any news about the PC-8801 roms? :)
Title: Re: YAHDI (yet another hard disk image)
Post by: kobushi on August 25, 2014, 10:34:52 PM
Quote from: AnnaWu on August 22, 2014, 04:45:31 PM
Check the "np2-windows-170822.zip"
http://turboz.to/sandbox/ (http://turboz.to/sandbox/)   
This version support the AVI recording.
Select Other -> Wave record * while pressing SHIFT key *
ffdshow video codec tested and it is working > NP2_0000.avi
Neat!  :)
Title: Re: YAHDI (yet another hard disk image)
Post by: caius on September 04, 2014, 07:26:16 AM
Finally today I  received from Japan (after two exact months of waiting) my PC-9821AP2/U8W, it came with a keyboard and  45 MB of extended RAM (it has also a SCSI and a LAN card).All was working fine except for the HDD, a Western Digital Caviar 2340 (341.2 MB of capacity). machine doesn't boot from it netiher I was able to create an image of it using a IDE to USB converter, probably it's faulty.Anyway I replaced it with a IDE to CF or a IDE to SD and I was able to restore the Kobushi HDD image, most of software works except for some games.Now I have only a issue : when I power ON the machine I got a black screen and nothing more, I have to press the RESET switch to initialize it and  boot from HDD or FDD.Does anyone know why?

P.S.
I also bought the needed parts to make this keypad:

http://www.geocities.jp/wp_gopher/pc/98/keypad.html (http://www.geocities.jp/wp_gopher/pc/98/keypad.html)

but I have a doubt : how to map the 'Z' and 'X' key (which are needed in all games as action buttons) to the PC-Engine pad if the ELECOM 10 keyboard doesn't have it???
Title: Re: YAHDI (yet another hard disk image)
Post by: kobushi on September 05, 2014, 10:57:38 AM
Quote from: caius on September 04, 2014, 07:26:16 AM
Now I have only a issue : when I power ON the machine I got a black screen and nothing more, I have to press the RESET switch to initialize it and  boot from HDD or FDD.Does anyone know why?
Is the power supply stable? The A Mate power supply is failure-prone, especially the version manufactured by Sanken Electric.

Quote from: AnnaWu on August 22, 2014, 04:45:31 PM
PS: Any news about the PC-8801 roms? :)
I PM'd you last week. Did you get them?
Title: Re: YAHDI (yet another hard disk image)
Post by: AnnaWu on September 05, 2014, 06:58:42 PM
My apologies for the delay, kobushi.
I was very busy the last days ...
Thanks a lot for the ROMs, I got it! :)

Unfortunately, I am still looking for the real "2hdif.rom" dump (98DO) to use 1MB floppy disk images on MESS or ePC-98DO.
Title: Re: YAHDI (yet another hard disk image)
Post by: SkyeWelse on September 06, 2014, 05:35:48 AM
Now that both of my CF cards have come in, at long last I've finally gotten an opportunity to play around with both Harddrive images including the Dos 3.3D version. Thank you very much for putting this together Kobushi. I definitely have not mastered everything I want to know how to do with these images yet, but I've made some very good progress so far in regards to adding games and getting them to work properly on the HD. What makes this YAHDI image so nice is the ability to swap it in and out of a regular PC for transferring files. I wish the same could be done for the Dos 3.3D version as well, but I suppose because it's such an older format that it cannot be read by today's computers. If there is a work around for that, I'd love to know how.

I was able to get all of the games to work on my Ce2 that were already installed on this YAHDI image I especially like the Touhou games so far as they are very unique and Night Slave, which reminds me a lot of Assault Suits Valken/Cybernator and Metal Warriors (SNES)) which I loved playing in my younger years.

Caius, I too originally had some issues regarding getting some of the games to work correctly such as Night Slave which wanted to run the game in a strange resolution x 3, yes, 3 different screens on the same monitor... It wasn't until I tried running the boot.com file for the game Rusty (A very cool looking Castlevania clone) that it told me an error message that said to try running it with Dip Switch 2, 2-8 turned off. I believe the most important of these switches being changing 5Mhz to 2.5Mhz (http://retro-type.com/PC98/System-Menu/pc-9821-ce2-system-menu-sub-03.jpg) as I believe that most games require this setting to be 2.5Mhz. Once I did this changing all of my Dip Switch 2 switches 2-8 to off, I was able to run all of these games including Rusty.

Next I really appreciate the amount of tools that you put into this YAHDI image, Kobushi. I had some trouble at first getting the PC-98DO Dump disk that Anna provided to me when converted to Mahalito format to write correctly to a 2HD Formatted 5.25" Floppy Diskette. I would run the following command:

mahalito e dodump b: (which in my case was my 5.25" FDD drive hooked to my 1MZ-FDD C-BUS card directly using a Floppy Cable. It seemed to always fail around the 30% mark, so I tried the other drive and had just a bit more success with that drive, but when I decided to disconnect the fdd cable from the 1MZ-FDD CBUS card and instead connect the drive that was working better directly to the FDD slot at the top of the CBUS card module where my normal 3.5" floppy drives would plug in, I was finally able to write the Mahalito image with 100%. I then attempted to start the dumping process for the PC-98DO.

Anna, I believe I have now successfully dumped the Bios files for the PC-98DO. However, I'm not entirely sure if I needed to be in "88Mode" for you to be able to acquire the 88Mode roms. If you take a look at this diagram here  (http://retro-type.com/PC98/PC98DO_with_Dip_Switch_Cover.jpg) you'll see that there are two main dip switches on the left before you get to the trip of smaller dip switches on the right. I'm not real sure what this first dip switch does, but the second one from what I can determine will run a game in 98Mode when this second switch is flipped to the left, and in 88Mode when flipped to the right. I was able to dump two sets of files for 98Mode both when the first dip switch was in the left position and a second set for when this first dip switch was in the right position. No idea if that changes anything, but you'll basically be getting dumps from the following:

Switch 1 -------------- Switch 2
LEFT       --------------  LEFT (98 MODE) (http://retro-type.com/PC98/files/PC98DODUMP/PC98DO_DUMP_98MODE_SW_LEFT.zip)
RIGHT     --------------  LEFT (98 MODE) (http://retro-type.com/PC98/files/PC98DODUMP/PC98DO_DUMP_98MODE_SW_RIGHT.zip)

Attempting to run this dump disk in the PC98DO when Switch 2 flipped Right into (88 MODE) will not do anything. It'll just try to read the disk and hang.

Hopefully one of these sets will contain what you needed.

I also tried installing Popful Mail on the 3.3D Dos 128 MB CF Image copied to CF from original 5.25" disks and was able to successfully install it without any issues. I could then launch the game which brought up a system menu to select various items, however I was unable to actually start the game unless the game detected that I had the "Program Disk" inserted into the FDD drive slot. I wonder, is this for Copy Protection reasons that the game would require this disk to be inserted and if it is, what can we do to circumvent this procedure since not only is it a larger pain to deal with having an actual floppy disk on hand, but these original floppy disks will not last forever... Is there something that can be edited in one of the launch files or copied over from the Program File disk? I'm sure many other games are like this too.

I also attempted to try and see if I could create an AIZA HD folder containing a System Disk and 3 Scenario Disks worth of file content all in one folder and I can launch AIZA.exe without any issues, but once the game starts it's still looking for the first scenario disk and freezes. Caius said there might be a way or a process for making some disk based games into games that can be run from the harddrive with edits to autoexec.bat files and such, but I'd love to know what this process might be for some games that folks have gotten to work in the past so I can try my hand at getting AIZA, Falcom games in particular and the Xak series games to work directly from the Harddrive only if possible.

My next tests will be to see if I can use this Malahito tool to now copy an entire disk image from the 5.25" floppy over to my Harddrive.

Thanks again for sharing this image Kobushi!

Edit: Also Caius, regarding your post about creating a custom controller. Not sure if you saw my post here (http://nfggames.com/forum2/index.php?topic=5434.msg37266#msg37266) but this little programmable Joypad seems to be perfect since you can map any keys you want. When my friend Xalphenos gets his PC-98Ce I'm planning on mailing him this controller so that he can hopefully reproduce it. 

-Thomas

Title: Re: YAHDI (yet another hard disk image)
Post by: AnnaWu on September 06, 2014, 08:05:32 AM
Thanks a lot, SkyeWelse for your great help!   :-*
It seems, both (SW_LEFT/SW_RIGHT) are working for me.
I am now to able to load and run PC98 1MB FDD images on ePC-98DO.
Rude Breaker, Marble Madness and Dungeon Master tested.

Anna
Title: Re: YAHDI (yet another hard disk image)
Post by: SkyeWelse on September 06, 2014, 08:30:07 AM
(http://retro-type.com/PC98/files/PC98DODUMP/PC98DO.gif)

Awesome. Great to hear!  :D

-Thomas
Title: Re: YAHDI (yet another hard disk image)
Post by: kobushi on September 06, 2014, 09:26:13 AM
Quote from: SkyeWelse on September 06, 2014, 05:35:48 AM
If you take a look at this diagram here  (http://retro-type.com/PC98/PC98DO_with_Dip_Switch_Cover.jpg) you'll see that there are two main dip switches on the left before you get to the trip of smaller dip switches on the right. I'm not real sure what this first dip switch does, but the second one from what I can determine will run a game in 98Mode when this second switch is flipped to the left, and in 88Mode when flipped to the right.
The switch on the left controls the processor speed. It switches between 8MHz and 4MHz in PC88 mode, and between 10MHz and 8MHz in PC98 mode.

Thanks for dumping the DO roms! These are very useful.
Title: Re: YAHDI (yet another hard disk image)
Post by: caius on September 06, 2014, 04:46:49 PM
Quote from: kobushi on September 05, 2014, 10:57:38 AM

Is the power supply stable? The A Mate power supply is failure-prone, especially the version manufactured by Sanken Electric.

Hi, I'd say my PSU (manifactured by TAMURA, model PU729) is good since, as I said, system works well once you do a reset.The issue is only present when you power up the machine  fan spins but screen reamins black.Is there any BIOS settings I can change?I also replaced the original VL2330 battery with a CR2025 ( not rechargeable) but nothing to do.

P.S.
Are all BIOS settings documented?Sadly my japanese is bad...
Besides, I presume my PC-9821AP2/U8W has a  i486DX2(66MHz) CPU.Can I use, instead, a DX4ODP100 like this:

http://page10.auctions.yahoo.co.jp/jp/auction/m126890483 (http://page10.auctions.yahoo.co.jp/jp/auction/m126890483)
Title: Re: YAHDI (yet another hard disk image)
Post by: caius on September 06, 2014, 05:25:19 PM
Quote from: SkyeWelse on September 06, 2014, 05:35:48 AM


Caius, I too originally had some issues regarding getting some of the games to work correctly such as Night Slave which wanted to run the game in a strange resolution x 3, yes, 3 different screens on the same monitor... It wasn't until I tried running the boot.com file for the game Rusty (A very cool looking Castlevania clone) that it told me an error message that said to try running it with Dip Switch 2, 2-8 turned off. I believe the most important of these switches being changing 5Mhz to 2.5Mhz (http://retro-type.com/PC98/System-Menu/pc-9821-ce2-system-menu-sub-03.jpg) as I believe that most games require this setting to be 2.5Mhz. Once I did this changing all of my Dip Switch 2 switches 2-8 to off, I was able to run all of these games including Rusty.

Yes, indeed, it's what I have done, I changed GDC from 5MHz to 2.5MHz and now all games works (execept one or two, I have to check again)
By the way, are BIOS settings documented somewhere?

QuoteCaius said there might be a way or a process for making some disk based games into games that can be run from the harddrive with edits to autoexec.bat files and such, but I'd love to know what this process might be for some games that folks have gotten to work in the past so I can try my hand at getting AIZA, Falcom games in particular and the Xak series games to work directly from the Harddrive only if possible.

Yes, I't's a trial and error process, like we do on X68000.You must extract all the files from disk images to HDD and then looking at autoexec.bat and config.sys  you have to write your custom starting batch including all the needed files and drivers.


QuoteAlso Caius, regarding your post about creating a custom controller. Not sure if you saw my post here (http://nfggames.com/forum2/index.php?topic=5434.msg37266#msg37266) but this little programmable Joypad seems to be perfect since you can map any keys you want. When my friend Xalphenos gets his PC-98Ce I'm planning on mailing him this controller so that he can hopefully reproduce it. 

Yes, I 've seen your post , I'd like to get this programmable joypad but sadly is very rare to find.I found there are similar devices, also almost impossible to get since we are talking of old stuff:

http://j02.nobody.jp/jto98/desk_joystick/jcb98.htm (http://j02.nobody.jp/jto98/desk_joystick/jcb98.htm)

http://j02.nobody.jp/jto98/desk_joystick/jcad2.htm (http://j02.nobody.jp/jto98/desk_joystick/jcad2.htm)

http://j02.nobody.jp/jto98/desk_joystick/jscb.htm (http://j02.nobody.jp/jto98/desk_joystick/jscb.htm)

http://j02.nobody.jp/jto98/desk_joystick/spgi.htm (http://j02.nobody.jp/jto98/desk_joystick/spgi.htm)

I'd ike to try the PC-Engine keypad modification as showed here:

http://www.geocities.jp/wp_gopher/pc/98/keypad.html (http://www.geocities.jp/wp_gopher/pc/98/keypad.html)

but there are no explanations on site on how to map button to 'Z' and 'X' keys.

Title: Re: YAHDI (yet another hard disk image)
Post by: AnnaWu on September 06, 2014, 06:17:12 PM
Quote from: kobushi on August 25, 2014, 10:34:52 PM
Quote from: AnnaWu on August 22, 2014, 04:45:31 PM
Check the "np2-windows-170822.zip"
http://turboz.to/sandbox/ (http://turboz.to/sandbox/)   
This version support the AVI recording.
Select Other -> Wave record * while pressing SHIFT key *
ffdshow video codec tested and it is working > NP2_0000.avi
Neat!  :)

YUI recommend to use the MSU-SCLC codec for old-school games.
http://www.compression.ru/video/ls-codec/screen_capture_codec_en.html (http://www.compression.ru/video/ls-codec/screen_capture_codec_en.html)
Unfortunately, VLC doesn't support the "SCLS" audio- or videoformat.
The KBMedia Player support it but I prefer to use VLC.
Title: Re: YAHDI (yet another hard disk image)
Post by: caius on September 07, 2014, 08:22:09 AM
I found these pages, they explains how to connect a joypad DB9 male connector directly to the YM2608 (or YM2203) chip on PC-9821 with built-in sound

http://www.amy.hi-ho.ne.jp/nakajima-jr/com/appendix/pin.htm (http://www.amy.hi-ho.ne.jp/nakajima-jr/com/appendix/pin.htm)

http://homepage1.nifty.com/junke/pc/msx_joy/ (http://homepage1.nifty.com/junke/pc/msx_joy/)

http://www.geocities.co.jp/Broadway/5004/pc98x1.htm (http://www.geocities.co.jp/Broadway/5004/pc98x1.htm)

I'm wondering how is it safe this kind of modification (to connect wires directly to the chip).It would be interesting to  check how connection to joystick port is made in a PC-9801-86 card (I can see from pictures the presence of some LC filters) 
Title: Re: YAHDI (yet another hard disk image)
Post by: SkyeWelse on September 07, 2014, 12:36:13 PM
Quote from: caius on September 06, 2014, 05:25:19 PM
Yes, indeed, it's wat I have done, I changed GDC from 5MHz to 2.5MHz and now all games works (execept one or two, I have to check again)
By the way, are BIOS settings documented somewhere?

QuoteCaius said there might be a way or a process for making some disk based games into games that can be run from the harddrive with edits to autoexec.bat files and such, but I'd love to know what this process might be for some games that folks have gotten to work in the past so I can try my hand at getting AIZA, Falcom games in particular and the Xak series games to work directly from the Harddrive only if possible.

Yes, I't's a trial and error process, like we do on X68000.You must extract all the files from disk images to HDD and then looking at autoexec.bat and config.sys  you have to write your custom starting batch including all the needed files and drivers.

Hi Caius,

Not sure if they are documented per se, but I've taken photos of all of the main menu/submenus (http://retro-type.com/PC98/System-Menu/). The brightness of the photos was pretty bad to where a lot of the text was difficult to read so I edited them in photoshop to decrease the brightness. Makes the picture quality overall darker and worse to look at but the text more legible. If there was a specific area or option you wanted to know about, I'm sure you could just ask about it here and perhaps one of us can assist with translating it or identifying what exactly it is supposed to do.

I'd be very curious to know of a few games that have already been converted to be working on a harddrive, especially if they are for PC-98 in particular, that way I could compare the disks of the game with that of the finished and tested working game installed in the HDD if you know of a few.

Thanks!

-Thomas
Title: Re: YAHDI (yet another hard disk image)
Post by: Nana on February 20, 2015, 06:33:40 PM
Hey all!

I'm trying to get my PC98 (model xb10) set up with this image, as I finally got a CF to IDE adapter to get a proper OS and some games installed on my PC9821. I haven't had enough time to properly experiment with everything yet, but upon boot, it does the memory load and then just stops. Could it be that the later win95 models are just incompatible with this image? I added a few more games to the image, but upon testing the converted nhd file in Neko Project II, it works just fine. However, I shouldn't be trying to write the nhd image to my CF hard drive, should I?

I have a dead floppy drive, so for the time being, I can't just boot to a dos floppy disk and look at the hdd, unfortunately.

I've still got some experimentation to do, but perhaps this is a common problem that someone may recognize.

Thanks for your time, and nice to meet you all.
Title: Re: YAHDI (yet another hard disk image)
Post by: kobushi on February 20, 2015, 07:39:54 PM
Hello Nana,

Try holding down Shift during bootup. This will perform a clean boot in MS-DOS 6.20. If a clean boot works, the problem is with the hard disk image. If a clean boot does not work, the problem is hardware-related.

Also check the software dipswitches just in case. Hold the Help key during bootup, and in the setup menu, make sure that SW2-6 and SW2-8 are both OFF (up).

You should NOT write the nhd file to a CF card. NHD files have a header which needs to be removed first. Using a hex editor, delete the first 512 bytes from the nhd file. For example, in XVI32, go to address 511 decimal (1FF hex), then select Edit->Delete to cursor. The first bytes of the raw, headerless file should be EB 0A 90 90. Now write the raw image using Win32DiskImager, for example.

Title: Re: YAHDI (yet another hard disk image)
Post by: Nana on March 09, 2015, 03:41:03 AM
Thanks for your help. Unfortunately, that doesn't seem to have changed much. Attempting shift + boot still doesn't bring me into dos.

SW 2-8 was set to ON before, but that's the 5mhz mode for GDC clock, which I believe this image required? I tried switching it, but that unfortunately had the same results.

So I tried switching my CF drive/adaptor to the other IDE port, but just got the lovely 'システムディスクをセットして下さい' error (AKA the same you would get if booting with no drives whatsoever).

Hmm. On said CF adaptor, the lights for power and master (just indicating that it detects my CF card) are lit up, but not the LED for activity. All the jumpers are at defaults, which makes sense. (connecting through the floppy power, so +5v, set up as master, and 'from external' power.) Here's the manual for the adapter I'm using, just for the hell of it.

http://www.sybausa.com/resource/SD-CF-IDE-A/SD-CF-IDE-A_Manual.pdf

I'm feeling my next step may just be to buy another floppy drive in hopes I can boot through that and see if I can just install over the hdd that came with this thing.

EDIT: But on the other hand, the GRPH+2 during boot trick worked, and now my monitor doesn't flash around saying 'input not supported.' That's a victory in itself!

EDIT2: And yeah, my image files are all correct. I was burning from the .img directly to begin with, but I checked just to make sure, and first bytes of my modified image were still the correct EB 0A 90 90. I switched out this image with the very original 542mb image on my CF just to make sure, but got the same result.
Title: Re: YAHDI (yet another hard disk image)
Post by: kobushi on March 09, 2015, 08:30:23 AM
The GDC clock is unrelated to your boot issue, but you always want to set the GDC clock to 2.5MHz for DOS gaming.

Have you tried setting the CF adapter to slave mode?
Title: Re: YAHDI (yet another hard disk image)
Post by: AnnaWu on March 09, 2015, 06:16:51 PM
Hello kobushi,

euee released new updates. :)

NHC Ver.0 alpha44b 2015/03/08
NHC is a tool which can convert different (virtual) hard disk image formats (PC, PC-98xx, FM-TOWNS)

http://euee.web.fc2.com/tool/nhc.html#nhc

NDZ Ver.0 alpha07 2015/03/08
NDZ is now able to detect/load FM-TOWNS (*.h0-*.h4) and PC-98xx (*.hdi/*.thd/*.nhd/*.hdd) hard disk images

http://euee.web.fc2.com/tool/ndz/ndz.html
Title: Re: YAHDI (yet another hard disk image)
Post by: Nana on March 10, 2015, 02:25:06 PM
Hmm. Yet again, that doesn't seem to have changed much.

Interestingly enough, as an experiment, I loaded up the machine with the adapter plugged in but not the CF card, and I actually got the exact same issue during boot.


I'm completely at a loss here.
Title: Re: YAHDI (yet another hard disk image)
Post by: kobushi on March 10, 2015, 07:45:36 PM
@AnnaWu
Thanks! FM Towns hdd support should be very useful.

@Nana
I don't know what else to say. I've used two different SD-IDE adapters and a CF-IDE adapter with various PC-9821 desktops and notebooks without problems. My SD-IDE adapters don't have any jumpers or master/slave options.
Make sure that the IDE pins are aligned correctly. If you have an IDE CD-ROM drive, try disconnecting it temporarily while you troubleshoot the HDD.
Title: Re: YAHDI (yet another hard disk image)
Post by: 98digger on March 10, 2015, 08:23:25 PM
Quote from: Nana on March 10, 2015, 02:25:06 PM
Hmm. Yet again, that doesn't seem to have changed much.

Interestingly enough, as an experiment, I loaded up the machine with the adapter plugged in but not the CF card, and I actually got the exact same issue during boot.


I'm completely at a loss here.

I'd say your CF card or the CF-IDE adaptor is probably dead, or the CF card you are trying to boot from may not support being used as a hard drive. Also, I probably should point out that when you connect the adaptor to the PC-98, you should use the IDE cable that was included with the computer. I myself tried to swap the original cable with a longer one and experienced similar problems to the ones you are now having.

What type of CF-IDE adaptor and CF card are you using?
Title: Re: YAHDI (yet another hard disk image)
Post by: SkyeWelse on March 21, 2015, 03:44:16 AM
Hi Nana,

I've got two different versions of CF adapters hooked to my PC-98Ce2. One is connected to the front IDE bus and the second is connected to the IDE bus meant for the CD-Rom currently. I have heard that some PC-98 machines may have their voltage wired differently so that the 12v and 5v might not be the same as what you might see in a modern day PC. Fortunately in my case, for the Ce2, my voltage for the IDE mini-molex power cable is not reversed. Though, I did test eveything using a multi-meter when the system was turned on just to be sure I knew which was which. In most cases I've heard, though another way of testing this is to see if your CF card still works after having hooked it up via the adapter to your PC-98 machine. If the CF card hasn't been completely fried, then you should still be able to talk to it using a CF reader to USB adapter in your PC. Kobushi's YAHDI image will let you view the contents of the CF Card's image, so if you are not seeing anything when hooking it back up to your PC, there's a good change that voltage being reversed could be the problem.

Ruling out voltage, what Kobushi said about checking your Jumper switches on the CF Adapter and that the IDE pins are correctly aligned with the IDE cable, that would be the next troubleshooting steps.

I don't have as fancy a CF card adapter as the one you show in your manual since it appears that you actually have two slots available for CF cards to be used. That in itself could be problematic if you didn't have the Jumpers configured correctly.

From my CF Card reader which doesn't have as many jumpers as yours does, I have mine set to Master/Slave, where the other option I could choose (but it probably wouldn't work) can be set to Slave/Master. I'm not 100% sure, but I think my internal CF Card Adapter is also set to Master/Slave as well. I have that tied to Kobushi's Dos 3.3. image for playing older games. When I boot up the Ce2, it immediately asks me which partition I would like to boot from.  From your manual of your CF Card reader, it looks like you'd want to have JP1 set to (1-2), JP2 set to (1-2) and JP3 set to (1-2).

Next thing to test is your IDE connection. Yes, the IDE cable should have a groove on it that "should" match up with the groove in the casing of the IDE pin connector on the CF Card Adapter. "Should"... But in my case, one of my CF Card readers has this fit into the groove like it should and it works fine. The other CF card reader doesn't and requires that the IDE cable be inserted in reverse. As there is no groove for it to fit in, I have to "make it fit" and really jam in in there. So that could be the problem if you've ruled out voltage and your CF still works, and your jumpers are set correctly. Give that a shot and see if you are able to get the CF card to load.

I'd also recommend doing a clean boot like Kobushi recommended! : )

Sorry I haven't been around as much everyone. I tend to jump from project to project, and currently I'm working on an MSX game, and opening a new Romhacking/Translation forum where we plan to look at some Falcom games left untranslated and perhaps some PC-98 stuff as well like Brandish 2 Renewal and AIZA: New Generation. We recently more or less finished a translation for the PSP game called Nayuta no Kiseki.

Anyhow best of luck Nana and nice to meet you as well. I think I posted on the Tokugawa forums awhile back about your Floppy Drive btw.

-Thomas
Title: Re: YAHDI (yet another hard disk image)
Post by: kobushi on March 21, 2015, 08:46:59 AM
Quote from: SkyeWelse on March 21, 2015, 03:44:16 AM
We recently more or less finished a translation for the PSP game called Nayuta no Kiseki.
Nice!
Title: Re: YAHDI (yet another hard disk image)
Post by: Pasokon Deacon on August 30, 2015, 02:41:22 PM
I recently got YAHDI working and want to convert BMP/PNG screenshots to .mag, but so far I'm getting errors using ddgazou (http://www.vector.co.jp/soft/dl/win95/art/se242146.html). Are there essential parameters needed for the .mag file/view driver to recognize and display images?

Also, I'm not able to use Grph+VF1 because I don't know how to rebind either of the keys on my Apple Mac keyboard (running Windows 7 via Boot Camp) in Neko Project II. Are there any workarounds for this? YAHDI's very convenient even after I've been using my own HDIs for a while, so getting the most usability from this would be great.
Title: Re: YAHDI (yet another hard disk image)
Post by: SkyeWelse on September 03, 2015, 05:38:40 PM
I've not had much luck with ddgazou either, but mainly because I wasn't able to get it to display anything but random garbage characters instead of Japanese, so I was just clicking blindly. There may be an easier windows program but I've found that this simple program called BMP2MAG (http://www.vector.co.jp/soft/cmt/dos/art/se005446.html) run from command line on a PC-98 or inside an emulator seems to work just fine. Just make sure that your image size is 640x400 or if you want it to be a larger-scrolling image, make it something like 640x800 and it will load from top to bottom. I was able to edit an existing converted MAG file inside of photoshop and have it saved back out as a 8-bit bitmap and it seemed to work fine with the exception of there being a small hiccup when viewing the taller image with scrolling. It's probably a Photoshop program as that program is notorious for adding extra junk in the file. It's especially bad with transparencies. I hate using it, mainly because it's extremely counter-intuitive to what I'm already used to with PS, but GIMP does work a lot better for editing 8-bit BMPs and not messing with the color data too much.

As for the GRAPH+VF1 keys, not sure on that one. There is a Soft Keyboard that you can use and select various options from when LEFT SHIFT is pressed, and usually entry isn't shown on the fly but will appear when you click back to the viewer pane, however I have no idea how to hold down a combination of keys using that soft keyboard. I think I read somewhere that using NUM KEY if it exists on your keyboard in conjunction with other function keys, perhaps you can get it to work. NUM KEY is supposed to allow access to VF1-VF5 if you didn't have those keys available.

-Thomas


Title: Re: YAHDI (yet another hard disk image)
Post by: Pasokon Deacon on September 04, 2015, 06:41:13 AM
BMP2MAG works great! Sadly neither ddgazou or G・こんばーちゃ♪ 2.04 from Vector do 4-bit conversion to BMP or good MAG conversion (the latter processes them at the file level, but mag.exe will display them with incorrect color depth and resolution). This command-line app only wants 4-bit color bitmaps (and x dimensions in multiples of 4), so I've gotten a plug-in for paint.NET that will let me save edited images at this color depth; I can easily automate screenshot conversions via BPP decrease in IrfanView.

I mentioned not being able to use Grph hotkeys mainly from my suspicion that MAG conversion of screenshots taken with IrfanView wasn't going to work, but the above tool makes things simple. Thank you!
Title: Re: YAHDI (yet another hard disk image)
Post by: ashrion on December 05, 2015, 03:55:50 AM
image work fantastic in my new ce and model s2 two new pc9821 arrival, ide-compac flash
thanks
one link translate options bios? please, and explication all options? thanks
Title: Re: YAHDI (yet another hard disk image)
Post by: SkyeWelse on December 05, 2015, 06:18:31 PM
Good to see another PC-98 hardware owner join the scene. I own a Ce2, so the Bios between mine and yours should be quite similar.

Not sure if a translation has been made already of the BIOS options, but if there hasn't been one I can create one with screenshots sometime. My Japanese isn't great, but it should be enough to give you a good understanding of the available options at least. Depending on the machine however, the BIOS options may be different.

These are what mine look like by the way if you wanted to compare with your Ce Bios options.

Main Menu Options:
http://retro-type.com/PC98/System-Menu/pc-9821-ce2-system-menu-main.jpg
http://retro-type.com/PC98/System-Menu/pc-9821-ce2-system-menu-main-02.jpg
http://retro-type.com/PC98/System-Menu/pc-9821-ce2-system-menu-main-03.jpg
http://retro-type.com/PC98/System-Menu/pc-9821-ce2-system-menu-main-04.jpg
http://retro-type.com/PC98/System-Menu/pc-9821-ce2-system-menu-main-05.jpg
http://retro-type.com/PC98/System-Menu/pc-9821-ce2-system-menu-main-06.jpg

Sub Menu Options:
http://retro-type.com/PC98/System-Menu/pc-9821-ce2-system-menu-01.jpg
http://retro-type.com/PC98/System-Menu/pc-9821-ce2-system-menu-sub-02.jpg
http://retro-type.com/PC98/System-Menu/pc-9821-ce2-system-menu-sub-03.jpg
http://retro-type.com/PC98/System-Menu/pc-9821-ce2-system-menu-sub-04.jpg
http://retro-type.com/PC98/System-Menu/pc-9821-ce2-system-menu-sub-05.jpg
http://retro-type.com/PC98/System-Menu/pc-9821-ce2-system-menu-sub-06.jpg

Edit:
I've started the process of translating this. It may take a little bit due to other projects I currently have on my plate, but expect to see something like this:
(http://retro-type.com/PC98/bios/pc-98-bios-english-01.jpg)(http://retro-type.com/PC98/bios/pc-98-bios-english-02.jpg)

-Thomas
Title: Re: YAHDI (yet another hard disk image)
Post by: ashrion on January 28, 2016, 07:12:42 PM
thanks
Title: Re: YAHDI (yet another hard disk image)
Post by: Koishi on April 03, 2016, 09:46:05 AM
I can't get it to work, can't convert it. Can someone just send me over an HDI file that works? Delete all the games that aren't Touhou, not interested in anything that isn't touhou.
Title: Re: YAHDI (yet another hard disk image)
Post by: Koishi on April 04, 2016, 03:33:55 AM
Sorry to double post, but I tried to get it working on my Windows XP. I can't get it to run, when I mounted it on F: it's only a removable disk, and nothing comes up. I tried it with some other mounters, and Gizmo just re-formatted it, which erased everything on it. How do I get it working on XP? I want to play Touhou! >:(
Title: Re: YAHDI (yet another hard disk image)
Post by: kamiboy on October 25, 2016, 12:27:23 AM
Seems I cannot get HSB to work for the life of me. It appears to hang when it should be rebooting with the config from a directory. No error messages or anything either, so I am at a loss as to what to do.

Any advice?
Title: Re: YAHDI (yet another hard disk image)
Post by: kobushi on October 29, 2016, 08:18:24 AM
Let's say you have a game installed to A:\kamiboy, and the directory contains a custom config.sys and autoexec.bat file you want to use.
In this case, type HSB A:KAMIBOY\
The important thing is don't put a backslash after A:, but do put a backslash at the end.
Title: Re: YAHDI (yet another hard disk image)
Post by: kamiboy on October 29, 2016, 05:59:21 PM
I know hot to use the tool properly. Trouble is it just don't work. Seems to be incompatibility issues with my machine.
Title: Re: YAHDI (yet another hard disk image)
Post by: kobushi on October 29, 2016, 07:38:39 PM
In that case, you might try modifying the HSB device settings in your main config.sys. The HSB line goes at the very top, before everything else.
Title: Re: YAHDI (yet another hard disk image)
Post by: RetroPCfan on November 22, 2016, 10:58:36 AM
Hi guys! Don't know why but default Yahdi HDD image never worked for me on PC-9801 , i guess that's because of scsi hdd interface and maybe a special formatting algorithm or something, 9801 scsi hdd images aren't windows-readable at all. I tried it on several 9801 models and got black screens and nothing else. Anyway i figured out how to boot Yahdi on PC-9801FA . Just have to format hdd/cf-card on your 9801 under dos (i prefer dos 6.2) and after that copy all Yahdi files on freshly formatted hdd and that's all! This should work on any 9801 which meet the minimum hardware requirements. Hope this will help to any other 9801 hardware owner out there! 

But anyway i have a problem - when i listen to music and open msdp or fmdsp player then sound becomes stuttering and completely unlistenable especially on tracks which using ppz8, without players everything is fine and is on fullspeed. Also all music sounds just fine on my 9821na12 laptop with fmdsp or whatever (not surprised there are mighty pentium 120mhz inside!))) !  Is my 9801 cpu too weak for all those cute visual players? My pc config is : PC-9801FA with Buffalo HFA-16Q 486dx2 64mhz cpu upgrade, BA34 8mb memory board , 9801-86 sound board in C-Bus slot1 , scsi ,roland midi and Ga-drv/4 gfx card. Thanks in advance for any help ! )
Title: Re: YAHDI (yet another hard disk image)
Post by: SkyeWelse on December 05, 2016, 02:45:16 PM
Did you ever replace the capacitors in your PC-9801FA? Just before recapping my PC-9821Ce2, everything had been working fine with running games and playing music via MSDP, but then I stared noticing that the music would just stop playing right and make a terrible sound. Shortly after, the CF card would have a difficult time loading DOS, if it loaded it all. I replaced all the caps and it fixed the problem. Also, are you able to get any OPNA sound out of your games using your PC-9801-86 CBUS? I think the Farland Story games are a good test since you can switch between FM, 86 and MIDI in the soundtest. I'm wondering if perhaps there's some kind of BIOS dip switch setting that you need to do to enable the PC-9801-86 correctly.

-Thomas
Title: Re: YAHDI (yet another hard disk image)
Post by: RetroPCfan on December 15, 2016, 08:52:40 AM
Yes all caps on FA mobo and anywhere else were replaced as my 9801FA was a real junk :) Anyway i dont think it's a capacitor problem , i never had any sound issues while playing farland story's , groundseed and lots of other games so far.  By further investigation i've noticed that all fmp/pmd/mdx music sound just fine and smooth if load drivers and MSDP player from BM "audio" section. FMDSP stays laggy and stutter even in BM ... About bios settings i guess i've already tried almost if not all dip switch combinations but without any positive effect. Maybe i need a faster cpu? There are better 9801FA accelerators out there with cpu's somewhat equal to Pentium 75+. Anyway i feel happy with msdp , everything works just fine in BM but of course it would be perfect if fmdsp would work just as fine!
Title: Re: YAHDI (yet another hard disk image)
Post by: Laevateinn on June 13, 2017, 03:28:35 PM
Does anyone know if there's something special you need to do to install an image using Mac/Linux?

I have a PC98 Ce2 and am trying to use a CF Disk on it. I tried copying the image to the disk using
dd if=./PC98-542MB.img of=/dev/disk3 bs=1m

But when I install the disk, after it checks the memory I just see a black screen for a few minutes until it asks me to set a system disk.

I have a bunch of floppy games but they all give me a system disk error as well.
Title: Re: YAHDI (yet another hard disk image)
Post by: famiac on September 04, 2017, 12:26:54 PM
Copying the file over is not the same as writing an image to disk. Use a program like winimage to do that for you.
Title: Re: YAHDI (yet another hard disk image)
Post by: papa_november on February 21, 2018, 02:26:31 PM
How would I go about making the image bigger, e.g. for machines that can handle 2GB drives? Could I just go into FORMAT and add another partition?
Title: Re: YAHDI (yet another hard disk image)
Post by: dos on June 03, 2019, 06:45:51 PM
Thought I'd share my customized YAHDI image, when I got my PC98 I was looking for something similar to the X68000 HDD images which have a huge variety of games to explore, but could not find much. I went through the library and added most of what's playable for non-japanese speakers and is at least halfway decent or at least interesting. There aren't any western games on this because I personally would rather play the originals on PC/AT setups or Amiga or whatever and feel like they just waste space here. Included are the recent Dead of the Brain and Cybernetic High School translations. A few other translations are included, including Touhou.

This image boots straight to FILMTN, everything is in the games directory. Everything has a !start.bat. Everything has been tested and confirmed working on a PC9821AS and in neko21fmgen. A small minority of games (like Thexder) require that you have a 24khz monitor and set your CPU speed to LOW. Fair warning, there is a shitload of pornographic or otherwise objectionable content here, it's inescapable on this system. 

Headerless .img for writing to a CF/SD card, use

nhdgen.exe /auto /merge

To generate a nhd for emulators.

https://mega.nz/#!98AW3YSQ!ESYg_t_F4hNarg89zQZD3lG62G6jwB9CiDgd-d0rhGg

A big thanks to Kobushi for providing the original image to make this possible, and to various people on the PC98 discord who helped when I had questions.

Title: Re: YAHDI (yet another hard disk image)
Post by: LowDefAl on June 07, 2019, 05:40:51 AM
Thanks for your efforts dos. My keyboard, mouse and SxSI riser for my DA has just passed customs so this is nicely timed. Now I don't need to write any disks in advance and can get right onto DOTB.  8)
Title: Re: YAHDI (yet another hard disk image)
Post by: dos on June 08, 2019, 08:16:18 AM
Quote from: LowDefAl on June 07, 2019, 05:40:51 AM
Thanks for your efforts dos. My keyboard, mouse and SxSI riser for my DA has just passed customs so this is nicely timed. Now I don't need to write any disks in advance and can get right onto DOTB.  8)

No problem, I'll be uploading an updated version with more stuff near the end of this weekend so stay tuned
Title: Re: YAHDI (yet another hard disk image)
Post by: dasfool on June 15, 2019, 06:41:36 PM
Quote from: dos on June 08, 2019, 08:16:18 AM
No problem, I'll be uploading an updated version with more stuff near the end of this weekend so stay tuned
Looking forward to it, dos!
Title: Re: YAHDI (yet another hard disk image)
Post by: dos on June 17, 2019, 09:18:42 AM
sorry guys I have been working on it but my CF card has some problems once it get filled up a certain amount (but not full), so I can't test on real hardware, and I don't want to put out anything that I haven't confirmed to be 100% working on hardware. I have a new CF card coming, and once I confirm everything works I'll put out V2.
Title: Re: YAHDI (yet another hard disk image)
Post by: Souvlaki on August 24, 2020, 04:14:57 PM
Hello

This is my first time posting on this forum and I just want to say to kobushi, thank you for making this image. I just got it working on my 9821 As2 last night and have been having so much fun with everything in it. My dream was to have a PC-98 and this just makes it even easier and more accessible to everyone, which is awesome, the PC-98 is so underrated as it is. Major props to you guys on the forums for making this a reality!
Title: Re: YAHDI (yet another hard disk image)
Post by: tomop123 on February 26, 2021, 08:39:04 PM
Hi,
I'm trying to edit the autoexec.bat inside the YAHDI image.
Do you know what is the "save" command in the editor. I've tried what I could, but it didn't save.
Title: Re: YAHDI (yet another hard disk image)
Post by: megatron-uk on February 27, 2021, 01:06:41 AM
Quote from: tomop123 on February 26, 2021, 08:39:04 PMHi,
I'm trying to edit the autoexec.bat inside the YAHDI image.
Do you know what is the "save" command in the editor. I've tried what I could, but it didn't save.

If you're using the basic 'ed' editor that LHES starts when viewing a text file, then it's:

- Escape (to go into command mode)
- w (to 'write out')
- Then the name of the file you want to save it as
- Enter

You're probably better off copying a decent text editor in to the image. 'ed' is okay for things editing config.sys and small batch files, but it's a bit limited for anything more than that.
Title: Re: YAHDI (yet another hard disk image)
Post by: amigo-mexicano on June 13, 2021, 10:36:56 AM
Hello guys! I'm trying to use these images on a PC-9821Ct16. Only the one with bare DOS boots (PC98-128MB-DOS3), with the other HDD images I've tried: Win32DiskImager, WinImage, CF Card, SD Card, Old IDE 1GB disk drive (tested good) and results are the same, yadhi_dos and PC98-542MB images won't boot at all (Ct16 hangs at the boot screen).

Any idea if I need to do something different for this model?

Thanks!
Title: Re: YAHDI (yet another hard disk image)
Post by: amigo-mexicano on June 13, 2021, 04:16:08 PM
A little update, image version 1.5 works!

https://nfggames.com/PC98/HDDimages/PC98HDDV1_5.zip (https://nfggames.com/PC98/HDDimages/PC98HDDV1_5.zip)

I have no idea what's the difference with the other ones, but this one boots great. I'll try to copy all the games on other images to this one! :D

Recording process was the same as before, I used Win32DiskImager with a CF card, and then a CD to IDE adapter on the PC98. I ended up writing 4 CF cards in a row, to test them all, and this is the only one that booted (also tried to write hdi images trimming the header, no luck).

Well if anyone else has a Ct16, you know what to do...
Title: Re: YAHDI (yet another hard disk image)
Post by: PepAlacant on October 06, 2022, 10:12:39 PM
I would want to add my modification of the HDD image. I incluided some games separated by genres.

I simplified the image leaving MAG images and certain things. The CDROM drivers that are in the img Config.sys are for my SCSI unit, but there are the other drivers available in the TOOLS folder.

The IMG is 4GB but it's really a 580mb HDD. When you copy it into a CF don't worry about it. I'm using it in a PC-9821 Ce without a problem.

The image boots into FILMTN


I incluided

Rusty ( English )
Star Cruiser 2 ( English )
Touhou ( English ) Patched for NOTE computers and Normal ones.
Dragon Half ( Needs disk 2 in main Floppy unit in order to load from HDD )
Elm Knight ( Needs a disk 1 or 3 in the main unit in order to load from HDD )
Ningyo Tsukai 2 ( Needs a boot disk with 64kb of UMB free and more than 600kb of EMS )
Illusion City ( HDD fix )
Xak 3 ( Needs a boot disk " it can be made with disk 6 " of you can make it yourself "HIMEM.SYS and EMM386.EXE )
Magikurimento
Popfulmail ( works from Main.exe file )
Steam Hearts ( works well with NOTE computers and Canbe )
Alantia ( ERCVFD )
Star Platinium
Carat
Metal Orange
Quarth
Compile Disk Station 9,10 and 11

There are some more games that I don't remember now... but it's a nice compilation, I think. I will add it more games in the future.

So, I hope you enjoy it.

https://mega.nz/file/qcJRBQjK#I9hat9MywgijMMKBWXjHkn-9Nx-0_ipWHwZ--wPXDYM


Title: Re: YAHDI (yet another hard disk image)
Post by: kamiboy on October 07, 2022, 10:05:15 PM
Well, I did a bunch of things to my image, which I don't remember, but I am not much for erasing it. I guess I could see about extracting and transferring updated parts of this image to my machine.

Hdd images are nice for new PC98 users, but not so neat for existing users with an existing hdd full of stuff.

Transfer to these machines are never easy either. Oh well, all part of the charm I suppose.
Title: Re: YAHDI (yet another hard disk image)
Post by: Matten on October 21, 2022, 08:59:51 PM
That's a VERY Cool image!
I wrote it to a 2gb CF and it works great!
Just Alantia i Havent been able to load, it asks to insert disk 2 and 3...
Just the intro loads.
Also Briganty in YAHDI asks for things in the manual of the game as a copy protection but i don't have it : (
How do you load them??

Quote from: PepAlacant on October 06, 2022, 10:12:39 PMI would want to add my modification of the HDD image. I incluided some games separated by genres.

I simplified the image leaving MAG images and certain things. The CDROM drivers that are in the img Config.sys are for my SCSI unit, but there are the other drivers available in the TOOLS folder.

The IMG is 4GB but it's really a 580mb HDD. When you copy it into a CF don't worry about it. I'm using it in a PC-9821 Ce without a problem.

The image boots into FILMTN


I incluided

Rusty ( English )
Star Cruiser 2 ( English )
Touhou ( English ) Patched for NOTE computers and Normal ones.
Dragon Half ( Needs disk 2 in main Floppy unit in order to load from HDD )
Elm Knight ( Needs a disk 1 or 3 in the main unit in order to load from HDD )
Ningyo Tsukai 2 ( Needs a boot disk with 64kb of UMB free and more than 600kb of EMS )
Illusion City ( HDD fix )
Xak 3 ( Needs a boot disk " it can be made with disk 6 " of you can make it yourself "HIMEM.SYS and EMM386.EXE )
Magikurimento
Popfulmail ( works from Main.exe file )
Steam Hearts ( works well with NOTE computers and Canbe )
Alantia ( ERCVFD )
Star Platinium
Carat
Metal Orange
Quarth
Compile Disk Station 9,10 and 11

There are some more games that I don't remember now... but it's a nice compilation, I think. I will add it more games in the future.

So, I hope you enjoy it.

https://mega.nz/file/qcJRBQjK#I9hat9MywgijMMKBWXjHkn-9Nx-0_ipWHwZ--wPXDYM



Title: Re: YAHDI (yet another hard disk image)
Post by: PepAlacant on November 07, 2022, 07:17:04 AM
Hello Matten. So glad you like it.

Well, Briganty is luck. I usually try to load it 3 times and I get into the game.

For ERCVFD games, the combination of keys for change disk 2 is SHIFT+CTRL+GRAPH+ ( F1, F2, F3 ) corresponding the F keys to the disk 1,2 or 3.

There are another fighting game that has copy protection, but it can be passed relatively easy.

Well, I hope you continue enjoying it. Take care.
Title: Re: YAHDI (yet another hard disk image)
Post by: Enigma776 on December 19, 2022, 03:27:47 AM
For the life of me I can not get the IMG file converted NHC don't want to know the file, is there any other way of converting it?

Thanks
Title: Re: YAHDI (yet another hard disk image)
Post by: ChatKnight on May 18, 2023, 04:20:15 PM
hi anyboday can convert me the file in nhd i can't manage to make it work or if someone can help me to do it