Post subject: How to transform frame numbers into actual time
THC98
He/Him
Experienced player (920)
Joined: 8/7/2012
Posts: 279
Location: Brazil
Hello everyone. Some time ago, I made an Excel (also works with Google Drive) spreadsheet that transforms frame numbers into minutes, seconds and centiseconds, given the FPS of the game. I tested the accuracy of this using some submissions of TASVideos and it gave the same result as the submission. It makes the work of doing weird maths to get an accurate time very easier, so it's very useful for me. You can download the file here. If it doesn't work, create a Google Drive (or Excel) spreadsheet and paste the following in B3:
=IF(B1<((B2*B2)-1);"";(ROUNDDOWN(B1/B2/B2;0))&"'")&(ROUNDDOWN(ROUND((B1/B2/B2-ROUNDDOWN(B1/B2/B2;0))*B2;2);0))&"''"&IF(ROUND((ROUND((B1/B2/B2-ROUNDDOWN(B1/B2/B2;0))*B2;2)-ROUNDDOWN(ROUND((B1/B2/B2-ROUNDDOWN(B1/B2/B2;0))*B2;2);0))*100;0)<10;"0"&ROUND((ROUND((B1/B2/B2-ROUNDDOWN(B1/B2/B2;0))*B2;2)-ROUNDDOWN(ROUND((B1/B2/B2-ROUNDDOWN(B1/B2/B2;0))*B2;2);0))*100;0);ROUND((ROUND((B1/B2/B2-ROUNDDOWN(B1/B2/B2;0))*B2;2)-ROUNDDOWN(ROUND((B1/B2/B2-ROUNDDOWN(B1/B2/B2;0))*B2;2);0))*100;0))
After doing it, put the frame number in B1 and the FPS in B2. I hope it gets useful for someone! :D
Youtube Channel | Twitch Channel • Finished projects: GC Sonic Adventure DX - Sonic | GC Sonic Adventure DX - Tails | GC Sonic Adventure 2: Battle - Hero Story | GC Sonic Heroes - Team Sonic • Current projects: GC Sonic Adventure 2: Battle - Dark Story - 1st WIP • Paused projects: GC Sonic Adventure DX - Knuckles - 1st WIP • Individual levels records: Sonic Adventure DX | Sonic Adventure 2: Battle • My Discord: Tales98#0408
Patashu
He/Him
Joined: 10/2/2005
Posts: 4045
Here are some FPS numbers you can use. 50.006978: PAL NES 59.56: 60Hz modded PAL SNES 59.72750056960583276373: GB/GBC 59.824: Wii VC 59.9228: Genesis/Atari 2600/SMS/MSX 59.94006: NTSC TV (60*1000/1001) 60.0022223045297973999: GC/Wii (1620000 / 26999) 60.09881387708959: NTSC NES/SNES and Super Game Boy 2 (21477272.72 / ((262*341*2-1)*2)) 61.17045102596282958984: Super Game Boy 1 I don't know for N64/PS1/DS/anything else not listed.
My Chiptune music, made in Famitracker: http://soundcloud.com/patashu My twitch. I stream mostly shmups & rhythm games http://twitch.tv/patashu My youtube, again shmups and rhythm games and misc stuff: http://youtube.com/user/patashu
Editor, Experienced player (570)
Joined: 11/8/2010
Posts: 4037
All of the platform frame rates we use on this site can be found here. It would be cool if you could implement something that lets you type, for example, "Coleco" in the FPS field and have the program know to calculate the time using 59.9227510135505. Just an idea.
Emulator Coder, Skilled player (1113)
Joined: 5/1/2010
Posts: 1217
For Dolphin(GC) frame counter, the fps used in calculations is 60 even if the video framerate isn't quite 60.
THC98
He/Him
Experienced player (920)
Joined: 8/7/2012
Posts: 279
Location: Brazil
I tested the framerate numbers listed here as well, and the spreadsheet file could calculate the time normally. I can try CoolKirby's idea as well, but it would take some time to do that :P
Youtube Channel | Twitch Channel • Finished projects: GC Sonic Adventure DX - Sonic | GC Sonic Adventure DX - Tails | GC Sonic Adventure 2: Battle - Hero Story | GC Sonic Heroes - Team Sonic • Current projects: GC Sonic Adventure 2: Battle - Dark Story - 1st WIP • Paused projects: GC Sonic Adventure DX - Knuckles - 1st WIP • Individual levels records: Sonic Adventure DX | Sonic Adventure 2: Battle • My Discord: Tales98#0408
Patashu
He/Him
Joined: 10/2/2005
Posts: 4045
CoolKirby wrote:
All of the platform frame rates we use on this site can be found here.
Oh, sweet! I was looking for this page before, but my google-fu was too weak.
My Chiptune music, made in Famitracker: http://soundcloud.com/patashu My twitch. I stream mostly shmups & rhythm games http://twitch.tv/patashu My youtube, again shmups and rhythm games and misc stuff: http://youtube.com/user/patashu
Editor, Active player (297)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Patashu wrote:
Oh, sweet! I was looking for this page before, but my google-fu was too weak.
To be fair, that page is not really well integrated to the wiki structure yet.
Editor, Experienced player (570)
Joined: 11/8/2010
Posts: 4037
Yeah, that's where I found it, through the Articles Index. I definitely wouldn't have found it otherwise.
Site Admin, Skilled player (1254)
Joined: 4/17/2010
Posts: 11486
Location: Lake Char­gogg­a­gogg­man­chaugg­a­gogg­chau­bun­a­gung­a­maugg
Warning: When making decisions, I try to collect as much data as possible before actually deciding. I try to abstract away and see the principles behind real world events and people's opinions. I try to generalize them and turn into something clear and reusable. I hate depending on unpredictable and having to make lottery guesses. Any problem can be solved by systems thinking and acting.
Editor, Experienced player (570)
Joined: 11/8/2010
Posts: 4037
Uh, are you saying you were watching that page when someone last edited it, and that's how you knew about it...?
Site Admin, Skilled player (1254)
Joined: 4/17/2010
Posts: 11486
Location: Lake Char­gogg­a­gogg­man­chaugg­a­gogg­chau­bun­a­gung­a­maugg
I saw the birth of it... I check recent changes every day, as I check email.
Warning: When making decisions, I try to collect as much data as possible before actually deciding. I try to abstract away and see the principles behind real world events and people's opinions. I try to generalize them and turn into something clear and reusable. I hate depending on unpredictable and having to make lottery guesses. Any problem can be solved by systems thinking and acting.
Editor, Experienced player (570)
Joined: 11/8/2010
Posts: 4037
Ah, okay. Well, you and I were probably the only ones who knew about that page, but I'm not sure where else we should link to it from.
Noxxa
They/Them
Moderator, Expert player (4126)
Joined: 8/14/2009
Posts: 4090
Location: The Netherlands
I created that page a few weeks ago (with some help from Ilari). Couldn't really think of much to link it from, either.
http://www.youtube.com/Noxxa <dwangoAC> This is a TAS (...). Not suitable for all audiences. May cause undesirable side-effects. May contain emulator abuse. Emulator may be abusive. This product contains glitches known to the state of California to cause egg defects. <Masterjun> I'm just a guy arranging bits in a sequence which could potentially amuse other people looking at these bits <adelikat> In Oregon Trail, I sacrificed my own family to save time. In Star trek, I killed helpless comrades in escape pods to save time. Here, I kill my allies to save time. I think I need help.
Site Admin, Skilled player (1254)
Joined: 4/17/2010
Posts: 11486
Location: Lake Char­gogg­a­gogg­man­chaugg­a­gogg­chau­bun­a­gung­a­maugg
Emulator Resources? I'd make your page a subpage of that.
Warning: When making decisions, I try to collect as much data as possible before actually deciding. I try to abstract away and see the principles behind real world events and people's opinions. I try to generalize them and turn into something clear and reusable. I hate depending on unpredictable and having to make lottery guesses. Any problem can be solved by systems thinking and acting.
Noxxa
They/Them
Moderator, Expert player (4126)
Joined: 8/14/2009
Posts: 4090
Location: The Netherlands
I thought about it at first, but I didn't think it would fit as framerates are actually not dependent on emulator, but based on the consoles themselves. Might still be workable though.
http://www.youtube.com/Noxxa <dwangoAC> This is a TAS (...). Not suitable for all audiences. May cause undesirable side-effects. May contain emulator abuse. Emulator may be abusive. This product contains glitches known to the state of California to cause egg defects. <Masterjun> I'm just a guy arranging bits in a sequence which could potentially amuse other people looking at these bits <adelikat> In Oregon Trail, I sacrificed my own family to save time. In Star trek, I killed helpless comrades in escape pods to save time. Here, I kill my allies to save time. I think I need help.
Site Admin, Skilled player (1254)
Joined: 4/17/2010
Posts: 11486
Location: Lake Char­gogg­a­gogg­man­chaugg­a­gogg­chau­bun­a­gung­a­maugg
If emulator breaks the original hardware framerate it sucks, no? It's an emulator resource after all.
Warning: When making decisions, I try to collect as much data as possible before actually deciding. I try to abstract away and see the principles behind real world events and people's opinions. I try to generalize them and turn into something clear and reusable. I hate depending on unpredictable and having to make lottery guesses. Any problem can be solved by systems thinking and acting.
Editor, Expert player (2330)
Joined: 5/15/2007
Posts: 3933
Location: Germany