Tool SMAPI: Stardew Modding API

Discussion in 'Mods' started by ClxS, Mar 6, 2016.

  1. Naddin

    Naddin Space Hobo

    NET Framework, Windows on the laptop = NET Framework, Windows on my computer.
     
    • mehve

      mehve Poptop Tamer

      Hello, I posted this in the XnbLoader thread and was told to try asking for help here as this might be SMAPI-related:

      I'm having some trouble getting Entoarox Framework and Xnb Loader to work in SMAPI with a custom animal mod. The game runs without issue, I just don't see the custom skin and I get a message: 'The Entoarox Framework mod failed on entry initialisation.' after the file redirect in the SMAPI terminal (see attached the error log). I've tried this with a couple different .xnb mods (other custom asset skins, custom dialogue) and get the same error message.

      Here's the version info: Stardew Valley 1.2 (on Steam, Mac OSX), SMAPI 1.12, Entoarox Framework v1.7.9, Xnb Loader v1.0.6

      This is the mod from the error log: http://www.nexusmods.com/stardewvalley/mods/623/?

      I installed Entoarox Framework and Xnb Loader by placing the unzipped folders in the same directory where I put my other SMAPI mods: <game folder>/Mods/!EntoaroxFramework/ and <game folder>/Mods/XnbLoader/ respectively, then I dropped 'Blue Chicken.xnb' in XnbLoader/ModContent/Animals/.

      I've tried to investigate the cause of the error message, but I'm still not sure what's going on. Has anyone seen this error message before?
       

        Attached Files:

      • Pathoschild

        Pathoschild I've got a deal for you...

        Can you try installing .NET Framework 4.7 on your computer anyway?

        The specific error is:
        Code:
        Failed loading type '': System.TypeLoadException: Failure has occurred while loading a type.
          at Entoarox.Framework.EntoFramework.Entry (IModHelper helper) <0x1602edb30 + 0x0045c> in <filename unknown>:0 
          at StardewModdingAPI.Program.LoadMods () <0x15cc90000 + 0x02680> in <filename unknown>:0 
        
        The error happens inside the Entoarox Framework's entry method. Does it still happen if you remove XNB Loader?
         
        • Naddin

          Naddin Space Hobo

          NET Framework 4.7 need (for?) Windows7 SP1. I have no SP1.
           
          • mehve

            mehve Poptop Tamer

            Yes it does, but some of the (hexadecimal?) numbers are different. I've attached the error log that's produced by Entoarox Framework without XNB Loader.

            Code:
            Failed loading type '': System.TypeLoadException: Failure has occurred while loading a type.
              at Entoarox.Framework.EntoFramework.Entry (IModHelper helper) <0x1626bc710 + 0x0045c> in <filename unknown>:0
              at StardewModdingAPI.Program.LoadMods () <0x15efd1000 + 0x02680> in <filename unknown>:0
            
             

              Attached Files:

              Last edited: May 6, 2017
            • Ghostly Fox

              Ghostly Fox Giant Laser Beams

              I seem to be having an issue. Loaded fine earlier today, closed it out, now it's crashing when I try to start a new game, and goes in an infinite loop if I try to load a game. It goes intro screen, title screen, load screen, click save, intro screen. I didn't make any alterations between my last session and this one.
               

                Attached Files:

              • Pathoschild

                Pathoschild I've got a deal for you...

                It seems to be an issue with Entoarox Framework itself (unrelated to any other mods), possibly a compatibility issue with Mac. Based on the mod's logging, it happens on one of these lines. I suggest working with @Entoarox to figure out exactly which line it happens on (e.g. by running a custom build with more logging), which will make it much easier to find the cause.

                If I'm reading that log correctly, it looks like you loaded a save fine, exited to title, and then it crashed. Last I checked, Entoarox Framework doesn't handle returning to title very well. Does the error happen if you load the save from fresh, without returning to title first?
                 
                • Pathoschild

                  Pathoschild I've got a deal for you...

                  SMAPI needs .NET Framework 4.5 or later. If you can't install that version, you unfortunately won't be able to use SMAPI without getting SP1.
                   
                  • Ghostly Fox

                    Ghostly Fox Giant Laser Beams

                    Yes- trying to load a save automatically returns to the title screen without actually loading a save, and trying to start a new game freezes the game completely, even with a newly opened instance of SDV.
                     
                    • taj

                      taj Intergalactic Tourist

                      Hi!
                      I am having problems whenever I try to change to fullscreen. I removed all the mods and still the problem remains. Any idea what's causing it?
                      Thanks!
                       

                        Attached Files:

                      • FieryChaos

                        FieryChaos Big Damn Hero

                        Looks like the fullscreen bug the game currently has. Don't use fullscreen until it's fixed.
                         
                        • Karmylla

                          Karmylla Subatomic Cosmonaut

                          I love the new SMAPI icon, so freaking adorable!X3
                           
                            pvmambembe and Pathoschild like this.
                          • taj

                            taj Intergalactic Tourist

                            Got it, I'll wait for a correction, and thanks for replying!
                             
                            • Naddin

                              Naddin Space Hobo

                              Yes! Installed NET Framework 4.5.2 it and it worked! Thank you![​IMG]
                               
                                Pathoschild likes this.
                              • Pathoschild

                                Pathoschild I've got a deal for you...

                                Does the error happen if you remove Entoarox Framework (and any mods that use it)? If so, can you attach your latest SMAPI log after trying it?

                                The error seems to happen when switching from windowed to full-screen after the title screen (which may happen automatically). You can play full-screen, but you need to make sure the game doesn't switch after you load the save. Here's how to play full-screen:
                                1. If the save isn't already set for full-screen:
                                  1. Open your save file in a plaintext editor that can handle large files (like Sublime Text).
                                  2. Find this:
                                    Code:
                                    <fullscreen>false</fullscreen>
                                  3. And replace it with this:
                                    Code:
                                    <fullscreen>true</fullscreen>
                                2. Before you load the save, make sure the window is already full-screen (press ALT + ENTER if not).
                                The save should load in full-screen mode without error. Does that work for you?
                                 
                                • mehve

                                  mehve Poptop Tamer

                                  Ok, thank you for your help!
                                   
                                  • Asayina

                                    Asayina Void-Bound Voyager

                                    Hi I'm getting an error when I try to open up the SMAPI its self? It will immediately freeze up and say that SMAPI has stopped working :( I'm running windows 8 any tips on getting this to work? this is what happens. https://puu.sh/vOkht/028c3128a7.png
                                     
                                    • Pathoschild

                                      Pathoschild I've got a deal for you...

                                    • Entoarox

                                      Entoarox Parsec Taste Tester

                                      did you install SMAPI properly? This is saying that SDV cant be found...
                                       
                                      • cdaragorn

                                        cdaragorn Aquatic Astronaut

                                        I'm having a problem with the PlayerEvents.LeveledUp event. It's firing once for every one of the 5 skills when the game gets loaded. I can't seem to find a way to tell when the event is valid (an actual level up) and when it's just the initial assignment of the player's current levels. Any ideas?
                                         

                                        Share This Page