GabeHasWon
Golem
Ok, do you have a Mod File (YourMod.cs)? And if so, did you use ModSkeletonGenerator?
just post a zip and it'll take 10 seconds to identify everything wrong.Okay, but no one has info on why my mod isn't working. I just want my items!
Okay here ya go.just post a zip and it'll take 10 seconds to identify everything wrong.
Yes I used the generator, since just writing it didn't cut it.Ok, do you have a Mod File (YourMod.cs)? And if so, did you use ModSkeletonGenerator?
The zip you posted has a bunch of empty .cs files, what's up with that?Okay here ya go.
Yes I used the generator, since just writing it didn't cut it.
Still empty files. I'm curious why you can't just zip the folder in Mod Sources.*Somehow, a ty Undertale fan helped...
Okay got it! Took a while to copy+paste my code, but it's done!
*Somehow, a ty Undertale fan helped...
I really don't know what you mean by this. If you are talking symbolic links or things like that, don't do that, but I doubt that's it. I've posted zip files with .cs files on this forum all the time.The files are location dependant.
Alright, so I am new to coding. And I mean NEW. And I think a found a bug that no one can shed light on, except jopojelly, who said it was a syntax error. I'm going to include an example of one of my items, and I'm just wondering if anyone has had it to where nothing shows up as items (not loaded in the game at all! I even checked with HERO's mod, nothing). My example of code:
using System;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace LivenUP.Items.Materials
{
public class Battery : ModItem
{
public override void SetDefaults()
{
item.name = "Battery";
item.width = 20;
item.height = 16;
item.maxStack = 999;
item.toolTip = "Waterproof, yet somewhat cheap";
item.toolTip2 = "'Suprisingly, these can cook hot dogs!'";
item.value = 10000;
item.rare = 2;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(null, PureEnergy, 1); // this should be "recipe.AddIngredient(null, "PureEnergy", 1);"
recipe.AddRecipeGroup(Terraria.ID.ItemID.GoldBars, 1);
recipe.AddRecipeGroup(Terraria.ID.ItemID.IronBars, 1);
recipe.AddTile(Terraria.ID.TileID.Anvils);
recipe.SetResult(this);
recipe.AddRecipe(null, CircutBoard)
}
}
}
Thanks!