Standalone [1.3] tModLoader - A Modding API

Well, just wanted to say that my whole mod is pretty much broken. I used to work on it till november 2016 or so, and now I've got huge amounts of problems. First of all my Item.useSound thing didn't worked, but I fixed it with item.UseSound = SoundID.Item like a member (thx again to the person who showed me this). Sadly, after manually renaming everything a new problem occured. This time tho it isn't an error like the previous problem, my mod compiles without any problem. But sadly all of my guns won't fire bullets anymore. It doesn't care if bullet, silver bullet, chlorophite etc. And I bet this is just one of alot of problems I am about to face... Atleast my auto miner works (An object you can place that will automatically dig and store blocks underneath it). Melee and magic weapons also worked fine (well the ones I tested atleast). Does anybody have a list of big changes and whatsoever (in tmodloader/Terraria) that I need to do so I can use my mod proberly again? And btw, item.useAmmo = ProjectileID.Bullet; is the line I used previously (worked fine with every bullet back then)
 
Well, just wanted to say that my whole mod is pretty much broken. I used to work on it till november 2016 or so, and now I've got huge amounts of problems. First of all my Item.useSound thing didn't worked, but I fixed it with item.UseSound = SoundID.Item like a member (thx again to the person who showed me this). Sadly, after manually renaming everything a new problem occured. This time tho it isn't an error like the previous problem, my mod compiles without any problem. But sadly all of my guns won't fire bullets anymore. It doesn't care if bullet, silver bullet, chlorophite etc. And I bet this is just one of alot of problems I am about to face... Atleast my auto miner works (An object you can place that will automatically dig and store blocks underneath it). Melee and magic weapons also worked fine (well the ones I tested atleast). Does anybody have a list of big changes and whatsoever (in tmodloader/Terraria) that I need to do so I can use my mod proberly again? And btw, item.useAmmo = ProjectileID.Bullet; is the line I used previously (worked fine with every bullet back then)
Yes, ammo changed in the vanilla code: Read this: https://docs.google.com/document/d/...f6E3hncExL8Mf9OJ8/edit#heading=h.mb4xr9zg05rl
 
"Items/LivingBow
em Terraria.ModLoader.Mod.GetTexture(String name)
em Terraria.ModLoader.ModLoader.GetTexture(String name)
em Terraria.ModLoader.Mod.SetupContent()
em Terraria.ModLoader.ModLoader.do_Load(Object threadContext)
" As you can see, it is giving the error when compiling + reloading my mod, can someone help me? idk if helps but my terraria is installed in other drive
 
