MZ Save playtime with script call save

Hello!

So, I'm working on my game where sometime I do kinda "auto" save using this script call :


$gameSystem.setSavefileId(1);
$gameSystem.onBeforeSave();
DataManager.saveGame(1);

But the playtime isn't save, and when we load the save the playtime become 0:00:00

So it can be frustrating for players to not have the real playtime.
Any Ideas?

Thanks!
are you using any plugins? the save data seems to be fine in a fresh MZ project

1748456374522.png
I don't use the autosave, I have even delete the options. And as I know I have no plugins about save or else.
It's really strange because it's only the first manual save that seems break the playtime. After that I do a second one and the time doesn't reset.

But, just before I use a plugins to spik the title, and I wonder if maybe this script doesn't load the framecount correctly and so reset the timer (wich would makes sens and explain why the second auto save does't restart the playtime)
Ok It's all good I find the problem. It was coming from the theo_skiptitle plugins witch doesn't use de command "
$gameSystem.onAfterLoad();})" which is the one load the playtime, And now it work perfectly fine X)

Original thread: https://forums.rpgmakerweb.com/threads/save-playtime-with-script-call-save.177986/