tModLoader Official tModLoader Help Thread

I got the same error too. No fix as far as I can tell. I think it was introduced when tModLoader was updated. Seems they left an error in the code and forgot about it. They will probably fix it soon. (I don't understand JSON so I can't say what the problem is)
So we just wait till they fix it?
 
Am I missing something?

On the latest 11.7.3 it says
GOG Install should work again. Make sure terraria v1.4.0.4 installed.
You can install TML into the GOG dir if you want, make sure a v1.4.0.4 Terraria.exe is present.

I have the GOG version and have done that but when I load TML it still pulls up as 1.3.5.3 instead of 1.4.0.4.
 
I have the GOG version and have done that but when I load TML it still pulls up as 1.3.5.3 instead of 1.4.0.4.
Same for Steam, it's the first time I am installing tModLoader and I'm not sure if it's just unsupported or if there's something I'm missing.
EDIT: Yeah, unsupported. Fairly recent update so makes sense.
 
Last edited:
So I'm trying to move a character to tModLoader from vanilla, and I put in all of the files (folder and .plr), however the character in tModLoader is the default character and I can't even press play. tmod.PNG
I reversed the process and put a new character from tmod to vanilla, and that character transferred perfectly fine. I grabbed some stuff from vanilla, then tried to copy that character back from vanilla to tmod and the same thing happened, so it looks like its just a vanilla to tmod thing. Does anyone have the same problem or have any idea how to fix?
 
Hi guys, I currently have an issue installing tmodloader
Whenever I press install now via the Steam storepage for Tmodloader, the page refreshes itself and nothing gets installed

Has this happened to anyone else and does anyone know a way to fix this?
I've uninstalled my base Terraria, redownloaded, verified my file integrity, and I tried doing manual installation but its doesn't let me join my friends who all installed it via Steam
 
I have a question, I have the mod ,,begone evil´´ in my downloaded mods. I also have the mod enabled and pressed on reload mods. But when I enter my world, and press ESC and go to settings and then mods there, the list is empty. There is nothing in the mods list. Did I do something wrong? Or ist the mods list just generally empty and the mods still work? I even tried making completly new characters and worlds. I have some pictures of the problem.
 

Attachments

  • Screenshot (2).png
    Screenshot (2).png
    400.6 KB · Views: 169
  • Screenshot (3).png
    Screenshot (3).png
    278.6 KB · Views: 150
Hi I was trying to add a Hotkey suposed to switch the animation of the weapon this is my code.
Code:
using Terraria.ModLoader;

namespace ModName
{
    public class ModName : Mod
    {  
        public static int state=0;
        internal static ModHotKey Hotkey;
        public ModName()
        {
        }
        public override void Load()
        {
            Hotkey = RegisterHotKey("Change weapon mode", "");
        }
        public override void Unload()
        {
            Hotkey = null;
        }
    }
   
}
C#:
using Microsoft.Xna.Framework;

using System;

using System.Collections.Generic;

using System.Reflection;

using Terraria;

using Terraria.Audio;

using Terraria.GameInput;

using Terraria.ID;

using Terraria.Localization;

using Terraria.ModLoader;

using Terraria.UI;



namespace ModName

{
   
    public class Player : ModPlayer {
        public override void ProcessTriggers(TriggersSet triggersSet)

        {

            if (ModName.Hotkey.JustPressed)
               
            {
                ModName.state = (ModName.state + 1) % 3;
            }

        }



       
    }

}
C#:
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace ModName.Items
{
    public class Weapon : ModItem
    {
        public override void SetStaticDefaults()
        {

            Tooltip.SetDefault("Weapon");


        }
       
        public override void SetDefaults()
        {
            item.damage = 10;
            item.melee = true;
            item.width = 80;
            item.height = 80;
            item.useTime = 20;
            item.useAnimation = 20;
            item.useStyle = 5;
            item.knockBack = 0;
            item.value = 10000;
            item.rare = 2;
            item.UseSound = SoundID.Item1;
            item.autoReuse = true;
            item.shootSpeed = 4.5f;
        }
        public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)

        {
            if (ModName.state == 0)
            {
                item.useStyle = 1;
            }else{
                item.useStyle = 20;
            }
            return true;
        }

    }
}
If I build my mod and start to play it I get following error twice.

Object reference not set to an instance of object (see Client.log for full trace).

Also I can't move or do anything. But I don't know weather this is because of that.

Could you help fixing this?

Edit: I made the code work.
 
Last edited:
I found these in NPC:
downedMechBossAny = false;
downedMechBoss1 = false;
downedMechBoss2 = false;
downedMechBoss3 = false;
downedBoss1 = false;
downedBoss2 = false;
downedBoss3 = false;
downedQueenBee = false;
downedSlimeKing = false;
downedGoblins = false;
downedFrost = false;
downedPirates = false;
downedClown = false;
downedPlantBoss = false;
downedGolemBoss = false;
downedMartians = false;
downedFishron = false;
downedHalloweenTree = false;
downedHalloweenKing = false;
downedChristmasIceQueen = false;
downedChristmasTree = false;
downedChristmasSantank = false;
downedAncientCultist = false;
downedMoonlord = false;
downedTowerSolar = false;
downedTowerVortex = false;
downedTowerNebula = false;
downedTowerStardust = false;

So, if (NPC.downedPlantBoss) { stuff }
What about custom bosses?
 
Back
Top Bottom