Comments (6)
I made a test version to generate tenhou logs for all downloaded paipus. I tested with a four-south ranked game played on Oct. 15th, 2021, and it seems to work well.
I also found that the script can't convert paipus recorded before June, 2021 (e.g. 190222-7fdcb61b-3157-4522-862d-e0ac2486dbd1). The ProtoBuf structure of old logs is GameRestore
, and save data in GameRestore.actions
, while newer logs use GameAction
and save in GameAction.results
. I thought analyzing logs before three months is less useful, so I didn't fix it.
Edit: Thenewly released 0.5.0 supports conversion.
from mjai-reviewer.
I know that software and also checked their log format, which is very different from what the browser script transforms to. I'm sorry but there is little thing I could do on my side since it is their original format which seems only to be used in that program.
I think you could try requesting this feature to MajsoulPaipuAnalyzer as I think it should be easier for them to integrate the script into their program to provide such additional feature to dump extra copies of the logs in tenhou.net/6 format.
from mjai-reviewer.
The format is defined by myself to simplify the format of majsoul, which is only used in this tool and cannot convert to other formats now.
However, I saved the response bytes of app.NetAgent.sendReq2Lobby
(converted format in data/majsoul/%ID%/paipus
; response data bytes in data/majsoul/%ID%/raw
, and all gamedata header with small modification in majsoul/%ID%/gamedatas.txt
). Is it possible to use these files (only record.data
or record.data + record.head
) to convert to tenhou format?
Through the tamermonkey script, it seems to have to run with majsoul front-end codes. If converting logs with files saved locally is impossible, I can try integrating the script and export tenhou format paipus in the future.
from mjai-reviewer.
I made a test version to generate tenhou logs for all downloaded paipus. I tested with a four-south ranked game played on Oct. 15th, 2021, and it seems to work well.
I also found that the script can't convert paipus recorded before June, 2021 (e.g. 190222-7fdcb61b-3157-4522-862d-e0ac2486dbd1). The ProtoBuf structure of old logs is
GameRestore
, and save data inGameRestore.actions
, while newer logs useGameAction
and save inGameAction.results
. I thought analyzing logs before three months is less useful, so I didn't fix it.You can try it by downloading the test version from GitHub Actions. Now the PaipuCrawler is still only in Chinese. https://github.com/zyr17/MajsoulPaipuAnalyzer/actions/runs/1383941629
how to "generate tenhou logs for all downloaded paipus" in your project?
from mjai-reviewer.
how to "generate tenhou logs for all downloaded paipus" in your project?
For Chinese users, please refer to the readme of MajsoulPaipuAnalyzer
. Here are the quick steps of version 0.5.0 for non-Chinese users.
- Select the correct server by clicking 网页 in the menu, and select server. 进入中文服 = Chinese, 进入日服 = Japanese, 进入国际服 = International (English).
- Login into majsoul. If some errors occur in logging, you can click 网页 - 登录专用窗口 to try login in an extra window, then click 网页 - 刷新 to see if can login.
- Click 牌谱 - 自动获取牌谱数据 and 确定 for the popup. Wait for some time (usually 1min for 1000 records) until a popup with
已自动收集牌谱基本数据!牌谱个数:xxx
. - Click 牌谱 - 下载&转换牌谱 and 确定 for popups. The progress will show on the top left of the other SimpleMahjong window. Every four-south paipu will process for about one second.
- Click 牌谱 - 转换天凤牌谱 and 确定 for the popup. All majsoul paipus will be tried to convert. Wait some time until a popup with the title
转换完成
is shown. The save place of tenhou type logs is shown in the popup.
from mjai-reviewer.
Closed due to inactivity.
from mjai-reviewer.
Related Issues (20)
- an error occurred during the task, please check your inputs HOT 2
- Submit not allowed on page HOT 2
- Make the catalog of result page float HOT 3
- Support language setting on result page HOT 3
- show the score of four players of each round in game summary part HOT 5
- 一番街牌谱没法review HOT 1
- Is it possible to support 東風戦 online by Mortal?
- Show the current location of player HOT 1
- Format of output of convlog? HOT 3
- 功能建议 玩家和ai打法不一样的时候 显示天凤的进张数统计 HOT 4
- Mortal的工作原理是什么?怎么感觉这里的打法不太对啊
- Mortal needs permanent accounts on tenhou HOT 3
- Json output? Or some API? HOT 1
- 一个Review报告的bug HOT 2
- [报告BUG] 振听判断错误? HOT 1
- "failed to download game log" (Mahjong Soul)
- Hope to add the function for three-player games HOT 1
- 建议增加“网站输入麻雀一番街牌谱ID,自动识别player-id”功能 HOT 1
- 想知道详情里面 这两个公式代表什么意思 HOT 1
- Unable to review logs where someone has negative points HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mjai-reviewer.