Modding Help Updating mods for Stardew Valley 1.3 [CLOSED]

Discussion in 'Mods' started by Pathoschild, Apr 15, 2018.

Thread Status:
Not open for further replies.
  1. Pathoschild

    Pathoschild Cosmos Killer

    @Digus You can get the asset key for a custom texture like this:
    Code:
    string assetKey = this.Helper.Content.GetActualAssetKey("your-local-texture.png", ContentSource.ModFolder);
    
    Be careful though: that will cause problems in multiplayer, since other players may not have the mod installed (so that asset key won't exist). I'm not sure what will happen in that case.
     
    • Digus

      Digus Ketchup Robot

      Thanks!
      I'm going to say in the mod descriptions that all player need to have the same version of the mod.
      It adds new items that drop on the grown, so people will need to have the mod even without adding textures like that.
      The same thing for the custom tools sprites.

      Another question, if I implement the "Net..." fields in my code, will my field be synchronized as well in multiplayer?
      I have a pregnancy feature that save some data in json files associated with the farmer. I already understand that this data can only be stored on the server player. But I would still need to send this info for the server player if a client player use the insemination syringe. Is this a option? Or will SMAPI have to implement another way to communication between client and server?
       
      • Pathoschild

        Pathoschild Cosmos Killer

        @Digus Custom net fields won't be synchronised (since they need to be reachable through Game1.netWorldState), but any changes you make to an existing net field will be synchronised to other players. I might add a custom multiplayer sync API, but it won't be available in SMAPI 2.6.
         
        • Digus

          Digus Ketchup Robot

          Ok, for 2.6 I will place some messages saying only the owner of the farm can inseminate animals.
           
          • f4iTh

            f4iTh 2.7182818284590...

            Have a couple more unofficial updates.

            EDIT: One more can't hurt, right?
            EDIT 2: Do you mind if I.. upload yet another one?

            EDIT 3: Fixed Walk Through Trellis to be compatible with SMAPI 2.6-beta.8.
            EDIT 4: Fixed a slight issue with Event Notifications.
            EDIT 5: Another issue with Event Notifications fixed.
             

              Attached Files:

              Last edited: May 17, 2018
              Kuriiyo and Nunah like this.
            • Mizzion

              Mizzion Phantasmal Quasar

              Auto Gate Unofficial.
              Experience Bars Unofficial
              Part of the Community Unofficial (I haven't tested this completely. But it seemed to work fine.)





              Any Mods on Github have had Pull Requests done.
               

                Attached Files:

                Last edited: May 5, 2018
              • totorotrinity

                totorotrinity Space Hobo

                the only mod i have is Get Dressed... and it doesn't work, if anyone could provide info whenever there its fixed that would be great!!!
                 
                • Pathoschild

                  Pathoschild Cosmos Killer

                  Hi @totorotrinity. If a mod is listed on the compatibility list as "not updated yet", there's no need to request it specifically. If the author doesn't update it themselves, we'll be updating open-source mods unofficially. It might take a while to get through them all, though. :)
                   
                  • totorotrinity

                    totorotrinity Space Hobo

                    oh alright!
                     
                    • musical74

                      musical74 Cosmic Narwhal

                      I'm gonna ask this because everything that I've modded don't require SMAPI - I've changed a few portraits, turned the wizard female (the sprite is a character from a different game, but all the dialogue is as if it was still the original wizard), an easier fishing mod, and a "you are positive that you watered the ground" mod. Will these mods be left alone, or do I need to redo these mods because the update will turn the files associated with them back to "original"?
                       
                      • skuldomg

                        skuldomg Orbital Explorer

                        @Digus I know you said no-one else beside you was really using your MailFramework mod, but do you have plans to add to it? With the new update there seem to be different textures for letters (the Wizard got a new one for example). Are you planning to add to your mod so that one could change the texture? :) I understand if it's not on your priority list.
                         
                        • Digus

                          Digus Ketchup Robot

                          If there is demand, I can keep adding to it.
                          I will let this beta phase run out and then create a thread here so people can talk about it.
                          For now, you can use the animal husbandry thread, so we don't talk off-topic here.
                           
                            HopeWasHere likes this.
                          • Nunah

                            Nunah Subatomic Cosmonaut

                            Getting this error.
                            [Json Assets] Loading stuff early
                            [Json Assets] This mod failed in the SpecialisedEvents.UnvalidatedUpdateTick event. Technical details:
                            System.NullReferenceException: Object reference not set to an instance of an object.
                            at JsonAssets.Mod.fixLocation(GameLocation loc) in C:\Users\avarisc\Code\_JsonAssets\Mod.cs:line 493
                            at JsonAssets.Mod.fixLocation(GameLocation loc) in C:\Users\avarisc\Code\_JsonAssets\Mod.cs:line 570
                            at JsonAssets.Mod.fixIdsEverywhere() in C:\Users\avarisc\Code\_JsonAssets\Mod.cs:line 481
                            at JsonAssets.Mod.afterLoad(Object sender, EventArgs args) in C:\Users\avarisc\Code\_JsonAssets\Mod.cs:line 360
                            at JsonAssets.Mod.unsafeUpdate(Object sender, EventArgs args) in C:\Users\avarisc\Code\_JsonAssets\Mod.cs:line 214
                            at StardewModdingAPI.Framework.Events.ManagedEvent.Raise() in C:\source\_Stardew\SMAPI\src\SMAPI\Framework\Events\ManagedEvent.cs:line 110
                             
                            • f4iTh

                              f4iTh 2.7182818284590...

                              How did you exactly get that to happen? Did you just launch it like normal and then that happened, or?
                               
                              • Nunah

                                Nunah Subatomic Cosmonaut

                                Launched the game, went into PIerre's to buy meat crops. They show up as error items, and that text ^ is in smapi. I'm using https://www.nexusmods.com/stardewvalley/mods/1721.

                                Edit: Just booted the game like normal and those same lines are in SMAPI. Didn't need to go into Pierre's.
                                 
                                  Last edited: May 5, 2018
                                • f4iTh

                                  f4iTh 2.7182818284590...

                                  So it appears whenever you launch the game pretty much, got it. Them showing up as Error items after that doesn't surprise me.
                                   
                                    Last edited: May 5, 2018
                                  • VolantCaedis

                                    VolantCaedis Void-Bound Voyager

                                    I still get the red messages spamming my command window for SMAPI. Additionally, if I press M for the map, it doesn't show the NPCs. But if I press E first for the inventory and access the map from there, THEN it works.
                                     
                                    • Mizzion

                                      Mizzion Phantasmal Quasar

                                      Are you the main player or a FarmHand? There seems to be some issues with Farmhands. It's being looked into.
                                       
                                      • Allayna

                                        Allayna Phantasmal Quasar

                                        Had a odd series of glitches related to the betas of Pelican Fiber, CJB Cheats, and Self Service.
                                        I cannot remember if I used Pelican Fiber or the self-service, but I purchased the first upgrade to the coop. I had 'instant build' turned on, so the building was finished right away. I then used Pelican Fiber to try to get a couple ducks, but when clicking on the coop to place the duck it told me "Ducks can't live here". Then when exiting the pelican fiber windows, I was back at my farm and could move freely, but the farmer was invisible and not making sounds. You could see when I swung a tool like the ax. I was able to exit the map and became visible again. I went to Marnies and used the self service to purchase and place a couple of ducks succesfully. Then, *while still at Marnies counter*, I used Fiber again to try to place a duck. It gave the same error, then when exiting the fiber menus and was at the farm invisible again. This time, I could still move about, but if I faced upwards and right clicked it brought up the Marines shop menu. I had to use CJB to warp off the map.
                                        Im building the updated Barn now, I'll report if this stuff happens without instant buid

                                        Edit because it may matter - Im the main farmer, my farm is a multiplayer one but i was playing in singleplayer when this happened

                                        Edit - ok, so having instant build on does not matter, Fiber is not recognizing the upgraded coop and barn for animal placment. and I've discovered that the shop menu coming up is due to the self service, as it brings up the self service menu for a shop when i am in that shop. I have seen it occur in Marnies and Pierres, haven't been able to test clint.
                                         
                                          Last edited: May 6, 2018
                                        • VolantCaedis

                                          VolantCaedis Void-Bound Voyager

                                          Main player.
                                           
                                          Thread Status:
                                          Not open for further replies.

                                          Share This Page