javisar / ONI-Modloader-Mods

Oxygen not Included Mods for ONI-Modloader
MIT License
70 stars 68 forks source link

CustomWorldSize Disk Space Error #123

Closed CptMisery closed 4 years ago

CptMisery commented 4 years ago

When I enable the mod and restart, it gives me an error about not having enough disk space. I've tried the Steam unsubscribe/resubscribe and I've tried overwriting the file with one downloaded from this repo.

Also, in the output log I have this error:

[Error occurred with mods active. Disabling all mods (unless dev mods active). MissingMethodException: Method not found: 'ProcGen.SettingsCache.GetCachedTrait'. at (wrapper dynamic-method) ColonyDestinationAsteroidData.GenerateTraitDescriptors_Patch1 (object) <0x00400> at ColonyDestinationAsteroidData.GetTraitDescriptors () <0x00031> at ColonyDestinationSelectScreen.SettingChanged (Klei.CustomSettings.SettingConfig,Klei.CustomSettings.SettingLevel) <0x00197> at CustomGameSettings.SetQualitySetting (Klei.CustomSettings.SettingConfig,string) <0x00425> at NewGameSettingsPanel.SetSetting (Klei.CustomSettings.SettingConfig,string) <0x00039> at ColonyDestinationSelectScreen.ShuffleClicked () <0x0008d> at ColonyDestinationSelectScreen.OnSpawn () <0x00162> at KMonoBehaviour.Spawn () <0x0014e>

Rethrow as Exception: Error in ColonyDestinationScreen2.ColonyDestinationSelectScreen.OnSpawn at KMonoBehaviour.Spawn () [0x00000] in :0 at KMonoBehaviour.Start () [0x00000] in :0

CptMisery commented 4 years ago

Looks like moving this mod to the end of the load order fixed that issue

CptMisery commented 4 years ago

I spoke too soon. I no longer get the disk space error and can see the world size settings, but as soon as I try to use them, all mods are unloaded

javisar commented 4 years ago

I had the same issue. Steam wasn't downloading the most recent dll. I did a ONI complete clean installation and it worked, BUT Don't know if you have more mods installed, from your log seems like you have another mod causing the error: ColonyDestinationAsteroidData.GenerateTraitDescriptors_Patch1 Try disabling all mods but CustomWorldSize and then activate them one by one. Good look

julian-perge commented 4 years ago

For some reason I'm getting an an Exception:

UnauthorizedAccessException during IO on  C:/Users/Julian/Documents/Klei/OxygenNotIncluded/mods/Steam/1713687582 , squelching. Stack trace was:
 Access to the path "C:/Users/Julian/Documents/Klei/OxygenNotIncluded/mods/Steam/1713687582\CustomWorldSize.dll" is denied. 
   at System.IO.File.Delete (System.String path) [0x00000] in <filename unknown>:0 
  at System.IO.Directory.RecursiveDelete (System.String path) [0x00000] in <filename unknown>:0 
  at System.IO.Directory.Delete (System.String path, Boolean recursive) [0x00000] in <filename unknown>:0 
  at Klei.FileUtil+<DeleteDirectory>c__AnonStorey2.<>m__0 () [0x00000] in <filename unknown>:0 
  at Klei.FileUtil.DoIOFunc[Boolean] (System.Func`1 io_op, Int32 retry_count) [0x00000] in <filename unknown>:0 
[18:19:28.427] [1] [INFO] Error encountered during file access: IOError error: C:/Users/Julian/Documents/Klei/OxygenNotIncluded/mods/Steam/1713687582
[18:19:28.428] [1] [INFO] Reporting error.

[18:19:28.428] [1] [INFO] Access to the path "C:/Users/Julian/Documents/Klei/OxygenNotIncluded/mods/Steam/1713687582\CustomWorldSize.dll" is denied.
[18:19:28.428] [1] [INFO]   at System.IO.File.Delete (System.String path) [0x00000] in <filename unknown>:0 
  at System.IO.Directory.RecursiveDelete (System.String path) [0x00000] in <filename unknown>:0 
  at System.IO.Directory.Delete (System.String path, Boolean recursive) [0x00000] in <filename unknown>:0 
  at Klei.FileUtil+<DeleteDirectory>c__AnonStorey2.<>m__0 () [0x00000] in <filename unknown>:0 
  at Klei.FileUtil.DoIOFunc[Boolean] (System.Func`1 io_op, Int32 retry_count) [0x00000] in <filename unknown>:0 
[18:19:28.440] [1] [INFO] Submitting crash:
DontDestroyOnLoad only work for root GameObjects or components on root GameObjects.

(Filename:  Line: 501)

[18:19:28.444] [1] [INFO] Can't uninstall Custom World Size: directory deletion failed
[18:19:28.444] [1] [INFO]   Failed. Will re-install on restart.
julian-perge commented 4 years ago

I'm now also constantly getting this error message every time I open the Mods manager in ONI:

image

EDIT: Fixed by deleting mods.json in \Documents\Klei\OxygenNotIncluded\mods