I had this for a long time and never put it out there, but with the recent re-release of Rune Factory 4 for the Switch, maybe someone else could find it useful. In any case, it's here for posterity.
This should work for both normal and special version of the game, and works on both the save slot files as well as the "save selection" file a.k.a the system save, which governs unlocks across saves and character names.
The save has a simple CRC32 error check that prevents modification, so a simple script is enough to fix it.
https://pastebin.com/fRvqRduA