egladil / oni-mods

https://steamcommunity.com/id/egladil/myworkshopfiles/?appid=457140
MIT License
3 stars 3 forks source link

Mod crashes #9

Closed tropus1 closed 4 years ago

tropus1 commented 4 years ago

With the last update, the game crashed when the game load.

tropus1 commented 4 years ago

here is the error from my output_log MissingMethodException: string GameUtil.GetWireLoadColor(single,single) at StatusItem.ResolveString (System.String str, System.Object data) [0x0000b] in <9c6cad35fa814f4e9b7adf3604ce8e0c>:0 at StatusItem.GetName (System.Object data) [0x00000] in <9c6cad35fa814f4e9b7adf3604ce8e0c>:0 at StatusItemGroup+Entry.GetName () [0x00000] in <9c6cad35fa814f4e9b7adf3604ce8e0c>:0 at SelectToolHoverTextCard.UpdateHoverElements (System.Collections.Generic.List1[T] hoverObjects) [0x01231] in <9c6cad35fa814f4e9b7adf3604ce8e0c>:0 at InterfaceTool.UpdateHoverElements (System.Collections.Generic.List1[T] hits) [0x0000e] in <9c6cad35fa814f4e9b7adf3604ce8e0c>:0 at InterfaceTool.LateUpdate () [0x0006f] in <9c6cad35fa814f4e9b7adf3604ce8e0c>:0

Fatmice commented 4 years ago

Crashes on AP-419840-D

geonmo commented 4 years ago

I created a PR #10 to fix this problem.

Fatmice commented 4 years ago

@geonmo Can you look into #6? System.TypeInitializationException: The type initializer for 'Egladil.RadiationGerms' threw an exception. ---> System.MissingFieldException: Field 'DiseaseVisualization/Info.overlayColour' not found.

May be an easy fix by just using the right function from the game? This might enable Fusion reactor mod to work again.

If do able, I might try and fork this repo and recompile the mods. I do not know much about ONI's modding API.

geonmo commented 4 years ago

@Fatmice Ok, I will also check the fusion reactor and the radiation mods. Before that, I think we need to check if this GigawattWire mod is working on other people's computers. Please install the mod in the order below and check if it works properly.

  1. Go to the link and download the GigawattWire.zip file.
  2. Go to %USERPROFILE%\Documents\Klei\OxygenNotIncluded\mods\dev on windows explorer and extract. Once a directory called GigawattWire is created, it is a success.
  3. Run the ONI, disable the existing steam version, and try to turn on the local version in the list.
  4. Play the game and make sure it works properly.

On my computer,, there were no "mods" and "dev" directories under the "OxygenNotIncluded" directory, so I made it. I think it works that it's in the right position.

If it doesn't work, it's meaningless, so please check it.

daniellom30 commented 4 years ago

Hello, try the local mod (% USERPROFILE% \ Documents \ Klei \ OxygenNotIncluded \ mods \ dev) and it works correctly, thank you very much, it would be nice to upload this corrected version to steam

egladil commented 4 years ago

Should be fixed in the steam workshop version of the mod as well