#Mod to export game state information

1 messages · Page 1 of 1 (latest)

crisp schooner
#

Hello all, I am new to modding/lua and am looking to create a mod that will export game state information to a file after an action is taken. I am currently thinking json. An couple examples would be:

Hand is played, score is calculated, [STATE EXPORTED], gameplay continues
Shop is opened, [STATE EXPORTED], reroll, [STATE EXPORTED], joker bought, [STATE EXPORTED], ....

The long term goal is to have a python script that reads the game state and sends back an action to take.

Any thoughts/advice on this would be appreciated!

old heart
#

The standard save data is compressed (via deflate iirc) Lua source code to restore the game state (which ends up looking like off-brand json)

crisp schooner
#

How often does that save file get updated?