RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    lr-NP2Kai: A PC-9801 libretro core

    Scheduled Pinned Locked Moved Ideas and Development
    pc-98lr-np2kainp2neko project 2
    7 Posts 3 Posters 4.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • SuperFromNDS
      SuperFromND
      last edited by

      Repository: https://github.com/AZO234/NP2kai

      Build with the commands cd np2kai/sdl2 and make -j4
      The resulting core is np2kai_libretro.so, located in np2kai/sdl2.

      You will need to copy the following BIOS files into /home/pi/RetroPie/BIOS/np2kai:

      2608_bd.wav 
      2608_hh.wav
      2608_rim.wav
      2608_sd.wav
      2608_tom.wav 
      2608_top.wav
      bios.rom
      FONT.ROM
      sound.rom
      

      I've only tested one game so far, Lotus Land Story, and it runs slowly but is still fairly playable.

      ▲▼▲▼▲▼▲▼▲▼
      IKEMEN Go
      SRB2Kart
      ▼▲▼▲▼▲▼▲▼▲

      SuperFromNDS 1 Reply Last reply Reply Quote 2
      • SuperFromNDS
        SuperFromND @SuperFromND
        last edited by

        Update: I figured out how to write setup scripts! Here's the script for you to copy into a .sh file:

        #!/usr/bin/env bash
        
        # This file is part of The RetroPie Project
        #
        # The RetroPie Project is the legal property of its developers, whose names are
        # too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
        #
        # See the LICENSE.md file at the top-level directory of this distribution and
        # at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md
        #
        
        rp_module_id="lr-np2kai"
        rp_module_desc="PC98 emu - Modified Neko Project II port to libretro"
        rp_module_help="ROM Extensions: .d88 .d98 .88d .98d .fdi .xdf .hdm .dup .2hd .tfd .hdi .thd .nhd .hdd\n\nCopy your pc98 games to to $romdir/pc98\n\nCopy bios files 2608_bd.wav, 2608_hh.wav, 2608_rim.wav, 2608_sd.wav, 2608_tom.wav 2608_top.wav, bios.rom, FONT.ROM and sound.rom to $biosdir/np2"
        rp_module_section="exp"
        
        function sources_lr-np2kai() {
            gitPullOrClone "$md_build" https://github.com/AZO234/NP2kai.git
        }
        
        function build_lr-np2kai() {
        	cd ./sdl2
            make -j4
            md_ret_require="$md_build/sdl2/np2kai_libretro.so"
        }
        
        function install_lr-np2kai() {
            md_ret_files=(
                'sdl2/np2kai_libretro.so'
            )
        }
        
        function configure_lr-np2kai() {
            mkRomDir "pc98"
            ensureSystemretroconfig "pc98"
        
            addEmulator 1 "$md_id" "pc98" "$md_inst/np2kai_libretro.so"
            addSystem "pc98"
        }
        

        ▲▼▲▼▲▼▲▼▲▼
        IKEMEN Go
        SRB2Kart
        ▼▲▼▲▼▲▼▲▼▲

        1 Reply Last reply Reply Quote 1
        • SuperFromNDS
          SuperFromND
          last edited by

          Second Update: The above setup script is no longer needed, as lr-np2kai is now officially a part of RetroPie! Simply go to the Experimental menu in RetroPie Setup, and select lr-np2kai. More info can be found here.

          Enjoy!

          ▲▼▲▼▲▼▲▼▲▼
          IKEMEN Go
          SRB2Kart
          ▼▲▼▲▼▲▼▲▼▲

          1 Reply Last reply Reply Quote 2
          • darkniorD
            darknior
            last edited by

            WOAW great news :)
            I love this system and already made my game pack :p
            Have you try it to know if this emulator works fine ?
            Thanks

            Life is game, just play it !

            SuperFromNDS 1 Reply Last reply Reply Quote 0
            • SuperFromNDS
              SuperFromND @darknior
              last edited by SuperFromND

              @darknior I've tested on the Pi 3 non-overclocked; it's ever-so-slightly too slow to run most of the games you'd probably want to run (Flame Zapper, Touhou, etc.), but you can somewhat remedy this by messing with the CPU multiplier in the options (somewhere between 4x and 8x with a 2Mhz base clock works out best).

              ▲▼▲▼▲▼▲▼▲▼
              IKEMEN Go
              SRB2Kart
              ▼▲▼▲▼▲▼▲▼▲

              1 Reply Last reply Reply Quote 1
              • W
                wihaedud
                last edited by

                Wow that's awesome :) Hopefully, there will be future builds with better performance.

                Btw... How can you map controller inputs to keyboard inputs? The first two Touhou Games don't support a Joypad.

                SuperFromNDS 1 Reply Last reply Reply Quote 0
                • SuperFromNDS
                  SuperFromND @wihaedud
                  last edited by

                  @wihaedud I don't think that's a thing yet unfortunately, however this is apparently going to be fixed in the next RetroArch update.

                  ▲▼▲▼▲▼▲▼▲▼
                  IKEMEN Go
                  SRB2Kart
                  ▼▲▼▲▼▲▼▲▼▲

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post

                  Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                  Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.