• Fantastic news Terrarians! All platforms have officially been submitted! Barring any issues our tentative release date is September 28th!

tModLoader Official tModLoader Help Thread

NotEvilBen

Terrarian
I am having a lot of trouble finding help for this stuff. I pretty much just have the tutorial to go on, and some of its information seems to be outdated. For example, Tmodloader throws a wall of text at me if I try to include vanilla items in my recipe groups. (screenshot available upon request) I even tried copying the code from the tutorial without altering it to see what would happen and it has the same error. If I use ModContent.ItemType<insertNameHere>() it works, (even though the tutorial says to use Mod.ItemType my IDE says that's deprecated) but if for example I put ItemID.DaybloomSeeds I get some kind of crazy list of errors about how something can't be null. (And yes, I am using Terraria.ID) And the log seems to say it finished compiling, if I understand it right. I've been getting by with just having a ton of recipes but that's about to get doubled with some future ideas I have, and going forward without recipe groups of vanilla items is just going to be impractical.

The tutorial said there was a discord where I could get some help but the link was broken, so I don't know what to make of that. Still, I've learned a lot from combing through the information, outdated and not, available to me over the past few days and actually finishing a small mod (even if the recipes are a mess) so thanks for that. I just really want to nail down these basics before I start adding fancier things like config options.
 

AmogusSussy

Terrarian
Hello,

I've encountered a problem while trying to develop a mod with the current tModLoader. When I try to create a body armor, it seems like the _Body file is not applied, the armor looks like just one frame from the whole file. I've tried using pre-made armors as well and I have the same problem.

1650045403841.png


Above is the _Body file. There's also a _FemaleBody and _Arms file.

1650045752916.gif


The result is as shown here. I'm not sure why, it only displays the second frame of the file and ignores all the rest. Any ideas?
 

violet & beige

Terrarian
Hey I am a newbie modder and have some simple questions:
How can I set journey mode research amont of a mod item? I haven't found related functions.
I made a Moon Lord summon item and want to set a time delay after using the item to spawn the boss, how should I do?
Thanks for reply!
 
Last edited:

OmegaThreeHP

Terrarian
I need help please, I have been trying to figure this out for a Month...

Whenever I kill Providence for some reason the animation doesn't play and I don't get any loot when I kill her. Same thing happens with DoG, I kill him and he doesn't drop anything...

It probably has something to do with Fargo's Mod, because when I disabled Fargo's and tried to kill Providence it worked, the animation played and I got loot.

Mods:

- Calamity
- Calamity Music
- Fargo's Mutant Mod
- Fargo's Souls Mod
- Fargo's Souls DLC Mod
- Fargo's Music Mod
- Wing Slot
- Block Swap 1.4
- Unleved
- AlchemistNPC
- Recipe Browser
- Boss Checklist
- Smart Doors 1.4
- Begone, Evil!
- Boss Cursor
- Magic Storage
- Fargo's Fallen Stars
- Max Stack Plus Extra
- imkSushi's Mod
- imkSushi's Mod Data Packs
- OmniSwing
- Weapon Out
- Luiafk
- YABHB
- WMITF
- Vein Miner
- FullHPWhenRespawn

Please help me My head Hurts...

Posted On Reddit too: https://www.reddit.com/r/CalamityMod/comments/u6uwc5
 

WENABROO400

Terrarian
holaa buenas tengo un problema con el calamity mod, me dice que se generan archivos sobre escritos y se cierra tambien lo actualice a su ultima version y me aparecen objetos que antes no estaban en el mod y desaparecen o no se traducen (mod traductor al español del calamity) y no se que hacer, ahi si alguien me puede ayudar seria bkn. de antemano muchas gracias
 

yesamgoose

Terrarian
hello, I've been wondering what the town npc alt textures can do, and if you can use them for transformations like the zoologist. Is this something possible to do? because I cant find anything on it.
 

Spelunkaria

Terrarian
When I try building my mod it always gives me this error. I'm sorry for the Italian that ensues as i cant bother to translate it


Code:
[17:04:40] [1/INFO] [tML]: Starting tModLoader v0.11.8.9 Windows client (10/05/2022)
[17:04:40] [1/INFO] [tML]: Running on NetFramework 4.8
[17:04:40] [1/INFO] [tML]: Executable: C:\Program Files (x86)\Steam\steamapps\common\tModLoader\tModLoader.exe
[17:04:40] [1/INFO] [tML]: Working Directory: C:\Program Files (x86)\Steam\steamapps\common\tModLoader
[17:04:40] [1/INFO] [tML]: Launch Parameters:
[17:04:40] [1/INFO] [tML]: Developer mode enabled
[17:04:40] [1/DEBUG] [tML]: Assembly Resolve:  -> MonoMod.RuntimeDetour, Version=20.11.16.1, Culture=neutral, PublicKeyToken=null
[17:04:40] [1/DEBUG] [tML]: Assembly Resolve: MonoMod.RuntimeDetour, Version=20.11.16.1, Culture=neutral, PublicKeyToken=null -> MonoMod.Utils, Version=20.11.16.1, Culture=neutral, PublicKeyToken=null
[17:04:40] [1/DEBUG] [tML]: Assembly Resolve: MonoMod.RuntimeDetour, Version=20.11.16.1, Culture=neutral, PublicKeyToken=null -> Mono.Cecil, Version=0.11.3.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e
[17:04:40] [1/DEBUG] [tML]: Assembly Resolve:  -> Ionic.Zip.Reduced, Version=1.9.1.8, Culture=neutral, PublicKeyToken=edbe51ad942a3f5c
[17:04:40] [1/DEBUG] [tML]: Assembly Resolve:  -> Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed
[17:04:40] [1/DEBUG] [tML]: Assembly Resolve:  -> Steamworks.NET, Version=9.1.0.0, Culture=neutral, PublicKeyToken=null
[17:04:40] [1/INFO] [tML]: Checking Steam installation...
[17:04:41] [1/INFO] [tML]: Steam installation OK.
[17:04:41] [1/INFO] [Terraria]: Found Terraria steamapp install at: C:\Program Files (x86)\Steam\steamapps\common\Terraria
[17:04:41] [1/INFO] [Terraria]: Steam Cloud Quota: 114.6 MB available
[17:04:41] [1/DEBUG] [Terraria]: Graphics Device: NVIDIA GeForce GTX 1660 SUPER {Width:1920 Height:1080 Format:Color AspectRatio:1.777778}
[17:04:41] [1/DEBUG] [Terraria]: Device Reset, Profile: Reach -> HiDef, Width: 800, Height: 480, Fullscreen: False, Display: \\.\DISPLAY1
[17:04:43] [1/INFO] [Terraria]: Loaded 1000 vanilla assets
[17:04:43] [1/INFO] [Terraria]: Loaded 2000 vanilla assets
[17:04:43] [1/INFO] [Terraria]: Loaded 3000 vanilla assets
[17:04:43] [1/INFO] [Terraria]: Loaded 4000 vanilla assets
[17:04:44] [1/INFO] [Terraria]: Loaded 5000 vanilla assets
[17:04:45] [1/DEBUG] [Terraria]: Device Reset, Profile: HiDef, Width: 800 -> 1920, Height: 480 -> 1009, Fullscreen: False, Display: \\.\DISPLAY1
[17:04:45] [7/DEBUG] [tML]: Assembly Resolve:  -> MP3Sharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
[17:04:45] [7/DEBUG] [tML]: Assembly Resolve:  -> NVorbis, Version=0.8.4.0, Culture=neutral, PublicKeyToken=null
[17:04:45] [12/DEBUG] [tML]: Assembly Resolve:  -> Mono.Cecil.Mdb, Version=0.11.3.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e
[17:04:45] [12/DEBUG] [tML]: Assembly Resolve:  -> Mono.Cecil.Pdb, Version=0.11.3.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e
[17:04:46] [7/INFO] [Terraria]: JIT loading finished
[17:04:48] [8/INFO] [tML]: Unloading mods
[17:04:48] [8/INFO] [tML]: Finding Mods...
[17:04:50] [8/INFO] [tML]: Sandboxing: Dartastic
[17:04:50] [8/INFO] [tML]: Sandboxing: HEROsMod
[17:04:50] [8/INFO] [tML]: Sandboxing: RecipeBrowser
[17:04:50] [8/INFO] [tML]: Instantiating Mods...
[17:04:50] [8/INFO] [tML]: Initializing: ModLoader (tModLoader) v0.11.8.9
[17:04:52] [8/INFO] [tML]: Initializing: Dartastic (Dartastic!) v0.1.1
[17:04:52] [8/INFO] [tML]: Initializing: HEROsMod (HERO's Mod) v0.3.10
[17:04:52] [8/DEBUG] [tML]: Assembly Resolve: HEROsMod_0, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null -> TerrariaHooks, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
[17:04:52] [8/DEBUG] [tML]: Assembly Resolve: TerrariaHooks, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null -> MonoMod.RuntimeDetour, Version=19.12.19.1, Culture=neutral, PublicKeyToken=null
[17:04:52] [8/WARN] [tML]: Upgraded Reference MonoMod.RuntimeDetour -> Version=19.12.19.1 -> 20.11.16.1
[17:04:52] [8/DEBUG] [tML]: Hook On.Terraria.Player::ChatColor() added by HEROsMod_0
[17:04:52] [8/INFO] [tML]: Initializing: RecipeBrowser (Recipe Browser) v0.8.9.1
[17:04:52] [8/DEBUG] [tML]: Hook On.Terraria.Recipe::FindRecipes() added by RecipeBrowser_0
[17:04:52] [8/DEBUG] [tML]: Hook On.Terraria.Player::AdjTiles() added by RecipeBrowser_0
[17:04:52] [8/INFO] [tML]: Setting up...
[17:04:52] [8/INFO] [tML]: Loading: ModLoader (tModLoader) v0.11.8.9
[17:04:52] [8/INFO] [tML]: Loading: Dartastic (Dartastic!) v0.1.1
[17:04:53] [8/INFO] [tML]: Loading: HEROsMod (HERO's Mod) v0.3.10
[17:04:53] [8/INFO] [tML]: Loading: RecipeBrowser (Recipe Browser) v0.8.9.1
[17:04:53] [8/INFO] [tML]: RAM usage: 918,3 MB
[17:04:53] [8/INFO] [tML]: Adding Recipes...
[17:04:53] [8/DEBUG] [tML]: Assembly Resolve:  -> RecipeBrowser_0, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
[17:04:53] [8/DEBUG] [tML]: Assembly Resolve:  -> RecipeBrowser_0, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
[17:05:06] [16/INFO] [tML]: Reading properties: Dartastic
[17:05:07] [16/INFO] [tML]: Building: Dartastic
[17:05:07] [16/INFO] [tML]: Compiling Dartastic.XNA.dll
[17:05:07] [16/DEBUG] [tML]: Assembly Resolve: RoslynWrapper, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null -> System.Collections.Immutable, Version=1.2.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
[17:05:07] [16/DEBUG] [tML]: Assembly Resolve: RoslynWrapper, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null -> Microsoft.CodeAnalysis, Version=2.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[17:05:07] [16/DEBUG] [tML]: Assembly Resolve: Microsoft.CodeAnalysis, Version=2.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 -> System.Collections.Immutable, Version=1.2.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
[17:05:07] [16/DEBUG] [tML]: Assembly Resolve: RoslynWrapper, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null -> Microsoft.CodeAnalysis.CSharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[17:05:07] [16/DEBUG] [tML]: Assembly Resolve: Microsoft.CodeAnalysis.CSharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 -> Microsoft.CodeAnalysis, Version=2.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[17:05:07] [16/DEBUG] [tML]: Assembly Resolve: Microsoft.CodeAnalysis.CSharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 -> System.Collections.Immutable, Version=1.2.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
[17:05:07] [16/DEBUG] [tML]: Assembly Resolve: Microsoft.CodeAnalysis.CSharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 -> System.Reflection.Metadata, Version=1.4.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
[17:05:07] [16/DEBUG] [tML]: Assembly Resolve: Microsoft.CodeAnalysis, Version=2.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 -> System.Reflection.Metadata, Version=1.4.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
[17:05:07] [16/DEBUG] [tML]: Assembly Resolve: System.Reflection.Metadata, Version=1.4.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a -> System.Collections.Immutable, Version=1.2.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
[17:05:09] [16/INFO] [tML]: Compilation finished with 0 errors and 0 warnings
[17:05:09] [16/INFO] [tML]: Compiling Dartastic.FNA.dll
[17:05:09] [16/INFO] [tML]: Compilation finished with 0 errors and 0 warnings
[17:05:09] [16/INFO] [tML]: Packaging: Dartastic
[17:05:09] [22/WARN] [tML]: Silently Caught Exception:
System.ArgumentException: Parametro non valido.
   in System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
   in System.Threading.Tasks.Task.InnerInvoke()
   in System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   in System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)
   in System.Threading.Tasks.Task.InnerInvoke()
   in System.Threading.Tasks.Task.Execute()
   in System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
   in System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   in System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   in System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
   in System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
   in System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   in System.Threading.ThreadPoolWorkQueue.Dispatch()
   in System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

[17:05:09] [16/ERROR] [tML]: Si sono verificati uno o più errori.
System.AggregateException: Si sono verificati uno o più errori. ---> System.ArgumentException: Parametro non valido.
   in System.Drawing.Bitmap..ctor(Stream stream)
   in Terraria.ModLoader.IO.ImageIO.ToRaw(Stream src, Stream dst)
   in Terraria.ModLoader.Core.ContentConverters.Convert(String& resourceName, FileStream src, MemoryStream dst)
   in Terraria.ModLoader.Core.ModCompile.AddResource(BuildingMod mod, String resource)
   in Terraria.ModLoader.Core.ModCompile.<>c__DisplayClass33_0.<PackageMod>b__1(String resource)
   in System.Threading.Tasks.Parallel.<>c__DisplayClass31_0`2.<ForEachWorker>b__0(Int32 i)
   in System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
   in System.Threading.Tasks.Task.InnerInvoke()
   in System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   in System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)
   --- Fine della traccia dello stack dell'eccezione interna ---
   in System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   in System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   in System.Threading.Tasks.Task.Wait()
   in System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
   in System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IList`1 list, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
   in System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
   in System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, Action`1 body)
   in Terraria.ModLoader.Core.ModCompile.PackageMod(BuildingMod mod)
   in Terraria.ModLoader.Core.ModCompile.Build(BuildingMod mod)
   in Terraria.ModLoader.Core.ModCompile.Build(String modFolder)
   in Terraria.ModLoader.UI.UIBuildMod.<>c__DisplayClass5_0.<Build>b__0(ModCompile mc)
   in Terraria.ModLoader.UI.UIBuildMod.BuildMod(Action`1 buildAction, Boolean reload)
---> (Eccezione interna 0) System.ArgumentException: Parametro non valido.
   in System.Drawing.Bitmap..ctor(Stream stream)
   in Terraria.ModLoader.IO.ImageIO.ToRaw(Stream src, Stream dst)
   in Terraria.ModLoader.Core.ContentConverters.Convert(String& resourceName, FileStream src, MemoryStream dst)
   in Terraria.ModLoader.Core.ModCompile.AddResource(BuildingMod mod, String resource)
   in Terraria.ModLoader.Core.ModCompile.<>c__DisplayClass33_0.<PackageMod>b__1(String resource)
   in System.Threading.Tasks.Parallel.<>c__DisplayClass31_0`2.<ForEachWorker>b__0(Int32 i)
   in System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
   in System.Threading.Tasks.Task.InnerInvoke()
   in System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   in System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)<---

[17:05:20] [32/INFO] [tML]: Reading properties: Dartastic
[17:05:20] [32/INFO] [tML]: Building: Dartastic
[17:05:20] [32/INFO] [tML]: Compiling Dartastic.XNA.dll
[17:05:20] [32/INFO] [tML]: Compilation finished with 0 errors and 0 warnings
[17:05:20] [32/INFO] [tML]: Compiling Dartastic.FNA.dll
[17:05:20] [32/INFO] [tML]: Compilation finished with 0 errors and 0 warnings
[17:05:20] [32/INFO] [tML]: Packaging: Dartastic
[17:05:20] [37/WARN] [tML]: Silently Caught Exception:
System.ArgumentException: Parametro non valido.
   in System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
   in System.Threading.Tasks.Task.InnerInvoke()
   in System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   in System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)
   in System.Threading.Tasks.Task.InnerInvoke()
   in System.Threading.Tasks.Task.Execute()
   in System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
   in System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   in System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   in System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
   in System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
   in System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   in System.Threading.ThreadPoolWorkQueue.Dispatch()
   in System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

[17:05:20] [32/ERROR] [tML]: Si sono verificati uno o più errori.
System.AggregateException: Si sono verificati uno o più errori. ---> System.ArgumentException: Parametro non valido.
   in System.Drawing.Bitmap..ctor(Stream stream)
   in Terraria.ModLoader.IO.ImageIO.ToRaw(Stream src, Stream dst)
   in Terraria.ModLoader.Core.ContentConverters.Convert(String& resourceName, FileStream src, MemoryStream dst)
   in Terraria.ModLoader.Core.ModCompile.AddResource(BuildingMod mod, String resource)
   in Terraria.ModLoader.Core.ModCompile.<>c__DisplayClass33_0.<PackageMod>b__1(String resource)
   in System.Threading.Tasks.Parallel.<>c__DisplayClass31_0`2.<ForEachWorker>b__0(Int32 i)
   in System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
   in System.Threading.Tasks.Task.InnerInvoke()
   in System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   in System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)
   --- Fine della traccia dello stack dell'eccezione interna ---
   in System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   in System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   in System.Threading.Tasks.Task.Wait()
   in System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
   in System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IList`1 list, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
   in System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
   in System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, Action`1 body)
   in Terraria.ModLoader.Core.ModCompile.PackageMod(BuildingMod mod)
   in Terraria.ModLoader.Core.ModCompile.Build(BuildingMod mod)
   in Terraria.ModLoader.Core.ModCompile.Build(String modFolder)
   in Terraria.ModLoader.UI.UIBuildMod.<>c__DisplayClass5_0.<Build>b__0(ModCompile mc)
   in Terraria.ModLoader.UI.UIBuildMod.BuildMod(Action`1 buildAction, Boolean reload)
---> (Eccezione interna 0) System.ArgumentException: Parametro non valido.
   in System.Drawing.Bitmap..ctor(Stream stream)
   in Terraria.ModLoader.IO.ImageIO.ToRaw(Stream src, Stream dst)
   in Terraria.ModLoader.Core.ContentConverters.Convert(String& resourceName, FileStream src, MemoryStream dst)
   in Terraria.ModLoader.Core.ModCompile.AddResource(BuildingMod mod, String resource)
   in Terraria.ModLoader.Core.ModCompile.<>c__DisplayClass33_0.<PackageMod>b__1(String resource)
   in System.Threading.Tasks.Parallel.<>c__DisplayClass31_0`2.<ForEachWorker>b__0(Int32 i)
   in System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
   in System.Threading.Tasks.Task.InnerInvoke()
   in System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   in System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)<---

