Rain World

Rain World

Struggle Mod
Repetitive Crash Log
Seems the mod is, to quote a member from the modding server:
"Looks like there's a part in PlayerStruggle hook where it asks for a nonexistent index in some list
At least in the second part. Maybe resolving that will fix the argument exception"

Here is the crash exception log:ArgumentException: Unable to sort because the IComparer.Compare() method returns inconsistent results. Either a value does not compare equal to itself, or one value repeatedly compared to another value yields different results. IComparer: 'System.Comparison`1[AbstractCreature]'.
System.Collections.Generic.IntrospectiveSortUtilities.ThrowOrIgnoreBadComparer (System.Object comparer) (at <a1e9f114a6e64f4eacb529fc802ec93d>:0)
System.Collections.Generic.ArraySortHelper`1[T].Sort (T[] keys, System.Int32 index, System.Int32 length, System.Comparison`1[T] comparer) (at <a1e9f114a6e64f4eacb529fc802ec93d>:0)
System.Collections.Generic.List`1[T].Sort (System.Comparison`1[T] comparison) (at <a1e9f114a6e64f4eacb529fc802ec93d>:0)
RXRandom.Shuffle[T] (System.Collections.Generic.List`1[T] list) (at <1014ff9a5d9941ab9e645d4f5c9384a5>:0)
RainWorldGame.SendScavsToPlayer () (at <1014ff9a5d9941ab9e645d4f5c9384a5>:0)
RainWorldGame.Update () (at <1014ff9a5d9941ab9e645d4f5c9384a5>:0)
MainLoopProcess.RawUpdate (System.Single dt) (at <1014ff9a5d9941ab9e645d4f5c9384a5>:0)
RainWorldGame.RawUpdate (System.Single dt) (at <1014ff9a5d9941ab9e645d4f5c9384a5>:0)
DMD<>?1283592448.Trampoline<RainWorldGame::RawUpdate>?1323087872 (RainWorldGame , System.Single ) (at <ab82088a598b42d791ceb4ce7355231a>:0)
CrazyWeaponsPlugin.CrazyWeaponsMod.RawUpdatePatch (On.RainWorldGame+orig_RawUpdate orig, RainWorldGame self, System.Single dt) (at <742f51e28fee4114a0f6023ffc606bfb>:0)
DMD<>?1283592448.Hook<RainWorldGame::RawUpdate>?1041422336 (RainWorldGame , System.Single ) (at <ca0b52b11cf643a38dc1784341d78968>:0)
DMD<>?1283592448.Trampoline<RainWorldGame::RawUpdate>?-292438528 (RainWorldGame , System.Single ) (at <fc0bb586038b40fda63af3c398c62160>:0)
Pom.Pom.RainWorldGameRawUpdate (On.RainWorldGame+orig_RawUpdate orig, RainWorldGame self, System.Single dt) (at <f26f3a5efaa94b93bb1c8a4d34b6c44c>:0)
DMD<>?1283592448.Hook<RainWorldGame::RawUpdate>?1150881280 (RainWorldGame , System.Single ) (at <ee5986064b944f749463142680d8fb51>:0)
ProcessManager.Update (System.Single deltaTime) (at <1014ff9a5d9941ab9e645d4f5c9384a5>:0)
DMD<Update>?1283592448._RainWorld::Update (RainWorld this) (at <1dafacdd49674b2aa5f010c1e1f8c640>:0)
DMD<>?1283592448.Trampoline<RainWorld::Update>?-1826455552 (RainWorld ) (at <499b2a16084945589e3e495c7935a4c5>:0)
Revivify.Plugin.ErrorCatch (On.RainWorld+orig_Update orig, RainWorld self) (at <84d6e4b45b0846db885a4a7bbcdd965b>:0)
DMD<>?1283592448.Hook<RainWorld::Update>?-2108121088 (RainWorld ) (at <979e287ef0d64bb6a6e750eaf61308a3>:0)
DMD<>?1283592448.Trampoline<RainWorld::Update>?-1054120960 (RainWorld ) (at <d93dfd5d49e6476394f9ba862ec952ba>:0)
RainWorldTryCatch.RainWorldTryCatchPlugin.<OnEnable>b__0_0 (On.RainWorld+orig_Update orig, RainWorld self) (at <532d00fc174848708ef7c04b6e6addad>:0)
UnityEngine.Debug:LogException(Exception)
RainWorldTryCatch.RainWorldTryCatchPlugin:<OnEnable>b__0_0(orig_Update, RainWorld)
DMD<>?1283592448:Hook<RainWorld::Update>?525657600(RainWorld)
DMD<>?1283592448:Trampoline<RainWorld::Update>?55361536(RainWorld)
Guardian.LogHooks:RainWorld_Update(orig_Update, RainWorld) (at E:/RainWorldModding/Guardian/src/plugin/Hooks/LogHooks.cs:23)
DMD<>?1283592448:Hook<RainWorld::Update>?-453225472(RainWorld)

[CRS] Found broken connections in world file! Read crsLog.txt for more information

This has happened twice so far.
< >
Showing 1-3 of 3 comments
Got another crash passing through a gate this time with way less mods.

ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <a1e9f114a6e64f4eacb529fc802ec93d>:0)
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <a1e9f114a6e64f4eacb529fc802ec93d>:0)
StruggleMod.StruggleMod.PlayerStruggleHook (On.Player+orig_Update orig, Player self, System.Boolean eu) (at <e0ce46f1afcc41428ba9fcd5fb55adef>:0)
DMD<>?-1342041856.Hook<Player::Update>?489944576 (Player , System.Boolean ) (at <c84b650d72874358b483c913fad267ba>:0)
Room.Update () (at <1014ff9a5d9941ab9e645d4f5c9384a5>:0)
RainWorldGame.Update () (at <1014ff9a5d9941ab9e645d4f5c9384a5>:0)
DMD<>?-1342041856.Trampoline<RainWorldGame::Update>?-2100650496 (RainWorldGame ) (at <05129a0a90f64a248dcce7c0988bb7ca>:0)
Pokéballs.Hooks.RainWorldGameUpdateHook (On.RainWorldGame+orig_Update orig, RainWorldGame self) (at <a8c9bd73c66d41d49c5a9c4cc704c192>:0)
DMD<>?-1342041856.Hook<RainWorldGame::Update>?972943872 (RainWorldGame ) (at <209dbc17e14b4cc7b3e613cf6f152e66>:0)
MainLoopProcess.RawUpdate (System.Single dt) (at <1014ff9a5d9941ab9e645d4f5c9384a5>:0)
RainWorldGame.RawUpdate (System.Single dt) (at <1014ff9a5d9941ab9e645d4f5c9384a5>:0)
DMD<>?-1342041856.Trampoline<RainWorldGame::RawUpdate>?-1094755840 (RainWorldGame , System.Single ) (at <a35ba00eac83423ca0d1856d03babe6e>:0)
CrazyWeaponsPlugin.CrazyWeaponsMod.RawUpdatePatch (On.RainWorldGame+orig_RawUpdate orig, RainWorldGame self, System.Single dt) (at <742f51e28fee4114a0f6023ffc606bfb>:0)
DMD<>?-1342041856.Hook<RainWorldGame::RawUpdate>?-9249792 (RainWorldGame , System.Single ) (at <79c1b05619c9415c8d3044f0bd47eb11>:0)
DMD<>?-1342041856.Trampoline<RainWorldGame::RawUpdate>?-424444416 (RainWorldGame , System.Single ) (at <43b099c2364043de895323b0d8899c17>:0)
Pokéballs.Hooks.RainWorldGameRawUpdateHook (On.RainWorldGame+orig_RawUpdate orig, RainWorldGame self, System.Single dt) (at <a8c9bd73c66d41d49c5a9c4cc704c192>:0)
DMD<>?-1342041856.Hook<RainWorldGame::RawUpdate>?1844541952 (RainWorldGame , System.Single ) (at <ce92289c04f24ac1b0e1cc391b366b5b>:0)
ProcessManager.Update (System.Single deltaTime) (at <1014ff9a5d9941ab9e645d4f5c9384a5>:0)
DMD<Update>?-1342041856._RainWorld::Update (RainWorld this) (at <7b53a9561714470c93f7444b500794ac>:0)
DMD<>?-1342041856.Trampoline<RainWorld::Update>?1870124032 (RainWorld ) (at <bf01c281ec1b41d58d3f0e4976f7bb38>:0)
RainWorldTryCatch.RainWorldTryCatchPlugin.<OnEnable>b__0_0 (On.RainWorld+orig_Update orig, RainWorld self) (at <532d00fc174848708ef7c04b6e6addad>:0)
UnityEngine.Debug:LogException(Exception)
RainWorldTryCatch.RainWorldTryCatchPlugin:<OnEnable>b__0_0(orig_Update, RainWorld)
DMD<>?-1342041856:Hook<RainWorld::Update>?1597206528(RainWorld)
DMD<>?-1342041856:Trampoline<RainWorld::Update>?1585106944(RainWorld)
Guardian.LogHooks:RainWorld_Update(orig_Update, RainWorld) (at E:/RainWorldModding/Guardian/src/plugin/Hooks/LogHooks.cs:23)
DMD<>?-1342041856:Hook<RainWorld::Update>?1303441408(RainWorld)
Yoz64  [developer] 5 Aug, 2023 @ 11:23pm 
Hello!
Sorry for the extremely late response, my old system died and it has been very hard to deploy any changes to this mod since I cannot run the game at the moment.

The issue seems to be caused by the way the code handles the recoil after struggling out of a grab.

I'm gonna try to format my code a little bit better before open-sourcing so hopefully someone can either find a solution or test mine before I deploy it.
T.Hybrid21 25 Jan, 2024 @ 10:12pm 
IT'S THIS!
This is the mod that keeps causing the random exception and crash. Any and every single time the struggle mechanic is used and also sometimes when I go to sleep in a shelter. That same one that's above.
< >
Showing 1-3 of 3 comments
Per page: 1530 50