Grape Escape 1.3.4 Fix (The Big Bug) (Patreon)
Content
Ladies and gentlemen, after two long weeks, we've finally fixed the purchasing bug! To those of you that are interested in the nitty-gritty details, read on. To the rest of you, thank you so much for your patience. Now go enjoy those upgrades!
Itchio Password (copy and paste the entire thing):
DingDongTheBugIsDead!!!
...Still here? Then I see that you, too, are cursed with knowledge.
So, what could possibly cause an issue on everyone else's systems, but none of mine? That was the question that I've been asking myself these last two weeks.
On the surface, it seemed to be a problem with the purchase button. I looked over it time and time again, but noticed nothing particularly noteworthy. After a LOT of testing through a couple of extremely dedicated people, it was finally determined that... It actually was in the button script. Specifically, something in the button script that called out to a different script: the SaveSerial script.
The SaveSerial script controls all player data in the game. Your high score, how much wine you have, what all you have unlocked, all of it. Well, all of that data has to go somewhere, right? By default, I had it going to... well, the default location, called persistentDataPath. Where this leads depends on the operating system. For Windows, it's as follows:
C: => Users => [user] => AppData => LocalLow => DefaultCompany
(I hadn't set a company name at the time. It's now "Miles Mouse Productions".)
So, what does this have to purchasing stuff? Well, purchasing an upgrade means taking away wine and unlocking it, not to mention allowing you to enable and disable it at will. This all requires the save file that is sent to this path. The thing is... Windows doesn't really like it when files get added without its permission.
That's why it worked on my systems and not on others -- I gave it permission to get past my firewall, or whatever wanted to stop it.
The solution: change the file path to where the game is. Now, in the Grape Escape folder, as soon as you start the game for the first time, you'll see a new folder called "Save Data" with SaveData.dat inside.
Important: If you ever want to keep your save data between game updates, you must copy this folder into the new one. Otherwise you're starting fresh.
TL;DR: It's totally Window's fault. 100% on them and definitely not on me for my lack of knowledge on Unity save files and whatnot. (<_< ) ( >_>)
MASSIVE thanks to Egroj and Infinite Kaioken for enduring all of my tests. Without them, this bug would never have been fixed.
Final Note: This has nothing to do with the bug, but during the writing of this ENTIRE post, I've had a kitten on my lap and a cat on my mousepad. Writing this was quite difficult.