I applied the patch you uploaded to my code.bin and everything is working great! Thanks for your help :yay3ds:
auto
Ok, the game plays great and everything is randomized the way I set, but it tries to save the main file to SaltySD/sunmoon and crashes. Afterwards it says the save is corrupted...