0 of 0

File information

Last updated

Original upload

Created by

ceruleandeep

Uploaded by

ceruleandeep

Virus scan

Safe to use

Tags for this mod

About this mod

Identifies which mod is causing a NullReferenceException at StardewValley.Game1.warpCharacter, or a FormatException downstream of StardewValley.NPC.loadEndOfRouteBehavior

Permissions and credits
Warp Snitch helps you fix/debug/recover from

  • NullReferenceException in warpCharacter
  • FormatException in/around NPC.loadEndOfRouteBehavior
  • NullReferenceException in FishPond.dayUpdate
  • NullReferenceException in FishPond.HasUnresolvedNeeds 
  • KeyNotFoundException in FishingRod.draw

It doesn't fix any other errors than those.

I've installed Warp Snitch previously, do I need to install the latest update?

No

I get a NullReferenceException in warpCharacter

If you see this:

An error occurred in the base update loop: System.NullReferenceException: Object reference not set to an instance of an object.at StardewValley.Game1.warpCharacter(NPC character, GameLocation targetLocation, Vector2 position)

Warp Snitch will give you output like this, just before the crash:

[Warp Snitch] warpCharacter: getLocationFromName returns null for Custom_Tarniyar_GhostTown [NPC: Grogu]

In this case, you now know that the problem is caused by an NPC trying to
warp to the non-existent map Custom_Tarniyar_GhostTown. Here, Walk to
the Desert Redux has created warps to Custom_Tarniyar_GhostTown, but its
map is actually called Custom_WTDR_GhostTown. This has tricked Grogu
into warping somewhere that doesn't exist.

You will still get a crash! You have to fix/remove the faulty mod.


I get a FormatException in/around NPC.loadEndOfRouteBehavior

If you see this:

An error occurred in the base update loop: System.FormatException: Input string was not in a correct format.at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at StardewValley.Utility.parseStringToIntArray(String s, Char delimiter)
at StardewValley.NPC.loadEndOfRouteBehavior(String name)


Warp Snitch will give you output like this:

[Warp Snitch] loadEndOfRouteBehavior: could not parse routeEndAnimation [NPC: Mona]
[Warp Snitch] the faulty int array is: '2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 '

In this case you now know that the problem is caused by the Mona NPC, which has a faulty animation (in Mona_Rocking, as it turns out). Luckily, Warp Snitch can prevent this crash by skipping the animation.

I changed my JA mods and now my fishpond crashes

  • install Warp Snitch
  • Fish everything out of your pond, reset the pond, put a base game fish in the pond
  • Ignore the yellow warning that appears 60 times a second while you do this -- Warp Snitch is rescuing you
  • Don't do it again


I get a different crash and I want Warp Snitch to fix it
  • I need your SMAPI log
  • I need your save
  • I need your mods folder zipped up
  • I need you to remove as many mods as you possibly can, if they're unrelated to the error
  • I need your save+mods to load in less than 5 minutes