Prrsha
Farmhand
Times like these remind me of the art and complexity of coding. Like in life there are so many paths or ideas to get to a desirable result. Some can be longer or some can be shorter… just always remember to terminate your code after. XDTo add to this to hopefully get it fixed in the next patch (1.6.9 soon pls?):
This crash occurs when collecting the rewards but I believe the bug itself is in the OnRaceWon function. Specifically this section here:
If you get the special reward for the first time in a day racer 3 wins, then it doesn't set the key to collect rewards, and as a bonus it also doesn't set you as a winning farmer just below. This then causes the crash when in CollectRacePrizes it tries to obtain the value this.rewardsToCollect[Game1.player.UniqueMultiplayerID].Code:if (winner == 3 && !this.specialRewardsCollected.ContainsKey(kvp.Key)) { this.specialRewardsCollected[kvp.Key] = false; continue; } if (!this.rewardsToCollect.ContainsKey(kvp.Key)) { this.rewardsToCollect[kvp.Key] = 0; } this.rewardsToCollect[kvp.Key]++;
As this was not set as the loop was exitted prematurely, it causes the crash.
I think it would be better if the code was changed to:
That way the key is set, so no crash, and the rest of the code in the loop runs to set you to be a winning farmer.Code:if (!this.rewardsToCollect.ContainsKey(kvp.Key)) { this.rewardsToCollect[kvp.Key] = 0; } if (winner == 3 && !this.specialRewardsCollected.ContainsKey(kvp.Key)) { this.specialRewardsCollected[kvp.Key] = false; } else { this.rewardsToCollect[kvp.Key]++; }
Nice work around btw…
Hi There!
My bug is regarding
books that I've read. My experience for Farming is already level 10
and I am currently working on my Mastery skill points. Even though I've had level 10 for Farming, I wanted to read the "Stardew Valley Almanac" Skill Book to gain more skill for the Mastery skill points. Note that I have not read this specific book yet. So I had two copies and I wanted to read one to have it on record in my Special Items & Powers tab that I've read it. I know personally that I've read it, but I would like it to also be recorded for achievement purposes. Also, because I had 2 of those books, I was expecting the unused book to have a thumbs up icon on it to show that I have read it. I'm assuming because my Farming skill is already 10 that it's not reading the farming skill type of book correctly being that it was read? I don't want to test out the other book(s) that I haven't read yet until this is fixed. 
lol. I don't know if that actually has anything to do with it, but maybe he's re-written all of my books that I've collected and he only wants me to read his books, lol JK! Thank you so much! I appreciate all your work on this amazing game! Love, a forever Stardew fan... 