Yay, it works as intended now! I rewrote all the status bytes to match their corresponding channel settings, and this solved the issue with loading and saving patches. I then encountered a problem where the CC values were being altered by the control change function, but I finally managed to deactivate it.
Although I barely know anything about programming and C++, with the help of GitHub Copilot, I was able to customize the script to fit my needs. It now works seamlessly with my Grid Controller, which sends the correct NTS-1 CCs. The script functions exactly like the original but ignores all the board’s logic and simply transmits the original CC values.
If you’d like to take a look, let me know—I saved it to my account.