tModLoader I have a problem with my mod .. error cs1002

morthu

Terrarian
I have this problem and I do not know how to fix it

--------------------------------------------------------------------------------------------------------------------------
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace mag.Items
{
public class wow : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("wow");
Tooltip.SetDefault("dales re duro.");
}
public override void SetDefaults()
{
item.CloneDefaults(ItemID.TerraBlade);
item.shootSpeed *= 0.75f;
item.damage = 750;
item.melee = true;
item.height = 40;
item.width = 40;
item.useTime = 20;
item.useAnimation = 20;
item.KnockBack = 7;
item.value = 120000;
item.rare = (-12);
item.Sound = 1;
item.autoReuse = true;
item.crit = 80;


}


public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.stonBlock, 10);
recipe.AddIngredient(ItemID.SnowBlock, 10);
recipe.AddTile(TileID.WorkBenches);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}


--------------------------------------------------------------------------------------------------------------------------------------
 
upload_2019-7-12_17-9-59.png
upload_2019-7-12_17-10-11.png
 
I hope this message doesnt get buried in the comments but I keep getting an error;
System.DIINotFoundExeption: Unable to load DLL 'CSteamworks': The specified module could not be found. (Exeption from HRESULT:0x8007007E)
at
Steamworks.NativeMethhods.SteamAPI_RestartAppIfNecessary(Appld_tunOwnAppID)
at Terraria.Social.Steam.CoreSocialModule.Initialize0
at Terraria.Social.SocialAPI.Initialize(Nullable'1 mode)
at Terraria.Program.LaunchGame(String* args. Boolean monoArgs)

* is the vertical rectangle thing(i couldnt type it)

Does anyone know how to fix this?
 
I have this problem and I do not know how to fix it
You’ve got a few spelling errors in your code.
  • “item.KnockBack” should be “item.knockBack”
  • “ItemID.stonBlock” should be “ItemID.StoneBlock”
If those don’t fix the error, could you post the full error here?
Does anyone know how to fix this?
From the tModLoader FAQ:
“tModLoader FAQ” said:
Solution: You didn't run the installer, or you are trying to run tModLoader from somewhere other than the Steam Terraria Install directory. Or, you have the GOG version and you downloaded the wrong file. If you pirated Terraria, you can't use tModLoader.
 
Back
Top Bottom