Closed JeffPaine4890 closed 1 year ago
Thanks for the effort. I will squash merge that one later as the amont of changes is very small and the commit history is too detailed in this case. I will also try to improve readibility on that if-block because it's in pretty bad shape now.
Some learning/reading resources for future contributions as we see great value in a linear and well broken down git history for future reference:
There is a lot more out there, but these should serve as entry points to the different topics and knowing what you need to google for.
Take some time and have a read, I hope these are valuable and help.
Thanks for the links
As for the if block, when I was working on it I found it a great help just to put an empty line between the checks for vertices[0].x, vertices[0].y, vertices[1].x, etc. I wasn't sure if that would conflict with the existing code style so I removed all the blank lines before I committed. But maybe just putting some comments in there to separate things would help.
Sorry for the late reply, life kept me busy during the week. I will move forward and merge your branch once I wrapped up some work of my own. I found a nice way to de-clutter the module and also improve the UV patching code to make it more readable.
If you are interested, you can take a peek at these helpers on my PR already. I want to copy-paste and tweak them for the UV patching.
Resolves #238
Only a couple things I'm not sure about:
This greatly expands the range of where the vertices can be for the function to identify it as a BGA that needs to be fixed. I doubt this will be an issue because I can't think of any situation where any of the games play a video even remotely in those positions outside of a song, but you'd probably know better than me if there would be any issues on that front
I did notice you were checking a lot of the vertex positions to a specific value +/- 0.1, in my implementation I simply used the values as the edge of a >= or <= case. Is that extra 0.1 margin of error necessary, or was that just implemented as a "just in case?" If you think it's necessary we could probably just bump the edges another 0.1 (i.e. instead of checking for between 164 and 168 we check for between 163.9 and 168.1)
If you need it for anything, here are the vertex positions for the 9th/10th videos: