Rain World

Rain World

Remix Menu Tweaks
fullmaple 3 Feb, 2024 @ 9:24am
IndexOutOfRangeException when adding mods
This bug happened quite a few times, but I always forgot to collect the logs. Until now.
It is hard to replicate because it happens seemingly at random. I will lay out the steps I performed to arrive to this error.

Edit: I can't be certain this mod is the issue, But it is the only mod that affect the remix menu in major ways and the one i've been having this issue with ever since I added it. Anyway, it's worth having a discussion even if it is unrelated regardless.

Second Edit: I noticed that functions related to map merging we're called this time. I did add "Drainage Systems+" this time around.
This exception was once thrown when I was adding a single DMS mod and had none related to map merging. If I do get that error under those conditions, I will add a follow up reply with the info.

Steps to replicate:
  • Download workshop mods
  • Open the game for the first time after booting one's machine
  • Directly go to the remix menu and add said mods
  • Tab out of the game (My game is in Fullscreen)
  • Return and see the Exception error window.

Effects:
The game will continue as normal and ask you to restart the game. After restart, you will loose your current configuration. I imagine this is to prevent the error to happen again. Quite the nuclear option.

exceptionLog :
IndexOutOfRangeException: Index was outside the bounds of the array. Menu.Remix.MenuModList.GetModButton (System.String modID) (at <1014ff9a5d9941ab9e645d4f5c9384a5>:0) Menu.ModdingMenu.Update () (at <1014ff9a5d9941ab9e645d4f5c9384a5>:0) MainLoopProcess.RawUpdate (System.Single dt) (at <1014ff9a5d9941ab9e645d4f5c9384a5>:0) ProcessManager.Update (System.Single deltaTime) (at <1014ff9a5d9941ab9e645d4f5c9384a5>:0) DMD<Update>?1544347264._RainWorld::Update (RainWorld this) (at <7170462401594c39a02bcdbc57cf342d>:0) DMD<>?1544347264.Trampoline<RainWorld::Update>?-271784448 (RainWorld ) (at <dac404b6b1e54704b7e31b8ed76498a1>:0) ImprovedInput.Plugin.RainWorld_Update (On.RainWorld+orig_Update orig, RainWorld self) (at <b1532b580d2f4aa5a77966738074cad8>:0) DMD<>?1544347264.Hook<RainWorld::Update>?-553449984 (RainWorld ) (at <a54591c49d77474f872554111189af1c>:0) DMD<>?1544347264.Trampoline<RainWorld::Update>?-1386452480 (RainWorld ) (at <3aa0bfd2fa2c4912bdec84e54ba9d443>:0) Darkness.Plugin.RainWorld_Update (On.RainWorld+orig_Update orig, RainWorld self) (at G:/RW mod project/Darkness/Darkness/Plugin.cs:61) DMD<>?1544347264.Hook<RainWorld::Update>?193326080 (RainWorld ) (at <63bc6d085a90421b9d0de99412ad4f5d>:0) DMD<>?1544347264.Trampoline<RainWorld::Update>?-219888128 (RainWorld ) (at <ff132ffe54754218888591861c07df28>:0) Guardian.LogHooks.RainWorld_Update (On.RainWorld+orig_Update orig, RainWorld self) (at E:/RainWorldModding/Guardian/src/plugin/Hooks/LogHooks.cs:70) UnityEngine.Debug:LogException(Exception) Guardian.CloudLogger:LogAndUploadException(Exception) (at E:/RainWorldModding/Guardian/src/plugin/CloudLogger.cs:31) Guardian.LogHooks:RainWorld_Update(orig_Update, RainWorld) (at E:/RainWorldModding/Guardian/src/plugin/Hooks/LogHooks.cs:74) DMD<>?1544347264:Hook<RainWorld::Update>?-501553664(RainWorld)

Screenshots
https://steamhost.cn/steamcommunity_com/id/fullmaple/screenshot/2330118244104803380/
https://steamhost.cn/steamcommunity_com/id/fullmaple/screenshot/2330118244104805350/
https://steamhost.cn/steamcommunity_com/id/fullmaple/screenshot/2330118244104807953/
Last edited by fullmaple; 3 Feb, 2024 @ 9:37am
< >
Showing 1-1 of 1 comments
Aissurtievos  [developer] 12 Feb, 2024 @ 12:30pm 
Apologies for answering so late, I dont check steam often.
I have had this exception happen before when subscribing to a new mod on the workshop while the game is still running. It will happen after trying to apply mods while in this state.
I think the game populates its own mod list at startup, but still checks the directory manually when applying mods, causing a mismatch in what the game thinks it has vs what it reads in the directory.
< >
Showing 1-1 of 1 comments
Per page: 1530 50