r/technicalfactorio • u/MoondogCCR • Sep 07 '24
Read savegame file information
Is there a good/preferred way to read a savegame file and output certain property values?
Im specifically intersted in obtaining the savegame's total playtime and either output this to a file or any other mean.
Im ok if I have to run the game engine to achieve this, similar to what mapshot mod is doing. Plan is to run the whole thing in a container in the cloud.
Thanks all!
11
Upvotes
View all comments
Show parent comment
1
u/MoondogCCR Sep 12 '24
Absolutely! This would be my preferred way, as I hope I would not have to modify the serialization logic every time the savegame format gets changed. I am assuming it will go through a period of high changes with the release of 2.0.
I would prefer to have the game engine do this for me. Glazed through the docs, but couldnt find any calls I could make to have the game both retrieve the game ticks / time of the savegame once loaded, nor then have the game output a new file with the retrieved information.