Can someone help me im really confused
the error has something to do with public override void add recipe
error CS1010: Newline in constant
Code:
using System;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace NicksMod.Items
{
    public class FireBolt : ModItem
    {
        public override void SetDefaults()
        {
            item.name = "Fire Bolt";         
            item.damage = 33;                       
            item.magic = true;                     //this make the item do magic damage
            item.width = 24;
            item.height = 28;
            item.toolTip = "Water Bolt's Brother";
            item.useTime = 36;
            item.useAnimation = 36;
            item.useStyle = 5;        //this is how the item is holded
            item.noMelee = true;
            item.knockBack = 6;       
            item.value = 1000;
            item.rare = 3;
            item.mana = 20;             //mana use
            item.UseSound = SoundID.Item14;            //this is the sound when you use the item
            item.autoReuse = true;
            item.shoot = mod.ProjectileType ("FireBoltProjectile");  //this make the item shoot your projectile
            item.shootSpeed = 10f;    //projectile speed when shoot
            }

        public override void AddRecipes()
            {
        ModRecipe recipe = new ModRecipe(mod);
        recipe.AddIngredient(165, 1);
            recipe.AddIngredient(207, 4);
            recipe.AddIngredient(41, 400);
        recipe.AddTile(TileID.WorkBenches");
        recipe.SetResult(this);
        recipe.AddRecipe();
        }                 
    }
}
 
Can someone help me im really confused
the error has something to do with public override void add recipe
error CS1010: Newline in constant
Code:
using System;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace NicksMod.Items
{
    public class FireBolt : ModItem
    {
        public override void SetDefaults()
        {
            item.name = "Fire Bolt";        
            item.damage = 33;                      
            item.magic = true;                     //this make the item do magic damage
            item.width = 24;
            item.height = 28;
            item.toolTip = "Water Bolt's Brother";
            item.useTime = 36;
            item.useAnimation = 36;
            item.useStyle = 5;        //this is how the item is holded
            item.noMelee = true;
            item.knockBack = 6;      
            item.value = 1000;
            item.rare = 3;
            item.mana = 20;             //mana use
            item.UseSound = SoundID.Item14;            //this is the sound when you use the item
            item.autoReuse = true;
            item.shoot = mod.ProjectileType ("FireBoltProjectile");  //this make the item shoot your projectile
            item.shootSpeed = 10f;    //projectile speed when shoot
            }

        public override void AddRecipes()
            {
        ModRecipe recipe = new ModRecipe(mod);
        recipe.AddIngredient(165, 1);
            recipe.AddIngredient(207, 4);
            recipe.AddIngredient(41, 400);
        recipe.AddTile(TileID.WorkBenches");
        recipe.SetResult(this);
        recipe.AddRecipe();
        }                
    }
}
Im not shure, but you may have to use ItemID.nameoftheID
 
Can someone help me im really confused
the error has something to do with public override void add recipe
error CS1010: Newline in constant
Code:
using System;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace NicksMod.Items
{
    public class FireBolt : ModItem
    {
        public override void SetDefaults()
        {
            item.name = "Fire Bolt";        
            item.damage = 33;                      
            item.magic = true;                     //this make the item do magic damage
            item.width = 24;
            item.height = 28;
            item.toolTip = "Water Bolt's Brother";
            item.useTime = 36;
            item.useAnimation = 36;
            item.useStyle = 5;        //this is how the item is holded
            item.noMelee = true;
            item.knockBack = 6;      
            item.value = 1000;
            item.rare = 3;
            item.mana = 20;             //mana use
            item.UseSound = SoundID.Item14;            //this is the sound when you use the item
            item.autoReuse = true;
            item.shoot = mod.ProjectileType ("FireBoltProjectile");  //this make the item shoot your projectile
            item.shootSpeed = 10f;    //projectile speed when shoot
            }

        public override void AddRecipes()
            {
        ModRecipe recipe = new ModRecipe(mod);    /fix
        recipe.AddIngredient(165, 1);
            recipe.AddIngredient(207, 4);
            recipe.AddIngredient(41, 400);
        recipe.AddTile(TileID.WorkBenches");
        recipe.SetResult(this);
        recipe.AddRecipe();
        }                
    }
}
The recipe code is all messed up
[doublepost=1485485952,1485485879][/doublepost]
You are talking to me or...?
yes
 
again i need help plz
error CS1501: No overload for method 'AddIngredient' takes 0 arguments
Btw just like earlier the error has something to do with recipe but i dont really know what it means
Code:
using System;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace NicksMod.Items
{
    public class FireBolt : ModItem
    {
        public override void SetDefaults()
        {
            item.name = "Fire Bolt";      
            item.damage = 33;                    
            item.magic = true;                     //this make the item do magic damage
            item.width = 24;
            item.height = 28;
            item.toolTip = "Water Bolt's Brother";
            item.useTime = 36;
            item.useAnimation = 36;
            item.useStyle = 5;        //this is how the item is holded
            item.noMelee = true;
            item.knockBack = 6;    
            item.value = 1000;
            item.rare = 3;
            item.mana = 20;             //mana use
            item.UseSound = SoundID.Item14;            //this is the sound when you use the                 item
            item.autoReuse = true;
            item.shoot = mod.ProjectileType ("FireBoltProjectile");  //this make the item shoot your projectile
            item.shootSpeed = 10f;    //projectile speed when shoot
             }

         public override void AddRecipes()
             {                                    
            ModRecipe recipe = new ModRecipe(mod);
            recipe.AddIngredient(165, 1);
            recipe.AddIngredient(207, 4);
            recipe.AddIngredient(41, 400);       
            recipe.AddTile(TileID.WorkBenches);
            recipe.SetResult(this);
            recipe.AddRecipe();
        }              
    }
}
 
Hello, I need help I download tmodloader and also make a backup of my original Terraria, but I can not retrieve my original Terraria. It's okay if you can not retrieve my original Terraria but please help me!
 
again i need help plz
error CS1501: No overload for method 'AddIngredient' takes 0 arguments
Btw just like earlier the error has something to do with recipe but i dont really know what it means
Code:
using System;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace NicksMod.Items
{
    public class FireBolt : ModItem
    {
        public override void SetDefaults()
        {
            item.name = "Fire Bolt";     
            item.damage = 33;                   
            item.magic = true;                     //this make the item do magic damage
            item.width = 24;
            item.height = 28;
            item.toolTip = "Water Bolt's Brother";
            item.useTime = 36;
            item.useAnimation = 36;
            item.useStyle = 5;        //this is how the item is holded
            item.noMelee = true;
            item.knockBack = 6;   
            item.value = 1000;
            item.rare = 3;
            item.mana = 20;             //mana use
            item.UseSound = SoundID.Item14;            //this is the sound when you use the                 item
            item.autoReuse = true;
            item.shoot = mod.ProjectileType ("FireBoltProjectile");  //this make the item shoot your projectile
            item.shootSpeed = 10f;    //projectile speed when shoot
             }

         public override void AddRecipes()
             {                                   
            ModRecipe recipe = new ModRecipe(mod);
            recipe.AddIngredient(165, 1);
            recipe.AddIngredient(207, 4);
            recipe.AddIngredient(41, 400);      
            recipe.AddTile(TileID.WorkBenches);
            recipe.SetResult(this);
            recipe.AddRecipe();
        }             
    }
}
Soo... did you try using Terraria.ID like I told you?
[doublepost=1485529522,1485529303][/doublepost]
?????????
So... tell me: is your terraria Steam version?
 
again i need help plz
error CS1501: No overload for method 'AddIngredient' takes 0 arguments
Btw just like earlier the error has something to do with recipe but i dont really know what it means
Code:
using System;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace NicksMod.Items
{
    public class FireBolt : ModItem
    {
        public override void SetDefaults()
        {
            item.name = "Fire Bolt";     
            item.damage = 33;                   
            item.magic = true;                     //this make the item do magic damage
            item.width = 24;
            item.height = 28;
            item.toolTip = "Water Bolt's Brother";
            item.useTime = 36;
            item.useAnimation = 36;
            item.useStyle = 5;        //this is how the item is holded
            item.noMelee = true;
            item.knockBack = 6;   
            item.value = 1000;
            item.rare = 3;
            item.mana = 20;             //mana use
            item.UseSound = SoundID.Item14;            //this is the sound when you use the                 item
            item.autoReuse = true;
            item.shoot = mod.ProjectileType ("FireBoltProjectile");  //this make the item shoot your projectile
            item.shootSpeed = 10f;    //projectile speed when shoot
             }

         public override void AddRecipes()
             {                                   
            ModRecipe recipe = new ModRecipe(mod);
            recipe.AddIngredient(165, 1);
            recipe.AddIngredient(207, 4);
            recipe.AddIngredient(41, 400);      
            recipe.AddTile(TileID.WorkBenches);
            recipe.SetResult(this);
            recipe.AddRecipe();
        }             
    }
}
This is not support to be in line, they are support to be further out than the first.
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(165, 1);

=

ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(165, 1);
[doublepost=1485545490,1485545470][/doublepost]
This is not support to be in line, they are support to be further out than the first.
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(165, 1);

=

ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(165, 1);
And numbers as IDs does not work
 
Back
Top Bottom