• For issues you find with the Switch and Console releases, please follow this link and give as much detail as possible. This is the speediest way to get info to Pipeworks and get a hotfix in the works.
  • For issues you find with the Mobile 1.3 update, please follow this link and give as much detail as possible. This is the speediest way to get info to DR Studios to look at your issue. Also, some troubleshooting hints here.

Error In tModLoader that no one can help fix.

NotANewb

Spazmatism
Since I only had space for Visual Studio Code, (i needed 7.81 gigs. yeah.) I would like to know why it detects no errors.
[doublepost=1471084425,1471084103][/doublepost]1. How nifty, it fixed (most of) the errors. Thanks, Visual Studio Code!
2. Thanks again!
3. Also, when I load my mod, the first time I build it in a session, it crashes whilist loading world. Then I load it up again without building mod, works fine.
 

NotANewb

Spazmatism
c:\Users\Ephraim\Documents\My Games\Terraria\ModLoader\Mod Sources\LivenUP\Items\Materials\StrangeComponent.cs(24,3) : error CS1519: Invalid token '{' in class, struct, or interface member declaration

c:\Users\Ephraim\Documents\My Games\Terraria\ModLoader\Mod Sources\LivenUP\Items\Materials\StrangeComponent.cs(26,25) : error CS1519: Invalid token '(' in class, struct, or interface member declaration

c:\Users\Ephraim\Documents\My Games\Terraria\ModLoader\Mod Sources\LivenUP\Items\Materials\StrangeComponent.cs(26,40) : error CS1519: Invalid token ',' in class, struct, or interface member declaration

c:\Users\Ephraim\Documents\My Games\Terraria\ModLoader\Mod Sources\LivenUP\Items\Materials\StrangeComponent.cs(27,25) : error CS1519: Invalid token '(' in class, struct, or interface member declaration

c:\Users\Ephraim\Documents\My Games\Terraria\ModLoader\Mod Sources\LivenUP\Items\Materials\StrangeComponent.cs(27,40) : error CS1519: Invalid token ',' in class, struct, or interface member declaration

c:\Users\Ephraim\Documents\My Games\Terraria\ModLoader\Mod Sources\LivenUP\Items\Materials\StrangeComponent.cs(28,18) : error CS1519: Invalid token '(' in class, struct, or interface member declaration

c:\Users\Ephraim\Documents\My Games\Terraria\ModLoader\Mod Sources\LivenUP\Items\Materials\StrangeComponent.cs(28,34) : error CS1519: Invalid token ')' in class, struct, or interface member declaration

c:\Users\Ephraim\Documents\My Games\Terraria\ModLoader\Mod Sources\LivenUP\Items\Materials\StrangeComponent.cs(29,20) : error CS1519: Invalid token '(' in class, struct, or interface member declaration

c:\Users\Ephraim\Documents\My Games\Terraria\ModLoader\Mod Sources\LivenUP\Items\Materials\StrangeComponent.cs(30,20) : error CS1519: Invalid token '(' in class, struct, or interface member declaration

c:\Users\Ephraim\Documents\My Games\Terraria\ModLoader\Mod Sources\LivenUP\Items\Materials\StrangeComponent.cs(33,1) : error CS1022: Type or namespace definition, or end-of-file expected

using System;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace LivenUP.Items.Materials
{
public class StrangeComponent : ModItem
{
public override void SetDefaults()
{
item.name = "Strange Component";
item.width = 20;
item.height = 16;
item.maxStack = 999;
item.toolTip = "'What a strange material'";
item.toolTip2 = "Strangly, it's waterproof";
item.value = 50000;
item.rare = 2;
}

public override void AddRecipes();
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddRecipeGroup(ItemID.IronBars, 1);
recipe.AddRecipeGroup(ItemID.GoldBars, 1);
recipe.AddTile(TileID.Furnaces);
recipe.SetResult(this);
recipe.AddRecipe(null, "CircutBoard");
}
}
}

As you can see, there isn't even anything there. So what's the deal?
 

OlieGamerTV

Terrarian
ok, why does EVERY item apart from weapons say that the item.name is invalid and erroring? it works on weapons, why not items or tiles!
 
Top Bottom