It is the fork of https://github.com/chaserhkj/PyMajSoul/ package with different improvements.
example.py
is working only with Python3.7+.
- Download the new liqi.json file (find it in the network tab of your browser) and put it to data/liqi.json. For example https://mahjongsoul.game.yo-star.com/v0.6.58.w/res/proto/liqi.json
cd ms
python generate_proto_file.py
- Install protobuf compiler first
sudo apt install protobuf-compiler
cd ms
chmod +x ms-plugin.py
sudo cp ms-plugin.py /usr/bin/ms-plugin.py
protoc --custom_out=. --plugin=protoc-gen-custom=ms-plugin.py ./data/protocol.proto