Commit Graph

809 Commits

Author SHA1 Message Date
Jesse Plamondon-Willard 9e1d01d4fe fix 1.x build 2017-08-17 12:16:39 -04:00
Jesse Plamondon-Willard 8e9b99ec99 update unit test packages 2017-08-16 23:56:20 -04:00
Jesse Plamondon-Willard 2ec0e0e26a only invalidate cache entries matched by new interceptors 2017-08-16 23:27:07 -04:00
Jesse Plamondon-Willard 49ff572932 fix build config 2017-08-16 23:03:14 -04:00
Jesse Plamondon-Willard 2ebc0714b1 add terminal support on Xfce (#345)
Thanks to Patronos!
2017-08-16 21:51:03 -04:00
Jesse Plamondon-Willard 1e48e7d12b add tool tilesheet to core assets to reload (#346) 2017-08-16 21:46:01 -04:00
Jesse Plamondon-Willard da4708337b minor tweaks to .editorconfig 2017-08-14 21:26:33 -04:00
Jesse Plamondon-Willard 72d42ddff8 move custom build configuration into common.targets to simplify maintenance 2017-08-14 08:22:50 -04:00
Jesse Plamondon-Willard c47e43a1e9 rename crossplatform.targets to common.targets for reuse 2017-08-14 08:11:11 -04:00
Jesse Plamondon-Willard 67b1a8398f fix SemanticVersion not being deserialisable through Json.NET 2017-08-14 07:55:21 -04:00
Jesse Plamondon-Willard 56c66ca4e5 update compatibility list 2017-08-14 02:14:25 -04:00
Jesse Plamondon-Willard 021672e43d add content helper properties for the current language 2017-08-14 01:57:11 -04:00
Jesse Plamondon-Willard 527b00ee13 ignore installer arguments until SMAPI 2.0 2017-08-14 01:53:15 -04:00
Jesse Plamondon-Willard f89d41cdad bump version for upcoming SMAPI 1.15.2 release 2017-08-14 00:15:16 -04:00
Jesse Plamondon-Willard dc99ae761f blacklist old versions of Entoarox mods (overhauled for SMAPI 1.11+ compatibility) 2017-08-14 00:14:45 -04:00
spacechase0 dafebd1626 Fix building SMAPI 1.x 2017-08-09 17:41:36 -04:00
Jesse Plamondon-Willard baeaf826a9 add asset editors & loaders to content API in 2.0 (#255) 2017-08-07 14:12:18 -04:00
Jesse Plamondon-Willard 7976df8565 optimise semver regex using atomic groups 2017-08-02 02:36:55 -04:00
Jesse Plamondon-Willard a15a2c5d09 tweak semantic version regex to fix unnecessary capturing groups 2017-08-02 02:24:02 -04:00
Jesse Plamondon-Willard 937750f100 add installer command-line arguments for scripting (#337) 2017-08-02 01:36:56 -04:00
Jesse Plamondon-Willard 3ffcac3f1f fix Context.IsPlayerFree being false when player can't move (#330)
For example, the value was false when the player used a tool which wasn't intended.
2017-08-02 00:26:56 -04:00
Jesse Plamondon-Willard 201d54bbeb standardise code & update release notes (#339) 2017-08-01 15:35:06 -04:00
Nicholas Johnson 4ff15b9da9 add weekday property to SDate (#339) 2017-08-01 15:27:02 -04:00
Jesse Plamondon-Willard 3599daee45 remove support for invalidating mod assets per discussion (#335) 2017-08-01 00:51:27 -04:00
Jesse Plamondon-Willard 9b22f3e004 fix GraphicsEvents.Resize being raised before the game updates its window data (#328) 2017-07-31 23:48:53 -04:00
Jesse Plamondon-Willard 7992b52f03 fix AfterDayStarted event being raised during the new-game intro (#332) 2017-07-31 23:18:49 -04:00
Jesse Plamondon-Willard 17acf248b6 prevent mods from accessing SMAPI internals using its own reflection helper (#334) 2017-07-31 21:54:46 -04:00
Jesse Plamondon-Willard 64facdd439 add support for reloading more singleton assets (#335) 2017-07-23 20:44:04 -04:00
Jesse Plamondon-Willard e8648e217a add support for reloading wallpaper and building textures (#335) 2017-07-23 20:22:33 -04:00
Jesse Plamondon-Willard eeee6b185d use more flexible approach to core asset reloading (#335) 2017-07-23 19:39:17 -04:00
Jesse Plamondon-Willard 467ad2ffd4 let mods invalidate cached assets by name or type (#335) 2017-07-23 17:36:31 -04:00
Jesse Plamondon-Willard 4ea6a4102b add support for partial cache invalidation (#335) 2017-07-23 15:08:14 -04:00
Jesse Plamondon-Willard f7e22b551a remove outdated message about beta release branch (#333) 2017-07-23 13:16:01 -04:00
Jesse Plamondon-Willard 74be6f1311 improve handling of legacy non-semantic game versions (#333) 2017-07-23 13:15:28 -04:00
Jesse Plamondon-Willard 5cf961ab64 fix unit test 2017-07-23 13:09:30 -04:00
Jesse Plamondon-Willard e04fc84190 update compatibility list 2017-07-23 12:18:52 -04:00
Jesse Plamondon-Willard c20b21bcaa add support for disambiguating IDs in mod compatibility list 2017-07-23 12:14:33 -04:00
Jesse Plamondon-Willard 1bf8e2b95c change order of broken-in-2.0 checks to show more meaningful matches first 2017-07-23 12:13:56 -04:00
Jesse Plamondon-Willard 17fec9034c tweak heuristic skip text, add error if mod doesn't implement Entry 2017-07-23 12:13:17 -04:00
Jesse Plamondon-Willard 7c1ac555a4 simplify compatibility list by defaulting compatibility type, update readme 2017-07-23 12:11:46 -04:00
Jesse Plamondon-Willard 7d73b0bf0c simplify compatibility skip message in 2.0 & combine update URL fields 2017-07-23 11:58:24 -04:00
Jesse Plamondon-Willard 6ddcef61e9 simplify mod compatibility model parsing 2017-07-23 11:50:24 -04:00
Jesse Plamondon-Willard d0e0e9427e rename ManifestFieldConverter for broader usage 2017-07-23 11:50:18 -04:00
Jesse Plamondon-Willard 24b824644d make semantic versions equatable in 2.0 2017-07-23 11:50:09 -04:00
Jesse Plamondon-Willard 5726ebe20e remove TrainerMod's save and load commands in 2.0 2017-07-23 11:37:55 -04:00
Jesse Plamondon-Willard 48ced0336c use more readable colours if player has a light-backgrounded terminal (#327) 2017-07-13 18:30:46 -04:00
Jesse Plamondon-Willard ae01396d9d fix crash in unique-ID check when mod has no manifest (#323) 2017-07-13 17:26:36 -04:00
Jesse Plamondon-Willard 834aee92f2 fix TrainerMod including Json.NET 2017-07-10 22:09:02 -04:00
Jesse Plamondon-Willard eff3581406 change SMAPI 2.0 link in deprecation warnings 2017-07-10 20:47:16 -04:00
Jesse Plamondon-Willard 9256bfc45a bump version for release 2017-07-10 20:38:21 -04:00
Jesse Plamondon-Willard db29d6677f fix legacy controller events broken in 1.15 (#325) 2017-07-10 20:25:38 -04:00
Jesse Plamondon-Willard 234b640342 normalise unique IDs in mod registry lookups, update release notes 2017-07-10 14:43:52 -04:00
Jesse Plamondon-Willard d82e57d306 enable SMAPI 2.0 mode by default
This commit replaces the SMAPI_2_0 compile flag with SMAPI_1_x.
2017-07-10 14:33:36 -04:00
Jesse Plamondon-Willard 61d13d370c fail mods if their unique ID isn't unique (#323) 2017-07-10 13:30:20 -04:00
Jesse Plamondon-Willard 7bf0c66088 reduce duplicate code in unit tests 2017-07-10 13:25:19 -04:00
Jesse Plamondon-Willard 49edb712ec fix unit tests broken by removing Stardew Valley.exe from build output 2017-07-10 12:53:58 -04:00
Jesse Plamondon-Willard 182828f194 fix Stardew Valley.exe being packaged with TrainerMod 2017-07-09 22:22:41 -04:00
Jesse Plamondon-Willard 8743c4115a tweak deprecation meta-warning 2017-07-08 12:53:12 -04:00
Jesse Plamondon-Willard cb5e2e34c7 remove another reference to removed file 2017-07-08 12:31:45 -04:00
Jesse Plamondon-Willard d74463092d standardise file encoding 2017-07-08 12:31:22 -04:00
Jesse Plamondon-Willard d426d72498 update for 1.15 release 2017-07-07 17:20:09 -04:00
Jesse Plamondon-Willard f1fabd410b remove reference to removed file 2017-07-07 17:15:08 -04:00
Jesse Plamondon-Willard e61f060b96 simplify stardewvalley.targets support, add to release notes (#319) 2017-07-07 16:58:55 -04:00
spacechase0 7e856106b8 Tweak debug deploy to respect stardewvalley.targets 2017-07-07 21:55:32 +01:00
Jesse Plamondon-Willard 5583e707b2 split helper out of mod registry, add mod ID, refactor ModHelper constructor (#318) 2017-07-07 12:17:22 -04:00
Jesse Plamondon-Willard 053c0577ec add mod ID to mod helpers (#318) 2017-07-07 11:44:18 -04:00
Jesse Plamondon-Willard f033b5a2f7 group mod helpers (#318) 2017-07-07 11:39:09 -04:00
Jesse Plamondon-Willard c5e106801e split reflection logic out of mod helper (#318) 2017-07-07 11:29:17 -04:00
Jesse Plamondon-Willard 3b8d1e49f0 make deprecation warnings a bit less scary until we finish first-pass SMAPI 2.0 migration 2017-07-07 01:54:53 -04:00
Jesse Plamondon-Willard da8a56a855 tweak text when mod crashes on entry, increase log level to error 2017-07-07 01:53:55 -04:00
Jesse Plamondon-Willard d928bf188e add optional mod dependencies in SMAPI 2.0 (#287) 2017-07-06 17:46:04 -04:00
Jesse Plamondon-Willard e2b9a4bab3 serialise SButtons as string in config.json (#316) 2017-07-06 15:17:47 -04:00
Jesse Plamondon-Willard baf2c63282 add method to suppress button input from game (#317) 2017-07-05 15:43:50 -04:00
Jesse Plamondon-Willard 8d301162d8 add InputEvents which unify keyboard, mouse, and controller input with more metadata (#316) 2017-07-05 15:41:58 -04:00
Jesse Plamondon-Willard 2f42051cc9 tweak method name per feedback (#255) 2017-07-04 18:18:52 -04:00
Jesse Plamondon-Willard 5ad74396fc correct manual install steps 2017-07-03 15:23:54 -04:00
Jesse Plamondon-Willard 96da7c1cbc fix crash in new content manager when returning to title (#255) 2017-07-03 14:49:29 -04:00
Jesse Plamondon-Willard 18e5e42529 defer some console changes until SMAPI 2.0 2017-07-03 14:26:45 -04:00
Jesse Plamondon-Willard 0f05e7bd54 fix error when mods have no manifest 2017-07-03 14:12:15 -04:00
Jesse Plamondon-Willard 697155c8a2 update deprecation warning text 2017-07-03 14:11:39 -04:00
Jesse Plamondon-Willard 7cb523cd49 bump all deprecation levels to 'pending removal' 2017-07-03 14:09:26 -04:00
Jesse Plamondon-Willard 136525b40d remove System.ValueTuple
This caused reference errors on Linux/Mac, and there aren't enough use cases to look into it further for now.
2017-07-03 01:29:56 -04:00
Jesse Plamondon-Willard 771263299c add SMAPI 2.0 compile mode 2017-07-03 01:03:13 -04:00
Jesse Plamondon-Willard c9c354a66f slim down console output for players some more 2017-07-02 21:36:04 -04:00
Jesse Plamondon-Willard 6a628a4d8a simplify log timestamps in console (except in developer mode) 2017-07-02 21:24:32 -04:00
Jesse Plamondon-Willard 0e6d30f65b further simplify console output for players 2017-07-02 20:51:49 -04:00
Jesse Plamondon-Willard 698328c52f fix rare crash for some players when window loses focus (#306) 2017-07-02 19:42:05 -04:00
Jesse Plamondon-Willard e69d1615c4 throw more useful error when JSON file is invalid (#314) 2017-07-02 19:32:40 -04:00
Jesse Plamondon-Willard f698352718 tweak trace logging when loading mods 2017-07-02 18:27:22 -04:00
Jesse Plamondon-Willard f904b3da97 add unified player_add command which adds any item type (#302) 2017-07-02 18:17:20 -04:00
Jesse Plamondon-Willard 40e8d3da0e migrate list_items command to new item repository (#302) 2017-07-02 17:37:30 -04:00
Jesse Plamondon-Willard a0c4746c27 add list_item_types command (#302) 2017-07-02 17:22:36 -04:00
Jesse Plamondon-Willard 5d5f7192dc add item repository which returns all spawnable items in the game (#302)
Based on code I wrote for CJB Item Spawner.
2017-07-02 17:21:28 -04:00
Jesse Plamondon-Willard 2ca49fba62 encapsulate TrainerMod's argument parsing (#302) 2017-07-02 02:45:02 -04:00
Jesse Plamondon-Willard f9482906ae split TrainerMod commands into separate classes (#302) 2017-07-02 01:32:07 -04:00
Jesse Plamondon-Willard 6da5a2d56d prevent mods from using SMAPI 2.0 content interception without reflection (#255) 2017-07-01 23:24:29 -04:00
Jesse Plamondon-Willard f95c7e8d72 add support for asset loaders (#255) 2017-07-01 23:13:43 -04:00
Jesse Plamondon-Willard 600ef56286 improve error handling when mods set invalid asset value (#255) 2017-07-01 21:31:21 -04:00
Jesse Plamondon-Willard 306427786b let mods implement IAssetEditor for simple cases (#255) 2017-07-01 19:55:08 -04:00
Jesse Plamondon-Willard 3b6adf3c26 reset asset cache when a new interceptor is added (#255)
This lets new interceptors edit assets loaded before they were added, particularly assets loaded before mods are initialised.
2017-07-01 19:39:04 -04:00
Jesse Plamondon-Willard 4568f2259b ensure there's only one content manager instance (#255) 2017-07-01 19:35:24 -04:00
Jesse Plamondon-Willard 9651e87053 slight refactor 2017-07-01 19:27:05 -04:00
Jesse Plamondon-Willard 306c044c4a group skipped mods in console log 2017-07-01 13:39:31 -04:00
Jesse Plamondon-Willard 271843d861 tweak asset interception code to simplify future work (#255) 2017-07-01 12:18:41 -04:00
Jesse Plamondon-Willard 49c75de5fc rewrite content interception using latest proposed API (#255) 2017-07-01 12:18:41 -04:00
Jesse Plamondon-Willard 7b6b2742f6 fix corrupted state exceptions not being logged by SMAPI 2017-06-27 11:37:50 -04:00
Jesse Plamondon-Willard a9958dac6a clean up log output when loading mods 2017-06-27 11:22:36 -04:00
Jesse Plamondon-Willard f7f1b1e513 add CONTRIBUTING.md file 2017-06-26 12:26:35 -04:00
Jesse Plamondon-Willard 6073d24cab change manifest.MinimumApiVersion to ISemanticVersion 2017-06-26 11:08:45 -04:00
Jesse Plamondon-Willard 8d7b5b3726 improve logging when SMAPI loads mods 2017-06-26 11:01:47 -04:00
Jesse Plamondon-Willard e66ee50cae add manual install steps to readme (removing from main guide) 2017-06-19 20:41:48 -04:00
Jesse Plamondon-Willard 640a523eb4 when the ObjectInformation.xnb file is broken, print one error instead of a warning flood 2017-06-19 02:12:18 -04:00
Jesse Plamondon-Willard 565aa2c67b add unit tests for version comparison 2017-06-19 01:26:22 -04:00
Jesse Plamondon-Willard a011c28d40 make version parsing stricter, add unit tests for parsing (#309) 2017-06-19 01:05:43 -04:00
Jesse Plamondon-Willard ec914874ec reorganise unit tests 2017-06-18 22:16:51 -04:00
Jesse Plamondon-Willard fb8fefea00 show friendly error when parsing a manifest version fails (#308) 2017-06-18 22:11:48 -04:00
Jesse Plamondon-Willard b46776a4fb enable string versions in manifest.json (#308) 2017-06-18 22:08:56 -04:00
Jesse Plamondon-Willard 3e50c90230 add IEquatable<SDate> interface to SDate (#307) 2017-06-18 20:55:12 -04:00
Jesse Plamondon-Willard 0a8c07cc07 simplify date operators by making SDate.GetHashCode() return unique ordered values, expand unit tests (#307) 2017-06-18 20:24:32 -04:00
Jesse Plamondon-Willard 7e815911e2 add tuples to test project (#307) 2017-06-18 20:23:15 -04:00
Jesse Plamondon-Willard 9c22c2378f remove test adapter (#307) 2017-06-18 20:22:35 -04:00
Nicholas Johnson 230ab1738a - This adds in operators to SDate. And Tests. And a NUnit Adapter - sorry about the latter.. 2017-06-18 23:21:37 +01:00
Jesse Plamondon-Willard 3c3953a7fd add support for minimum dependency versions (#286) 2017-06-18 18:18:04 -04:00
Jesse Plamondon-Willard cdac6dad7d enable C# 7 tuples 2017-06-18 18:01:15 -04:00
Jesse Plamondon-Willard b0967e6309 add SerializerUtils to obsolete-mods list 2017-06-12 18:51:17 -04:00
Jesse Plamondon-Willard a4713ea882 add separate list of obsolete mods 2017-06-12 18:44:36 -04:00
Jesse Plamondon-Willard 2a9c8d43df add date utility 2017-06-07 02:08:20 -04:00
Chase W 57d20614b8 Add player_addwallpaper and player_addflooring 2017-06-04 16:22:36 -04:00
Jesse Plamondon-Willard fd485abe28 bump version for release 2017-06-04 16:21:56 -04:00
Jesse Plamondon-Willard 91cec58fdb tweak translation API to always return translations (#303) 2017-06-03 23:56:43 -04:00
Jesse Plamondon-Willard 3a8e77a309 update for release 2017-06-02 18:25:11 -04:00
Jesse Plamondon-Willard 9610ccb519 add TimeSpeed <2.2.1 to incompatibility list 2017-06-02 18:00:57 -04:00
Jesse Plamondon-Willard 40dc986ff2 bump incompatible version of Better Sprinklers 2017-06-02 01:59:37 -04:00
Jesse Plamondon-Willard 798439ea34 deprecate TimeEvents.DayOfMonthChanged, SeasonOfYearChanged, and YearOfGameChanged 2017-05-29 23:52:33 -04:00
Jesse Plamondon-Willard 6f69a1aca9 fix translation error when passing tokens for a null translation (#296) 2017-05-29 15:29:22 -04:00
Jesse Plamondon-Willard 9d9383e235 drop special case for SDV 1.2.29 bug (min version is now 1.2.30) 2017-05-28 20:58:31 -04:00
Jesse Plamondon-Willard bbfd42eeb3 bump minimum game version to 1.2.30 2017-05-28 20:31:50 -04:00
Jesse Plamondon-Willard 90275f1d56 add shortcut for translation with tokens (#296) 2017-05-28 17:53:44 -04:00
Jesse Plamondon-Willard e20db6e8e4 add token support for instance fields, expand unit test (#296) 2017-05-28 17:34:53 -04:00
Jesse Plamondon-Willard 423a2f5012 combine Translation::Tokens overloads, support dictionaries with any generic types (#296) 2017-05-28 11:23:42 -04:00
Jesse Plamondon-Willard af28b87660 make unit test easier to extend (#296) 2017-05-28 11:21:49 -04:00
Jesse Plamondon-Willard 2958381b54 shorten translation method name, remove helper method (#296) 2017-05-28 10:51:58 -04:00
Jesse Plamondon-Willard 2109229660 add 'reload_i18n' console command to reload translation files (#296) 2017-05-28 01:58:50 -04:00
Jesse Plamondon-Willard 5af58c7b18 refactor translation init for reuse (#296) 2017-05-28 01:49:21 -04:00
Jesse Plamondon-Willard 12ffd9c334 add shortcut indexer to translation API (#296) 2017-05-28 01:06:35 -04:00
Jesse Plamondon-Willard 01197b0eb1 minor cleanup 2017-05-28 01:05:41 -04:00
Jesse Plamondon-Willard 0c992e562a simplify debug command output (#297) 2017-05-28 00:46:25 -04:00
Jesse Plamondon-Willard 698930820c log debug command output (#297) 2017-05-28 00:39:01 -04:00
Jesse Plamondon-Willard 586f27c4c2 remove unneeded SGame fields 2017-05-28 00:13:43 -04:00
Jesse Plamondon-Willard 173dd8cd03 add Context.IsPlayerFree 2017-05-27 23:48:16 -04:00