2022-04-05 14:34:07 +02:00
# GC local server
2023-02-22 19:22:04 +01:00
This is a rewritten version of GC local server, original version is [here ](https://github.com/asesidaa/gc-local-server ).
2022-04-05 14:34:07 +02:00
2023-02-22 19:22:04 +01:00
**Now migrated to asp .net core**
Server functionality is basically the same, but the code should be now easier to work with, and can be extended easily.
2022-04-05 14:34:07 +02:00
2022-06-21 10:35:33 +02:00
## Usage
2022-04-05 14:34:07 +02:00
Download latest release from release page.
Extract anywhere.
2022-04-06 12:51:00 +02:00
If you don't have the modified NesysService.exe, modify the host file, add the following lines
```
127.0.0.1 cert.nesys.jp
127.0.0.1 data.nesys.jp
127.0.0.1 nesys.taito.co.jp
127.0.0.1 fjm170920zero.nesica.net
```
2022-04-05 14:34:07 +02:00
Open exe with **admin privileges** for certificate generating functionalities to work.
2023-02-22 19:22:04 +01:00
Open game using openparrot loader (you can find that in guide). The loader should be also opened with **admin privileges** , otherwise it will not work.
2022-04-05 14:34:07 +02:00
2022-06-21 10:35:33 +02:00
## Config
2022-04-05 14:34:07 +02:00
2023-02-22 19:22:04 +01:00
New config is distributed in files located in the `Configurations` folder.
2022-04-05 14:34:07 +02:00
2023-02-22 19:22:04 +01:00
- `database.json` : This file controls which db file to use. `CardDbName` for main card database, `MusicDbName` for music database. Remember to switch music databases for different versions.
2022-04-05 14:34:07 +02:00
2023-02-22 19:22:04 +01:00
- `events.json` : This file controls which event files to use. All the possible event file types are listed.
2022-04-08 20:18:49 +02:00
2023-02-22 19:22:04 +01:00
`.evt` file is the main event file, `play_mode` controls solo or multiplayer
2022-04-05 14:34:07 +02:00
2023-02-22 19:22:04 +01:00
`_reg.jpg` is the big event news picture
2022-04-05 16:42:02 +02:00
2023-02-22 19:22:04 +01:00
`_sgreg.jpg` is the small event news picture shown in mode selection
2022-04-26 16:35:18 +02:00
2023-02-22 19:22:04 +01:00
`news_big_*.jpg` is the big news picture shown before demo. The first one must have index 0, other ones can have index 2~9
2022-04-26 16:35:18 +02:00
2023-02-22 19:22:04 +01:00
`news_small_*.jpg` is the small news picture shown after game over
2022-04-26 16:35:18 +02:00
2023-02-22 19:22:04 +01:00
`telop_*.txt` is the text for the scrolling banner
2022-04-26 16:35:18 +02:00
2023-02-22 19:22:04 +01:00
`*.cmp` is the file controlling additional configs, refer to comments
2022-04-26 16:35:18 +02:00
2023-02-22 19:22:04 +01:00
When you want to use event files, put them in `wwwroot/events` folder, then change `UseEvents` to true
2022-04-26 16:35:18 +02:00
2023-02-22 19:22:04 +01:00
- `game.json` : This files controls settings for game. You can get the corresponding count for a specified version in `data/boot/*.dat` file. It is the first 2 bytes (uint16) encoded in big endian. Since everything is unlock by default, the `UnlockRewards` is just a demo for future unlock functionality.
2022-04-26 16:41:39 +02:00
2023-02-22 19:22:04 +01:00
- Other config files do not need to be modified currently
2022-07-16 10:11:29 +02:00
2022-06-21 10:35:33 +02:00
## Missing functions
2022-04-05 16:42:02 +02:00
2022-04-26 16:35:18 +02:00
- [ ] Item/coin consuming
2023-02-22 19:22:04 +01:00
- [ ] Unlocking system
- [x] ~~Ranking system~~ Initial support for actual ranking
2022-04-06 12:55:27 +02:00
- [ ] Proper update check response (Now it will just throw 404)
2023-02-22 19:22:04 +01:00
- [ ] Online matching (and online matching events), would be added in next version
2022-04-05 16:42:02 +02:00
2022-06-21 10:35:33 +02:00
## Difficulty unlocking
2022-04-05 16:42:02 +02:00
2022-07-16 10:11:29 +02:00
This is processed on client side, so if you like to unlock all difficulties, just use Bemani patcher with 4.52 exe (they are compatible).
2022-04-06 12:51:00 +02:00
2023-02-22 19:22:04 +01:00
## Deleted songs
2022-04-13 05:27:24 +02:00
If you see a lot of duplicate "Play Merrily" in the original tab, this is because in the songs db deleted songs are added back.
To enable these, try use the omnimixed version of stage_param.dat. That can fix this issue
2022-06-21 10:35:33 +02:00
## Local network
2022-04-06 12:51:00 +02:00
2023-02-22 19:22:04 +01:00
If your game and server is not on the same computer, import the certificates in `Certificates` folder. `root.pfx` goes into LocalMachine/My and Trusted root, the other only LocalMachine/My.
2022-04-06 12:51:00 +02:00
2022-06-21 10:35:33 +02:00
## Windows XP
2022-04-07 14:49:50 +02:00
If you are using Windows XP (e.g. using real machine), it will not recognize the generated certificate since it uses SHA256.
You will have to generate the certificates yourself.
The root certificate should have CN=Taito Arcade Machine CA, while the server certificate should have DNS entries for the domains in the host file.
The most important bit, **choose MD5 or SHA1 as signature algorithm** .
2022-06-21 10:35:33 +02:00
2023-02-22 19:22:04 +01:00
# Web UI
2022-08-01 15:51:50 +02:00
2023-02-22 19:22:04 +01:00
There's a basic web interface for check scores and set options.