AZO234 / NP2kai

Neko Project II kai
http://domisan.sakura.ne.jp/article/np2kai/np2kai.html
MIT License
254 stars 62 forks source link

Black screen when using WAB driver under Windows 3.1 with MELCO WSN-A4F #36

Open frank-deng opened 6 years ago

frank-deng commented 6 years ago

When entered the Windows 3.1 desktop, only the wallpaper and some icons in the Program Manager displays well, with some garbled displays on the top of the screen.

AZO234 commented 6 years ago

Do you use Win98's driver?

If you can read Japanese, setup guide in follow page. https://sites.google.com/site/np21win/setup/win31

frank-deng commented 6 years ago

Thanks! I used the original Windows 3.1 PEGC driver.

frank-deng commented 6 years ago

Also, is it possible to port MELCO WAB high resolution display support to SDL and X11 version.of NP2?

AZO234 commented 6 years ago

I'm trying to port WAB to SDL and X11 version. I'll do it carefully and slowly.

AZO234 commented 6 years ago

I added WAB implementation. Please try to use it!

frank-deng commented 6 years ago

Thanks! But I failed to start Windows 3.1 with error like this: wab_error I used the video driver downloaded from here.

AZO234 commented 6 years ago

Did you apply pseudo driver(OEMSETUP.INF) before install WSN's driver?

https://sites.google.com/site/np21win/setup/win31 "WSN-A4Fで高解像度を使う" "2.DOSからWindowsセットアップを起動し、ここに置いてあるOEMSETUP.INFを使って仮ドライバを入れる"

frank-deng commented 6 years ago

I enabled Window Acclerator option in X11 version of NP2, and used the downloaded WSN driver. Now it does not give error message, but after entering windows 3.1, it gave me white screen. "MELCO WAB-S" option was used.

AZO234 commented 6 years ago

Probably you should use "MELCO WSN-A4F".

frank-deng commented 6 years ago

Thanks! I updated the code and used "MELCO WSN-A4F" at Window Acclerator option. After I started Windows 3.1 with the downloaded WSN driver, it gave me a black screen. Also, if I display JPG images using JPGVCLH then entering Windows 3.1, it will give me the image displayed previously.

AZO234 commented 6 years ago

I'm pleased that it works. You did it! I'm sorry for my poor guidance.

frank-deng commented 6 years ago

On X11 version of NP2, I used "MELCO WSN-A4F" at Window Acclerator option, then use the driver for Windows 3.1 from here. After I started Windows 3.1, it gives me a black screen. Also, if I display JPG images using JPGVCLH then entering Windows 3.1, it still gives me the image displayed previously. With console log messages like this:

CIRRUS VGA: write 03CE 05
CIRRUS VGA: read 03CF
CIRRUS VGA: write 03CF 40
CIRRUS VGA: write 03CE 03
CIRRUS VGA: read 03CF
CIRRUS VGA: write 03CF 00
CIRRUS VGA: write 03CE 09
CIRRUS VGA: write 03CF FF
CIRRUS VGA: write 03CE 0B
CIRRUS VGA: write 03CF 24
CIRRUS VGA: write 03CE 09
CIRRUS VGA: write 03CF 7F
CIRRUS VGA: write 03CE 0B
CIRRUS VGA: write 03CF 24
CIRRUS VGA: write 03CE 00
CIRRUS VGA: write 03CF 00
CIRRUS VGA: write 03CE 01
CIRRUS VGA: write 03CF 00
CIRRUS VGA: write 03CE 05
CIRRUS VGA: write 03CF 40
CIRRUS VGA: write 03CE 03
CIRRUS VGA: write 03CF 00
CIRRUS VGA: write 03C4 02
CIRRUS VGA: write 03C5 0F
CIRRUS VGA: write 03CE 0B
CIRRUS VGA: read 03C4
CIRRUS VGA: write 03C4 10
CIRRUS VGA: write 03C5 28
CIRRUS VGA: write 03C4 11
CIRRUS VGA: write 03C5 1E
CIRRUS VGA: write 03C4 13
CIRRUS VGA: write 03C5 3E
CIRRUS VGA: write 03C4 12
CIRRUS VGA: read 03C5
CIRRUS VGA: write 03C5 01
CIRRUS VGA: write 03C4 02
frank-deng commented 6 years ago

Thanks! I replaced A:\WINDOWS\SYSTEM\EGCN4.DRV and A:\WINDOWS\SYSTEM\PEGCV8.DRV with the one from Windows 98, and now 640x480x256 under Windows 3.1 works well. May I add it to README.md?

AZO234 commented 6 years ago

Oh, sure! I hope to your experience make other windows user better.