I am currently working on a rewrite version, which will be self-contained (including the web server and certificate generation), so this repo is now archived and will not be updated.
The new version will use C# and sqlite as database, to reduce dependency.
New version: https://github.com/asesidaa/GC-local-server-rewrite
A GC4EX local server prototype, feel free to rewrite it and improve.
Based on https://github.com/fatal-bundy/nesys_at_home
- First patch NesysService.exe, point all url to localhost
- Generate a self-signed root CA, with common name=Taito Arcade Machine CA
- Use the generated root CA to sign a certificate for localhost
- Import the generated root CA (with private key!!) to Personal and trusted root CA tab
- On localhost, set up a webserver with whatever program, enable https
- Create a database, you can change the database config in config/config.inc
- Create tables, schemas dumped in 2110_card.xml and 2110_ranking.xml using phpmyadmin
- For music_unlock and music_extra, backup data are exported to .sql files (if you are using 4MAX or omnimix, try 4ex_omnimix file)
- For card_main, first import the backup data then for card with id 7020392010281502, change the card id and player name of your choice
- Open the game, without nesys emu, you should be able to use the card
- The root CA have to be re-imported every time computer reboots, I don't know why. I am not familiar with that. But it works.
- To make the card reading work, I am currently using teknoparrot to emulate RFiD. However, for IO, I am using jconfig. They can actually be mixed. Just remember to turn off unnecessary emulations.
- To add support in teknoparrot, just follow the GC2 support. Notice you have to apply the same patch on GC2 (mouse scanner and RFID). The offset is different, but you can easily find them since the functions are almost the same.
- No ranking of any sort is implemented, since this is just a local server. The stub is there.
- Coin is fixed at 999999
- Everything is unlocked at beginning, except for high difficulty and extras.
- All the item count will always be 90
-
Reward unlocking is broken, wait 60s or the game will crashFixed, but not saving it, just to make the game over faster