Go to file
Les De Ridder 6c745dc60c Log API requests and responses to a file 2017-08-20 03:08:10 +02:00
source Log API requests and responses to a file 2017-08-20 03:08:10 +02:00
.gitignore Initial commit 2017-08-12 23:54:18 +02:00
LICENSE Initial commit 2017-08-12 23:54:18 +02:00
README.md Improve readme and config example 2017-08-13 00:34:09 +02:00
dub.sdl Initial commit 2017-08-12 23:54:18 +02:00
dub.selections.json Initial commit 2017-08-12 23:54:18 +02:00
generate-translations.fish Add more translations 2017-08-20 03:05:43 +02:00

README.md

Flower Knight Girl API Proxy

Description

This is a proxy for DMM's version of Flower Knight Girl. Currently its main feature is providing a way to use parts of Nutaku's translations (or user-provided translations) in the DMM version.

Dependencies

  • D compiler (tested with ldc) + dub
  • fish (for generating translation data)
  • csvquote (for generating translation data)

Generating translation data

$ 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.)

Building

$ cp source/config.d.example source/config.d
$ # edit source/config.d
$ dub build

Using

$ echo '127.0.0.1 web.flower-knight-girls.co.jp' | sudo tee -a /etc/hosts
$ ./fkg-api-proxy

Disclaimer

This is most likely against DMM'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 DMM's side.

License

This project is released under the University of Illinois/NCSA Open Source License.