Modcolle does not encourage botting or cheating Kancolle by any means. Modcolle aims to resolve common frustrations for both old and new players and to enhance user expierence. Modcolle does not intend to compete with other Kancolle viewers as they solve a different problem entirely, but to run in harmony among those viewers.
A microservice of Modcolle provides value of api_port
back to a client.
When accessing Port page, client doesn't have to adjust their machine time to match with Japan timezone (Asia/Tokyo UTC+09).
api_port
is a seemingly random signature of numbers created by Kancolle Dev to prevent botting and cheating.
This signature, however, prevent players who doesn't have their clock synchronized with Japan timezone from accessing Kancolle API api_port/port
endpoint.
They will receive catbomb over and over again.
Modcolle doesn't care how Kancolle's api_port signature system is implemented.
It only calls Kancolle's internal actionscript method which is responsible for generating the signature through custom written scripts.
The script will be injected to Core.as
inside Core.swf
on Docker deployment.
Signature changes when there is a new release happened during Kancolle maintenace. Modcolle Port doesn't handle this situation yet, but will do in a future release.
In this repository, run
docker build -t port .
Then, run the image expose port 5000
docker run -d -p 5000:5000 --name modcolle-port port
Let's call its API. In the browser type
http://localhost:5000/act?role=api_port&cmd=calculate&memberId=123456
You will get a JSON response. The value varies
{"api_port":"414563189173858047892811761507"}
If you prefer not to use docker, you can install it manually. You can follow scripts defined in .travis.yml or Dockerfile if you are on a Linux Ubuntu machine. If you are running on Windows or other Linux distros, please follow these steps
You need
- Python2
- Java SDK 8
- FFDec
- Flash Player Standalone Debugger and extract
flashplayerdebugger
inbin
folder
- Download Core.swf from any Kancolle server
- Launch FFDec, go to settings -> Advance Settings -> Paths -> Flex SDK directory path point path to any existing empty folder
- Go to
%AppData%\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys
(windows)~/Macromedia/Flash_Player/macromedia.com/support/flashplayer/sys
(linux) and pastesettings.sol
inside. This allows any swf file to make http request from your machine. If you are concerned about flash security, please configure flash player to trustbin/Core.swf
- Open command line, go to this repo inside
build
, and runinject-core.bat <path-core-swf> <path-ffdec>
replace<path-core-swf>
with absolute path toCore.swf
and<path-ffdec>
with absolute path to FFDec. For examplelocal-dev.bat "C:\Core.swf" "C:\Program Files\FFDec"
. InjectedCore.swf
will appear inside thebin
folder.
npm install
If you don't have pm2, please install
npm install -g pm2
Run
pm2 start process.yml
You have to set environment variables first before testing
PORT=5000 ETIMEOUT=5000 FLASH_PLAYER=bin/flashplayerdebugger KANCOLLE_CORE_SWF=bin/Core.swf TIMEZONE=Asia/Tokyo DEBUG=modcolle:* npm run test
Can be configured inside process.yml
PORT
exposed port numberETIMEOUT
operation timeout in millisecondsFLASH_PLAYER
path to flashplayerKANCOLLE_CORE_SWF
path to decoded and injectedCore.swf
TIMEZONE
IANA timezoneDEBUG
shows debug info according to npm debug package