LinqToException / Fertilizer

MIT License
3 stars 1 forks source link

Getting this Error with any Mod I try to use #6

Closed Hades7600 closed 9 months ago

Hades7600 commented 9 months ago

Every time I try using a function from a mod I get errors like this. This error was when I only had Autocollect mod in my mod folder. Game would crash if I went over a item. Another Example was when i tried the NPC avatar Map mod and the game would crash with a similar error.

ive tried completely redoing the adding mod process several times but have had no luck getting any mod to work

2:15 AM - 1.0.3.9978 MODDED ST Save:Slot1_Autosave - Game Runtime: 00:00:27.6167219 - GP Y1S2D1 - 2:27pm - Logs:141 Current map is Willowdown Farm | Y1 | S2 | D1 | H14 Player is at {X:5329 Y:2509 Width:128 Height:128} Method TopDownEditor.TopDownMap.RemoveDynamicGameObject(TopDownEditor.ScriptableGameObject)' is inaccessible from methodFertilizer.Template.InventoryPatch.Postfix(TopDownEditor.PickupableObject,bool)' at (wrapper managed-to-native) System.Object.icall_wrapper_mono_throw_method_access(intptr,intptr) at Fertilizer.Template.InventoryPatch.Postfix (PickupableObject _instance, System.Boolean playerInPickupRange) [0x0002c] in :0 at (wrapper dynamic-method) PickupableObject.PickupableObject.Update_Patch1(PickupableObject) at GameStatePlayGame.UpdateGameObjects () [0x00313] in :0 at GameStatePlayGame.Update (Microsoft.Xna.Framework.GameTime gameTime, MonoProtoFramework.BaseGame game) [0x00a35] in :0 at MonoProtoFramework.BaseGame.Update (Microsoft.Xna.Framework.GameTime gameTime) [0x005b2] in <98305055abd8475e8e791a39cb80d038>:0 at Microsoft.Xna.Framework.Game.DoUpdate (Microsoft.Xna.Framework.GameTime gameTime) [0x00019] in <115d97b957eb41cabade1b29d1e7edf4>:0 at Microsoft.Xna.Framework.Game.Tick () [0x00127] in <115d97b957eb41cabade1b29d1e7edf4>:0 at MonoGame.Framework.WinFormsGameWindow.TickOnIdle (System.Object sender, System.EventArgs e) [0x00014] in <115d97b957eb41cabade1b29d1e7edf4>:0 at System.Windows.Forms.Application+ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle (System.Int32 grfidlef) [0x0001a] in :0 at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop (System.IntPtr dwComponentID, System.Int32 reason, System.Int32 pvLoopData) [0x00243] in :0 at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner (System.Int32 reason, System.Windows.Forms.ApplicationContext context) [0x00282] in :0 at System.Windows.Forms.Application+ThreadContext.RunMessageLoop (System.Int32 reason, System.Windows.Forms.ApplicationContext context) [0x0001a] in :0 at (wrapper remoting-invoke-with-check) System.Windows.Forms.Application+ThreadContext.RunMessageLoop(int,System.Windows.Forms.ApplicationContext) at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x0000d] in :0 at MonoGame.Framework.WinFormsGameWindow.RunLoop () [0x00011] in <115d97b957eb41cabade1b29d1e7edf4>:0 at MonoGame.Framework.WinFormsGamePlatform.RunLoop () [0x00000] in <115d97b957eb41cabade1b29d1e7edf4>:0 at Microsoft.Xna.Framework.Game.Run (Microsoft.Xna.Framework.GameRunBehavior runBehavior) [0x0008b] in <115d97b957eb41cabade1b29d1e7edf4>:0 at Microsoft.Xna.Framework.Game.Run () [0x0000c] in <115d97b957eb41cabade1b29d1e7edf4>:0 at Program.Main () [0x00037] in :0 Graphics device info: AMD Radeon Graphics (RADV VANGOGH)

LinqToException commented 9 months ago

What OS are you using? Mods do not really work on Linux/SteamDeck because Mono's runtime is too outdated.

Hades7600 commented 9 months ago

Ah damn, that would explain it. Yeah I’m using a steam deck but I have kynseed running using proton instead of standard Linux

I also set up the fertiliser and got the pop up saying the game is patched so I thought it may of worked.

LinqToException commented 9 months ago

Yeah, doesn't really matter. Unless you're somehow managing to install and run it using a recent-ish mono/dotnet, there's not a lot that can be done. The game has much of the code internal'd, which mods bypass with a trick. This trick is convenient to use, but does not work with the mono that Steam uses on Linux.