Edited save file, game crashing. Could anyone help me understand why? [Solved]

Discussion in 'Mods' started by Kamirose, Mar 10, 2016.

  1. Kamirose

    Kamirose Big Damn Hero

    This isn't really modding related I guess, but I figured the modding gurus might be able to help me :)

    Before anyone asks, I did back up my save before editing so I can revert back if I don't figure out what the problem is.

    Basically, I moved some buildings, specifically the coop, barn, and three silos. My guess is the coop is what's causing the issue, since it's always while I'm in there that the game crashes. I moved the coop to X: 70, Y: 35. I only changed the coordinates, nothing else. The crashes seem to occur when I give affection to my animals.

    This is the section I edited, just the tilex and tiley coordinates:

    Code:
                        <tileX>70</tileX>
                        <tileY>35</tileY>
                        <tilesWide>6</tilesWide>
                        <tilesHigh>3</tilesHigh>
                        <maxOccupants>4</maxOccupants>
                        <currentOccupants>12</currentOccupants>
                        <daysOfConstructionLeft>0</daysOfConstructionLeft>
                        <daysUntilUpgrade>0</daysUntilUpgrade>
                        <buildingType>Deluxe Coop</buildingType>
                        <nameOfIndoors>Coop94009</nameOfIndoors>
                        <baseNameOfIndoors>Coop</baseNameOfIndoors>
                        <nameOfIndoorsWithoutUnique>Coop3</nameOfIndoorsWithoutUnique>
    
    The error messages I've gotten are all the same, and they say:

    Code:
    Message: Object reference not set to an instance of an object.
    InnerException:
    Stack Trace:    at StardewValley.Menus.AnimalQueryMenu..ctor(FarmAnimal animal)
       at StardewValley.FarmAnimal.pet(Farmer who)
       at StardewValley.AnimalHouse.checkAction(Location tileLocation, Rectangle viewport, Farmer who)
       at StardewValley.Game1.tryToCheckAt(Vector2 grabTile, Farmer who)
       at StardewValley.Game1.pressActionButton(KeyboardState currentKBState, MouseState currentMouseState, GamePadState currentPadState)
       at StardewValley.Game1.UpdateControlInput(GameTime time)
       at StardewValley.Game1.Update(GameTime gameTime)
       at Microsoft.Xna.Framework.Game.Tick()
       at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
       at Microsoft.Xna.Framework.GameHost.OnIdle()
       at Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
       at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
       at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at Microsoft.Xna.Framework.WindowsGameHost.Run()
       at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
       at StardewValley.Program.Main(String[] args)
     
      Last edited: Mar 10, 2016
    • Kamirose

      Kamirose Big Damn Hero

      Just wanted to update that I seem to have found the issue. Gonna post it here in case anyone else has this issue.

      Each animal inside of your barn also has a <homeLocation> attribute set to your building's location. You also need to edit these to your building's location.
       

      Share This Page