MahjongRepository / mahjong_soul_api

Python wrapper for the Mahjong Soul (Majsoul) Protobuf objects. It allows to use their API.
72 stars 10 forks source link

Empty Array in `game_details.records` #22

Closed Jim137 closed 10 months ago

Jim137 commented 10 months ago

Hello,

I've encountered an issue while trying to retrieve the game log for a Sanma game using the mahjong_soul_api. I followed the example provided in the repository (example.py lines 140-170). However, I noticed that the game_details.records array is returning empty for the Sanma game I attempted to log.

Could you please help me understand if I'm missing a step in the process, or is the API's current functionality limited to Yonma games only? Any guidance or suggestions on how to correctly retrieve Sanma game logs would be greatly appreciated.

Thank you for your assistance.

unStatiK commented 10 months ago

@Jim137 You should use game_details.actions istead game_details.records. Example outdated and isn't relevant for current protobuf protocol definition.

Jim137 commented 10 months ago

Thank you! I will look up the new protocol definition.