-
Notifications
You must be signed in to change notification settings - Fork 474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup gameplay stats code/UI and support RTA timing #2862
Cleanup gameplay stats code/UI and support RTA timing #2862
Conversation
So, if I'm reading this correctly, toggling RTA will affect the way all the stat timers are calculated? Is "fileCreatedAt" where the RTA timestamp is kept? If so, what if they make a file an extended time before they start the run? Seems like that could be problematic for races. Are there reset strats that would affect the RTA timer(s)? What about people who wanted realtime info for a save file that took them multiple sessions over multiple days to complete? |
Yes
Yes, this means that when preparing for a race you should be sitting on the name creation screen, upon starting the race/run you create the file and load into it. (This should only take a second or so, but admittedly it is different from when RTA runs start on vanilla)
Not sure what you mean by either of these, if they intended to start an RTA session, and it took them a few days then the time stamps would show when they got it across those few days. But in cases where someone isn’t racing or speed running they probably shouldn’t be using RTA |
It should be easy enough to tie into
Looking back at it, the first one doesn't really make sense XD. But for the second, you can still have different timings if you use RTA because of scumming and such, and someone might want to have that capability for a non-speedrun or non-race run that they can't do in one sitting. Just saying, I wouldn't be surprised if there are people who complain about that. |
The RTA for mine seems to not work properly (Windows) and goes extremely fast. rtatiming.mp4 |
Good point I might look into this, could even start it on first non-c-up input, which is when hardware runs start for RTA.
I’m still not sure I really follow, if they aren’t planning on finishing in one sitting they should just not use RTA right, since the RTA information would be useless to them. |
If you're using the current timer setup, and you reset without saving a lot (aka scumming), then your timers will be off compared to what you are actually spending in the game. |
That’s unfortunate, I had kind of worried that relying on that timing call wasn’t reliable but it worked on Mac/Linux |
Right, this is the point of using RTA. I think I’m just misunderstanding the original statement 😝 |
just note this is for when the intro sequence has been completed, since you need to press buttons through text. i think maybe making an option down the line for a race save file could be an idea too? |
The point being, people might want to know the realtime of their run instead of the scummed times of their run, but they might not get a randomizer done in one sitting, and that means that they would have numerous hours of non-run-time included in the RTA stats. Thinking about it now, that probably shouldn't be something you tie into RTA with, since that's meant to be speedrun with, but maybe there should be a third option later on, if you don't intend to make the play/pause time version keep track of that with sectional saving. |
If you’re saying a user might want to know both gameplay time and scummed time, I think that would be separate from this, and would likely be solved with the sectional saving thing you are working on |
@Malkierian Yeah it looks like we both met in the middle 😅 I think that would indeed be separate from RTA |
Yeah, I imagine on most races/runs the intro cutscene will be skipped, but it shouldn’t be too hard to account for both cases |
7051887
to
917acc1
Compare
@inspectredc I seem to have fixed this on Windows, probably need to verify it works on switch before merging this |
Yep works on windows now! |
f555ea4
to
80c881e
Compare
The RTA timestamp is now started on first non-c-up input after intro cutscene. (this is inline with the RTA timing rules on hardware runs) |
80c881e
to
52c9d6e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems this will underflow if the player sets their clock back too far but I don't think that's a dealbreaker. Overall these changes look great.
Anyone tested on Switch that you're aware of? If not I'll check it out and merge if it works, if it has been tested then I'll just merge. |
I just went ahead and tested it, seems to work fine on Switch, so I'm merging now. |
This aims to cleanup some of the UI quirks of the GameplayStats interface, as well as support for RTA timing.
To use RTA timing the user will need to check the box then create a new file with the box checked, this will make the new file use RTA timestamps.
The UI now stretches to fill the window, so people can make it as skinny or as wide as desired.
New RTA file completed:
![Screenshot 2023-05-08 at 4 13 09 PM](https://user-images.githubusercontent.com/7316699/236937512-0f3cec37-b64d-4a5c-bda0-a7fd9104f529.png)
New timestamps:
![Screenshot 2023-05-08 at 4 13 30 PM](https://user-images.githubusercontent.com/7316699/236937599-b673d05f-5a8c-4f98-8c47-665b9dcc9402.png)
OLD timestamps:
![Screenshot 2023-05-08 at 4 37 41 PM](https://user-images.githubusercontent.com/7316699/236940760-7266f45b-f4bd-4ca2-8896-f7395fffeccc.png)
New stretched:
![Screenshot 2023-05-08 at 4 22 20 PM](https://user-images.githubusercontent.com/7316699/236938155-7b60a627-d485-4390-9b24-4011feb7aa19.png)
New shrunk:
![Screenshot 2023-05-08 at 4 22 13 PM](https://user-images.githubusercontent.com/7316699/236938188-b97013ba-a01a-45d3-a234-5bd3a0b1587e.png)
New counts:
![Screenshot 2023-05-08 at 4 13 37 PM](https://user-images.githubusercontent.com/7316699/236937662-1901fb05-a127-43bd-97fb-09d9c68cc0f3.png)
Old Counts:
![Screenshot 2023-05-08 at 4 37 43 PM](https://user-images.githubusercontent.com/7316699/236940817-a267713d-9f7b-4f11-876d-a2750c7fc1bc.png)
New breakdown:
![Screenshot 2023-05-08 at 4 13 39 PM](https://user-images.githubusercontent.com/7316699/236937722-e8cd8137-9723-4d3a-a5b2-bbcae656b2ac.png)
Old Breakdown:
![Screenshot 2023-05-08 at 4 37 50 PM](https://user-images.githubusercontent.com/7316699/236940853-5eb33436-cf4a-4f8c-a8c3-eaa97077bb79.png)
Options tab with options enabled:
![Screenshot 2023-05-08 at 4 58 03 PM](https://user-images.githubusercontent.com/7316699/236949045-401da166-4e6d-4299-8c53-cd00f2c24c19.png)
Build Artifacts