Arcade 2048

Arcade 2048

3.4k Downloads

Crash on startup with PyTK 1.6.1

kurumushi opened this issue ยท 1 comments

commented

When starting up, I get the following error in the console when using PyTK 1.6.1. Version 1.6.0 works just fine.

[PyTK] Mod crashed on entry and might not work correctly. Technical details:
System.FormatException: Method StardewValley.Game1.getSquareSourceRectForNonStandardTileSheet(Microsoft.Xna.Framework.Graphics.Texture2D, System.Int32, System.Int32, System.Int32) cannot be patched. Reason: Invalid IL code in (wrapper dynamic-method) StardewValley.Game1:getSquareSourceRectForNonStandardTileSheet_Patch1 (Microsoft.Xna.Framework.Graphics.Texture2D,int,int,int): IL_0023: call      0x00000003                                                            


  at Harmony.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, Harmony.PatchInfo patchInfo, System.String instanceID) <0x41fe8a20 + 0x0013b> in <filename unknown>:0                                                                                                                                 
  at Harmony.PatchProcessor.Patch () <0x41fe68a0 + 0x00257> in <filename unknown>:0                                                                         
  at Harmony.HarmonyInstance.<PatchAll>b__9_0 (System.Type type) <0x421da0e0 + 0x000a3> in <filename unknown>:0                                             
  at Harmony.CollectionExtensions.Do[T] (IEnumerable`1 sequence, System.Action`1 action) <0x41fe2b60 + 0x0007a> in <filename unknown>:0                     
  at Harmony.HarmonyInstance.PatchAll (System.Reflection.Assembly assembly) <0x421d9ff0 + 0x000ab> in <filename unknown>:0                                  
  at PyTK.PyTKMod.harmonyFix () <0x421d9fa0 + 0x00033> in <filename unknown>:0                                                                              
  at PyTK.PyTKMod.Entry (IModHelper helper) <0x421d9a60 + 0x00033> in <filename unknown>:0                                                                  
  at StardewModdingAPI.Framework.SCore.LoadMods (StardewModdingAPI.Framework.IModMetadata[] mods, StardewModdingAPI.Toolkit.Serialisation.JsonHelper jsonHelper, StardewModdingAPI.Framework.ContentCoordinator contentCore, StardewModdingAPI.Toolkit.Framework.ModData.ModDatabase modDatabase) <0x42116f40 + 0x015ac> in <filename unknown>:0
commented

Looks like whatever the problem was, it's either fixed on my system or fixed in 1.6.3, so I'm closing this.