If someone is thinking of translating this or is trying to, the events are encrypted and are stored as external files in the scenario folder. These are seen in the source code or json files as AdvLoad calls (eg. Plugin Command: AdvLoad rry_002). You can use the game itself to decrypt the files.
One way of doing it (as usual, this is probably not the best way):
eg. make the following changes with any text editor in
www\js\plugins\TS_Decode.js
Add first line after filepath variable and second before return.
Code:
var filepath2 = this.localFileDirectoryPath()+filename+".txt";
...
fs.writeFileSync(filepath2, file_data, 'utf-8');
The game will create decoded event files in scenario folder, as you play, that you can edit with a "non-destructive" text editor (that doesn't remove/convert the special characters), eg.
You must be registered to see the links
. After converting all the sl files to plaintext, remove the whole エンコードを行うか判定-section from that same js file or comment it out with // and change TS_Function.getScenarioExtension() to ".txt".
E: Why do they even bother with this security through obscurity nonsense?
You must be registered to see the links
(with edited js). The game requires the text to be placed inside "" or 「」for it to be displayed correctly. wxMEdit has sometimes trouble figuring out the coding, just change it to UTF-8 manually if it selects something else by default. Good luck.