Refer to this post on CraftGroupshow would i make a recipe that has interchangeable materials such a iron/lead broadsword
Try multiplying all the r b g by .1f and see if that works.Is there a way to control the intensity of the light produced with the tile method public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b)?
hello guys.. can i ask a question??
what do u use for making sprites?
Yes, the final index (255) of the player array is some kind of fail-safe that I don't fully understand, while 0 is the index of the first player to join a server.Ah ok, that's a good suggestion. I did try checking the owner of a tombstone, when my character died the owner of the projectile was id 0, which I assumed is me, the player. But when I had a friend join quickly to try it out, his owner id was 255 which kind of raised some flags. I'm guessing id 255 is nobody? Is there any reason a tombstone would be id 255 for a network player, and 0 for me?
If I can figure this out the only other thing I need to figure out is how to get the player id when that player right clicks on the tombstone. The right click global function doesn't look like it takes that in as an argument though :/
Yes, the final index (255) of the player array is some kind of fail-safe that I don't fully understand, while 0 is the index of the first player to join a server.
Hm, my guess is that because the tombstone isn't a harmful projectile, the game doesn't bother to sync the owner ID between clients, so the .owner is correct only on the client of the player who died, and 255 for everyone else. I wonder what the .owner of a tombstone is on the client? You can use Console.WriteLine(); to output a value stored on the server in the server's console window.
As for your other problem, the only solution that I can think of would be to somehow store the tile coordinates of your last tombstone in your ModPlayer class, then, whenever a tombstone is right-clicked, use public virtual void RightClick(int i, int j, int type) to compare your 'last death' coordinates to the tombstone's coordinates. The tricky part is working out what the 'last death' coordinates should be...
that mod looks cool, I will definly play itShould i be worried about the mod I am working on, due to the update?
What Antivirus du you use?its my antivirus no fixes
[doublepost=1463864058,1463863914][/doublepost]I cant get any mods
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.ObjectData;
namespace SpiritMod.Items.Spirit.Tiles
{
public class SpiritTable : ModTile
{
public override void SetDefaults()
{
Main.tileSolidTop[Type] = true;
Main.tileFrameImportant[Type] = true;
Main.tileNoAttach[Type] = true;
Main.tileTable[Type] = true;
Main.tileLavaDeath[Type] = true;
TileObjectData.newTile.CopyFrom(TileObjectData.Style1x2);
TileObjectData.newTile.CoordinateHeights = new int[]{ 18 };
TileObjectData.addTile(Type);
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTable);
AddMapEntry(new Color(30, 144, 255), "Spirit Table");
disableSmartCursor = true;
}
public override void NumDust(int i, int j, bool fail, ref int num)
{
num = fail ? 1 : 3;
}
public override void KillMultiTile(int i, int j, int frameX, int frameY)
{
Item.NewItem(i * 16, j * 16, 32, 16, mod.ItemType("SpiritTable"));
}
}
}
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.ObjectData;
namespace SpiritMod.Items.Spirit.Tiles
{
public class SpiritTable : ModTile
{
public override void SetDefaults()
{
Main.tileSolidTop[Type] = true;
Main.tileFrameImportant[Type] = true;
Main.tileNoAttach[Type] = true;
Main.tileTable[Type] = true;
Main.tileLavaDeath[Type] = true;
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3);
TileObjectData.newTile.CoordinateHeights = new int[]{ 18 };
TileObjectData.addTile(Type);
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTable);
AddMapEntry(new Color(30, 144, 255), "Spirit Table");
disableSmartCursor = true;
}
public override void NumDust(int i, int j, bool fail, ref int num)
{
num = fail ? 1 : 3;
}
public override void KillMultiTile(int i, int j, int frameX, int frameY)
{
Item.NewItem(i * 16, j * 16, 32, 16, mod.ItemType("SpiritTable"));
}
}
}
I can't really see what's going on, but you should fix the coordinate heights and read the guide in my signatureI need some major help. Here is my code and here is my tile:
View attachment 112014Code:using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; using Terraria.ObjectData; namespace SpiritMod.Items.Spirit.Tiles { public class SpiritTable : ModTile { public override void SetDefaults() { Main.tileSolidTop[Type] = true; Main.tileFrameImportant[Type] = true; Main.tileNoAttach[Type] = true; Main.tileTable[Type] = true; Main.tileLavaDeath[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3); TileObjectData.newTile.CoordinateHeights = new int[]{ 18 }; TileObjectData.addTile(Type); AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTable); AddMapEntry(new Color(30, 144, 255), "Spirit Table"); disableSmartCursor = true; } public override void NumDust(int i, int j, bool fail, ref int num) { num = fail ? 1 : 3; } public override void KillMultiTile(int i, int j, int frameX, int frameY) { Item.NewItem(i * 16, j * 16, 32, 16, mod.ItemType("SpiritTable")); } } }
(notice the little bits coming off the bottom)
View attachment 112015
You can just copy the Terraria folder in the steam folder. No one knows how many files have changed, so a full copy might be useful.is there a tool that i can use to make separate terraria versions? im playing the latest tmodloader and i see the new update is coming today/tomorrow is there a way to get 2 separate versions so i can keep playing 1.3.0.8