• For issues you find with the Switch and Console releases, please follow this link and give as much detail as possible. This is the speediest way to get info to Pipeworks and get a hotfix in the works.
  • For issues you find with the Mobile 1.3 update, please follow this link and give as much detail as possible. This is the speediest way to get info to DR Studios to look at your issue. Also, some troubleshooting hints here.

tModLoader Official tModLoader Help Thread

holeow

Terrarian
Hi. I think this is the right place to post this, but I'm not sure. I have an issue with TModLoader v0.11.4. What happens is, I have been working on my mod, and I went to compile it use the "Mod Source" button in TModLoader. But instead of bringing me to the compile/build menu, it says "Enable Developer Mode", and "Mod Compile Folder Missing". Anyone know what this is? There isn't any button anywhere that says "Enable Developer Mode". I've looked all over the internet, searched through all the settings I could find, and still, I haven't found it.
It should be on the main menu, bottom right corner of the screen if i remember correctly.
 

Nakano15

Duke Fishron
Hey guys, I have a question: Is there a way of making a npc name be shown only by his name, not with his type?
I'm asking because It would be really weird to have an npc named "Rococo the Rococo" in the world. Do something like happens in Santa Claus case, which doesn't have a suffix.
 

Huut

Terrarian
when ever i open modded terraria i get a error saying:

An Error has occured while loading

the mod responsible is unknown and tmodloader must be restarted

System.NullRefrenceException: Object refrence not set to an instance of an object.

at Terraria.ModLoader.Modloader.IsEnabled(String modname)

at Terraria.modloader.Core.modorganizer.<>c.<loadMods>b_____8___0(LocalMod Mod)

at system.Linq.Enumerable.WhereArrayIterator'I.MoveNext()

at system.Collections.Generic.list'1..ctor(lEnumerable'l collection)

at system.linq.Enumerable.ToList[Tsource](lEnumerable'l source)

at terraria.ModLoader.Core.ModOrganizer.loadmods(CancellationToken token)

at Terraria.Modloader.Modloader.Load(CancellationToken token)



Fixes ive tried include:

Deleting the config.json file, uninstalling and reinstalling terraria, deleting the most recent mod i downloaded through C:\Users\(Name)\Documents\My Games\Terraria\ModLoader\Mods.
 

direwolf420

Terrarian
delete the "enabled.json" file from C:\Users\(Name)\Documents\My Games\Terraria\ModLoader\Mods. If that doesn't work, delete any duplicate mod you have in there (something like "SpiritMod (2).tmod" or "SpiritMod - Copy.tmod")
 

Pink_Luigi

Terrarian
Hello everyone, I'm looking for a way to remove the default knockback that all weapons share in pvp or alternatively, giving a modded weapon custom knockback for pvp? Would this be difficult? I've looked through my compile of Terraria and can't seem to find the source code for why this happens. If anyone knows how to get started with this or where to look I would be grateful. :)
 

direwolf420

Terrarian
A player can either receive knockback (full) or no knockback at all. You could try setting something like target.noKnockback = true; in an OnHitPvP hook
 

Pink_Luigi

Terrarian
Okay the OnHitPvp hook didn't seem to work so I tried a ModifyHitPvp which I think will eventually work. The only problem is right now it causes a desync where when I attack another player with my modded sword, they recieve no knockback on my client but recieve full knockback on their side of the client. Then on my screen when I stop attacking, they teleport to where they were actually knocked back to on the server. Would this require a modpacket to fix? Or is it just a problem that's always existed in pvp?
 

Hateforhire

Terrarian


what does this mean? I get this error whenever i try to log in with tmodloader enabled, i have tried reinstalling terraria and tmodloader, and running as admin, and changing my folder to not be read-only. I would like to continue playing this game with my friends, please help
 

rubenturen

Terrarian
Hi, i have a problem.
I Want to do so that a drop from a boss only drops if a specific weapon was used to kill him.
(Pls post example code)
 

CrankyCashew

Terrarian
I speak for mac players. we kinda cant really update our terraria because a lot of us don't know where the "Install Directory" is for terraria. if we cant find it we cant enable tmodloader and terraria wont open.

the commands we want to use are:
chmod +x tModLoaderServer
chmod +x Terraria
 

jopojelly

Retinazer
I speak for mac players. we kinda cant really update our terraria because a lot of us don't know where the "Install Directory" is for terraria. if we cant find it we cant enable tmodloader and terraria wont open.

the commands we want to use are:
chmod +x tModLoaderServer
chmod +x Terraria
Step 1 of the readme tells you how to find it:

1. Go to the Terraria install folder (the one containing Terraria.exe, not the Saves folder). For most people, this will be "Library/Application Support/Steam/steamapps/common/Terraria/Terraria.app/Contents/MacOS". To enter your hidden Library folder, in the Finder open the "Go" menu, then hold down the "Alt" key. The hidden Library will become visible. To enter the Terraria.app folder, right-click it then click on "Show Package Contents". If you can't find it, view this video:
 

Zetrix

Official Terrarian
heyo does anyone know how to code a summon weapon that is like the stardust dragon staff in the way that it attacks and etc.
[doublepost=1568139012,1568138845][/doublepost]
heyo does anyone know how to code a summon weapon that is like the stardust dragon staff in the way that it attacks and etc.
or a summon weapon in general
 

direwolf420

Terrarian
Examplemod has a minion
And for a stardust dragon staff type minion, you can copy and adjust the relevant AI code by decompiling the game files. To make the weapon actually increase the amount of segments on use, that's a different story, because the game hardcodes this behavior in multiple places so it is hard to replicate
 

LordBigzy

Terrarian
People i need help Visual Studio says the code is perfectly fine, though when running in terraria, it comes up with this:
An error ocurred while building MemeologistsHolyGrail.XNAdll fails with 2 errors and C:\Users\myname\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\MemeologistsHolyGrail\Tiles\DankiteOre.cs(17,35) : error CS0029: Cannot implicitly convert 'bool'to 'int' warnings.

Oh and heres the code (im attempting to make a tile)

Tile Code

using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;

namespace MemeologistsHolyGrail.Tiles
{
public class DankiteOreBlock : ModTile
{


public override void SetDefaults()
{
Main.tileSolid[Type] = true;
Main.tileMergeDirt[Type] = true;
Main.tileBlockLight[Type] = true;
Main.tileLighted[Type] = true;
Main.tileSpelunker[Type] = true;
Main.tileShine[Type] = true;
Drop = mod.ItemType("DankiteItem");
AddMapEntry(new Color(444, 222, 435));
}
}
}

Item Code

using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace MemeologistsHolyGrail.Items.Placeables
{
public class DankiteItem : ModItem
{



public override void SetDefaults()
{
DisplayName.SetDefault("Dankite");
item.width = 12;
item.height = 12;
item.maxStack = 999;
Tooltip.SetDefault("Emanating with pure dankness...");
item.useTurn = true;
item.autoReuse = true;
item.useAnimation = 15;
item.useTime = 10;
item.useStyle = 1;
item.consumable = true;
item.createTile = mod.TileType("DankiteOreBlock");
}

}
}

Idk whats up with that lol
 

dhwfb26

Terrarian
I honestly have very little knowledge about computers or tModLoader, and could really use a lot of help. I tried installing tModLoader today and colossally messed up, almost destroying my vanilla game permanently. I was lucky to get it back and still don't know what I did or didn't do right.

I'm on a MacBook Air with Mojave, and downloaded tModLoaderInstaller from the link on these forums. After following the instructions on where to put files, I downloaded Java to use tModLoaderInstaller. I got an error when trying to use Java, the description of which I forget, but basically it said it couldn't access the file. So, I tried to install it manually using the ReadMe. I followed all the instructions up to the point where it told me "You need to give execute permissions to 2 files. Open a terminal in the install directory and run the following 2 commands:
chmod +x tModLoaderServer
chmod +x Terraria"

I have no idea how to open Terminal in the "install directory," since I am not sure where or what that is. After gaining no information on this, even through searching on these forums, Reddit, etc., I gave up and had to delete the tModLoader files to get Terraria working properly. I clearly deleted some of the wrong ones as it wasn't working, and finally I added a couple files back which apparently made Terraria open and run properly again. I have no idea which file or files that I added back made this work again.

Not really sure how anyone here can help, but basically I'd love advice on what to do about the Java error or, alternatively, how to execute the step in the ReadMe that I quoted above. Also, what do I do with the original Terraria file and other related files to make sure that (a) they aren't overwritten, (b) I can tell they're not a part of tModLoader and (c) I don't delete them? Sorry that I'm so dumb, I just really want to play Terraria with mods and can't figure anything out.
 

Nakano15

Duke Fishron
Is there a way of making Terraria draw a projectile on tModLoader? I need that to make my companions be able to use weapons like spears, without only showing up the shader.
 

Shinzaru

Terrarian
Is there a way of making Terraria draw a projectile on tModLoader? I need that to make my companions be able to use weapons like spears, without only showing up the shader.
I would take a look at the WeaponOut open source mod. Definitely seems like something that would help you, as it does a lot of custom drawing. It certainly is possible.
 
Top Bottom