On every table we can see the amount of time we played (and the number of launch of each table).
Do you know if we can find the TOTAL time played on all the tables ? Is it recorded somewhere by pinbally ?
It's not recorded directly, but I suppose you could figure it by adding up all of the individual table times. You could do that in Javascript:
let totalSeconds = 0; gameList.getAllGames().forEach(game => totalSeconds += game.playTime);You could embed that snippet in a button command handler to display the total on demand, for example, or work it into the status line rotation with a custom message and a status line event (see .Javascript scripting > Events > Event Types > StatusLineEvent in the help).
Hello everyone.
I'm back with this subject.
So i'm trying to count the total time played on my tables, and i want to see the information on the frontend (on a turning message for example).
MLR help me with these informations, but i'm not good enough to understand everything.
As said in PinballY help, i created a new file : main.js and i put it in the script folder.
In this file, i copied/paste the command gave by MJR.
let totalSeconds = 0;
gameList.getAllGames().forEach(game => totalSeconds += game.playTime);
I don't understand now how can i see the result on the moving message in PinballY.
I tried a "[totalseconds]" in a status line rotation but i don"t understand what i'm doing (and it's not working).
Is there someone here to help me with this ?
Thank's !
Edited by leeoneil, 28 January 2022 - 02:55 PM.




Top










are all trademarks of VPFORUMS.