RELEASED NPC Gift Taste Helper

Discussion in 'User Interface' started by TheCatMan, Mar 31, 2016.

  1. TheCatMan

    TheCatMan 2.7182818284590...

    Download this mod from NexusMods here.

    Warning: This post and mod contain very slight spoilers regarding NPC's gift tastes.

    This mod displays a helpful tooltip that shows an NPC's favourite gifts when hovering over their birthday on the calendar.

    This works with both the calendar furniture item that you can have in your house, as well as the calendar on the billboard in town.

    Note that it currently does not include the two universal loved items, but may in the future.


    NEW: tooltips now appear on the social page thanks to dreamsicl!


    Support for all locales!


    This mod works with the most recent version of Stardew Valley (last tested with 1.1).

    This mod requires SMAPI 1.1 or higher to run. The lastest version it was updated for is 1.2.
    For instructions on installing SMAPI view this help page.

    If you are unable to update SMAPI due to existing mods breaking then you can get the SMAPI 39.2 compatible version here (or attached to this post). Just note that this version will be less likely to be maintained in the future. I still highly recommend updating SMAPI to the latest version if possible.

    NOTE: SMAPI 40.x and earlier support is no longer supported. Use at your own risk!

    1. Install the latest version of SMAPI.
    2. Unzip the mod folder into your Mods folder.
    3. Run the game using SMAPI.

    In this mod's config.json file you will find options to enable/disable displaying the tooltip on the calendar and social page.

    The config file is located in the Mods/GiftTasteHelper directory under your game install. To find your game directory click here. There is also an option for specifying the maximum number of gifts to display on the tooltip.

    To edit the file just open it in any text editor.

    The config will look like:

    "ShowOnCalendar": true,
    "ShowOnSocialPage": true,
    "MaxGiftsToDisplay": 0 // 0 means no limit.

    Just replace true with false and save the file (game must be restarted for changes to take effect) for the menus you don't want to see the tooltip on and visa versa.

    You can view the source for this mode here.

    * Full localization support - Item names and the tooltip title now display in the selected language.
    * Fixed an issue where the gift tooltip wouldn't appear in non-English languages.
    * Minor optimization.


    * Fixes for SDV 1.2 and SMAPI 1.10. Special Thanks to Pathoschild for this update!

    * Proper fix for the error when opening the JunimoNoteMenu from the inventory.

    * Fixes the error when opening the JunimoNoteMenu from the inventory.
    * Adds a config option to specify the max number of gifts to display on the tooltip.


    This release contains various bug fixes and code improvements as well as some config options to enable/disable the tooltips on the calendar and social page.
    • Added config settings via config.json to enable/disable the tooltips on the calendar and social page. For info on how to use this please view the README.
    • Social page tooltips now scale/position correctly with the zoom level.
    • Calendar tooltips now appear/disappear at the same time as the original tooltip.
    • Calendar tooltips no longer get clipped on the left side of the viewport.
    This release contains fixes to make it compatible with SMAPI 1.1+ (test with both 1.1 and 1.2, will not work with 1.0), as well as a new feature that displays the tooltip on the social page.

    Backwards compatibility with previous version of SMAPI down to 39.2 are now supported in the main build.
    In this build I also fixed some zoom issues that were happening with the 39.2 version.

    Initial release.
    Currently works with the most recent version of StardewValley as well as the 1.07 beta.
    Compatible with SMAPI 39.5 and a few previous versions.
      Last edited: May 8, 2017
    • curi0

      curi0 Void-Bound Voyager

      I always wanted something like this, it totally beats Alt-Tab looking at the Wiki. Unfortunately it doesn't seem to work with Stardew Valley v1.06 + SMAPI v0.39.2
      Found Manifest: C:\Games\Stardew Valley\Mods\GiftTasteHelper\manifest.json
      Loading Mod DLL...
      LOADED MOD: GiftTasteHelper by Tyler - Version StardewModdingAPI.Version | Description: Displays NPC gift tastes in a handy tooltip. (@ C:\Games\Stardew Valley\Mods\GiftTasteHelper\GiftTasteHelper.dll)
      Failed to load mod 'C:\Games\Stardew Valley\Mods\GiftTasteHelper\GiftTasteHelper.dll'. Exception details:
      System.TypeLoadException: Could not load type 'StardewModdingAPI.Events.EventArgsClickableMenuClosed' from assembly 'StardewModdingAPI, Version=, Culture=neutral, PublicKeyToken=null'.
         at GiftTasteHelper.GiftTasteHelper.Entry(Object[] objects)
         at StardewModdingAPI.Program.LoadMods()
      • TheCatMan

        TheCatMan 2.7182818284590...

        Ouch. Sadly the event causing that error was added in SMAPI 39.3.

        Do you have other mods preventing you from updating to 39.5? If so I can try to create a 39.2 compatible version quickly.
        • curi0

          curi0 Void-Bound Voyager

          No, it's fine. I just haven't check the latest SMAPI, but I'll definitely use this mod later on. So, thanx for this, man!
          • ress_1819

            ress_1819 Poptop Tamer

            I would really like a SMAPI 39.2 compatible version for this mod please. It's because some of the other mods that I need to use still haven't updated to 39.3 and doesn't work. Thanks in advance :)
              sweetangel20 and RaulMarq like this.
            • TheCatMan

              TheCatMan 2.7182818284590...

              I quickly hacked together a 39.2 compatible version which you can get here or download the file attached to this post (I'll add it to the main post too).

              Let me know if you have any issues with it.
                curi0, RaulMarq and ress_1819 like this.
              • ress_1819

                ress_1819 Poptop Tamer

                That was quick! Really appreciate your work, I have tried it and it works fabulously! Even compatible with Handsomematt's/Zoryn's CalendarAnywhere mod. However, I'm not sure if it's a kink with this mod 39.2 build but when the game is zoomed out fully @75%, the popup's alignments kinda busted, especially for the NPC's at the bottom of the calendar, where the popup's is almost off the screen. Aside from that, it worked flawlessly! :D
                • ress_1819

                  ress_1819 Poptop Tamer

                  Forgot screenshot

                    Attached Files:

                  • Jinxiewinxie

                    Jinxiewinxie Farmer Fashionista Forum Moderator

                    This is wonderful! I'm stuck with SMAPI .39.1 since the majority of my must-have mods use that one so I'm not sure if it'll work for me. Can't wait to check it out once my other mods let me upgrade SMAPI ^_^
                    • TheCatMan

                      TheCatMan 2.7182818284590...

                      Strange, I swear I tested it with zoom and it worked fine, but I'll take another look. Thanks for the info!

                      I haven't tried it with 39.1 yet, but the 39.2 compatible version might work. I'll be updating the 39.2 version today anyway, so I might be able to make it work with 39.1 if it doesn't already.
                        ress_1819 likes this.
                      • curi0

                        curi0 Void-Bound Voyager

                        It works really well, thanx! Is it possible to also show the gift taste info in the social tab?
                        • TheCatMan

                          TheCatMan 2.7182818284590...

                          That feature is a work in progress. :)
                          • TheCatMan

                            TheCatMan 2.7182818284590...

                            Okay I replaced the old compatible version on this thread with the new one that fixes the zooming issue in 39.2.

                            Let me know if you run into any other issues! :)
                            • ress_1819

                              ress_1819 Poptop Tamer

                              I just tried your latest fix, sadly the issue is still present. I even tried removing all other mods except yours but the issue still persists :/
                              Maybe its because of different resolution settings? I use 1920x1080 btw, and I also tried on both fullscreen & windowed borderless but still same issue.
                              • TheCatMan

                                TheCatMan 2.7182818284590...

                                My monitor is the same resolution. Are you sure you downloaded the zip called ""?

                                Here's what I see when I"m running it with SMAPI 39.2 with zoom set to 75%.

                                  Attached Files:

                                  ress_1819 likes this.
                                • ress_1819

                                  ress_1819 Poptop Tamer

                                  Oh gosh! My bad~ I thought you edited & reuploaded the old compatible version in the middle of the thread "". I just tried the "" and it works fine now! Thanks a lot, really appreciate it! :D

                                    Attached Files:

                                  • TheCatMan

                                    TheCatMan 2.7182818284590...

                                    Ah :p I'm glad it's working for you now! I'll remove the one from the other post to prevent any possible future confusion ^.^
                                      ress_1819 likes this.
                                    • Helltech

                                      Helltech Intergalactic Tourist

                                      I don't know much about modding, but this little menu you have added, couldn't it be added to the social tab? I think that would be even more useful. Not that this isn't amazing as is.
                                      • TheCatMan

                                        TheCatMan 2.7182818284590...

                                        Adding it to the social tab is on my agenda, but it's a bit trickier to do so it may take some time.

                                        I'm also working on a mod that lets you save the game at any point which is a pretty large task and probably more desired, so this feature might be put on the back burner for a bit.

                                        A good alternative for now to use this mod anywhere would be to use it in conjunction with zoryn's calendar anywhere mod. I haven't tested it myself but someone said it worked fine with it.
                                          RionKatt and RaulMarq like this.
                                        • RaulMarq

                                          RaulMarq Tentacle Wrangler

                                          That's perfect, just the mod I want! I would play this game a lot more if I could save at any point, it sucks to lose progress because something comes up during an in-game day and I have to close the game!
                                            TheCatMan likes this.

                                          Share This Page