tModLoader Tutorial: [1] Getting started with tModLoader

I'm recreating the Calamity Vanilla Item Recipes, but I'm getting this error.
1643411577195.png

Code:
using Terraria.ID;
using Terraria.ModLoader;

namespace VanillaCalamityRecipies.Items
{
    public class DesertFeather : ModItem
    {
        public override void SetStaticDefaults()
        {
            DisplayName.SetDefault("Desert Feather");
        }

    }
}

Should this be happening? (I am using the 1.4 beta.)
 
This appears whenever I open tModLoader... Is there a reason its so messed up? Old Windows 8 Laptop and ran on Steam.
 

Attachments

  • 20240120154632_1.jpg
    20240120154632_1.jpg
    155.1 KB · Views: 20
I'm recreating the Calamity Vanilla Item Recipes, but I'm getting this error.
View attachment 354901
Code:
using Terraria.ID;
using Terraria.ModLoader;

namespace VanillaCalamityRecipies.Items
{
    public class DesertFeather : ModItem
    {
        public override void SetStaticDefaults()
        {
            DisplayName.SetDefault("Desert Feather");
        }

    }
}

Should this be happening? (I am using the 1.4 beta.)
you could try to add a return statement that properly sets the DisplayName property. if DisplayName is a property that accepts a string, the corrected method implementation should probably look like this:

public override void SetStaticDefaults()
{
DisplayName.SetDefault("Desert Feather");
}

I would think this is where your problem is.
 
Back
Top Bottom