Giter Site home page Giter Site logo

Comments (6)

zyr17 avatar zyr17 commented on September 24, 2024 1

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.

Equim-chan avatar Equim-chan commented on September 24, 2024

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.

zyr17 avatar zyr17 commented on September 24, 2024

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.

syooool avatar syooool commented on September 24, 2024

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.

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.

zyr17 avatar zyr17 commented on September 24, 2024

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.

Equim-chan avatar Equim-chan commented on September 24, 2024

Closed due to inactivity.

from mjai-reviewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.