oliwinz
Official Terrarian
oh i reanalyzed it and no viruses thx!There are no viruses in the file. Fix your own computer first.
oh i reanalyzed it and no viruses thx!There are no viruses in the file. Fix your own computer first.
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2Wall);
{
return spawnInfo.spawnTileY < Main.rockLayer && !Main.dayTime ? 0.01f : 0.01f;
}
No the actual name of the mod is ExampleMod but I changed the folder name to 511Your mod name in the code is wrong it shouldn't be ExampleMod but 551
Is the mod maker so case sensitive that it won't accept a different folder name than the mod name as its directory
No the actual name of the mod is ExampleMod but I changed the folder name to 511
How do I make it so that quickbar 9 isn't set?It's probably just an accidental case of quickbar 9 being set as left mouse click.
[doublepost=1483051041,1483050978][/doublepost]
More, yes, but they are all abandoned mods.
It happened after tmodloader updated to 0.9.1none of the above delete your mod cache or try verifyinh steam files and reinstalling tmodloader
Yeah I figured it out... lolHow do I make it so that quickbar 9 isn't set?
you don't understand that it happen after 0.9.1 does not change anything , something could still have become corruptIt happened after tmodloader updated to 0.9.1
[doublepost=1483114834,1483114740][/doublepost]
Yeah I figured it out... lol
I found the problem already. For some reason many of my controls were set to left-click even though I didn't set them.you don't understand that it happen after 0.9.1 does not change anything , something could still have become corrupt
DO ANYONE KNOW WHAT IS THE CODE FOR ADDING BUFF TO ACCESSORY / ARMOR ?
IT WILL REALLY HELP TO MAKE MY MOD BETTER.
public override void UpdateEquip(Player player)
{
player.AddBuff(9, 2); //first number is the buff id, next is how many frames(60th of a second) it lasts. for example, 9 is the id for spelunker
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.AddBuff(9, 2); //first number is the buff id, next is how many frames(60th of a second) it lasts. for example, 9 is the id for spelunker
}
documents /my games /terraria/modloader/mods here you can delete modsI'm having a problem. Every time I launch terraria, I get an error for the WWIAFT mod that I installed in a different version. When I get this, the game freezes. Due to the game automatically loading mods, it always just crashes. I have deleted and re-downloaded terraria and Tmodlaoder about 3 times and it still does it. View attachment 153361
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.ObjectData;
namespace NovaStar.Tiles
{
public class KindilightForge : ModTile
{
public override void SetDefaults()
{
Main.tileSolidTop[Type] = false;
Main.tileFrameImportant[Type] = true;
Main.tileNoAttach[Type] = true;
Main.tileTable[Type] = true;
Main.tileLavaDeath[Type] = true;
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2);
TileObjectData.newTile.Height = 2;
//TileObjectData.newTile.Origin = new Point16(1, 2); THIS BREAKS THE PLACEMENT OF IT
TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 18 };
AddMapEntry(new Color(9, 224, 188), "Kindiligiht Forge");
animationFrameHeight = 33;
disableSmartCursor = true;
TileObjectData.addTile(Type);
}
public override void KillMultiTile(int i, int j, int frameX, int frameY)
{
Item.NewItem(i * 16, j * 16, 24, 16, mod.ItemType("KindilightForgeItem"));
}
public override void AnimateTile(ref int frame, ref int frameCounter)
{
frame = Main.tileFrame[4];
frameCounter = Main.tileFrameCounter[4];
}
public override bool PreDraw(int i, int j, SpriteBatch spriteBatch)
{
Tile tile = Main.tile[i, j];
Texture2D texture;
if (Main.canDrawColorTile(i, j))
{
texture = Main.tileAltTexture[Type, (int)tile.color()];
}
else
{
texture = Main.tileTexture[Type];
}
Vector2 zero = new Vector2(Main.offScreenRange, Main.offScreenRange);
if (Main.drawToScreen)
{
zero = Vector2.Zero;
}
int height = tile.frameY == 36 ? 18 : 16;
int animate = 0;
if (tile.frameY >= 56)
{
animate = Main.tileFrame[Type] * animationFrameHeight;
}
Main.spriteBatch.Draw(texture, new Vector2(i * 16 - (int)Main.screenPosition.X, j * 16 - (int)Main.screenPosition.Y) + zero, new Rectangle(tile.frameX, tile.frameY + animate, 16, height), Lighting.GetColor(i, j), 0f, default(Vector2), 1f, SpriteEffects.None, 0f);
return false;
}
}
}
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Tf2.Items.Weapons
{
public class BlackBox : ModItem
{
public override void SetDefaults()
{
item.name = "Black Box";
item.damage = 25;
item.ranged = true;
item.width = 40;
item.height = 20;
item.toolTip = "MAGGOT!";
item.useTime = 20;
item.useAnimation = 20;
item.useStyle = 5;
item.noMelee = true;
item.knockBack = 4;
item.value = 10000;
item.rare = 2;
item.UseSound = SoundID.Item11;
item.autoReuse = true;
item.shoot = 10;
item.shootSpeed = 16f;
item.useAmmo = AmmoID.Rocket;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.LeadBar, 10);
recipe.AddTile(TileID.Anvils);
recipe.SetResult(this);
recipe.AddRecipe();
}
your missing 2 close Brackets at the end first off.So I am trying to make a new ranged weapon for my mod but I get an error in lines (79,4) which I do not have. It only goes into the 40s. Here is my code,
Code:using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace Tf2.Items.Weapons { public class BlackBox : ModItem { public override void SetDefaults() { item.name = "Black Box"; item.damage = 25; item.ranged = true; item.width = 40; item.height = 20; item.toolTip = "MAGGOT!"; item.useTime = 20; item.useAnimation = 20; item.useStyle = 5; item.noMelee = true; item.knockBack = 4; item.value = 10000; item.rare = 2; item.UseSound = SoundID.Item11; item.autoReuse = true; item.shoot = 10; item.shootSpeed = 16f; item.useAmmo = AmmoID.Rocket; } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ItemID.LeadBar, 10); recipe.AddTile(TileID.Anvils); recipe.SetResult(this); recipe.AddRecipe(); }