[17:05:29] [26/INFO] [tML]: Reading properties: Dartastic
[17:05:29] [26/INFO] [tML]: Building: Dartastic
[17:05:29] [26/INFO] [tML]: Compiling Dartastic.XNA.dll
[17:05:29] [26/INFO] [tML]: Compilation finished with 0 errors and 0 warnings
[17:05:29] [26/INFO] [tML]: Compiling Dartastic.FNA.dll
[17:05:29] [26/INFO] [tML]: Compilation finished with 0 errors and 0 warnings
[17:05:29] [26/INFO] [tML]: Packaging: Dartastic
[17:05:29] [24/WARN] [tML]: Silently Caught Exception:
System.ArgumentException: Parametro non valido.
   in System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
   in System.Threading.Tasks.Task.InnerInvoke()
   in System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   in System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)
   in System.Threading.Tasks.Task.InnerInvoke()
   in System.Threading.Tasks.Task.Execute()
   in System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
   in System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   in System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   in System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
   in System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
   in System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   in System.Threading.ThreadPoolWorkQueue.Dispatch()
   in System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

[17:05:29] [26/ERROR] [tML]: Si sono verificati uno o più errori.
System.AggregateException: Si sono verificati uno o più errori. ---> System.ArgumentException: Parametro non valido.
   in System.Drawing.Bitmap..ctor(Stream stream)
   in Terraria.ModLoader.IO.ImageIO.ToRaw(Stream src, Stream dst)
   in Terraria.ModLoader.Core.ContentConverters.Convert(String& resourceName, FileStream src, MemoryStream dst)
   in Terraria.ModLoader.Core.ModCompile.AddResource(BuildingMod mod, String resource)
   in Terraria.ModLoader.Core.ModCompile.<>c__DisplayClass33_0.<PackageMod>b__1(String resource)
   in System.Threading.Tasks.Parallel.<>c__DisplayClass31_0`2.<ForEachWorker>b__0(Int32 i)
   in System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
   in System.Threading.Tasks.Task.InnerInvoke()
   in System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   in System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)
   --- Fine della traccia dello stack dell'eccezione interna ---
   in System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   in System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   in System.Threading.Tasks.Task.Wait()
   in System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
   in System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IList`1 list, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
   in System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
   in System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, Action`1 body)
   in Terraria.ModLoader.Core.ModCompile.PackageMod(BuildingMod mod)
   in Terraria.ModLoader.Core.ModCompile.Build(BuildingMod mod)
   in Terraria.ModLoader.Core.ModCompile.Build(String modFolder)
   in Terraria.ModLoader.UI.UIBuildMod.<>c__DisplayClass5_0.<Build>b__0(ModCompile mc)
   in Terraria.ModLoader.UI.UIBuildMod.BuildMod(Action`1 buildAction, Boolean reload)
