2017-01-20 01:22:32 +08:00
# Release notes
2016-10-31 11:59:51 +08:00
2017-03-04 09:25:01 +08:00
<!--
## 2.0
See [log ](https://github.com/Pathoschild/SMAPI/compare/1.9...2.0 ).
For mod developers:
2017-03-04 09:57:52 +08:00
* Added `ContentEvents.AssetLoading` event with a helper which lets you intercept the XNB content
load, and dynamically adjust or replace the content being loaded (including support for patching
images).
2017-03-04 09:25:01 +08:00
-->
2017-02-08 09:50:41 +08:00
## 1.9
See [log ](https://github.com/Pathoschild/SMAPI/compare/1.8...1.9 ).
For players:
2017-03-17 04:51:30 +08:00
* Updated for Stardew Valley 1.2.
* SMAPI now rewrites many mods for compatibility with game updates, but some mods will need an update.
* SMAPI now detects incompatible mods and disables them before they cause problems.
* SMAPI now allows mods nested into an otherwise empty parent folder (like `Mods\ModName-1.0\ModName\manifest.json` ), since that's a common default behaviour when unpacking mods.
* The installer now detects if you need to update .NET Framework before installing SMAPI.
* The console now has simpler error messages.
* The console now has improved command handling & feedback.
* The console no longer shows the game's debug output (unless you use a _SMAPI for developers_ build).
* Fixed the game-needs-an-update error not pausing before exit.
2017-02-13 08:41:15 +08:00
* Fixed installer errors for some players when deleting files.
2017-02-19 14:07:04 +08:00
* Fixed installer not ignoring potential game folders that don't contain a Stardew Valley exe.
2017-02-19 14:29:30 +08:00
* Fixed installer not recognising Linux/Mac paths starting with `~/` or containing an escaped space.
2017-03-02 08:20:11 +08:00
* Fixed TrainerMod letting you add invalid items which may crash the game.
2017-03-02 09:06:03 +08:00
* Fixed TrainerMod's `world_downminelevel` command not working.
2017-02-17 14:44:19 +08:00
* Fixed rare issue where mod dependencies would override SMAPI dependencies and cause unpredictable bugs.
2017-03-17 04:51:30 +08:00
* Fixed errors in mods' console command handlers crashing the game.
2017-02-08 09:50:41 +08:00
For mod developers:
2017-02-13 14:27:49 +08:00
* Added a simpler API for console commands (see `helper.ConsoleCommands` ).
2017-03-17 04:51:30 +08:00
* Added `SaveEvents.AfterReturnToTitle` event triggered when the player returns to the title screen.
* Added `TimeEvents.AfterDayStarted` event triggered when a day starts. This happens no matter how the day started (including new game, loaded save, or player went to bed).
* Added `ContentEvents.AfterLocaleChanged` event triggered when the player changes the content language.
* Added `GetPrivateProperty` to the reflection helper.
2017-03-02 09:20:58 +08:00
* SMAPI now writes XNA input enums (`Buttons` and `Keys` ) to JSON as strings automatically, so mods no longer need to add a `StringEnumConverter` themselves for those.
2017-03-17 04:51:30 +08:00
* The SMAPI log now has a simpler filename.
* The SMAPI log now shows the OS caption (like "Windows 10") instead of its internal version when available.
* The SMAPI log now always uses `\r\n` line endings to simplify crossplatform viewing.
2017-03-12 06:28:39 +08:00
* Fixed `SaveEvents.AfterLoad` being raised during the new-game intro before the player is initialised.
2017-02-17 02:59:13 +08:00
* Several obsolete APIs have been removed (see [deprecation guide ](http://canimod.com/guides/updating-a-smapi-mod )),
and all _notice_ -level deprecations have been increased to _info_ .
2017-03-17 04:51:30 +08:00
* Removed the experimental `IConfigFile` .
2017-02-08 09:50:41 +08:00
2017-02-11 08:22:22 +08:00
For SMAPI developers:
2017-03-17 04:51:30 +08:00
* Added support for debugging SMAPI on Linux/Mac if supported by the editor.
2017-02-11 08:22:22 +08:00
2017-01-26 11:30:07 +08:00
## 1.8
See [log ](https://github.com/Pathoschild/SMAPI/compare/1.7...1.8 ).
2017-02-03 12:45:09 +08:00
For players:
2017-02-05 04:30:26 +08:00
* Mods no longer generate `.cache` subfolders.
2017-02-03 12:45:09 +08:00
* Fixed multiple issues where mods failed during assembly loading.
2017-02-04 11:02:54 +08:00
* Tweaked install package to reduce confusion.
2017-02-03 12:45:09 +08:00
For mod developers:
2017-02-05 04:30:26 +08:00
* The `SemanticVersion` constructor now accepts a string version.
2017-02-05 04:27:13 +08:00
* Increased deprecation level for `Extensions` to _pending removal_ .
2017-02-05 04:30:26 +08:00
* **Warning:** `Assembly.GetExecutingAssembly().Location` will no longer reliably
return a valid path, because mod assemblies are loaded from memory when rewritten for
compatibility. This approach has been discouraged since SMAPI 1.3; use `helper.DirectoryPath`
instead.
2017-02-03 09:47:54 +08:00
2017-02-03 12:45:09 +08:00
For SMAPI developers:
* Rewrote assembly loading from the ground up. The new implementation...
* is much simpler;
2017-02-04 14:22:31 +08:00
* eliminates the `.cache` folders by loading rewritten assemblies from memory;
* ensures DLLs are loaded in leaf-to-root order (i.e. dependencies first);
2017-02-03 12:45:09 +08:00
* improves dependent assembly resolution;
2017-02-04 14:22:31 +08:00
* no longer loads DLLs if they're not referenced;
2017-02-03 12:45:09 +08:00
* reduces log verbosity.
2017-01-26 11:30:07 +08:00
2017-01-19 10:32:38 +08:00
## 1.7
See [log ](https://github.com/Pathoschild/SMAPI/compare/1.6...1.7 ).
2017-01-19 14:10:13 +08:00
For players:
2017-01-20 01:22:32 +08:00
* The console now shows the folder path where mods should be added.
* The console now shows deprecation warnings after the list of loaded mods (instead of intermingled).
2017-01-19 14:10:13 +08:00
2017-01-19 10:32:38 +08:00
For mod developers:
2017-01-20 01:22:32 +08:00
* Added a mod registry which provides metadata about loaded mods.
* The `Entry(…)` method is now deferred until all mods are loaded.
* Fixed `SaveEvents.BeforeSave` and `.AfterSave` not triggering on days when the player shipped something.
2017-01-19 10:32:38 +08:00
* Fixed `PlayerEvents.LoadedGame` and `SaveEvents.AfterLoad` being fired before the world finishes initialising.
2017-01-19 11:14:50 +08:00
* Fixed some `LocationEvents` , `PlayerEvents` , and `TimeEvents` being fired during game startup.
2017-01-20 01:22:32 +08:00
* Increased deprecation levels for `SObject` , `LogWriter` (not `Log` ), and `Mod.Entry(ModHelper)` (not `Mod.Entry(IModHelper)` ) to _pending removal_ . Increased deprecation levels for `Mod.PerSaveConfigFolder` , `Mod.PerSaveConfigPath` , and `Version.VersionString` to _info_ .
2017-01-19 10:32:38 +08:00
2017-01-16 09:19:32 +08:00
## 1.6
2017-01-16 10:31:31 +08:00
See [log ](https://github.com/Pathoschild/SMAPI/compare/1.5...1.6 ).
2017-01-12 03:00:13 +08:00
For players:
2017-01-16 09:19:32 +08:00
* Added console commands to open the game/data folders.
2017-01-12 03:00:13 +08:00
* Updated list of incompatible mods.
2017-01-16 09:19:32 +08:00
* Fixed `config.json` values being duplicated in some cases.
* Fixed some Linux users not being able to launch SMAPI from Steam.
* Fixed the installer not finding custom install paths on 32-bit Windows.
* Fixed error when loading a mod which was released with a `.cache` folder for a different platform.
* Fixed error when the console doesn't support colour.
* Fixed error when a mod reads a custom JSON file from a directory that doesn't exist.
2017-01-12 03:00:13 +08:00
2017-01-15 01:26:59 +08:00
For mod developers:
2017-01-16 08:21:26 +08:00
* Added three events: `SaveEvents.BeforeSave` , `SaveEvents.AfterSave` , and `SaveEvents.AfterLoad` .
* Deprecated three events:
2017-01-16 09:19:32 +08:00
* `TimeEvents.OnNewDay` is unreliable; use `TimeEvents.DayOfMonthChanged` or `SaveEvents` instead.
* `PlayerEvents.LoadedGame` is replaced by `SaveEvents.AfterLoad` .
2017-01-16 08:21:26 +08:00
* `PlayerEvents.FarmerChanged` serves no purpose.
2017-01-15 01:26:59 +08:00
2017-01-14 13:59:19 +08:00
For SMAPI developers:
* Added support for specifying a lower bound in mod incompatibility data.
2017-01-16 09:19:32 +08:00
* Added support for custom incompatible-mod error text.
2017-01-15 11:47:54 +08:00
* Fixed issue where `TrainerMod` used older logic to detect the game path.
2017-01-14 13:59:19 +08:00
2016-12-19 02:28:23 +08:00
## 1.5
2016-12-24 01:43:42 +08:00
See [log ](https://github.com/Pathoschild/SMAPI/compare/1.4...1.5 ).
2016-12-19 02:28:23 +08:00
For players:
2016-12-24 01:43:42 +08:00
* Added an option to disable update checks.
2016-12-23 02:08:45 +08:00
* SMAPI will now show a friendly error with update links when you try to use a known incompatible mod version.
2016-12-24 01:43:42 +08:00
* Fixed an error when a mod uses the new reflection API on a missing field or method.
* Fixed an issue where mods weren't notified of a menu change if it changed while SMAPI was still notifying mods of the previous change.
2016-12-19 02:28:23 +08:00
2016-12-22 23:26:00 +08:00
For developers:
* Deprecated `Version` in favour of `SemanticVersion` .
2016-12-24 01:43:42 +08:00
_This new implementation is [semver 2.0](http://semver.org/)-compliant, introduces `NewerThan(version)` and `OlderThan(version)` convenience methods, adds support for parsing a version string into a `SemanticVersion`, and fixes various bugs with the former implementation. This also replaces `Manifest` with `IManifest`._
2016-12-24 01:36:03 +08:00
* Increased deprecation levels for `SObject` , `Extensions` , `LogWriter` (not `Log` ), `SPlayer` , and `Mod.Entry(ModHelper)` (not `Mod.Entry(IModHelper)` ).
2016-12-22 23:26:00 +08:00
2016-12-13 00:20:31 +08:00
## 1.4
2016-12-19 02:28:23 +08:00
See [log ](https://github.com/Pathoschild/SMAPI/compare/1.3...1.4 ).
2016-12-06 13:45:22 +08:00
For players:
2016-12-13 00:20:31 +08:00
* SMAPI will now prevent mods from crashing your game with menu errors.
2016-12-09 01:15:10 +08:00
* The installer will now automatically detect most custom install paths.
* The installer will now automatically clean up old SMAPI files.
2016-12-11 03:29:38 +08:00
* Each mod now has its own `.cache` folder, so removing the mod won't leave orphaned cache files behind.
* Improved installer wording to reduce confusion.
2016-12-08 11:43:05 +08:00
* Fixed the installer not removing TrainerMod from appdata if it's already in the game mods directory.
* Fixed the installer not moving mods out of appdata if the game isn't installed on the same Windows partition.
2016-12-11 03:29:38 +08:00
* Fixed the SMAPI console not being shown on Linux and Mac.
2016-12-06 13:45:22 +08:00
For developers:
2016-12-11 03:29:38 +08:00
* Added a reflection API (via `helper.Reflection` ) that simplifies robust access to the game's private fields and methods.
* Added a searchable `list_items` console command to replace the `out_items` , `out_melee` , and `out_rings` commands.
2016-12-08 11:05:14 +08:00
* Added `TypeLoadException` details when intercepted by SMAPI.
2016-12-07 11:19:38 +08:00
* Fixed an issue where you couldn't debug into an assembly because it was copied into the `.cache` directory. That will now only happen if necessary.
2016-12-06 13:45:22 +08:00
2016-11-30 08:24:00 +08:00
## 1.3
2016-12-19 02:28:23 +08:00
See [log ](https://github.com/Pathoschild/SMAPI/compare/1.2...1.3 ).
2016-11-30 08:24:00 +08:00
For players:
* You can now run most mods on any platform (e.g. run Windows mods on Linux/Mac).
2016-11-30 08:42:27 +08:00
* Fixed the normal uninstaller not removing files added by the 'SMAPI for developers' installer.
2016-11-30 08:24:00 +08:00
2016-11-25 01:19:57 +08:00
## 1.2
2016-12-19 02:28:23 +08:00
See [log ](https://github.com/Pathoschild/SMAPI/compare/1.1.1...1.2 ).
2016-11-24 09:21:12 +08:00
For players:
* Fixed compatibility with some older mods.
2016-11-25 01:19:57 +08:00
* Fixed mod errors in most event handlers crashing the game.
* Fixed mod errors in some event handlers preventing other mods from receiving the same event.
2016-11-25 01:43:28 +08:00
* Fixed game crashing on startup with an audio error for some players.
2016-11-24 09:21:12 +08:00
2016-11-24 09:23:42 +08:00
For developers:
2016-11-25 01:19:57 +08:00
* Improved logging to show `ReflectionTypeLoadException` details when it's caught by SMAPI.
2016-11-24 09:23:42 +08:00
2016-11-15 08:27:44 +08:00
## 1.1
2016-12-19 02:28:23 +08:00
See [log ](https://github.com/Pathoschild/SMAPI/compare/1.0...1.1.1 ).
2016-11-15 08:27:44 +08:00
2016-11-17 06:42:44 +08:00
For players:
* Fixed console exiting immediately when some exceptions occur.
* Fixed an error in 1.0 when mod uses `config.json` but the file doesn't exist.
* Fixed critical errors being saved to a separate log file.
2016-11-24 09:21:12 +08:00
* Fixed compatibility with some older mods.< sup > 1.1.1</ sup >
2016-11-20 05:03:45 +08:00
* Fixed race condition where some mods would sometimes crash because the game wasn't ready yet.< sup > 1.1.1</ sup >
2016-11-17 06:42:44 +08:00
For developers:
* Added new logging interface:
* easier to use;
* supports trace logs (written to the log file, but hidden in the console by default);
* messages are now listed in order;
* messages now show which mod logged them;
* more consistent and intuitive console color scheme.
* Added optional `MinimumApiVersion` to `manifest.json` .
2016-11-17 11:41:27 +08:00
* Added emergency interrupt feature for dangerous mods.
2016-11-19 13:17:58 +08:00
* Fixed deprecation warnings being repeated if the mod can't be identified.< sup > 1.1.1</ sup >
2016-11-15 08:27:44 +08:00
2016-11-08 05:26:31 +08:00
## 1.0
2016-12-19 02:28:23 +08:00
See [log ](https://github.com/Pathoschild/SMAPI/compare/0.40.1.1-3...1.0 ).
2016-11-08 05:26:31 +08:00
For players:
2016-10-31 11:59:51 +08:00
* Added support for Linux and Mac.
2016-11-04 12:07:17 +08:00
* Added installer to automate adding & removing SMAPI.
2016-11-03 12:43:41 +08:00
* Added background update check on launch.
2016-11-08 05:26:31 +08:00
* Fixed missing `steam_appid.txt` file.
* Fixed some mod UIs disappearing at a non-default zoom level for some users.
* Removed undocumented support for mods in AppData folder ** (breaking change)**.
* Removed `F2` debug mode.
For mod developers:
* Added deprecation warnings.
2016-11-03 12:25:54 +08:00
* Added OS version to log.
2016-11-03 12:43:41 +08:00
* Added zoom-adjusted mouse position to mouse-changed event arguments.
2016-11-08 05:26:31 +08:00
* Added SMAPI code documentation.
2016-11-03 12:31:51 +08:00
* Switched to [semantic versioning ](http://semver.org ).
2016-11-08 05:26:31 +08:00
* Fixed mod versions not shown correctly in the log.
2016-11-03 12:25:54 +08:00
* Fixed misspelled field in `manifest.json` schema.
2016-11-08 05:26:31 +08:00
* Fixed some events getting wrong data.
* Simplified log output.
For SMAPI developers:
* Simplified compiling from source.
* Formalised release process and added automated build packaging.
* Removed obsolete and unfinished code.
* Internal cleanup & refactoring.
2016-10-31 11:59:51 +08:00
## 0.x
2016-12-19 02:28:23 +08:00
* 0.40.1.1 (2016-09-30, [log ](https://github.com/Pathoschild/SMAPI/compare/0.40.0...0.40.1.1-3 ))
2016-10-31 11:59:51 +08:00
* Added support for Stardew Valley 1.1.
2016-12-19 02:28:23 +08:00
* 0.40.0 (2016-04-05, [log ](https://github.com/Pathoschild/SMAPI/compare/0.39.7...0.40.0 ))
2016-10-31 11:59:51 +08:00
* Fixed an error that ocurred during minigames.
2016-12-19 02:28:23 +08:00
* 0.39.7 (2016-04-04, [log ](https://github.com/Pathoschild/SMAPI/compare/0.39.6...0.39.7 ))
2016-10-31 11:59:51 +08:00
* Added 'no check' graphics events that are triggered regardless of game's if checks.
2016-12-19 02:28:23 +08:00
* 0.39.6 (2016-04-01, [log ](https://github.com/Pathoschild/SMAPI/compare/0.39.5...0.39.6 ))
2016-10-31 11:59:51 +08:00
* Added game & SMAPI versions to log.
* Fixed conflict in graphics tick events.
* Bug fixes.
2016-12-19 02:28:23 +08:00
* 0.39.5 (2016-03-30, [log ](https://github.com/Pathoschild/SMAPI/compare/0.39.4...0.39.5 ))
* 0.39.4 (2016-03-29, [log ](https://github.com/Pathoschild/SMAPI/compare/0.39.3...0.39.4 ))
* 0.39.3 (2016-03-28, [log ](https://github.com/Pathoschild/SMAPI/compare/0.39.2...0.39.3 ))
* 0.39.2 (2016-03-23, [log ](https://github.com/Pathoschild/SMAPI/compare/0.39.1...0.39.2 ))
* 0.39.1 (2016-03-23, [log ](https://github.com/Pathoschild/SMAPI/compare/0.38.8...0.39.1 ))
* 0.38.8 (2016-03-23, [log ](https://github.com/Pathoschild/SMAPI/compare/0.38.7...0.38.8 ))
* 0.38.7 (2016-03-23, [log ](https://github.com/Pathoschild/SMAPI/compare/0.38.6...0.38.7 ))
* 0.38.6 (2016-03-22, [log ](https://github.com/Pathoschild/SMAPI/compare/0.38.5...0.38.6 ))
* 0.38.5 (2016-03-22, [log ](https://github.com/Pathoschild/SMAPI/compare/0.38.4...0.38.5 ))
* 0.38.4 (2016-03-21, [log ](https://github.com/Pathoschild/SMAPI/compare/0.38.3...0.38.4 ))
* 0.38.3 (2016-03-21, [log ](https://github.com/Pathoschild/SMAPI/compare/0.38.2...0.38.3 ))
* 0.38.2 (2016-03-21, [log ](https://github.com/Pathoschild/SMAPI/compare/0.38.0...0.38.2 ))
* 0.38.0 (2016-03-20, [log ](https://github.com/Pathoschild/SMAPI/compare/0.38.1...0.38.0 ))
* 0.38.1 (2016-03-20, [log ](https://github.com/Pathoschild/SMAPI/compare/0.37.3...0.38.1 ))
* 0.37.3 (2016-03-08, [log ](https://github.com/Pathoschild/SMAPI/compare/0.37.2...0.37.3 ))
* 0.37.2 (2016-03-07, [log ](https://github.com/Pathoschild/SMAPI/compare/0.37.1...0.37.2 ))
* 0.37.1 (2016-03-06, [log ](https://github.com/Pathoschild/SMAPI/compare/0.36...0.37.1 ))
* 0.36 (2016-03-04, [log ](https://github.com/Pathoschild/SMAPI/compare/0.37...0.36 ))
* 0.37 (2016-03-04, [log ](https://github.com/Pathoschild/SMAPI/compare/0.35...0.37 ))
* 0.35 (2016-03-02, [log ](https://github.com/Pathoschild/SMAPI/compare/0.34...0.35 ))
* 0.34 (2016-03-02, [log ](https://github.com/Pathoschild/SMAPI/compare/0.33...0.34 ))
* 0.33 (2016-03-02, [log ](https://github.com/Pathoschild/SMAPI/compare/0.32...0.33 ))
* 0.32 (2016-03-02, [log ](https://github.com/Pathoschild/SMAPI/compare/0.31...0.32 ))
* 0.31 (2016-03-02, [log ](https://github.com/Pathoschild/SMAPI/compare/0.3...0.31 ))
* 0.3 (2016-03-01, [log ](https://github.com/Pathoschild/SMAPI/compare/Alpha0.2...0.3 ))
* 0.2 (2016-02-29, [log ](https://github.com/Pathoschild/SMAPI/compare/Alpha0.1...Alpha0.2 )
2016-11-04 12:07:17 +08:00
* 0.1 (2016-02-28)