Coder Social home page Coder Social logo

emimidnight / yacardemu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gxtx/yacardemu

0.0 0.0 0.0 243 KB

Software emulator for Sanwa CRP-1231BR-10 / CRP-1231LR-10NAB / CR-S31R-10HS3 card readers.

License: GNU General Public License v2.0

JavaScript 2.31% C++ 90.27% HTML 3.15% CMake 4.28%

yacardemu's Introduction

YACardEmu

YACardEmu (YetAnotherCardEmu) is a software emulator to emulate a range of magnetic card readers found in various arcade machines. Currently supported models are Sanwa CRP-1231BR-10, the CRP-1231LR-10NAB, and CR-S31R-10HS3 models which are commonly found in games such as Wangan Midnight Tune 3, Virtual-On Force, THE iDOLM@STER, F-Zero, Mario Kart, and Initial D series arcade cabinets.

Checkout some gameplay videos here!

Card images!

Card images are now working! Place base images in a folder called images in the same folder as YACardEmu.exe, and the application will randomly choose one when the game calls to save. You'll see afterwards that a image will be placed in the same folder as your cards with your card name. The UI will also display this when picking a card. Enjoy.

Building

Prerequisites

Ubuntu / Debian / Raspbian

sudo apt install build-essential cmake pkg-config libserialport-dev libsdl2-2.0-0 libsdl2-image-2.0-0 libsdl2-ttf-2.0-0

Windows

Precompiled Windows binaries can be found here.

  1. Visual Studio 2022
    • C++ desktop development
    • Windows Universal CRT SDK
    • C++ CMake tools for Windows
    • Git for Windows
      • Optional if you already have Git installed

Build

Ubuntu / Debian / Raspbian

git clone --recursive https://github.com/GXTX/YACardEmu
cd YACardEmu
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build .

Windows

  1. If you don't have CMake installed, open ___ Native Tools Command Prompt for VS 20##.
  2. git clone --recursive https://github.com/GXTX/YACardEmu
  3. cd to the YACardEmu directory.
  4. Run these commands.
    1. mkdir build & cd build
    2. cmake .. -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=Release
      • VS2022 17.0 or later is required.
  5. cmake --build . --config Release
  6. All the required files will be in build\Release

Running

You must have a USB to RS232 (or a physical serial port) connected to your machine. Configuration is made via both a config.ini file & via a web portal / API. To access the web portal point your browser to http://YOURIPHERE:8080/, this web page is where you'll choose your card and insert your card.

Editing config.ini to point to where you want your cards stored is required.

Ubuntu

cp ../config.ini.sample config.ini
./YACardEmu

Windows

cd Release
YACardEmu.exe

Running On Hardware

If you're wanting to run this on hardware there are some settings you'll need to be aware of.

SEGA Chihiro

Wangan Maximum Tune 1 : CRP-1231LR-10NAB | 9600 none
Wangan Maximum Tune 2 : CRP-1231LR-10NAB | 9600 none

Namco System N2

Wangan Maximum Tune 3    : CR-S31R-10HS3 | 38400 even
Wangan Maximum Tune 3DX  : CR-S31R-10HS3 | 38400 even
Wangan Maximum Tune 3DX+ : CR-S31R-10HS3 | 38400 even

SEGA Hikaru

Virtual-On Force (電脳戦機バーチャロン フォース) : CRP-1231BR-10 | 9600 even
†Requires SEGA P/N 838-13661 RS232 converter PCB

Namco System 246

THE iDOLM@STER (アイドルマスタ) : CRP-1231LR-10NAB | 9600 none

SEGA NAOMI

Derby Owners Club World Edition : CRP-1231BR-10 | 9600 even
†Requires SEGA P/N 838-13661 RS232 converter PCB

SEGA NAOMI 2

Initial D Arcade Stage Ver.1 : CRP-1231BR-10 | 9600 even
Initial D Arcade Stage Ver.2 : CRP-1231BR-10 | 9600 even
Initial D Arcade Stage Ver.3 : CRP-1231BR-10 | 9600 even

SEGA Triforce

F-Zero AX             : CRP-1231BR-10    | 9600 even
Mario Kart Arcade GP  : CRP-1231LR-10NAB | 9600 none
Mario Kart Arcade GP2 : CRP-1231LR-10NAB | 9600 none

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.