zadum4ivii
Official Terrarian
I've fixed it, got "ItemsEquipables" instead of "Items/Equipables" in the .cs file.I'm getting the same error...
I've fixed it, got "ItemsEquipables" instead of "Items/Equipables" in the .cs file.I'm getting the same error...
I also fixed it, but now i'm getting another error.
This is my main CS:
What did i do wrong?
Maybe you should use "recipe.AddTile(...);" where "..." is ID of your tile.I also fixed it, but now i'm getting another error.
This is my main CS:
What did i do wrong?
then how do i remove a vanilla recipe?Looks like Main.recipe has a size of 2000, so Main.recipe[3601] is out of bounds.
You either don't have a texture or you typed the item path wrong (in AddItem)
How i can fix that?
then how do i remove a vanilla recipe?
public override void AddRecipes()
{
Main.recipe[1799].requiredItem[0].stack = 4;
Main.recipe[1799].requiredItem[1].stack = 4;
Main.recipe[1799].requiredItem[2].stack = 4;
Main.recipe[1799].requiredItem[3].stack = 4;
}
mmhm... how did you find the ID of the recipe?I'm not sure how you could remove a vanilla recipe. All my attempts ended in crashes.
I was able to alter the vanilla recipe though. The result does reduce the cost of the celestial sigil.
Code:public override void AddRecipes() { Main.recipe[1799].requiredItem[0].stack = 4; Main.recipe[1799].requiredItem[1].stack = 4; Main.recipe[1799].requiredItem[2].stack = 4; Main.recipe[1799].requiredItem[3].stack = 4; }
mmhm... how did you find the ID of the recipe?
public override void AddRecipes()
{
int i;
for(i=0;i<Main.recipe.Length;i++)
{
if(Main.recipe[i]!=null&&Main.recipe[i].createItem.type==3601)
{
ErrorLogger.Log(Main.recipe[i].createItem.name);
ErrorLogger.Log(""+i);
}
}
}
Main.recipe[1799] = Main.recipe[Recipe.numRecipes - 1];
Recipe.numRecipes --;
The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Terraria.ModLoader.ModLoader.GetTexture(String name)
at Terraria.ModLoader.Mod.SetupContent()
at Terraria.ModLoader.ModLoader.do_Load(Object threadContext)
public override Color? GetAlpha(Color lightColor)
{
return Color.AliceBlue;
}
So I added in a custom soul, and it worked properly right off the bat. Problem is, the lighting of it doesnt seem to work?
Code:public override Color? GetAlpha(Color lightColor) { return Color.AliceBlue; }
public override void Update(ref float gravity, ref float maxFallSpeed)
{
Lighting.AddLight(item.position, Microsoft.Xna.Framework.Color.AliceBlue.ToVector3());
}
AddItem("CyclogenesisLeggings", new CyclogenesisLeggings(), moditems + "Armor/ExampleLeggings");
AddEquipTexture(EquipType.Legs, ExampleLeggings.texture);
I'm new to modding with terraria, is there any way to put text in chat, like when bosses are summoned?
public override bool UseItem(Player player)
{
Main.NewText("Testing");
return true;
}