tModLoader Official tModLoader Help Thread

Dacern

Terrarian
Look at where your SetDefaults() ends. You need to close it after defaults, and override AddRecipes to add a new recipe, last I checked. Hope that helps.

Oh my gosh, I just forgot this. Thank you very much.
That was a stupid mistake, but easy to fix at least.
public override void AddRecipes()
 

CandieOfficial

Terrarian
Okay so I've looked around for maybe an hour or two just trying to find a an XNB to WAV file converter, I want to get a pure source WAV file so I can do some audio remixing but I cant find any converter. Any help is appreciated, thanks in advance.

Also this is my first post here so please direct me where to ask or look if this isn't the right place.
 

Dacern

Terrarian
Okay so I've looked around for maybe an hour or two just trying to find a an XNB to WAV file converter, I want to get a pure source WAV file so I can do some audio remixing but I cant find any converter. Any help is appreciated, thanks in advance.

Also this is my first post here so please direct me where to ask or look if this isn't the right place.
Maybe put it into an audio editor? Something like soundtrap, and then export as a WAV file.
Not sure if it works, but it's the best help I can give.
 

Dacern

Terrarian
I'm sure there's tons of stuff here about it, but I can't seem to get my projectiles to rotate in the direction they're moving. If anyone can give me some raw code I can ctrl+C, ctrl+V into my current projectile code, I would be grateful.
Or even any help in general would be useful.
 

Piercepotato

Terrarian
I don't think it's possible to make an alternate dimension, at least, not without some serious overriding of code and increasing world file size by a good amount. Unlike other games that use multiple worlds/dimensions in their "world", Terraria has one big map that covers the whole world. Sorry to disappoint.
Whoops i replied to the wrong post XP
My response is the post above lol
 

HAMILHAM

Terrarian
my tmodloader wownt open it keeps saying I have ran out of memory I have uninstalled the mods and it still keeps saying that
 

xxajitatorxx

Terrarian
Ok so I'm having a bit of trouble with launching tmodloader. Everytime I try to launch the thing it keeps giving me an error message and says
..\Terraria\Terraria.exe is not the executable.
GOG installs must have the unmodified Terraria executable to function.
Can anyone help me out with this. I have no idea what to do.
 

NameTaken

Skeletron
How can I get if a boss killed you?
I am makung a mod that allows you to resummon a boss if you get killed by it.
I dont exactly know how, but i feel like not only would it probably be easier, but also work better if you just test if the player dies while a boss is alive.
 

E253MechaShadow

Terrarian
Here's a major problem I have.
I'm using the 64-bit branch of tModLoader and quite a number of mods:
"AAMod",
"AlchemistNPCLite",
"BossChecklist",
"CalamityMod",
"CalamityModMusic",
"CalamityRuTranslate",
"chadsfurni",
"Consolaria",
"ControlTrash",
"CosmeticVariety",
"CrystiliumMod",
"DictionaryOfPrefixes",
"Fargowiltas",
"FKBossHealthBar",
"OrchidMod",
"SacredTools",
"SmartDoors",
"StormDiversSuggestions",
"ThoriumMod",
"WeaponOut"
Most of the time when I try loading more content mods and starting the game, it functions very strangely:
- none of the NPCs can be talked to;
- pressing ESC doesn't access the inventory, the crafting menu or the game settings;
- but it does hold my character in place and makes him invincible, even in mid-air;
- collecting an item may cause it to multiply all over my inventory.

Everything else (except these VERY BASIC features) seems to work fine. Here are some of the mods that caused this:
Antiaris, Fargo's Souls, Calamity Vanities, AlchemistNPC Lite.
Sometimes it happens, sometimes doesn't.
 
Last edited:

Drachenkeks

Steampunker
Does anyone know how to make a chainsaw or jackhammer like tool?
I cant find anything about that in the tmodloader example mod ^^'
 

Magi∆

Skeletron Prime
please help fix mah code it no work it gives 3 errors and 6 warnings
using System.Collections.Generic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace ARandomMod.Items.armor
{
public class MagiMask : ModItem
{
public override bool Autoload(ref string name, ref string texture, IList<EquipType> equips)
{
equips.Add(EquipType.Head);
return true;
}

public override void SetDefaults()
{
item.name = "Magi's Mask";
item.width = 18;
item.height = 18;
item.toolTip = "Magi's mask. You shouldn't have this.";
item.value = 10003;
item.rare = 4;
item.defense = 9999;
}

public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.DirtBlock, 1);
recipe.AddTile(TileID.WorkBenches);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
 
Last edited:

Drachenkeks

Steampunker
please help fix mah code it no work it gives 3 errors and 6 warnings
using System.Collections.Generic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace ARandomMod.Items.armor
{
public class MagiMask : ModItem
{
public override bool Autoload(ref string name, ref string texture, IList<EquipType> equips)
{
equips.Add(EquipType.Head);
return true;
}

public override void SetDefaults()
{
item.name = "Magi's Mask";
item.width = 18;
item.height = 18;
item.toolTip = "Magi's mask. You shouldn't have this.";
item.value = 10003;
item.rare = 4;
item.defense = 9999;
}

public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.DirtBlock, 1);
recipe.AddTile(TileID.WorkBenches);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}

can you list the errors? sometimes its just a typo or a missing directory
 

Magi∆

Skeletron Prime
I actually got it fixed by DestoR, now I just can’t equip it, so here’s new code, it gives no errors, just can’t equip it
using System.Collections.Generic;
using Terraria; using Terraria.ID;
using Terraria.ModLoader;
namespace ARandomMod.Items.Armor
{ [AutoloadEquip(EquipType.Head)]
public class MagiMask : ModItem
{ public override void SetStaticDefaults()
{
Tooltip.SetDefault("Magi's mask. You shouldn't have this");
DisplayName.SetDefault("Magi's Mask");
} public override void SetDefaults()
{
item.width = 18;
item.height = 18;
item.value = 10003;
item.rare = 4;
item.defense = 9999;
} public override void AddRecipes()
{ ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.DirtBlock, 1);
recipe.AddTile(TileID.WorkBenches);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
}



Sorry if strange I had to copy code from discord
 

Ramioji

Terrarian
help me out when i downloaded tmodloader my terraria or tmodloader didnt work. when i deleted tmodloader my terraria didnt wont soo i did the basic thing of searching it up on youtube. i deleted a file named config.json and i thought it would fix the problem. when i reinstalled the game it had the same problem. i tried backup all my files but it finish for some reason. please help!
 

Magi∆

Skeletron Prime
help me out when i downloaded tmodloader my terraria or tmodloader didnt work. when i deleted tmodloader my terraria didnt wont soo i did the basic thing of searching it up on youtube. i deleted a file named config.json and i thought it would fix the problem. when i reinstalled the game it had the same problem. i tried backup all my files but it finish for some reason. please help!
You should like uninstall it through steam if that’s where u got them from, then reinstall it. But you probably already tried that.
 
Top Bottom