Solved "ArgumentOutOfRangeException: 'minValue' cannot be greater than maxValue."

chamblissa90

Newcomer
SMAPI Log: https://smapi.io/log/0e8734842f7444bd934ab78536368677

Windows 10 PC

SDV 1.5.6 and SMAPI 3.14.5

I'm getting this error for both NPC Map Location and Farm Type Manager mods in SMAPI. These errors pop up when I load my save. I've no idea what the problem could be.

I have updated those two mods, I've uninstalled and reinstalled them, I've reset my files through Steam. Been at this for hours now and I'm at my wits end, any help is appreciated.

I've attached a screenshot of the specific errors.
 

Attachments

Can you try removing "Adventurer's Guild Expanded Content Pack"?

I see this error from the mod. There was a similar error that was supposedly fixed in the bug reports section of the mod, but there may be lingering issues:

Code:
19:43:51    TRACE    SMAPI    Content Patcher edited Data/Monsters (for the 'Adventurer's Guild Expanded' content pack).
19:43:51    ERROR    NPC Map Locations    This mod failed in the GameLoop.SaveLoaded event. Technical details:
ArgumentOutOfRangeException: 'minValue' cannot be greater than maxValue. (Parameter 'minValue')
   at System.Random.Next(Int32 minValue, Int32 maxValue)
   at StardewValley.Monsters.Monster.parseMonsterInfo(String name) in stardewvalley\Farmer\Farmer\Monsters\Monster.cs:line 366
   at StardewValley.Monsters.Monster..ctor_PatchedBy<PeacefulEnd.AlternativeTextures>(Monster this, String name, Vector2 position, Int32 facingDir)
   at StardewValley.Monsters.GreenSlime..ctor(Vector2 position, Int32 mineLevel)
   at StardewValley.Locations.VolcanoDungeon.GenerateEntities()
   at StardewValley.Locations.VolcanoDungeon.GenerateLevel(Boolean use_level_level_as_layout)
   at StardewValley.Locations.VolcanoDungeon.GenerateContents(Boolean use_level_level_as_layout)
   at StardewValley.Locations.VolcanoDungeon.GetLevel(String name, Boolean use_level_level_as_layout)
   at StardewValley.Game1.getLocationFromName(String name, Boolean isStructure)
   at Bouhm.Shared.Locations.LocationUtil.GetOutgoingWarpsForScanning(GameLocation location) in E:\source\_Stardew\Mods.Bouhm\Bouhm.Shared\Locations\LocationUtil.cs:line 293
   at Bouhm.Shared.Locations.LocationUtil.<MapRootLocations>g__ScanRecursively|12_0(GameLocation location, GameLocation prevLocation, String root, Boolean hasOutdoorWarp, Vector2 warpPosition, ISet`1 seen, Int32 depth) in E:\source\_Stardew\Mods.Bouhm\Bouhm.Shared\Locations\LocationUtil.cs:line 226
   at Bouhm.Shared.Locations.LocationUtil.MapRootLocations(GameLocation startLocation, Int32 curRecursionDepth) in E:\source\_Stardew\Mods.Bouhm\Bouhm.Shared\Locations\LocationUtil.cs:line 265
   at Bouhm.Shared.Locations.LocationUtil.ScanLocationContexts() in E:\source\_Stardew\Mods.Bouhm\Bouhm.Shared\Locations\LocationUtil.cs:line 63
   at NPCMapLocations.ModEntry.OnSaveLoaded(Object sender, SaveLoadedEventArgs e) in E:\source\_Stardew\Mods.Bouhm\NPCMapLocations\ModEntry.cs:line 363
   at StardewModdingAPI.Framework.Events.ManagedEvent`1.Raise(TEventArgs args) in SMAPI\Framework\Events\ManagedEvent.cs:line 101
 

chamblissa90

Newcomer
Can you try removing "Adventurer's Guild Expanded Content Pack"?

I see this error from the mod. There was a similar error that was supposedly fixed in the bug reports section of the mod, but there may be lingering issues:

Code:
19:43:51    TRACE    SMAPI    Content Patcher edited Data/Monsters (for the 'Adventurer's Guild Expanded' content pack).
19:43:51    ERROR    NPC Map Locations    This mod failed in the GameLoop.SaveLoaded event. Technical details:
ArgumentOutOfRangeException: 'minValue' cannot be greater than maxValue. (Parameter 'minValue')
   at System.Random.Next(Int32 minValue, Int32 maxValue)
   at StardewValley.Monsters.Monster.parseMonsterInfo(String name) in stardewvalley\Farmer\Farmer\Monsters\Monster.cs:line 366
   at StardewValley.Monsters.Monster..ctor_PatchedBy<PeacefulEnd.AlternativeTextures>(Monster this, String name, Vector2 position, Int32 facingDir)
   at StardewValley.Monsters.GreenSlime..ctor(Vector2 position, Int32 mineLevel)
   at StardewValley.Locations.VolcanoDungeon.GenerateEntities()
   at StardewValley.Locations.VolcanoDungeon.GenerateLevel(Boolean use_level_level_as_layout)
   at StardewValley.Locations.VolcanoDungeon.GenerateContents(Boolean use_level_level_as_layout)
   at StardewValley.Locations.VolcanoDungeon.GetLevel(String name, Boolean use_level_level_as_layout)
   at StardewValley.Game1.getLocationFromName(String name, Boolean isStructure)
   at Bouhm.Shared.Locations.LocationUtil.GetOutgoingWarpsForScanning(GameLocation location) in E:\source\_Stardew\Mods.Bouhm\Bouhm.Shared\Locations\LocationUtil.cs:line 293
   at Bouhm.Shared.Locations.LocationUtil.<MapRootLocations>g__ScanRecursively|12_0(GameLocation location, GameLocation prevLocation, String root, Boolean hasOutdoorWarp, Vector2 warpPosition, ISet`1 seen, Int32 depth) in E:\source\_Stardew\Mods.Bouhm\Bouhm.Shared\Locations\LocationUtil.cs:line 226
   at Bouhm.Shared.Locations.LocationUtil.MapRootLocations(GameLocation startLocation, Int32 curRecursionDepth) in E:\source\_Stardew\Mods.Bouhm\Bouhm.Shared\Locations\LocationUtil.cs:line 265
   at Bouhm.Shared.Locations.LocationUtil.ScanLocationContexts() in E:\source\_Stardew\Mods.Bouhm\Bouhm.Shared\Locations\LocationUtil.cs:line 63
   at NPCMapLocations.ModEntry.OnSaveLoaded(Object sender, SaveLoadedEventArgs e) in E:\source\_Stardew\Mods.Bouhm\NPCMapLocations\ModEntry.cs:line 363
   at StardewModdingAPI.Framework.Events.ManagedEvent`1.Raise(TEventArgs args) in SMAPI\Framework\Events\ManagedEvent.cs:line 101
Yup, thats what the issue was. I had to turn "MonsterDamageChanges" off in the config menu for that mod and that fixed everything. Thank you!!
 
Top