Changes

Jump to navigation Jump to search
m
Line 72: Line 72:  
::::Article edit made. I ran a few more tests, hoping I could get the game to do something different. Even when I ran the file from two days before the first rainy day (and the weather changed so it ended up being three days before rain), the resulting bird was the same one in the same location. Not impossible odds, but every type of run is proving to give the same arrangement. In my game, everything begins with a ruby-gem bird in Island North. I assume not everyone experiences that! (?) [[User:Giles|Giles]] ([[User talk:Giles|talk]]) 07:38, 15 September 2021 (UTC)
 
::::Article edit made. I ran a few more tests, hoping I could get the game to do something different. Even when I ran the file from two days before the first rainy day (and the weather changed so it ended up being three days before rain), the resulting bird was the same one in the same location. Not impossible odds, but every type of run is proving to give the same arrangement. In my game, everything begins with a ruby-gem bird in Island North. I assume not everyone experiences that! (?) [[User:Giles|Giles]] ([[User talk:Giles|talk]]) 07:38, 15 September 2021 (UTC)
   −
:::::Hi, Gile! Sorry for the incorrect interpretation. I tried to look into the codes again and tested in the game. Also, maybe there are still some mistakes. As you said, the "uniqueIDForThisGame" is unique for the save file. I got it wrong because that I took the name of the function for granted. The function to generate the "uniqueIDForThisGame" which calculated by "current UTC time - (2012, 6, 22)" is called "CleanupReturningToTitle" and executed when the variable "exitToTitle" is true. However, I didn't realized that the game saves the "uniqueIDForThisGame" as you said and then loaded it when you load the game. Therefore, the "uniqueIDForThisGame" doesn't change in the same game save.
+
:::::Hi, Giles! Sorry for the incorrect interpretation. I tried to look into the codes again and tested in the game. Also, maybe there are still some mistakes. As you said, the "uniqueIDForThisGame" is unique for the save file. I got it wrong because that I took the name of the function for granted. The function to generate the "uniqueIDForThisGame" which calculated by "current UTC time - (2012, 6, 22)" is called "CleanupReturningToTitle" and executed when the variable "exitToTitle" is true. However, I didn't realized that the game saves the "uniqueIDForThisGame" as you said and then loaded it when you load the game. Therefore, the "uniqueIDForThisGame" doesn't change in the same game save.
 
:::::Apart from "uniqueIDForThisGame", the game also saves "currentGemBirdIndex" in the save file and can loaded it from the file. The point is that the game executes the codes that I posted once in each rainy day. But the function Utility.Shuffle ouputs the same list when the seed "uniqueIDForThisGame" and imported list keep same. And the "currentGemBirdIndex" = ("currentGemBirdIndex" +1)%4 which means the index circulated in <nowiki>[0,1,2,3]</nowiki>.
 
:::::Apart from "uniqueIDForThisGame", the game also saves "currentGemBirdIndex" in the save file and can loaded it from the file. The point is that the game executes the codes that I posted once in each rainy day. But the function Utility.Shuffle ouputs the same list when the seed "uniqueIDForThisGame" and imported list keep same. And the "currentGemBirdIndex" = ("currentGemBirdIndex" +1)%4 which means the index circulated in <nowiki>[0,1,2,3]</nowiki>.
 
:::::Therefore, the location order doesn't change in the same save, and the gem's location is recurrent in each rainy day. Sorry for the wrong interpretation again. You can add extra information to the article if you want. Relating references: <code><nowiki>StardewValley.Game1::_newDayAfterFade</nowiki></code>, <code><nowiki>StardewValley.Utility::Shuffle</nowiki></code>. Thanks! --<small>[[User:Horizon98|Horizon98]] ([[User talk:Horizon98|Discussion]])</small> 07:46, 15 September 2021 (UTC)
 
:::::Therefore, the location order doesn't change in the same save, and the gem's location is recurrent in each rainy day. Sorry for the wrong interpretation again. You can add extra information to the article if you want. Relating references: <code><nowiki>StardewValley.Game1::_newDayAfterFade</nowiki></code>, <code><nowiki>StardewValley.Utility::Shuffle</nowiki></code>. Thanks! --<small>[[User:Horizon98|Horizon98]] ([[User talk:Horizon98|Discussion]])</small> 07:46, 15 September 2021 (UTC)
1,078

edits

Navigation menu