Neko Project II kai (PC-9801) core (different nekop2, meowPC98)

I fixed reported bugs. Please merge pull req.

I released NP2kai rev.22!!

And I start making for rev.23. I hope to better core work, better PC-98 life!

Please merge my pull request. (include more bug fix)

1 Like

Hello,all touhou games give me divide error,is there way to fix it,thanks.

edit: it only errors on 32bit RA not 64bit,but touhou 2 has no music on both version,the original Neko project core run it fine.

I could see similar work fail worse on Android ARM 32bit.
(Your pic is English patched one?)
But sound was correct.

I tried on Windows x86 32bit, didn’t occur this.
I survey more.

I made simple divition error code.
Screenshot from 2020-07-05 02-33-19 And compiled this code with Turbo C++ 4.0.
The result is this.
Screenshot from 2020-07-05 02-33-42

Perhaps ‘Divide error’ sentence is by DivByZero exception.

Yes, English patched and I forgot to say i’m on Android.

Thank you very much for this emulator @AZO234!

Only problem I have is that I can not run .d88 and most .fdi with np2kai, but if I use Neko Project core the files run smoothly. Is there anything I can do in np2kai to run d88 and fdi?

I am on Windows 8.1.

Ok solved my issue. I had two optional BIOS files in RetroArch/system/np2kai folder namely “bios9821.rom” and “d8000.rom”. Removing these files allowed me to run .d88 and .fdi files.

These BIOS files were listed as optional in libretro docs here > https://docs.libretro.com/library/neko_project_ii_kai/. Its possible I got a bad file dump.

Anyways thanks again @AZO234.

2 Likes

@RetroFans
I fixed Android ARM 32bit calculate problem.
I posted pull request. Please try it.

Ok solved my issue. I had two optional BIOS files in RetroArch/system/np2kai folder namely “bios9821.rom” and “d8000.rom”. Removing these files allowed me to run .d88 and .fdi files.

You’re kidding! I’ve had this problem for what seems like an eternity, and never would’ve imagined this to be the cause! Removing ‘d8000.rom’ did it for me! Thanks!

Interestingly enough, all games used to run fine a couple of versions ago, even with these files present.

1 Like

I fixed mouse off feature.(Disabling touchpad tap) Please merge!

1 Like

Is there a key code table or any instructions for editing the lrjoybtn setting?

Hey everyone,

how can I get CD games running with this (bin/cue files)? I read the instructions, but I don’t understand this part:

How to use CD drive with MS-DOS 6.2?

Write follow to CONFIG.SYS.

    LASTDRIVE=Z
    DEVICE=A:ïż„DOSïż„NECCDD.SYS /D:CD_101

And write follow to AUTOEXEC.BAT.

    A:ïż„DOSïż„MSCDEX.EXE /D:CD_101 /L:Q

Then, you’ll can use CD drive as Q drive.

Don’t worry about that. Simply run CD games by creating a runnable .cmd file which looks like this:

np2kai "path-to-gamefile-if-available" "path-to-cd"

You’re gonna have to figure out whether the CD path should point to the .cue or .bin since I can’t remember at the present moment.

Thank you vry much for your answer! Just to make sure I understand that correctly. If I have a cd file, the cmd file should contain::

np2kai “D:\Downloads\NEC - PC-98 series 1g1r\Alone in the Dark 2 (Japan)\Alone in the Dark 2 (Japan).cue”

If so, is there a way to use relative paths in order to make this setup portable or if I decide to move the roms to a different hard drive?

Absolutely. Given that you keep the .cmd in the same folder as the game file, you need only specify the file name. In your case:

np2kai "Alone in the Dark 2 (Japan).cue"

So I just tried launching a cmd file within LaunchBox and also directly with Retroarch. Unfortunately it didn’t work. The core launches, but I’m stuck with a black screen.

The cmd file contains: np2kai “Alone in the Dark 2 (Japan).cue”

it’s located in the same directory as the .cue and .bin files.

Any suggestions?

Sorry, at that point I’d try running the .bin instead if you haven’t already. You’re certain the game doesn’t require an .hdi or similar?

Yes I already tried running the .bin file (Alonie in the Dark has 80 bin files, so I’m not even sure which one to run, but I also tried DOOM which has only one bin file).

No I’m not surre if I require a .hdi file. All I have is a few CD based games in cue/bin format. I don’t have any .hdi files.

I also tried running the core and open the cue/bin files from the core’s own internal GUI. But that didn’t work either.

I couldn’t find the source code of NPTH but could find some hints

-> As far as I understand it, the NP2 source code NPTH is compiled from was changed in a way that every time the emulator uses some basic PC98 routine for text output it will call the WinAPi strlen function with the string which shall be outputted which can then be hooked by every text hooker tool. http://fullmotionvideo.free.fr/phpBB3/viewtopic.php?f=1&t=1556&hilit=npth

-> NPTH takes the output string and uses it with the lstrlenA-function https://vndb.org/t5395.415

but NPTH is too old version. I would appreciate it if you could porting it according to the latest version of the NP2kai .I want to enjoy translating pc98 games Thank you