Game Code
Ever wonder how FFRK works under the hood? What game code may look like? How TFMurphy figures out all those stats and AI?
With a little effort, anyone can see the game code for FFRK! It can be a fun and informative experience.
FFRK code has two parts: JavaScript and JSON.
JavaScript is used by the FFRK app for stuff that rarely changes. For example, the app may ask the FFRK servers for the battle.js file, for battle calculations. That file will be cached until it needs updating.
JSON is used for stuff that changes a lot. For example, the app may ask the servers for the battle.json file, which has all the enemies (and stats) for that battle only. That file will be used for only one battle.
For more info, see the links below.
Become a data miner!
Want to capture raw game data from your game? It just takes some elbow grease. Read this thread to see two options (Fiddler/FFRKI and recordpeeker).
JavaScript
AI Scripts (WIP)
teaser: https://ffrk.denagames.com/dff/static/ww/compile/en/js/direct/battle/ai/conf/41300401.js
Core Files
battle.js: Most of the juicy gameplay stuff!
app.js (global): No gameplay data; most of the app's logic, including menus and stuff
app.js (JP): Now we're talking! The JP app.js includes plenty of goodies, mostly things copied from battle.js
lib.js: Mostly UI and other helper functions, but does contain battle speed values
pre.js: No gameplay data; app init stuff, platform-specific methods, etc.
templates.js: No gameplay data; UI templates and methods
vendor.js: No gameplay data; just third-party scripts like jQuery
direct/require.js: No gameplay data; small file, purely JS helper functions
direct/app/splash.js: No gameplay data; splash screen init stuff
direct/battle/ai/conf/<num>.js: Enemy AI scripts, see above
event/challenge/app.js: No gameplay data; challenge event app code
event/select_prize/app.js: No gameplay data; collection event app code
event/wday/app.js: No gameplay data; daily dungeon app code
event/wday/battle.js: No gameplay data; tiny file, more daily dungeon app code
templates_event/challenge.js
templates_event/select_prize.js
templates_event/wday.js