Truinto / ONI-Modloader-SimpleMods

OxygenNotIncluded Mods
MIT License
18 stars 6 forks source link

Customize Buildings - CTD #39

Closed Ashotep closed 1 year ago

Ashotep commented 1 year ago

Describe the bug CTD when using the skill scrubber to add aptitude

To Reproduce Steps to reproduce the behavior: Use the skill scrubber to modify and dupe and it will CTD when the dupe stands back up afterwards

[required] Debug Logs Player.log

MissingMethodException: void Notification..ctor(string,NotificationType,System.Func`3<System.Collections.Generic.List`1<Notification>, object, string>,object,bool,single,Notification/ClickCallback,object,UnityEngine.Transform,bool,bool)

(wrapper dynamic-method) ResetSkillsStation.ResetSkillsStation.OnCompleteWork_Patch1(ResetSkillsStation,Worker)
Workable.CompleteWork (Worker worker) (at <d13cbb0b55a94ef09bb55c2436a6b8ee>:0)
Worker.CompleteWork () (at <d13cbb0b55a94ef09bb55c2436a6b8ee>:0)
Worker.Work (System.Single dt) (at <d13cbb0b55a94ef09bb55c2436a6b8ee>:0)
GameStateMachine`4+State+<>c__DisplayClass84_0[StateMachineType,StateMachineInstanceType,MasterType,DefType].<ToggleWork>b__1 (StateMachineInstanceType smi, System.Single dt) (at <d13cbb0b55a94ef09bb55c2436a6b8ee>:0)
BucketUpdater`1[DataType].Update (DataType data, System.Single dt) (at <fa50cdddb14a483d94f547557a674a42>:0)
UpdateBucketWithUpdater`1[DataType].Update (System.Single dt) (at <fa50cdddb14a483d94f547557a674a42>:0)
StateMachineUpdater+BucketGroup.AdvanceOneSubTick (System.Single dt) (at <fa50cdddb14a483d94f547557a674a42>:0)
StateMachineUpdater.AdvanceOneSimSubTick () (at <fa50cdddb14a483d94f547557a674a42>:0)
Game.SimEveryTick (System.Single dt) (at <d13cbb0b55a94ef09bb55c2436a6b8ee>:0)
Game.Update () (at <d13cbb0b55a94ef09bb55c2436a6b8ee>:0)

Build: U44-535842-SD

Desktop (please complete the following information):

Truinto commented 1 year ago

Wow. This is the perfect bug report. If only all people would be this precise.

Too bad that errors MissingMethodException and MissingFieldException just mean that the code needs to be recompiled. Sometimes a new variable is needed. But this fix is really easy :D

Ashotep commented 1 year ago

Thanks for fixing this.