Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SAL AllowBills MissingMethodException & null ref issue in #568 #570

Closed
Sn1p3rr3c0n opened this issue Mar 11, 2022 · 0 comments · Fixed by #571
Closed

SAL AllowBills MissingMethodException & null ref issue in #568 #570

Sn1p3rr3c0n opened this issue Mar 11, 2022 · 0 comments · Fixed by #571
Assignees

Comments

@Sn1p3rr3c0n
Copy link
Collaborator

Uninstalling a SAL causes the following error:

System.MissingMethodException: Constructor on type 'RimWorld.Bill_ProductionWithUft' not found.
  at System.RuntimeType.CreateInstanceImpl (System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes, System.Threading.StackCrawlMark& stackMark) [0x00213] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Activator.CreateInstance (System.Type type, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes) [0x00095] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at ProjectRimFactory.AutoMachineTool.PRF_SAL_Trarget+<>c.<AllowBills>b__19_1 (RimWorld.Bill b) [0x0003c] in <0884104c81a14098be40b0599f3ddb01>:0 
  at ProjectRimFactory.AutoMachineTool.Ops+<>c__DisplayClass4_0`2[TSource,TResult].<SelectMany>b__0 (TSource e) [0x00000] in <0884104c81a14098be40b0599f3ddb01>:0 
  at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[TSource,TResult].MoveNext () [0x00051] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at System.Collections.Generic.List`1[T].InsertRange (System.Int32 index, System.Collections.Generic.IEnumerable`1[T] collection) [0x000db] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Collections.Generic.List`1[T].AddRange (System.Collections.Generic.IEnumerable`1[T] collection) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at ProjectRimFactory.AutoMachineTool.PRF_SAL_Trarget.AllowBills () [0x00096] in <0884104c81a14098be40b0599f3ddb01>:0 
  at ProjectRimFactory.AutoMachineTool.PRF_SAL_Trarget.FreeTarget () [0x0000e] in <0884104c81a14098be40b0599f3ddb01>:0 
  at ProjectRimFactory.AutoMachineTool.Building_AutoMachineTool.DeSpawn (Verse.DestroyMode mode) [0x00001] in <0884104c81a14098be40b0599f3ddb01>:0 
  at RimWorld.MinifyUtility.MakeMinified (Verse.Thing thing) [0x0002c] in <360933dd75ad47e8a6d2a631ae77b5d8>:0 
  at RimWorld.MinifyUtility.Uninstall (Verse.Thing th) [0x00021] in <360933dd75ad47e8a6d2a631ae77b5d8>:0 
  at RimWorld.Designator_Uninstall.DesignateThing (Verse.Thing t) [0x00040] in <360933dd75ad47e8a6d2a631ae77b5d8>:0 
  at RimWorld.InspectGizmoGrid+<>c__DisplayClass2_1.<DrawInspectGizmoGridFor>b__0 () [0x00018] in <360933dd75ad47e8a6d2a631ae77b5d8>:0 
  at Verse.Command_Action.ProcessInput (UnityEngine.Event ev) [0x00007] in <360933dd75ad47e8a6d2a631ae77b5d8>:0 
  at Verse.GizmoGridDrawer.DrawGizmoGrid (System.Collections.Generic.IEnumerable`1[T] gizmos, System.Single startX, Verse.Gizmo& mouseoverGizmo, System.Func`2[T,TResult] customActivatorFunc, System.Func`2[T,TResult] highlightFunc, System.Func`2[T,TResult] lowlightFunc) [0x006a6] in <360933dd75ad47e8a6d2a631ae77b5d8>:0 
  at RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor (System.Collections.Generic.IEnumerable`1[T] selectedObjects, Verse.Gizmo& mouseoverGizmo) [0x00244] in <360933dd75ad47e8a6d2a631ae77b5d8>:0  
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

This seems to caused by changes to RimWorld.Bill_ProductionWithUft.


#568 introduced a null ref issue by missing some brackets

@Sn1p3rr3c0n Sn1p3rr3c0n self-assigned this Mar 11, 2022
Sn1p3rr3c0n added a commit that referenced this issue Mar 11, 2022
updated NuGet versions
Sn1p3rr3c0n added a commit that referenced this issue Mar 11, 2022
#570 fixed SAL Benches losing Bills on Uninstall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant