tModLoader Official tModLoader Help Thread

hx2o5

Terrarian
hi I was wondering if there was any way of creating a revival mechanic such as death prevention and a full heal after I'm planning on making an armour set that for its set bonus it gives the player wings with 3 stages diminishing the wings flight speed with each revival and upon the 3rd death there is no longer a revival stat left to activate or wings but I cant figure out how to code a revival option
 

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
 
Top Bottom