---> (Eccezione interna 0) System.ArgumentException: Parametro non valido.
   in System.Drawing.Bitmap..ctor(Stream stream)
   in Terraria.ModLoader.IO.ImageIO.ToRaw(Stream src, Stream dst)
   in Terraria.ModLoader.Core.ContentConverters.Convert(String& resourceName, FileStream src, MemoryStream dst)
   in Terraria.ModLoader.Core.ModCompile.AddResource(BuildingMod mod, String resource)
   in Terraria.ModLoader.Core.ModCompile.<>c__DisplayClass33_0.<PackageMod>b__1(String resource)
   in System.Threading.Tasks.Parallel.<>c__DisplayClass31_0`2.<ForEachWorker>b__0(Int32 i)
   in System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
   in System.Threading.Tasks.Task.InnerInvoke()
   in System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   in System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)<---

[17:05:41] [1/DEBUG] [tML]: Process.Start (UseShellExecute = True): "C:\Users\gambi\Documents\My Games\Terraria\ModLoader\Logs\client.log"
 

kyaryx

Terrarian
hello, I am trying to make a spear swing like the Ghasty Glaive, inflict the Shadowflame debuff, and produce particles similar to those of the Shadowflame Knife, but I don't know what the code is for any of this. help is greatly appreciated for any of it thank you
 
So this is the error message I keep receiving when I click onto tmodloader.
1654231582570.png

So i have the file (Users\camba\OneDrive\Documents\My Games\Terraria\Modloader), but the file that wasnt found was (Users\camba\OneDrive\Documents\My Games\Terraria\tModLoader'). So I created that missing file in the Terraria folder but I only got the same error, and after that error pops up a windows defender notification would pop up saying it blocked unauthorized changes, I dont understand why this still happens since both terraria and tmodloader are both allowed past windows defenders.

About 4 days ago i was able to select and download some mods on the mod browser in tmodloader. i had some mods not download to my mod list, and some that didnt work after I pressed reload to apply the mods to my game. but after all that, i had the mods I wanted all activated and started to create my character. But when it came to pressing enter after creating the name of my character, the game would instantly crash, and show a error message. please take in mind that this error message was showing up before I got the message in my earlier post. this is before I was unable to even get into tmodloader,
I am not sure if this is gonna help at all. but this is the error message i got.

I have done everything on the suggestions list and now I am even more lost.
View attachment 1654231505435.jpeg

I really do not understand why any of this is happening, I played and used mods on tmodloader before around 2 years age. i am basically using the same mods except for a few I chose not to use this time. I got my friend into modded terraria this week and all the mods he is using I was using.

I really want to play as much modded terraria before I had into my first year of university, i can imagine I wont have mush time to play any games throughout university. So I would really appreciate any help I can get.

I am dedicated to playing modded terraria one last time before I had to university, so I'm willing to listen and spend hours getting this fixed with anyone who can donate their time to help me out.
 
Last edited:

Solo-Ion

Dungeon Spirit
So this is the error message I keep receiving when I click onto tmodloader.
View attachment 371955
So i have the file (Users\camba\OneDrive\Documents\My Games\Terraria\Modloader), but the file that wasnt found was (Users\camba\OneDrive\Documents\My Games\Terraria\tModLoader'). So I created that missing file in the Terraria folder but I only got the same error, and after that error pops up a windows defender notification would pop up saying it blocked unauthorized changes, I dont understand why this still happens since both terraria and tmodloader are both allowed past windows defenders.

About 4 days ago i was able to select and download some mods on the mod browser in tmodloader. i had some mods not download to my mod list, and some that didnt work after I pressed reload to apply the mods to my game. but after all that, i had the mods I wanted all activated and started to create my character. But when it came to pressing enter after creating the name of my character, the game would instantly crash, and show a error message. please take in mind that this error message was showing up before I got the message in my earlier post. this is before I was unable to even get into tmodloader,
I am not sure if this is gonna help at all. but this is the error message i got.

I have done everything on the suggestions list and now I am even more lost.
View attachment 371954

I really do not understand why any of this is happening, I played and used mods on tmodloader before around 2 years age. i am basically using the same mods except for a few I chose not to use this time. I got my friend into modded terraria this week and all the mods he is using I was using.

I really want to play as much modded terraria before I had into my first year of university, i can imagine I wont have mush time to play any games throughout university. So I would really appreciate any help I can get.

I am dedicated to playing modded terraria one last time before I had to university, so I'm willing to listen and spend hours getting this fixed with anyone who can donate their time to help me out.
I'm guessing a bit here, but it could have something to do with Terraria's save folder being in your oneDrive folder. Perhaps try temporarily turning oneDrive off?
 

Marcus101RR

Master of Ravens
The error for Steam has be to be running to run a server is a bit of a problem for those who run servers on remote machines where steam isn't actually installed since its not a client machine. This should be fixed as soon as possible. I don't want to install/run Steam just to run a TModLoader Server module. This wasn't an issue with Legacy.
 

bennomite

Terrarian
I am on macbook air (apple silicon 2020 if that helps), using steam. when i launch 1.3-legacy it will say "playing" but will not actually launch and when i press close, it will just continue saying closing endlessly (i waited half an hour, nothing), any idea how to help, and there is not crash report because there was never a crash
 

nicolit11

Terrarian
I play Calamity with some quality of life mods. As of 2 days ago, when I try to open the game it's only a black screen until I tab out then tab in again, and I see this message: "tML encountered a crash when testing some experimental graphics features. If this issue persists constantly, you may have to edit config.json and set the Support4K setting to false. Please restart your game." How do I get to the config.json file to do this? Thanks.
 

Solo-Ion

Dungeon Spirit
I play Calamity with some quality of life mods. As of 2 days ago, when I try to open the game it's only a black screen until I tab out then tab in again, and I see this message: "tML encountered a crash when testing some experimental graphics features. If this issue persists constantly, you may have to edit config.json and set the Support4K setting to false. Please restart your game." How do I get to the config.json file to do this? Thanks.
Assuming you are on PC, it's in This PC>Documents>My Games>Terraria. And unless you know how to edit a .json file, you are probably better off renaming/deleting it which will set many of your games settings to default.
 

TheUberCannon

The Destroyer
Assuming you are on PC, it's in This PC>Documents>My Games>Terraria. And unless you know how to edit a .json file, you are probably better off renaming/deleting it which will set many of your games settings to default.
I did this over and over to no success. I also tried validating and uninstalling/reinstalling the base game and tModloader, and updating dotnet and XNA. What I found in config.json after messing around and exiting normally (by pressing W and S) is that in the updated file, both "support4K" and "support8K" can't be set to false, only one or both can be true, and I suspect both settings are the cause. Despite this, it has randomly worked successfully 3 times until I changed a setting, then it's back to square one. I don't know how to deal with a file being forcibly changed like this, and I have no other ideas.
I did try running the same 1.3-legacy beta in Pop!_OS (a Linux distro) and it couldn't launch the x86.bin, so I manually ran 86x-64x.bin instead and it worked fine, but the mod browser can't install mods. That's another can of worms though. Any help would be appreciated.
EDIT: I just updated my Windows to "2022-05 Cumulative Update for .NET Framework 3.5 and 4.8 for Windows 10" and it works perfectly now. Try that if you have my same issue.
EDIT again: This issue is entirely because of Razer Cortex. In there, go to "Game Booster" and turn off "Custom Display".
 
Last edited:

Liamhvet

Terrarian
Hey I am a newbie modder and have some simple questions:
How can I set journey mode research amont of a mod item? I haven't found related functions.
I made a Moon Lord summon item and want to set a time delay after using the item to spawn the boss, how should I do?
Thanks for reply!
put this at the top:
using Terraria.GameContent.Creative;

and put this in the set static defaults:
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = number;

as for the second thing, idk
 

azerder

Terrarian
I have downloaded tmodloader before and played it without problems, however i recently had to uninstall and reinstall it, ever since tmodloader no longer worked and would send this crash log.
 

Attachments

  • client.log
    7 KB · Views: 16
Top Bottom