Author Topic: Attract Mode and stats folder  (Read 1027 times)

spud1

  • Full Member
  • ***
  • Posts: 40
    • View Profile
Attract Mode and stats folder
« on: October 16, 2018, 04:09:39 PM »
I know that Attract Mode can record both the Play Count and the Time Played in the stats folder.

For example, in my /home/pi/.attract/stats/FBA folder, I've got a 1941.stat with the following lines:
1
7

I know that the "1" represents the play count.  Does the "7" represent the amount of time?  Is this in seconds?

Has anyone found a way of using this information in Attract Mode?
« Last Edit: October 16, 2018, 04:12:21 PM by spud1 »

rand0m

  • Sr. Member
  • ****
  • Posts: 341
    • View Profile
Re: Attract Mode and stats folder
« Reply #1 on: October 18, 2018, 02:35:11 AM »
1. First line represents total number of times a rom has been played. Its 1 in your case.
2. Second line represents total played time in seconds, so 120 would be 2 minutes. Its 7 seconds in your stat file.
3. Both variables are magic tokens and you can call upon them n a layout via [PlayedCount] and [PlayedTime].

Example:
//Played Count
local gpcount = fe.add_text("[PlayedCount]", 1650, 280, 320, 100); //location and dimensions
gpcount.font="BebasNeue Book.ttf"; //font
gpcount.align = Align.Left; //allignment of text
gpcount.charsize = 26; //font size
gpcount.style = Style.Bold; //font style
gpcount.set_rgb(160,160,160); // color



spud1

  • Full Member
  • ***
  • Posts: 40
    • View Profile
Re: Attract Mode and stats folder
« Reply #2 on: October 18, 2018, 02:49:50 PM »
Thank you so much for that explanation.