An update: I fixed the problem. Like an idiot I used a decoder to read the file but didn’t encode it afterwards and just changed the file type from txt to rmmzsave. Lost a day of progress due to my tampering but better than restarting the game.