• PC NEWS: 1.4.2.3 update is out! More info here. Report bugs here
  • Journey's End on Xbox and PlayStation!: Get all the info by clicking here. A new patch is in QA - expect some Gamepad love, the return of Red's Pick and more. Click here for Known Issues and FAQ. For any other bugs, report them (with as much detail as possible) here.
  • MOBILE NEWS: Stay up to date with the latest mobile news here. Report mobile bugs here

Standalone [1.3] tModLoader - A Modding API

Danny989898

Terrarian
so after the update came out when i enter the tmodloader version of terraria ,it says that i'm in the normal version of terraria,how can i fix this?
 

Attachments

  • Screenshot (56).png
    Screenshot (56).png
    383.9 KB · Views: 111
  • Screenshot (57).png
    Screenshot (57).png
    207.5 KB · Views: 129

Iriazul

Terrarian
Hey, I was wondering how to make a mimic / biome mimic sprite sheet work? Here are my sprite sheets:
View attachment 129786 View attachment 129787
And here is my code at the moment:
Code:
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

                                                        
namespace UnderMod.NPCs
{
    public class DogMimic : ModNPC
    {
        public override void SetDefaults()
        {
            npc.name = "Dog Mimic";
            npc.displayName = "Dog Mimic";
            npc.width = 32;
            npc.height = 44;
            npc.damage = 10;
            npc.defense = 10;
            npc.lifeMax = 200;
            npc.soundHit = 1;
            npc.soundKilled = 13;
            npc.value = 60f;
            npc.knockBackResist = 0.5f;
            npc.aiStyle = 25;
            Main.npcFrameCount[npc.type] = 14;
            aiType = NPCID.BigMimic;
            animationType = NPCID.BigMimic;
        }

        public override float CanSpawn(NPCSpawnInfo spawnInfo)
        {
            return spawnInfo.spawnTileY < Main.rockLayer && !Main.dayTime ? 0.5f : 0.5f;
        }
        public override void FindFrame(int frameHeight)
        {
            npc.frameCounter -= 0.5F;
            npc.frameCounter %= Main.npcFrameCount[npc.type];
            int frame = (int)npc.frameCounter;
            npc.frame.Y = frame * frameHeight;

            npc.spriteDirection = npc.direction;
        }
        public override void NPCLoot()
        {
            {
                Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DogBone"), 2);
            }

        }
    }
}
But it shows the full animation of the sheet. Can anyone help?
You're defining an animationType, but you're also overriding the FindFrame method. Remove the method.
 

Aspartam

Terrarian
hi, game started to stop responding when I click "mod browser (beta)" button. I remember doing that with out any problems a few hours ago. I can successfully open "mods" , "mod sources" buttons and I can load a world. I deleted game files reloaded tmodloader there is no difference.
(terraria v1.3.2.1 & tmodloader v0.8.3.1)
 

Lukas04

Official Terrarian
hi, game started to stop responding when I click "mod browser (beta)" button. I remember doing that with out any problems a few hours ago. I can successfully open "mods" , "mod sources" buttons and I can load a world. I deleted game files reloaded tmodloader there is no difference.
(terraria v1.3.2.1 & tmodloader v0.8.3.1)

if you have wifi Problems,or the Mod Browser Server is overloaded that sometimes happens
 

joshmanisdabomb

Terrarian
Hello everyone! I'm working with chests at the moment and I've tried Googling everywhere for how to make a chest with a custom amount of slots. Is this currently possible?
 

Danny989898

Terrarian
Hello I just followed the 'Pegquin' Video on how to install Tremor mod and Tmod loader however this appeared when I launched the game from my files:

System.DIINotFoundExeption: Unable to load DLL 'CSteamworks': The specified module could not be found. (Exeption from HRESULT : 0x8007007E) at Steamworks.NativeMethods.SteamAPI_RestartAppIfNecessary(Appld_tunOwnAppID) at Terraria.Social.Steam.CoreSocialModule.Intalize() at Terraria.Social.SocialAPI.Intalize(Nullable`1 mode) at Terraria.Program.LaunchGame(String[ ] args)

I originally had it installed but I must of done something because this appeared when I launched it.

Sincerely Aaaaaaah :3
i have the same problem,very annoying
 
If anyone has already asked this, then I didn't know because I don't have the time to check nearly 600 pages of comments, but if you disable all of your mods, is it possible to play multiplayer with someone that doesn't have tmodloader?
 

CyberGamer1539

Terrarian
Is there a way I could find all the code for existing Terraria items, enemies, etc? I made a Copper Throwing Knife for my mod I recently started making, but it has some issues. I would like to find the code for standard throwing knives to optimize MY code by making the knife spin and some other things.
 

Lukas04

Official Terrarian
Is there a way I could find all the code for existing Terraria items, enemies, etc? I made a Copper Throwing Knife for my mod I recently started making, but it has some issues. I would like to find the code for standard throwing knives to optimize MY code by making the knife spin and some other things.

You can use Ilspy to get Terraria`s Code,but its hard to learn from it at the start
Better look into ExampleMod and the Documentations

and if you want to clone an Vannila Items Propertis you can use

Code:
item.CloneDefaults(ItemID.ITEMID);

Click HERE for an Example
 

Kami

Terrarian
hi, game started to stop responding when I click "mod browser (beta)" button. I remember doing that with out any problems a few hours ago. I can successfully open "mods" , "mod sources" buttons and I can load a world. I deleted game files reloaded tmodloader there is no difference.
(terraria v1.3.2.1 & tmodloader v0.8.3.1)
Had the same problem, and i'm playing singleplayer. Any way to fix it?
 

jopojelly

Retinazer
tModLoader
If anyone has already asked this, then I didn't know because I don't have the time to check nearly 600 pages of comments, but if you disable all of your mods, is it possible to play multiplayer with someone that doesn't have tmodloader?
No, there are still some differences. Use the vanilla terraria.exe to playe Vanilla.
 

pat1231

Spazmatism
ive got 2 questions:
1. whats the code to make a item heal yourself?
2. how to make an enemy spawn in the underworld after defeating a specific boss?
thanks if answered :) XD
 

alessandrozingali

Skeletron Prime
Impossibile trovare il metodo 'Void Terraria.Main.NewTextMultiline(System.String, Boolean, Microsoft.Xna.Framework.Color)'.
in IvysaurLevelsystem.GameEnlarger.ChatInput(String text)
in Terraria.ModLoader.ModHooks.ChatInput(String text)
in Terraria.Main.do_Update(GameTime gameTime)
in Terraria.Main.Update(GameTime gameTime :)red:)
 

Audrina2k

Terrarian
so, are you saying you had tmod, then the game updated? if so just install tmod again, it downgrades to the last compatible version.
No way. I went to GOG and asked my other half to dl it, after he tried to do the newest version. Crazy man. I told him they weren't even all compatible and to NOT do it. so I wasted hours. Luckily, it's time for my little yorkie to have quiet time so I'm going to play some
 
Top Bottom