Quantcast
Channel: General Mod Discussion
Viewing all 7890 articles
Browse latest View live

[Tutorial] Creating Simple UI: Custom Resource Bars

$
0
0
Welcome,

in this tutorial, we want to create a custom health bar and custom mana bar. I will start with an empty project.

Project ID: CustomBars
Project Name: Custom Resource Bars
1. Remove old health bar
Code:
public override void ModifyInterfaceLayers(List<MethodSequenceListItem> layers)
        {
            for (int i = 0; i < layers.Count; i++)
            {
                //Remove Resource...
[Tutorial] Creating Simple UI: Custom Resource Bars

How do you determine whether a player is holding a certain item?

$
0
0
In my mod I have a few throwing weapons. I want to create an emblem time accessory that would buff these specific items, such as increasing damage or giving it autoreuse. How would I be able to make an if statement based on whether the player was holding the item?

Help with world geneeration

$
0
0
Hey, I'm new to terraria modding, and I am trying to increase the top world boundary to make room for a whole cloud biome. I want it to apply to new world generation by default. Any help would be appreciated.

Looking for content (biomes/structures/npcs/etc) mods

$
0
0
Hi. I'm looking for any more mods that add new biomes/structures/etc on worldgen, or town npcs, or other similar features. (i.e. not mobs, weapons, armor, etc).

Currently using
• AlchemistNPC.tmod
• Antiaris.tmod (not working right though, structures like the Guide's house aren't generating)
• CalamityMod.tmod
• CrystiliumMod.tmod
• CustomGeneration.tmod
• Fargowiltas.tmod
• MiniBossNPC.tmod
• SacredTools.tmod
• ServerBrowser.tmod
•...

Looking for content (biomes/structures/npcs/etc) mods

How to Downgrade Back to 1.3.4.4

$
0
0
It looks like it could be a while until tModLoader updates to support 1.3.5. I know there's a patch available, but it only works on Windows at the moment. In the meantime, if anyone wants to download 1.3.4.4 again, you can get it through Steam. You just need to use the steam console. I've only tried this on Linux, so I can't guarantee it'll work on others. I see no reason why it wouldn't though.

Step 1: Close Steam if it's running.

Step 2: Launch Steam with the "-console" flag....

How to Downgrade Back to 1.3.4.4

Modded world lost...

$
0
0
Soo i was playing modded terraria, i had to go soo i alt+F4 and left. When i came back i tryed to get back to my world but it sayed "data not found" soo i restarted terraria and still nothing.
I had 50 hours on the world and I DO NOT want to lose it. i have the file too. What do i do ?

Terraria wont load my mod

$
0
0
I need help, im making wings and i got the script but when i load up Terraria it says terraria.exe has stopped working. Help? heres the script:

Code:
using System.Collections.Generic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace Abyss.Items
{
    [AutoloadEquip(EquipType.Wings)]
    public class BloodWings : ModItem
    {
        public override void SetDefaults()
        {
            item.width = 22;
            item.height = 20;
            item.value = 10;...
Terraria wont load my mod

Overworld music locked on Day

$
0
0
As seen in the title, i have problem where the overworld day music is played, even when it's night time, when i'm in the cavern level or at the sea,
However, when i go into the corruption, the jungle, the snow biome, space, in a boss fight or hell, the corresponding music plays.
I don't know why this is happening, it's most likely a mod i have installed but it didn't do that at the beginning.
I tried restarting the game but the glitch persists, I hope someonce can help me with this...

Overworld music locked on Day

Which mods expand on Exploration or add to Worldgen?

TModLoader Help, Can't find old vanilla world

$
0
0
So i wanted to download Tmodloder so i could mod terraria after im done with the main story. i downloaded it, then i lost my world and character. it said go to Terraria/Players, i thought ok ill do that, so i go to do that, but my computer says no such file exists. ive tried deleting the mod files but that didnt work, and now i dont know how to load my 200 hour player.
Can anyone help me so i can either get my character file or uninstall tmodloader so i can get my old stuff back?
thank you! :3

Does anyone else get that nagging feeling for a great mod idea?

$
0
0
But you realize you can't script for nothing? Can anyone else relate to this?

Eater of Worlds Help

$
0
0
Where is the code for the Eater of Worlds?

NPC has projectile problems

$
0
0
My NPC acts normally when spawned, it shoots shurikens at the player. However, when the player moves out of the maximum range (500f) and then gets back within the range it won't shoot projectiles any more.
Code:
using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

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

namespace LordsOfTheCosmos.NPCs
{
    public class HeroSkeleton : ModNPC
    {
        const int COOLDOWN = 70;
        int...
NPC has projectile problems

LifeSteal ON Melee Weapon

$
0
0
Anyone know the code for making a Melee Weapon (sword) have lifesteal effects?

i tried this and it didnt work
public override void OnHitNPC(Player player, NPC target, int damage, float knockBack, bool crit)
{
int healAmount = (int)Math.Floor(damage / 100);
if(healAmount < 1) healAmount = 1;
player.HealEffect(healAmount, false);
player.statLife += healAmount;
if (player.statLife > player.statLifeMax2)
{
player.statLife = player.statLifeMax2;
}
NetMessage.SendData(66, -1, -1, "",...

LifeSteal ON Melee Weapon

How do you change NPC movement speed?

$
0
0
In particular the one for the Fighter AI, or would it be easier to just program my own.

How do i make my sword steal life from enemies?

$
0
0
i want my sword to use lifesteal when it hits enemies, but i dont know how.

Help with world geneeration

$
0
0
Hey, I'm new to terraria modding, and I am trying to increase the top world boundary to make room for a whole cloud biome. I want it to apply to new world generation by default. Any help would be appreciated.

Cap on Modded Damage in Multiplayer

$
0
0
Hello everyone,

I was just wondering if anyone knows any workarounds to the damage cap on Modded Damage in multi-player.

I have tried with multiple mods, as well as my own mods. There is a cap on damage (but only in multi-player) around 20,000. If I set damage higher than this, it does 0 or 1 damage instead.

In singleplayer damage has no cap and I can easily set the damage to any value I want.

Does anyone know why this happens and how to fix it?


EDIT:

Looks like someone else has had...

Cap on Modded Damage in Multiplayer

Sword Projectile Trail?

$
0
0
I created a Vampire knive type projectile and I was wondering how I can add a Blood type trail to it cause it looks kinda bland.
Anyone know how to add that, and where to put it under?

Thanks.

[Tutorial] Projectile Guide and Implementation: tModLoader Edition

$
0
0
[Tutorial] Projectile Guide and Implementation
tModLoader Edition
by: Sin Costan

Introduction:
Hello TCF community, by a request, I have imported the original tAPI guide to tModLoader, with a few changes of course.


This page looks pretty empty boss, where's the tutorial?
By the power of Google Docs, I have made it in that, though reading code will be a pain,...

[Tutorial] Projectile Guide and Implementation: tModLoader Edition
Viewing all 7890 articles
Browse latest View live