Mathnerd314 {l Wrote}:Excellent, and I look forward to seeing it optimized; would you mind the code changes being merged back into the main version? Then people would be able to use the Windows nightly for speedrunning.
My code is way too ugly to be merged back upstream.
My goal was to have code in only a few places and only using the input system, so that:
- people could easily read the code change and see that the TAS does not cheat
- be sure that the TAS only does things you could do with a gamepad, as it uses the input system.
I hardcoded the chosen path (going down at bifurcation) and some other things.
So no this code is not made to be merged upstream.
brmbrmcar {l Wrote}:How do you change these files? It is just a random_seed number.
No it’s not, they are binary files, you need to edit them with a binary editor. I use okteta.
You have the random seed indeed, and then you have blocks of 6 bytes for each frame, saying if each button is pressed or not. The buttons are ordered as LEFT RIGHT UP DOWN JUMP ACTION. (And it seems a lost of disk space to use whole bytes to store 1 and 0s but whatever).