2024-02-24 16:40:50 +01:00
# AimeIO CardReader
2024-01-10 16:31:47 +01:00
2024-02-26 17:34:00 +01:00
This allows you to a smartcard reader (specifically the acr122u) with segatools
2024-01-10 16:31:47 +01:00
2024-02-24 16:40:50 +01:00
# Acknowledgments
2024-02-26 17:34:00 +01:00
This is a plugin destined to be used with [Dniel97 ](https://gitea.tendokyu.moe/Dniel97 )'s [segatools fork ](https://gitea.tendokyu.moe/Dniel97/segatools ) (but should work on others too).
2024-01-10 16:31:47 +01:00
2024-02-24 16:40:50 +01:00
SmartCard implementation taken from [spicetools ](https://github.com/spicetools/spicetools )
2024-01-10 16:31:47 +01:00
2024-02-24 16:40:50 +01:00
Initial project made by [nat ](https://gitea.tendokyu.moe/nat/aimeio-pcsc )
2024-01-10 16:31:47 +01:00
2024-02-26 17:34:00 +01:00
All the logic for reading cards from a file has been taken from [CrazyRedMachine ](https://github.com/CrazyRedMachine )'s [RedBoard ](https://github.com/CrazyRedMachine/RedBoard ) aimeio.
2024-02-24 16:40:50 +01:00
# Usage
2024-01-10 16:31:47 +01:00
To use it with a game, copy `aimeio.dll` to your `segatools` folder and add the following to your `segatools.ini` :
```ini
[aimeio]
path=aimeio.dll
2024-02-26 17:34:00 +01:00
scan=0x0D ;Sets the key which will be used to insert a card in game. The default is 'Return'
;Everything below this line is optional.
;aimePath= ;Manually specify an aime.txt file
;felicaPath= ;Manually specify a felica.txt file
;felicaGen=0 ;Generate a new random card if it's missing from the file
2024-02-26 22:20:01 +01:00
;debug=0 ;Display function calls
2024-01-10 16:31:47 +01:00
```
2024-02-26 17:34:00 +01:00
## Scanning cards
If you scan a newer AIC-based Aime, its FeliCa IDm will be provided to the game. The game will not see the correct "access code," but the IDm should be unique to each card so that particular card can still track your plays.
2024-02-24 16:40:50 +01:00
As for Mifare cards, their access code won't be 1:1 with a real reader (i still need to fix this). You can still use them and they will work though !
2024-02-26 17:34:00 +01:00
## Inserting cards
By pressing the key you have set in segatools.ini and holding it for a few moments, you will insert a card set in either aime.txt or felica.txt
You can have multiple cards in those files!
By holding a number from 0 to 9 on your keypad, and then holding enter, you can choose what card to insert.
For example...
```text
aime.txt
---
1a7f3e925cb866d45a3b
a5d04d668bc529e35aaa
```
By only pressing the insert key, you will insert card0, "1a7f3e925cb866d45a3b".
If you hold 1 on your numpad and press the insert key, card1, "a5d04d668bc529e35aaa" will be inserted !
This works for up to 10 cards.
2024-02-24 16:40:50 +01:00
# Build
To build this, you'll need two things :
2024-01-10 16:31:47 +01:00
2024-02-24 16:40:50 +01:00
- [Meson 1.1.0 ](https://mesonbuild.com )
- [Build Tools pour Visual Studio 2022 ](https://visualstudio.microsoft.com/fr/downloads/ )
2024-01-10 16:31:47 +01:00
2024-02-24 16:40:50 +01:00
Once you've edited your build64.bat file to point to your local installation of the VS2022 build tools, run build64.bat and the output will be located in `bin/aime.dll` .