fkg-api-proxy/README.md

47 lines
1.5 KiB
Markdown
Raw Permalink Normal View History

2017-08-12 23:54:18 +02:00
# Flower Knight Girl API Proxy
## Description
2017-08-13 00:23:37 +02:00
This is a proxy for DMM's version of [Flower Knight Girl](http://www.dmm.co.jp/netgame_s/flower-x/). Currently its main feature is providing a way to use parts of Nutaku's translations (or user-provided translations) in the DMM version.
2017-08-12 23:54:18 +02:00
## Dependencies
2017-08-13 00:23:37 +02:00
* D compiler (tested with ldc) + dub
* [fish](https://fishshell.com/) (for generating translation data)
* [csvquote](https://github.com/dbro/csvquote) (for generating translation data)
2017-08-12 23:54:18 +02:00
2017-08-13 00:23:37 +02:00
## Generating translation data
2017-08-12 23:54:18 +02:00
2017-08-13 00:23:37 +02:00
```bash
$ curl 'http://rn.floweknightgirl.com/api/v1/master/getMaster' (...) > nutakuMaster.zlib
$ printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" | cat - nutakuMaster.zlib | gzip -dc > nutakuMaster.json
$ ./generate-translations.fish
```
(Get the full curl request from your browser's developer tools' network tab when loading **Nutaku's version**.)
2017-08-12 23:54:18 +02:00
## Building
2017-08-13 00:23:37 +02:00
```bash
$ cp source/config.d.example source/config.d
$ # edit source/config.d
$ dub build
```
2017-08-12 23:54:18 +02:00
## Using
2017-08-13 00:23:37 +02:00
```bash
$ echo '127.0.0.1 web.flower-knight-girls.co.jp' | sudo tee -a /etc/hosts
$ ./fkg-api-proxy
```
2017-08-12 23:54:18 +02:00
## Disclaimer
2017-09-12 01:58:11 +02:00
**Update:** The FKG devs have effectively said using a proxy like this for translations won't get you banned, but is unsupported. ([source](https://archive.fo/xldq7#post1213188))
This is most likely against DMM's or FKG's ToS. Use at your own risk. That said, it should be unlikely that you'd get banned for using this, since it shouldn't be detectable from their side.
2017-08-13 00:01:03 +02:00
## License
This project is released under the [University of Illinois/NCSA Open Source License](LICENSE).