Commit Graph

433 Commits

Author SHA1 Message Date
Jesse Plamondon-Willard 6a18dd6fad merge config files 2017-02-23 22:58:23 -05:00
Jesse Plamondon-Willard 96c7010c1b update for Stardew Valley 1.9 (#231) 2017-02-22 19:48:25 -05:00
Jesse Plamondon-Willard b30d93d0ff add rationale notes to incompatible-mods list (#231) 2017-02-22 19:36:10 -05:00
Jesse Plamondon-Willard 703f5f89a8 fix new error when entering an empty command in SMAPI console 2017-02-21 15:54:48 -05:00
Jesse Plamondon-Willard 7521570341 make mod-not-compatible messages shorter 2017-02-19 20:12:15 -05:00
Jesse Plamondon-Willard 5bbebcb46b mark another incompatible mod (#231) 2017-02-19 19:55:00 -05:00
Jesse Plamondon-Willard 69ed617e56 fix installer not recognising Linux/Mac paths starting with ~ or containing an escaped space 2017-02-19 01:29:30 -05:00
Jesse Plamondon-Willard c72adcd119 use more robust crossplatform path checks in installer 2017-02-19 01:28:00 -05:00
Jesse Plamondon-Willard a893cd9eea fix installer not ignoring potential game folders that don't contain a Stardew Valley exe 2017-02-19 01:07:04 -05:00
Jesse Plamondon-Willard b2efd34fec fix on-post-render graphics event being raised after screen is rendered
This causes mods to draw on top of the rendered screen instead of within it, which leads to strange bugs like cursor coordinates not lining up with the cursor and transparency issues.
2017-02-19 01:02:07 -05:00
Jesse Plamondon-Willard e321362378 fix nullable enums not being written to JSON as string 2017-02-17 13:59:31 -05:00
Jesse Plamondon-Willard 41ee8990f8 write XNA input enums to JSON as strings automatically
Mods often reference Json.NET to do this, so this lets many mods remove Json.NET as a dependency.
2017-02-17 11:33:22 -05:00
Jesse Plamondon-Willard 1dfedd2d1a fix issue where mod dependencies overrode SMAPI dependencies 2017-02-17 01:44:19 -05:00
Jesse Plamondon-Willard 16c362f4c5 increase all notice deprecations to info, tweak deprecation message format 2017-02-16 13:59:13 -05:00
Jesse Plamondon-Willard f8866ac4a8 remove unneeded property for number of mods loaded 2017-02-16 01:10:07 -05:00
Jesse Plamondon-Willard a0c94752c0 remove unneeded property for game exe path 2017-02-16 01:07:11 -05:00
Jesse Plamondon-Willard 960507879e remove unneeded property for game exe path 2017-02-16 01:03:50 -05:00
Jesse Plamondon-Willard 176eddbf7b make SMAPI core non-static, eliminate direct access between core components 2017-02-16 00:54:41 -05:00
Jesse Plamondon-Willard 2c6ab6805d mark more incompatible mods (#231) 2017-02-15 16:27:40 -05:00
Jesse Plamondon-Willard 153c04535f fix typo 2017-02-14 23:37:26 -05:00
Jesse Plamondon-Willard f140e844ed streamline startup a bit 2017-02-14 22:06:06 -05:00
Jesse Plamondon-Willard e804ed5479 mark one constant internal 2017-02-14 13:11:43 -05:00
Jesse Plamondon-Willard 548cbcecc4 mark two internal classes internal 2017-02-14 13:07:30 -05:00
Jesse Plamondon-Willard 8d1b7cbfb8 mark more incompatible mods (#231) 2017-02-14 11:46:41 -05:00
Jesse Plamondon-Willard 32d919a1c3 update draw logic for Stardew Valley 1.2.6 (#231) 2017-02-13 17:40:59 -05:00
Jesse Plamondon-Willard 253a4306cf mark Entoarox Framework incompatible up to 1.6.5 (#231) 2017-02-13 16:50:54 -05:00
Jesse Plamondon-Willard 1038f4e704 mark all Command methods deprecated (#199) 2017-02-13 02:10:55 -05:00
Jesse Plamondon-Willard 845fbaab12 migrate TrainerMod to new API (#199) 2017-02-13 01:19:02 -05:00
Jesse Plamondon-Willard 0441d0843c add new console command API with backward compatibility (#199) 2017-02-13 00:40:33 -05:00
Jesse Plamondon-Willard d1080a8b2b move core JSON logic out of mod helper (#199)
This lets SMAPI parse manifest.json files without a mod helper, so we can pass the mod name into the helper.
2017-02-13 00:13:29 -05:00
Jesse Plamondon-Willard e5324e170c handle permissions & delays in installer's file/folder deletion code (#237) 2017-02-12 19:39:38 -05:00
Jesse Plamondon-Willard 96c21b1acc avoid special case in error printing (#237) 2017-02-12 19:11:00 -05:00
Jesse Plamondon-Willard 95786e9e44 encapsulate file & folder deletion (#237) 2017-02-12 18:43:21 -05:00
Jesse Plamondon-Willard 59ff0a3266 mark another incompatible mod (#231) 2017-02-12 18:26:51 -05:00
Jesse Plamondon-Willard e712336861 mark more incompatible mods (#231) 2017-02-11 14:38:12 -05:00
Jesse Plamondon-Willard 36c831f4c9 fix world-ready events being raised before the game finishes loading the save in SDV 1.2 (#231) 2017-02-11 14:35:25 -05:00
Jesse Plamondon-Willard e393a2aad9 add TimeEvents.AfterDayStarted event (#236) 2017-02-11 12:38:32 -05:00
Jesse Plamondon-Willard 1f332c5f4d remove esoteric & undocumented debug message queue & DrawDebug event 2017-02-11 12:11:45 -05:00
Jesse Plamondon-Willard 693f16f99e don't write direct console output to log file (#233)
Per discussion with mod developers.
2017-02-11 02:08:21 -05:00
Jesse Plamondon-Willard 824ca7174a delve into mod folders that only contain another folder (#208)
This fixes a common issue when users unpack mods into a nested folder (e.g. "SomeMod-1.0.0\SomeMod\manifest.json"), which previously wouldn't be recognised as a mod. SMAPI will not do this if the folder contains files or more than one folder, to prevent backup folders and the like from being loaded.
2017-02-11 02:04:01 -05:00
Jesse Plamondon-Willard 46b7d7a400 redirect the game's debug messages into trace logs (#233)
The game writes debug messages directly to the console, which shows up for SMAPI users. This commit redirects direct console messages to a monitor.
2017-02-11 01:15:56 -05:00
Jesse Plamondon-Willard 3e91af6b06 mark several mods incompatible with Stardew Valley 1.2+ (#231) 2017-02-10 22:52:16 -05:00
Jesse Plamondon-Willard c357013156 tweak debug build config, update release notes 2017-02-10 19:22:22 -05:00
James Stine 8f678d13c1 Mac and Linux debug run works! 🙃 2017-02-10 19:17:05 -05:00
Jesse Plamondon-Willard a6977878d5 remove leftover references to Mono.Cecil.Rocks (#231) 2017-02-10 02:55:27 -05:00
Jesse Plamondon-Willard 56d28ef0d4 make some constants internal (#231) 2017-02-09 23:27:08 -05:00
Jesse Plamondon-Willard 25a3d9773c add field rewriter for the `Game1.gameMode` change in SDV 1.2 (#231) 2017-02-09 23:24:54 -05:00
Jesse Plamondon-Willard 2b336faa1b add field rewriter for the `Game1.player` change in SDV 1.2 (#231) 2017-02-09 23:03:36 -05:00
Jesse Plamondon-Willard 388ef0a012 reorganise rewriters (#231) 2017-02-09 22:56:42 -05:00
Jesse Plamondon-Willard a13003de8b remove Mono.Cecil.Rocks (#231)
It's not needed since we're not injecting new instructions, and causes the field rewriters to fail unexpectedly.
2017-02-09 22:38:10 -05:00
Jesse Plamondon-Willard 3668b0902d fix field rewriter not added to config (#231) 2017-02-09 20:34:34 -05:00
Jesse Plamondon-Willard 5f9c03a8a9 add field rewriter for the `Game1.activeClickableMenu` change in SDV 1.2 (#231) 2017-02-09 14:28:44 -05:00
Jesse Plamondon-Willard 74a56a7b3b further generalise CIL rewriters for reuse (#231) 2017-02-09 14:02:43 -05:00
Jesse Plamondon-Willard 40a9014742 generalise CIL rewriters for reuse (#231) 2017-02-09 13:45:34 -05:00
Jesse Plamondon-Willard 036595cc71 remove old log file to avoid confusion (#231) 2017-02-08 00:53:53 -05:00
Jesse Plamondon-Willard e440d9042e bump minimum game version to 1.2 (#231) 2017-02-08 00:26:32 -05:00
Jesse Plamondon-Willard 6092f9ea00 always use \r\n line endings in log file for crossplatform compatibility (#230) 2017-02-08 00:22:27 -05:00
Jesse Plamondon-Willard d52b3572f3 simplify log filename 2017-02-08 00:17:00 -05:00
Jesse Plamondon-Willard 366769e8a2 add SaveEvents.AfterReturnToTitle event (#231) 2017-02-08 00:11:46 -05:00
Jesse Plamondon-Willard 2b7abc3af5 clean up more obsolete code (#231) 2017-02-07 23:34:52 -05:00
Jesse Plamondon-Willard 84bc32c3f1 reimplement graphics events (#231) 2017-02-07 23:04:16 -05:00
Jesse Plamondon-Willard 8b0e54a777 ignore code analysis warnings in game code (#231) 2017-02-07 22:10:00 -05:00
Jesse Plamondon-Willard 98cf6a2766 update SGame.Draw with base code (#231) 2017-02-07 21:54:29 -05:00
Jesse Plamondon-Willard 8efa5f32c1 add reflectionHelper.GetPrivateProperty<T> (#231) 2017-02-07 21:07:57 -05:00
Jesse Plamondon-Willard cec7469786 disambiguate references to Farmer (#231) 2017-02-07 20:51:22 -05:00
Jesse Plamondon-Willard 95a93a05b3 remove oldest deprecated code (#231)
Since Stardew Valley 1.2 breaks most mods anyway, this commits removes the oldest deprecations and fixes the issues that are easiest for mods to update. See documentation for details.
2017-02-07 20:50:41 -05:00
Jesse Plamondon-Willard 99d0450b2c fix install error when the mods folder doesn't exist (#229) 2017-02-04 16:50:09 -05:00
Jesse Plamondon-Willard 3919ab7a4a update for 1.8 release 2017-02-04 15:30:26 -05:00
Jesse Plamondon-Willard 57a99803f0 update deprecation level for Extensions class 2017-02-04 15:27:13 -05:00
Jesse Plamondon-Willard 0b8396cc53 rm cruft 2017-02-03 22:26:48 -05:00
Jesse Plamondon-Willard 8d3e6048b8 simplify installer text 2017-02-03 22:05:06 -05:00
Jesse Plamondon-Willard 4504ddcd98 remove mod .cache folders during (un)install process (#229) 2017-02-03 22:04:43 -05:00
Jesse Plamondon-Willard 85ff940e68 move install package's Mono/Windows folders out of root
This will hopefully reduce confusion among players who go into "Windows" instead of running install.exe.
2017-02-03 22:02:54 -05:00
Jesse Plamondon-Willard 9689bb9484 expand & prettify installer readme 2017-02-03 21:21:35 -05:00
Jesse Plamondon-Willard 3eb8110c45 move build task which prepares install package into a .targets file 2017-02-03 20:18:00 -05:00
Jesse Plamondon-Willard 5e68400c43 only read assembly from memory if it was rewritten (#229)
This fixes an issue where you can't debug into mod code because SMAPI isn't loading the actual DLL.
2017-02-03 20:12:42 -05:00
Jesse Plamondon-Willard 4fff06cce1 fix documentation issues 2017-02-03 01:40:47 -05:00
Jesse Plamondon-Willard 6ee14ecfbf rewrite mod assembly loading (#229)
This greatly simplifies mod loading, eliminates the .cache folders by loading assemblies in memory, ensures DLLs are loaded in leaf-to-root order, and reduces log verbosity. These changes should address a range of issues, notably #221 and #226.
2017-02-02 23:22:54 -05:00
Jesse Plamondon-Willard ae7d9d6bc4 fix error when SMAPI tries to load Mac metadata files for DLLs 2017-02-02 20:48:29 -05:00
Bpendragon (David Camp) 8c6dca95da Corrected CurrentLocationChanged's "NewLocation" and "PriorLocation" descriptors, they displayed in Intellisense as the opposite of what they were. 2017-02-02 16:08:06 -05:00
Jesse Plamondon-Willard 8db280d874 expose SemanticVersion constructor that parses a string 2017-01-25 22:30:07 -05:00
Jesse Plamondon-Willard 08e9cd1263 Add GOG Mac path
Thanks to LeonBlade for the path.
2017-01-22 22:31:00 -05:00
Jesse Plamondon-Willard b90387668d update for 1.7 release 2017-01-19 12:22:32 -05:00
Jesse Plamondon-Willard 5ccd5b5df7 log deprecation warnings after list of loaded mods (#220) 2017-01-19 11:43:32 -05:00
Jesse Plamondon-Willard 1cf8a628dc only call mod.Entry() once all mods have been loaded (#220) 2017-01-19 11:34:24 -05:00
Jesse Plamondon-Willard ba590b20a6 add public mod registry (#220) 2017-01-19 11:07:48 -05:00
Jesse Plamondon-Willard 4fe123350c bump several deprecations 2017-01-19 01:41:55 -05:00
Jesse Plamondon-Willard 6c07b5f395 tweak error text when starting game throws an exception 2017-01-19 01:18:53 -05:00
Jesse Plamondon-Willard 698e012cd2 simplify overridden game version 2017-01-19 01:18:37 -05:00
Jesse Plamondon-Willard f681f618c1 add mod folder path to console 2017-01-19 01:10:13 -05:00
Jesse Plamondon-Willard f4846173a9 fix before/after save events not triggering on days when the player shipped an item (#218) 2017-01-19 00:54:59 -05:00
Jesse Plamondon-Willard 602227eae8 fix some world events being fired during game startup (#217) 2017-01-18 22:14:50 -05:00
Jesse Plamondon-Willard b3ff004572 fix PlayerEvents.LoadedGame and SaveEvents.AfterLoad being fired before the world finishes loading (#216) 2017-01-18 21:32:38 -05:00
Jesse Plamondon-Willard 1f3d3c8c93 bump version, update release steps in readme 2017-01-16 16:04:56 -05:00
Jesse Plamondon-Willard 64a72c45e3 deprecate events replaced by save events (#215) 2017-01-15 19:21:26 -05:00
Jesse Plamondon-Willard 0c73b02d58 add save events (#215) 2017-01-15 18:23:09 -05:00
Jesse Plamondon-Willard 5c8e7f5d93 mark NPC Locations Map 1.42 incompatible due to update-check bug 2017-01-15 18:20:50 -05:00
Jesse Plamondon-Willard 525172e831 remove redundant TrainerMod build config (#214) 2017-01-14 22:49:50 -05:00
Patrick Müssig 6e04cbca3a TrainerMod uses crossplatform.targets 2017-01-14 22:49:50 -05:00
Jesse Plamondon-Willard f957af71d1 fix console color support check (#206) 2017-01-14 15:53:28 -05:00
Jesse Plamondon-Willard 82dd5b3068 fix TrainerMod project not being built by default 2017-01-14 15:14:23 -05:00
Jesse Plamondon-Willard 90e92ef61f fix error when the console doesn't support colour (#206) 2017-01-14 15:05:38 -05:00
Jesse Plamondon-Willard 2d824b34e4 add console commands to open game & date folders (#172) 2017-01-14 13:46:00 -05:00
Jesse Plamondon-Willard 9d1b6a1af2 fix issue where default ICollection<T> values in config.json were duplicated on each load (#209) 2017-01-14 13:03:57 -05:00
Jesse Plamondon-Willard 83bdcd2838 fix error loading mods if they have a .cache folder created on a different platform (#211) 2017-01-14 12:43:50 -05:00
Jesse Plamondon-Willard 34bf9c5eca tweak JSON read error-handling, update release notes 2017-01-14 12:26:59 -05:00
mytigio 482dd42d3d Add a catch for DirectoryNotFoundException in ModHelper.ReadJsonFile method. 2017-01-14 12:13:27 -05:00
Jesse Plamondon-Willard 8e8cda87fb mark NPC Map Locations 1.43 incompatible due to update error 2017-01-14 01:11:57 -05:00
Jesse Plamondon-Willard 0ac9e47ea2 add support for custom incompatible-mod-version error text 2017-01-14 01:11:42 -05:00
Jesse Plamondon-Willard 40bc8f57c7 add support for incompatible mod version ranges 2017-01-14 00:59:19 -05:00
Jesse Plamondon-Willard 481a43d807 update game install path detection to match mod build config package 2017-01-11 13:56:12 -05:00
Jesse Plamondon-Willard 43a4194a5c remove unofficial patch links for officially-updated CJB mods 2017-01-06 14:59:55 -05:00
Jesse Plamondon-Willard a432477ea3 fallback to launching SMAPI without a terminal on Linux if the terminal is unavailable (#198) 2016-12-30 12:04:27 -05:00
Jesse Plamondon-Willard a7d3930d88 encapsulate repeated monitor construction 2016-12-30 11:47:23 -05:00
Jesse Plamondon-Willard b75d86e7cc update for SMAPI 1.5 release 2016-12-23 12:43:42 -05:00
Jesse Plamondon-Willard 8416c9009e increase deprecation levels for less-used deprecated code 2016-12-23 12:36:03 -05:00
Jesse Plamondon-Willard 1fdc0c0b35 catch errors when reading metadata file just in case (#192) 2016-12-23 11:20:06 -05:00
Jesse Plamondon-Willard c7a08d08db add support for unofficial updates which suffix the official version number with a pre-release label (#192) 2016-12-22 22:34:49 -05:00
Jesse Plamondon-Willard f6f52b653e add known incompatible mods, update release notes (#192) 2016-12-22 13:08:45 -05:00
Jesse Plamondon-Willard fdae87d340 skip mods known to be incompatible and display error with update links (#192) 2016-12-22 12:47:12 -05:00
Jesse Plamondon-Willard 3fd16a65f1 move models into namespace (#192) 2016-12-22 12:45:42 -05:00
Jesse Plamondon-Willard 90f5233cc7 add config setting to disable update checks (#202) 2016-12-22 11:27:48 -05:00
Jesse Plamondon-Willard ca3cf89000 autogenerate SMAPI config (#202) 2016-12-22 11:20:01 -05:00
Jesse Plamondon-Willard f7eda265d9 track loaded mod instances & manifests via mod registry (#201) 2016-12-22 10:48:05 -05:00
Jesse Plamondon-Willard fa71bdd6c7 make SemanticVersion constructor from version string public 2016-12-21 13:43:04 -05:00
Jesse Plamondon-Willard 444364f418 fix version pre-release tags not consistently normalised (#195) 2016-12-21 13:33:59 -05:00
Jesse Plamondon-Willard c257d70575 rename SMAPI config file for consistency (#192, #202) 2016-12-21 13:27:56 -05:00
Jesse Plamondon-Willard ea65b2b7df correct semantic version pre-release label precedence (#195) 2016-12-21 11:45:52 -05:00
Jesse Plamondon-Willard 45ee74219e fix issue where changing the active menu inside a menu change handler didn't trigger a new event (#194) 2016-12-18 17:42:51 -05:00
Jesse Plamondon-Willard a8cc363699 fix legacy version wrapper not implementing ToString method (#197) 2016-12-18 16:58:47 -05:00
Jesse Plamondon-Willard 23988a3c33 migrate manifest & version to interfaces with backwards compatibility (#197) 2016-12-18 15:37:23 -05:00
Jesse Plamondon-Willard 487ae1dce9 add version.IsOlderThan(other) method for convenience 2016-12-18 13:52:09 -05:00
Jesse Plamondon-Willard d9e87399bf format code (#193) 2016-12-18 12:27:44 -05:00
Tyler Staples cd93d59eaf Added a struct to wrap cache entries for the sake of tracking invalid lookups. This fixes the issue where a null reference exception would be thrown when trying to look up non-existant or non-private members.
Added a null check to GetPrivateValue and it's overloads to fix the issue where it would throw a null reference exception when required was false and the field was null.
2016-12-18 11:42:04 -05:00
Jesse Plamondon-Willard c24294c3dd fix System.Runtime.Caching not available on Mac 2016-12-12 21:43:35 -05:00
Jesse Plamondon-Willard a3376e2a62 update for 1.4 release 2016-12-12 11:20:31 -05:00
Jesse Plamondon-Willard df7d41fc37 move interfaces into root (#185) 2016-12-11 21:03:57 -05:00
Jesse Plamondon-Willard dccd73e4fb detect which Linux command detects whether a command exists (#183) 2016-12-10 13:01:58 -05:00
Jesse Plamondon-Willard 7511db4c83 open terminal on most Linux distros (#183) 2016-12-10 00:11:50 -05:00
Jesse Plamondon-Willard 1fbe6be43d remove redundant output paths 2016-12-09 18:43:15 -05:00
Jesse Plamondon-Willard 80b6e20841 cache reflection lookups with sliding expiry (#185) 2016-12-09 14:15:14 -05:00
Jesse Plamondon-Willard cd0e5961d4 add reflection API for mods (#185) 2016-12-09 12:25:53 -05:00
Jesse Plamondon-Willard 25d2eb4777 intercept mod errors in menu draw code so they don't crash the game 2016-12-08 12:18:56 -05:00
Jesse Plamondon-Willard 22a2e2e853 add registry paths to build configuration (#189) 2016-12-07 23:55:32 -05:00
Jesse Plamondon-Willard 7e76d90c55 refactor registry checks for crossplatform compatibility (#189) 2016-12-07 23:52:56 -05:00
Jesse Plamondon-Willard 7af722ec1f rename .targets file to better reflect contents, add to installer project 2016-12-07 23:38:22 -05:00
Patrick Müssig 47d5aef404 SMAPI installer is able to read SDV install path from registry key 2016-12-07 23:27:53 -05:00
Jesse Plamondon-Willard acbd33fb02 open a terminal for SMAPI output on Mac (#183) 2016-12-07 23:15:37 -05:00
Jesse Plamondon-Willard ae44f17205 fix installer not moving mods out of appdata if the game isn't installed on the same Windows partition (#184) 2016-12-07 22:43:05 -05:00
Jesse Plamondon-Willard 860ccb90f7 fix the installer not removing TrainerMod from appdata if it's already in the game mods folder 2016-12-07 22:17:38 -05:00