Changes

Jump to navigation Jump to search
835 bytes removed ,  01:54, 8 December 2019
remove Harmony (replaced by Modding:Modder Guide/APIs/Harmony)
Line 510: Line 510:     
If you add a dynamic letter and inject it into the content at Day Ending, you have to add the mail for display tomorrow obviously.  That means the game will be saved with a reference to the dynamic letter ("MyMailModWool" in this example) pending in the mail box.  If the player quits the game at that point and returns later to continue playing, then that dynamic letter is not available, resulting in a "phantom letter".  The mailbox will show a letter is available but when clicked on nothing will display.  This can be handled in several ways, including by saving the custom letters and loading them when the player continues, but again this example code does not cover that yet.  That is why the example uses On Day Starting and makes the letter available right away.
 
If you add a dynamic letter and inject it into the content at Day Ending, you have to add the mail for display tomorrow obviously.  That means the game will be saved with a reference to the dynamic letter ("MyMailModWool" in this example) pending in the mail box.  If the player quits the game at that point and returns later to continue playing, then that dynamic letter is not available, resulting in a "phantom letter".  The mailbox will show a letter is available but when clicked on nothing will display.  This can be handled in several ways, including by saving the custom letters and loading them when the player continues, but again this example code does not cover that yet.  That is why the example uses On Day Starting and makes the letter available right away.
  −
==Harmony==
  −
{{quote|Here be dragons. Thou art forewarned.}}
  −
  −
{{github|pardeike/Harmony|Harmony}} lets you patch Stardew Valley methods directly. This is very powerful, but comes with major caveats:
  −
  −
* It's very easy to cause crashes, errors, or subtle bugs, including difficult-to-diagnose memory corruption errors.
  −
* SMAPI can't detect incompatible Harmony code.
  −
* Crossplatform compatibility is not guaranteed, and should be tested on all three platforms.
  −
* May conflict with other Harmony mods (e.g. if two mods patch the same method, or two mods try to load different versions of Harmony).
  −
* Harmony patches may have unpredictable effects on other mods that aren't using Harmony.
  −
* Harmony patches may prevent you from attaching a debugger when testing.
  −
  −
Using Harmony should be a last resort, and is deliberately not documented.
      
==Other==
 
==Other==
translators
8,403

edits

Navigation menu