RELEASED [Gameplay Mod] Tractor Mod

Discussion in 'Mods' started by lambui, Nov 16, 2016.

  1. Oxidasa_oxidaiye

    Oxidasa_oxidaiye Starship Captain

    Works perfectly, although I found 2 problems. First, If you choose a radius of 2 on the pickaxe the game suffers from severe FPS drop. And second, I don't know if I can change the seeding/fertilizing radius in your config file.

    Keep the awesome work !!! :)
     
    • Oxidasa_oxidaiye

      Oxidasa_oxidaiye Starship Captain

      Ups, talk too soon. I started a new game and the game freezed at the start. It freezed when the screen goes black and in the bottom left says "Saving...".

      Here's my error log from the command prompt (you can see the other mods i'm using too):


      Code:
      [21:19:17 INFO  SMAPI] SMAPI 1.1.1 with Stardew Valley 1.11 on Microsoft Windows
      NT 6.2.9200.0
      [21:19:17 DEBUG SMAPI] Loading SMAPI...
      [21:19:17 DEBUG SMAPI] Loading game...
      [21:19:17 DEBUG SMAPI] Loading mods...
      [21:19:18 INFO  SMAPI] Loaded mod: ChestsAnywhere by Pathoschild, v1.8 | Access
      your chests from anywhere.
      [21:19:18 INFO  SMAPI] Loaded mod: CJB Cheats Menu by CJ Bok, v1.11 | Simple in-
      game cheats menu!
      [21:19:18 DEBUG CJB Cheats Menu] [EntoPatch] CJB Cheats Menu, Patch 7: Updated f
      or 1.1 by entoarox, ownership remains with author
      [21:19:18 INFO  SMAPI] Loaded mod: CJB Item Spawner by CJ Bok, v1.5 | Simple in-
      game Item Spawner!
      [21:19:18 DEBUG CJB Item Spawner] CJB Item Spawner: Patched 1.1 version by entoa
      rox, ownership remains with author
      [21:19:19 INFO  <unknown mod>] Initalizing ItemCollectorMod
      [21:19:19 INFO  <unknown mod>] Loading configuration for ItemCollectorConfigurat
      ion
      [21:19:19 ALERT SMAPI] You can update SMAPI from version 1.1.1 to 1.2
      [21:19:19 INFO  SMAPI] Loaded mod: FarmAutomation Mod: Item Collector by Oranisa
      gu, v1.0-1 | Collects items from animals and machines and refills machines if a
      nearby chest has the necessary raw materials.
      [21:19:19 INFO  SMAPI] Loaded mod: LookupAnything by Pathoschild, v1.7 | View me
      tadata about anything by pressing a button.
      [21:19:19 INFO  SMAPI] Loaded mod: LovedLabels by Advize & Jinxiewinxie, v2.0 |
      Gives pets customizeable tooltips so you can see who needs the love.
      [21:19:19 INFO  SMAPI] Loaded mod: NPC Map Locations Mod by Bouhm, v1.43 | Shows
      NPC locations on the map
      [21:19:19 INFO  SMAPI] Loaded mod: SkipIntro by Pathoschild, v1.1 | Skips the ga
      me's loading intro.
      [21:19:19 INFO  SMAPI] Loaded mod: Chest Label System by Maurício Gomes (Speeder
      ), v1.5 | Allow players to label their chests.
      [21:19:19 DEBUG Chest Label System] Chest Labels: Patched 1.1 version by entoaro
      x, ownership remains with author
      [21:19:19 INFO  SMAPI] Loaded mod: Configurable Improved Sprinklers Mod by Maurí
      cio Gomes (Speeder), v2.1 | Make the Sprinklers work better.
      [21:19:19 DEBUG Configurable Improved Sprinklers Mod] SprinklerMod: Patched 1.1
      version by entoarox, ownership remains with author
      [21:19:19 INFO  SMAPI] Loaded mod: CJB Show Item Sell Price by CJ Bok, v1.5 | Sh
      ow item sell price in your inventory!
      [21:19:19 INFO  SMAPI] Loaded mod: TractorMod by PhthaloBlue, v2.1.1 | Auto hoe
      and water tiles, also sow seeds and fertilize tiles.
      [21:19:19 DEBUG SMAPI] Loaded 12 mods.
      [21:19:19 DEBUG SMAPI] Starting game...
      [21:19:20 DEBUG SMAPI] Starting console...
      [21:19:20 INFO  SMAPI] Type 'help' for help, or 'help <cmd>' for a command's usa
      ge
      [21:19:21 INFO  SMAPI] Configurable Improved Sprinklers Mod used Extensions.AsIn
      t32, which is deprecated since SMAPI 1.0. This will break in a future version of
      SMAPI.
      [21:19:42 INFO  FarmAutomation Mod: Item Collector] Petting animals and processi
      ng their buildings to collect items
      [21:19:42 DEBUG FarmAutomation Mod: Item Collector] Starting search for connecte
      d locations at Farm
      [21:20:29 DEBUG FarmAutomation Mod: Item Collector] Starting search for connecte
      d locations at Farm
      [21:21:35 DEBUG FarmAutomation Mod: Item Collector] It's a new day. Resetting th
      e Item Collector mod
      [21:21:35 INFO  FarmAutomation Mod: Item Collector] Loading locations. These are
      all the currently known locations in the game:
      FarmHouse, Farm, FarmCave, Town, JoshHouse, HaleyHouse, SamHouse, Blacksmith, Ma
      norHouse, SeedShop, Saloon, Trailer, Hospital, HarveyRoom, Beach, ElliottHouse,
      Mountain, ScienceHouse, SebastianRoom, Tent, Forest, WizardHouse, AnimalShop, Le
      ahHouse, BusStop, Mine, Sewer, BugLand, Desert, Club, SandyHouse, ArchaeologyHou
      se, WizardHouseBasement, AdventureGuild, Woods, Railroad, WitchSwamp, WitchHut,
      WitchWarpCave, Summit, FishShop, BathHouse_Entry, BathHouse_MensLocker, BathHous
      e_WomensLocker, BathHouse_Pool, CommunityCenter, JojaMart, Greenhouse, SkullCave
      , Backwoods, Tunnel, Cellar
      [21:21:37 ERROR SMAPI] An error occured in the base update loop: System.InvalidO
      perationException: There was an error generating the XML document. ---> System.I
      nvalidOperationException: The type TractorMod.TractorMod+Tractor was not expecte
      d. Use the XmlInclude or SoapInclude attribute to specify types that are not kno
      wn statically.
         at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSaveGa
      me.Write38_NPC(String n, String ns, NPC o, Boolean isNullable, Boolean needType)
      
         at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSaveGa
      me.Write63_Farm(String n, String ns, Farm o, Boolean isNullable, Boolean needTyp
      e)
         at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSaveGa
      me.Write90_GameLocation(String n, String ns, GameLocation o, Boolean isNullable,
      Boolean needType)
         at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSaveGa
      me.Write132_SaveGame(String n, String ns, SaveGame o, Boolean isNullable, Boolea
      n needType)
         at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSaveGa
      me.Write133_SaveGame(Object o)
         --- End of inner exception stack trace ---
         at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Obje
      ct o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
         at StardewValley.SaveGame.<getSaveEnumerator>d__46.MoveNext() in C:\Users\tom
      c\Documents\Visual Studio 2010\Projects\Stardew.XNA\Farmer\Farmer\SaveGame.cs:li
      ne 199
         at StardewValley.Menus.SaveGameMenu.update(GameTime time) in C:\Users\tomc\Do
      cuments\Visual Studio 2010\Projects\Stardew.XNA\Farmer\Farmer\Menus\SaveGameMenu
      .cs:line 45
         at StardewValley.Game1.updateActiveMenu(GameTime gameTime) in C:\Users\tomc\D
      ocuments\Visual Studio 2010\Projects\Stardew.XNA\Farmer\Farmer\Game1.cs:line 182
      6
         at StardewValley.Game1.Update(GameTime gameTime) in C:\Users\tomc\Documents\V
      isual Studio 2010\Projects\Stardew.XNA\Farmer\Farmer\Game1.cs:line 1568
         at StardewModdingAPI.Inheritance.SGame.Update(GameTime gameTime) in D:\source
      \SMAPI\src\StardewModdingAPI\Inheritance\SGame.cs:line 333
      
      
      
       
      • lambui

        lambui Big Damn Hero

        I guess the pickaxe fps drop cause it kinda plays a more resource intensive animation than other tools.
        It's fine on my end but I have a top spec desktop so ¯\_(ツ)_/¯

        The seed/fertilizing doesn't have custom radius right now. Maybe another feature for the future :)
         
        • lambui

          lambui Big Damn Hero

          oh god its still not fix, it cause the game doesn't know how to save the tractor. I prob need to do a better job at deleting the tractor every night before save.
          It rarely happens tho so try replay your day again and hope for the best for now.
           
            Last edited: Dec 3, 2016
          • Oxidasa_oxidaiye

            Oxidasa_oxidaiye Starship Captain

            I think I didn't express myself very well, I was STARTING a new game from scratch, and the game can't pass beyond that. Before Day 1 starts you can briefly see your character inside you cottage with a box of parsnip seeds next to him/her, then the screen goes black and the "saving..." message appears in the lower-left corner of the screen, and that's the moment when the game freezes and the command prompt shows the code I posted before. So...I can't even play Day 1 ¯\_(ツ)_/¯

            Guess I have to play with a prior working version of your mod before you fix this one !, good luck debugging ;)
             
            • lambui

              lambui Big Damn Hero

              New version should fix the bug I think.
              Also I notice slight fps drop with the pickaxe on tractor on my end too so I add option to lower active rate, tweak it to your liking.
               
                foghorn likes this.
              • Zaden

                Zaden Void-Bound Voyager

                @lambui sorry newbie modding player here, how to install this mod?
                 
                • Oxidasa_oxidaiye

                  Oxidasa_oxidaiye Starship Captain

                  1) Download mod. It will be a folder named "TractorMod".
                  2) Place that folder inside the "Mods" folder of your game directory.
                  3) Run SMAPI to start the game
                  4) Enjoy
                   
                  • Oxidasa_oxidaiye

                    Oxidasa_oxidaiye Starship Captain

                    I found another small bug, If you start auto-harvest spring onions and you don't release the mouse button you can harvest an infinite amount of them.
                     
                    • Oxidasa_oxidaiye

                      Oxidasa_oxidaiye Starship Captain

                      A second small bug. If you use the Iridium Hoe to plow a 3x6 rectangle and then you proceed to auto-plow, the hoe plows with an irregular radius around the character. In my case it auto-plowed in a 8x6 rectangle NOT CENTERED around the character. The problem was gone after I used the hoe to plow a 1x1 tile (by just pressing the left click without holding it), after that the hoe auto-plowed around my character normally.

                      Odd isn't it ?
                       
                      • GoodChilds

                        GoodChilds Void-Bound Voyager

                        sorry newbie here how do i solve this ?

                        Capture.PNG
                         
                        • FieryChaos

                          FieryChaos Cosmic Narwhal

                          Well, the first thing to do would be to update SMAPI. This mod requires at least v1.1 of SMAPI last I checked, but v1.3 has been released recently.
                          Second would be to make sure the dll is actually in the mod folder and installed correctly.
                           
                            Last edited: Dec 5, 2016
                            GoodChilds likes this.
                          • lambui

                            lambui Big Damn Hero

                            I fix the bug already in the next update but it is not ready yet (mainly because the structure is an eyesore at the moment, but it should be stable).

                            If any of you can help me with this: http://community.playstarbound.com/threads/someone-helps-me-make-tractor-garage-sprite.127505/
                            I can release the next big version faster.
                             
                            • lambui

                              lambui Big Damn Hero

                              foghorn and GoodChilds like this.
                            • khoanguyen0497

                              khoanguyen0497 Void-Bound Voyager

                              So there's a small bug, if at night there's a fairy, the game can't save and crashes. Other than that, it's working flawlessly
                               
                              • lambui

                                lambui Big Damn Hero

                                new patch should fix it. Hopefully.
                                 
                                • Marcel0511

                                  Marcel0511 Void-Bound Voyager

                                  Can you add a Function to use the Tractor in Caves?
                                   
                                  • valentinevar

                                    valentinevar Big Damn Hero

                                    Great work on this so far. I've found a couple of bugs.
                                    1- When harvesting my truck gets stuck after it harvest the first set of crops. I have to get off the truck and back up so it'll continue moving.
                                    2- I had a new chick hatch and I was naming it something with the letter N in it. It trigger the phone call to the truck and it crashed my game.
                                     
                                    • lambui

                                      lambui Big Damn Hero

                                      I don't think I can do it because CA code doesn't allow horse to spawn in dynamically created space (like coop, barn, or cave system).
                                      If somehow I end up finding out how to get around that I will add it in.

                                      1- Can you make a gif showing the bug because harvesting work perfectly fine on my end.
                                      2- Maybe I will patch that in the future. For now just turn the hotkey off by changing the config.
                                       
                                      • valentinevar

                                        valentinevar Big Damn Hero

                                        here's a gif of the bug I'm encountering. It only happens when harvesting.
                                        (here's a link) http://imgur.com/RxO1xcI
                                        As you can see, as soon as I move towards a plant that is ready to be harvested, it will harvest all those things but then get stuck and I'm unable to move the truck. Also, I just noticed it changed my water can and hoe to iridium quality when both of them used to be gold quality only.
                                        Everything else works just fine (watering, plowing, planting seeds) works perfect.
                                         

                                        Share This Page