Closed sudo-behappy closed 2 years ago
I would recommend reinstalling the mod as the latest version works perfectly for me (Kali Linux, based on Ubuntu); if this doesn't work maybe try running CalamityMod by itself (another mod may be conflicting with it, which has happened to me before)
Resolved.
The mono runtime was not fully installed, which should be installed with:
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
apt-add-repository 'deb https://download.mono-project.com/repo/ubuntu stable-focal main'
apt update && apt upgrade -y
sudo apt install mono-complete
After executing, run
mono --version
To verify
References
Instantiating Mods... Initializing: ModLoader v0.11.8.6 Initializing: CalamityMod v1.5.0.4 An error occurred while loading CalamityMod The mod(s) have been automatically disabled.
System.BadImageFormatException: Could not resolve field token 0x04000b44 File name: 'Terraria' at (wrapper managed-to-native) System.Reflection.Module:ResolveFieldToken (intptr,int,intptr[],intptr[],ResolveTokenError&) at System.Reflection.MonoModule.ResolveField (Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) [0x00015] in mscorlib.dll at MonoMod.Utils.DynamicMethodDefinition+<>cDisplayClass3_0.<_CopyMethodToDefinition>gResolveTokenAs|1 (Int32 token, TokenResolutionMode resolveMode) [0x0006d] in data-0x1aa3040 at MonoMod.Utils.DynamicMethodDefinition+<>cDisplayClass3_0.<_CopyMethodToDefinition>gReadOperand|0 (BinaryReader reader, Instruction instr) [0x001f8] in data-0x1aa3040 at MonoMod.Utils.DynamicMethodDefinition._CopyMethodToDefinition () [0x001ab] in data-0x1aa3040 at MonoMod.Utils.DynamicMethodDefinition.Reload () [0x000b5] in data-0x1aa3040 Unloading mods... Unloading Calamity Mod (No Calamity Music)... One or more errors occured while unloading and tModLoader must be restarted to prevent further issues. CalamityMod was unable to unload properly. Modders must use defensive programming to ensure unloading completes regardless of any errors during loading.
System.NullReferenceException: Object reference not set to an instance of an object at CalamityMod.Items.CalamityGlobalItem.UnloadBalance () in CalamityMod\Items\CalamityGlobalItemBalance.cs:479 at CalamityMod.CalamityMod.Unload () in CalamityMod.cs:372 at Terraria.ModLoader.Mod.UnloadContent () [0x00000] in tModLoaderServer.exe at Terraria.ModLoader.ModContent.UnloadModContent () [0x00059] in tModLoaderServer.exe