tModLoader Official tModLoader Help Thread

Am I missing something?

On the latest 11.7.3 it says


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.
That's because TML is still on 1.3 Terraria, we're working on updating it to 1.4
 
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.
I think you need a name
DisplayName.SetDefault("RetZire");
 
Used the "Remove Forced Minimum Zoom" option because the cursor didn't align with the visible cursor (eg. the visible cursor wasn't on top of an option yet I would get small pop up that indicated that I was on top of it) now I can't bring the cursor to the top of the screen, Steam backups my options so uninstalling doesn't work it also messes with my monitor and makes it think there no input.
20200604221022_1.jpg
 
I've been making a custom set of wings, but can't figure out how to change the number of frames in the animation. For example, Jim's Wings have 6 animation frames, but if I copy the texture over and use AutoLoadEquip, the texture is still divided into four frames, causing less than ideal results. How do I increase the frame count of modded wings?
 
i kinda got an Problem, i want to Install tModLoader but i cant because i basically play the game from my buddy(Family Share)

it says that i need the game installed on my Account, is there any other way?
 
i kinda got an Problem, i want to Install tModLoader but i cant because i basically play the game from my buddy(Family Share)

it says that i need the game installed on my Account, is there any other way?
You'd need another account to be able to play with him. 2 people can't play the same game on 1 account, has never worked.
 
I recently had a problem on opening terraria when i add tmodloader to it. The logs said something about horse banner 0. And it just says file not found
 
Ran into this issue which i havent had issues with tmod loader in past. but im noticing im capped at 4gbs?
0f0d86c473e16f4e13960d6d98f1d847.png


is the game running in a 32bit client? or is it capped to something else?
 
Ran into this issue which i havent had issues with tmod loader in past. but im noticing im capped at 4gbs?
0f0d86c473e16f4e13960d6d98f1d847.png


is the game running in a 32bit client? or is it capped to something else?
The version of tModLoader on steam is 32 bit. You can still download and install the 64bit version as usual, just using the new tModLoader installation instead of your Terraria installation.
 
The version of tModLoader on steam is 32 bit. You can still download and install the 64bit version as usual, just using the new tModLoader installation instead of your Terraria installation.
That would do it. ... i got the steam one thinking it was 64bit thank you.
 
where is the link to the 64 bit version, im reading the first page but i dont see any indicator of 64 bit vs 32 bit versions

The 64bit version is experimental. It is not updated anywhere near as much as regular tmodloader.

Here is the thread on it.

If you have never specifically downloaded the 64bit version you have always been using the default 32bit version. It just never told you about the ram limits until now to help with mods loaded. Since they are getting larger and larger, having multiple ones on can exceed memory capacity of the normal 32bit terraria.
 
Hi! I really wanted to play some modded terraria so I was really excited that steam got tModloader easy to download as DLC but problem is I cant download any mod via Mod Browser, I can play predownloaded mods but there are some tiny mods that seem to be exclusive to Browser.

Im playing on linux via steam natively (no proton)
When I click download mod the bar appears but goes away after a second or two.

Also when 1.4 rolls will it still be possible to use older version till mods update?
 
Back
Top Bottom