skairunner / sky-oni-mods

Code for Sky's mods for the game Oxygen Not Included.
MIT License
18 stars 25 forks source link

Diseases Restored needs a rebuild after June 2023 update #99

Closed llunak closed 8 months ago

llunak commented 1 year ago

OccupyArea.OccupiedCellsOffsets has been changed from a variable to a property, so even though source compatible, FrostBitePatch.GetCurrentExternalPressure() needs a rebuild to change the IL code.

devent commented 10 months ago

Just saw this is from June 17. I guess it wasn't a problem then, but since the new November 16 Packed Snacks Update it will crash now.

Yes please. The error is:

MissingFieldException: Field 'OccupyArea.OccupiedCellsOffsets' not found.

DiseasesReimagined.FrostbitePatch+ExternalTemperatureMonitor_Instance_ScaldDamage_Patch.Prefix (ExternalTemperatureMonitor+Instance __instance, System.Single dt, System.Single ___lastScaldTime) (at <05b4cd2de5a8469a88c7390e39d540c5>:0)
(wrapper dynamic-method) ExternalTemperatureMonitor+Instance.ExternalTemperatureMonitor+Instance.ScaldDamage_Patch1(ExternalTemperatureMonitor/Instance,single)
ExternalTemperatureMonitor+<>c.<InitializeStates>b__17_16 (ExternalTemperatureMonitor+Instance smi, System.Single dt) (at <ad63d841ef814a5d8bf82e8bc9ca21bd>:0)
BucketUpdater`1[DataType].Update (DataType data, System.Single dt) (at <1e2b7d5db95c4d6b84eabb7ca0270927>:0)
UpdateBucketWithUpdater`1[DataType].Update (System.Single dt) (at <1e2b7d5db95c4d6b84eabb7ca0270927>:0)
StateMachineUpdater+BucketGroup.AdvanceOneSubTick (System.Single dt) (at <1e2b7d5db95c4d6b84eabb7ca0270927>:0)
StateMachineUpdater.AdvanceOneSimSubTick () (at <1e2b7d5db95c4d6b84eabb7ca0270927>:0)
Game.SimEveryTick (System.Single dt) (at <ad63d841ef814a5d8bf82e8bc9ca21bd>:0)
(wrapper dynamic-method) Game.Game.Update_Patch2(Game)

Build: U50-587362-V