Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 2.07 KB

mjsoul.adoc

File metadata and controls

37 lines (27 loc) · 2.07 KB

Use Mahjong Soul Logs with mjai-reviewer

Background (back in 2021)

Downloading logs from mjsoul is more difficult than from tenhou because it requires a login and the log formats are different.

For a long time, the reviewer had been able to retrieve mjsoul logs via tensoul, a tool I wrote to automate the process of login to mjsoul with an account, download of the logs and conversions to tenhou format. I created a dummy account and deployed a tensoul on heroku to provide a more accessible service, then the reviewer could retrieve logs in tenhou format directly by accessing the tensoul instance’s API. This was once hard coded in akochan-reviewer.

However, the heroku instance where tensoul is deployed (https://tensoul.herokuapp.com) seems to be banned by mjsoul recently as the login command keeps getting error code 151. Migrating the instance to another region could mitigate the problem, but I have already done it once. Currently both of the two regions heroku provides are banned and I have no choice.

Warning

It highly recommended to set up a separate environment and use a sub account for this task.

Instructions (Browser)

Install tampermonkey extension on your browser

Install downloadlogs script

Add this script to tampermonkey.

Download the log

Login to mjsoul, open the log you want to review, then press S after the log is loaded.

Review

$ mjai-reviewer -e ENGINE -i FILENAME -a ACTOR
$ # Example:
$ mjai-reviewer -e mortal -i log.json -a 2

Instructions (Majsoul+)

Install mod

Heads here (NSFW) and search for "Save logs".

Review

Same as above.