RELEASED [Storm] and [SMAPI] TimeSpeed Mod--Configurable Day Lengths

Discussion in 'Gameplay Mechanics' started by cantorsdust, Mar 4, 2016.

  1. DeathArcher

    DeathArcher Void-Bound Voyager

    There is a problem with the furnace. if the time is slower than before, i need more time to smelt something in the furnace. is it possible to chance it?
     
    • cantorsdust

      cantorsdust Existential Complex

      All of the machines work in game time, not real time. They update with each 10 minute tick. You're essentially asking to speed up the machines, not messing with time. While I might do a mod like that in the future, that's outside the scope of this mod right now.
       
      • Middeer

        Middeer Void-Bound Voyager

        For whatever reason, the tick length keeps defaulting to 7 even though I have it set to 14 in the config file. Does anyone know how to fix this??
         
        • yBot

          yBot Space Hobo

          It seems to make timed events such as festivals not trigger for me?
           
          • Powermate

            Powermate Space Spelunker

            Hey its me again, so i played my daily routine today with the time speed mod and it freezed on Safe again this time i have the error logs.
            Code:
            [23:45:43] Initializing SDV Assembly...
            [23:45:43] Injecting New SDV Version...
            [23:45:43] Starting SDV...
            [23:45:43] Patching SDV Graphics Profile...
            [23:45:43] LOADING MODS
            [23:45:43] Found DLL: C:\Program Files (x86)\Steam\SteamApps\common\Stardew Valley\Mods\AutoSpeed.dll
            [23:45:43] Loading Mod DLL...
            [23:45:43] SpeedMod makes the player move faster upon loading a charcter.
            [23:45:43] Found DLL: C:\Program Files (x86)\Steam\SteamApps\common\Stardew Valley\Mods\CalendarAnywhere.dll
            [23:45:43] Loading Mod DLL...
            [23:45:43] Found DLL: C:\Program Files (x86)\Steam\SteamApps\common\Stardew Valley\Mods\InstantFishingCatch.dll
            [23:45:43] Loading Mod DLL...
            [23:45:43] Registered command: instantfish_alwaystreasure
            [23:45:43] Found DLL: C:\Program Files (x86)\Steam\SteamApps\common\Stardew Valley\Mods\JunimoDepositEverywhere.dll
            [23:45:43] Loading Mod DLL...
            [23:45:43] Found DLL: C:\Program Files (x86)\Steam\SteamApps\common\Stardew Valley\Mods\StaminaRegen.dll
            [23:45:43] Loading Mod DLL...
            [23:45:43] Found DLL: C:\Program Files (x86)\Steam\SteamApps\common\Stardew Valley\Mods\StardewCJB.dll
            [23:45:43] Loading Mod DLL...
            [23:45:43] Found DLL: C:\Program Files (x86)\Steam\SteamApps\common\Stardew Valley\Mods\TimeSpeed.dll
            [23:45:43] Loading Mod DLL...
            [23:45:43] Found DLL: C:\Program Files (x86)\Steam\SteamApps\common\Stardew Valley\Mods\TrainerMod.dll
            [23:45:43] Loading Mod DLL...
            [23:45:43] Registered command: types
            [23:45:43] Registered command: hide
            [23:45:43] Registered command: show
            [23:45:43] Registered command: save
            [23:45:43] Registered command: load
            [23:45:43] Registered command: exit
            [23:45:43] Registered command: stop
            [23:45:43] Registered command: player_setname
            [23:45:43] Registered command: player_setmoney
            [23:45:43] Registered command: player_setstamina
            [23:45:43] Registered command: player_setmaxstamina
            [23:45:43] Registered command: player_sethealth
            [23:45:43] Registered command: player_setmaxhealth
            [23:45:43] Registered command: player_setimmunity
            [23:45:43] Registered command: player_setlevel
            [23:45:43] Registered command: player_setspeed
            [23:45:43] Registered command: player_changecolour
            [23:45:43] Registered command: player_changestyle
            [23:45:43] Registered command: player_additem
            [23:45:43] Registered command: player_addmelee
            [23:45:43] Registered command: player_addring
            [23:45:43] Registered command: out_items
            [23:45:43] Registered command: out_melee
            [23:45:43] Registered command: out_rings
            [23:45:43] Registered command: newitem
            [23:45:43] Registered command: world_settime
            [23:45:43] Registered command: world_freezetime
            [23:45:43] Registered command: world_setday
            [23:45:43] Registered command: world_setseason
            [23:45:43] Registered command: world_downminelevel
            [23:45:43] Registered command: world_setminelevel
            [23:45:43] LOADED 8 MODS
            [23:45:43] SDV Loaded Into Memory
            [23:45:43] Initializing Console Input Thread...
            [23:45:43] Registered command: help
            [23:45:43] Applying Final SDV Tweaks...
            [23:45:43] XNA Initialize
            [23:45:47] XNA LoadContent
            [23:45:48] Initializing Debug Assets...
            [23:45:48] Game Loaded
            [23:45:48] Type 'help' for help, or 'help <cmd>' for a command's usage
            [23:46:29] Set Andrey's added speed to 2
            [00:30:53] An error occured in the base update loop: System.InvalidOperationException: Beim Generieren des XML-Dokuments ist ein Fehler aufgetreten. ---> System.InvalidOperationException: 'StardewValley.Characters.Junimo' kann nicht serialisiert werden, weil dafür kein parameterloser Konstruktor verfügbar ist.
               bei System.Xml.Serialization.TypeDesc.CheckSupported()
               bei System.Xml.Serialization.TypeScope.GetTypeDesc(Type type, MemberInfo source, Boolean directReference, Boolean throwOnError)
               bei System.Xml.Serialization.XmlSerializationWriter.CreateUnknownTypeException(Type type)
               bei Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSaveGame.Write35_NPC(String n, String ns, NPC o, Boolean isNullable, Boolean needType)
               bei Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSaveGame.Write63_CommunityCenter(String n, String ns, CommunityCenter o, Boolean isNullable, Boolean needType)
               bei Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSaveGame.Write85_GameLocation(String n, String ns, GameLocation o, Boolean isNullable, Boolean needType)
               bei Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSaveGame.Write127_SaveGame(String n, String ns, SaveGame o, Boolean isNullable, Boolean needType)
               bei Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSaveGame.Write128_SaveGame(Object o)
               --- Ende der internen Ausnahmestapelüberwachung ---
               bei System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
               bei StardewValley.SaveGame.<getSaveEnumerator>d__0.MoveNext()
               bei StardewValley.Menus.SaveGameMenu.update(GameTime time)
               bei StardewValley.Menus.ShippingMenu.update(GameTime time)
               bei StardewValley.Game1.updateActiveMenu(GameTime gameTime)
               bei StardewValley.Game1.Update(GameTime gameTime)
               bei StardewModdingAPI.Inheritance.SGame.Update(GameTime gameTime)
            
            

            I use windows 10 so some words in the error log are german because W10 translate it automaticly

            i think this is the main error
            Code:
            "An error occured in the base update loop: System.InvalidOperationException: Beim Generieren des XML-Dokuments ist ein Fehler aufgetreten. ---> System.InvalidOperationException: 'StardewValley.Characters.Junimo' kann nicht serialisiert werden, weil dafür kein parameterloser Konstruktor verfügbar ist." 
            it says that a character named Junimo cannot be serialized, because there is no parameter constructor available.
             
            • cantorsdust

              cantorsdust Existential Complex

              Edit: Nevermind, I was looking at the wrong code. I'm trying to find somewhere where the one variable I touch, gameTimeInterval, affects Junimos in any way and am coming up with nothing.

              And I can't touch the one variable mentioned, GameTime time, at all. That's all the game.

              Four questions:

              1. What do you have your time tick length set to?
              2. Does it still occur if you remove my time mod?
              3. Does it still occur if the tick length is set to 7?
              4. Did this occur upon saving or upon loading your save?
               
                Last edited: Mar 5, 2016
              • cantorsdust

                cantorsdust Existential Complex

                Not sure where to start for this one. Give me a bit to look around and I'll see.
                 
                • Zebracakes4me

                  Zebracakes4me Tentacle Wrangler

                  Could be specific festivals. I was successfully able to participate in the "egg hunt" festival with the time speed mod set at 14.

                  Playing on Windows 7 and bought game through Steam...not sure if this info helps.
                   
                    Drogean likes this.
                  • cantorsdust

                    cantorsdust Existential Complex

                    So I have looked at every single time the one variable my mod touches, gameTimeInterval, is used in the game. I don't see where it could be affecting either the Junimos or the festivals. I will list all 15 uses of the variable in the code, and explain what each is doing.

                    First, in Game1.cs, the main file.

                    line 284, initializes the variable as a public static int. HARMLESS
                    line 799, sets it to 0 upon the reset variables command. HARMLESS
                    line 1848, sets it to 0 upon the performTenMinuteClockUpdate, resetting the timer. MY MOD TARGET.
                    line 1956, adjusts it by the number of miliseconds of elapsed game time as the game is played. NORMAL FUNCTION, HARMLESS.
                    line 1959, used as one of several factors to adjust game lighting. HARMLESS
                    line 1964, same as 1959. HARMLESS
                    line 1971, if gameTimeInterval is less than 7000 (the standard game length), then the UpdateGameClock function returns and does not call performTenMinuteClockUpdate. MY MOD TARGET.
                    line 1974, sets it to 0 if game in panMode (zooming function I guess?) HARMLESS

                    Next, in Town.cs

                    line 63, used as one of several factors to adjust the length of an animation. Negative numbers should not be problematic here. HARMLESS
                    line 68, same
                    line 361, used as one of several factors to adjust game lighting. HARMLESS
                    line 362, same

                    Next, in Background.cs

                    line 84, used as one of several factors to adjust game lighting. HARMLESS
                    line 86, same

                    Lastly, in DayTimeMoneyBox.c, used to define the direction the arrow is pointing as time ticks along. You've probably seen this in game. HARMLESS.


                    Basically, I don't see where it could be affecting Junimos or festivals. I'd advise anyone having problems to try these four questions. I need more info to see if it's related to the mod or not.

                    Four questions:

                    1. What do you have your time tick length set to?
                    2. Does it still occur if you remove my time mod?
                    3. Does it still occur if the tick length is set to 7?
                    4. Did this occur upon saving or upon loading your save?
                     
                    • Requiem

                      Requiem Phantasmal Quasar

                      Actually, FreezeInside and TimeSpeed mod were causing the same issue. Downgraded to smapi 0.35 and it worked just fine. :}
                       
                      • Hamsterkicker

                        Hamsterkicker Space Hobo

                        So I have the StardewModdingAPI.exe in the same folder as the normal exe (tried .35 and .36) and i have the mod folder with the trainer in it but when i place the dll files such as the time speed dll nothing changes when opening the game through the new exe. The game time passes at the same rate. time tick is set to 14
                         
                        • cantorsdust

                          cantorsdust Existential Complex

                          The first tick passes at the normal rate (my mod intecepts after the first 10 minute tick). The rest pass at the expected rate. Have you waited a few ticks?

                          Look in the console window that pops up when you run the game through SMAPI. Do you see the lines

                          LOADED MOD: Time Slow Mod by cantorsdust...
                          found INI in %appdata%
                          DayLength=14
                          TimeSpeed Mod Has Loaded

                          ?
                           
                          • Powermate

                            Powermate Space Spelunker

                            1. My time tick is at 12
                            2. It doesnt occur if i remove it. (So its definitely the time speed mod that or its just incompatible to some mods im in use right now.)
                            Mods i use: AutoSpeed, CalendarAnywhere, InstantFishingCatch, JunimoDepostiEverywhere, StaminaRegen, StardewCJB, TrainerMod and your TimeSpeed mod. (And something i noticed during testing that, your mod gives you extra movement speed realized that because i had my movement speed on "2" in the Autospeed mod and your mod increased it by 1 so i had 3 and was much faster than before.
                            3. Didnt test yet
                            4. Its occuring on the saving, loading works perfectly fine.

                            #Edit1: Nvm i had this error again without your mod so its something else causing this error

                            #Edit2: So i tested every single mod im playing with right now and the problem seems to be the Trainer.dll thingy, without it other mods work great with it i cant save properly because it freezes on the saving process. It also gives me the same error on that what i have posted.
                             
                              Last edited: Mar 5, 2016
                            • Alaswing

                              Alaswing Scruffy Nerf-Herder

                              Hi guys, im sorry im new in this, do i need to play ussing the modapi exe? or normaly by steam?, thanks for the help.
                               
                              • Powermate

                                Powermate Space Spelunker

                                You need to use the modapi because if u start the normal stardew valley.exe it wont load any mods
                                 
                                • AvAcyn

                                  AvAcyn Void-Bound Voyager

                                  So yeah doesn't work with 0.37 SMAPI. Hows your update coming along? :3 Essential mod for me tbh ^^ Thx so much.
                                   
                                  • SinisterHumanoid

                                    SinisterHumanoid Void-Bound Voyager

                                    Where can I download the TrainerMod.dll? I can't find it anywhere on the forums.
                                     
                                    • carnage157

                                      carnage157 Pangalactic Porcupine

                                      Look inside your SMAPI .zip file. Alongside the API is also a folder called Mods. Inside that folder is where you'll find the .dll for the trainer.
                                       
                                      • Afflicted One

                                        Afflicted One Phantasmal Quasar

                                        Would it be possible to stop the script from running on the days which festivals take place?
                                         
                                          Powermate likes this.
                                        • SinisterHumanoid

                                          SinisterHumanoid Void-Bound Voyager

                                          Yeah I found it after searching for it through my file searcher. Thank you though
                                           

                                          Share This Page