beatlepie / ONI-Mods

2 stars 3 forks source link

Crash after ONI update #6

Open schucly opened 2 years ago

schucly commented 2 years ago

The latest update of ONI causes an error in the mod. If using the reapy in a savegame, then I cannot load the savegame.

The following error message is thrown:

Error in ReapBotStationComplete.ReapBotStation.OnSpawn 
System.MissingMethodException: !4 StateMachine`4/Parameter`1.Set(!4,!1)
  at KMonoBehaviour.Spawn () [0x0005d] in <c775f779c2e74519bbe6a3fcac766187>:0 

  at UnityEngine.Debug.LogError (System.Object message, UnityEngine.Object context) [0x00000] in <a83e096d0ba5413da59ce235b648c30c>:0 
  at Debug.LogError (System.Object obj, UnityEngine.Object context) [0x00000] in <c775f779c2e74519bbe6a3fcac766187>:0 
  at DebugUtil.LogErrorArgs (UnityEngine.Object context, System.Object[] objs) [0x00000] in <c775f779c2e74519bbe6a3fcac766187>:0 
  at DebugUtil.LogException (UnityEngine.Object context, System.String errorMessage, System.Exception e) [0x00000] in <c775f779c2e74519bbe6a3fcac766187>:0 
  at KMonoBehaviour.Spawn () [0x00000] in <c775f779c2e74519bbe6a3fcac766187>:0 
  at KMonoBehaviour.Start () [0x00000] in <c775f779c2e74519bbe6a3fcac766187>:0 
Build: U43-526233-V
LinearBotSystems commented 1 year ago

Which of them you mean ? I mean Reapy's Dock is broken a while every time you deconstructed them the game crashs this was the build before . With them now it crash when the materials arrive. He isn't active since 12 months ago so :/

Matze149 commented 1 year ago

To fix this, all game dlls have to be replaced. Also, the FMODUnity.dll needs to be added.

After that, the ReapBotStation.cs needs a change tool: the "Add"-line for the materials needed for Reapy in the "MakeNewReapBot" method to be made needs to be changed to "fetchList.Add(GameTags.RefinedMetal, amount: ReapBotConfig.mass);"