Standalone [1.3] tModLoader - A Modding API

The GOG version has now been updated to v0.8.3.1. Thanks again to @Jeckel for creating the diff files!
 
i think you installed tmodloader wrong... or you opened a wrong file...
you should ask the Tmodloader Devs
(@bluemagic123 and @jopojelly)
I downloaded it before the 1.3.2 update and it was working fine..but now a second terraria has also popped up in the files.
[doublepost=1469776465,1469776414][/doublepost]
You clicked on the tmodloader server file
I did, but now the mod loader disappeared!
 
I wanted to create a Custom sky for the boss, using the codes from the Example Mod. The mod compiles, but the desired effect is not... I tried many times, with different effects, but nothing happens. At all. What can be the reason?
 
The GOG version has now been updated to v0.8.3.1. Thanks again to @Jeckel for creating the diff files!
Yaay, I can update Terraria again! Thanks Jeckel for helping keep us GoGers in the loop, being able to run mods is what really gives Terraria life.
 
I want to ask a question....... Is it possible to add the mod browser to Mac? (I ask this because it is an absolute PAIN to update mods)
P.S. This is just a question not a request nor me forcing you to add it
 
My game freezes whenever I try to access the mod browser on windows.
 
im a bit lazy so im gonna ask the question instead of reading all the 600 pages to find my answer. am i able to play lan hosted games on tmodloader?
 
Hey so I got a bunch of errors while trying to implement a boss... I'm kind of a noob when it comes to coding too lol anyway here's the code and the error code

using System;
using System.IO;
using Microsoft.Xna.Framework;
using Microsot.Xna.Framework.Graphics;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace TheOmegaMod.NPCs.Bosses
{
public class StoneCold : ModNPC
{
public override void SetDefaults()
{
npc.name = "Stone Cold";
npc.displayName = "The Rock Bros.";
npc.aiStyle = 5;
npc.lifeMax = 175000;
npc.damage = 100;
npc.defense = 70;
npc.knockBackResist = 1.10f;
npc.width = 140;
npc.height = 140;
animationType = NPCID.Skeletron;
Main.npcFrameCount[npc.type] = 1;
npc.value = Item.buyPrice(0, 24, 46, 28);
npc.npcSlots = 2f;
npc.boss = true;
npc.lavaImmune = true;
npc.noGravity = true;
npc.noTileCollide = true;
npc.buffImmune[24] = true;
npc.netAlways = true;
}
public override void AutoloadHead(ref string headTexture, ref string bossHeadTexture)
{
bossHeadTexture = "TheOmegaMod/NPCs/Bosses/StoneColdHead";
}
public override void BossLoot(ref string name, ref int potionType);
{
potionType = Item.ID.SuperHealingPotion, 30;
Item.NewItem((int)npc.position.x, (int)npc.position.y, npc.width, npc.height, mod.ItemType("TheStoneColdSword"));
}
public override void ScaleExpertStats(int numPlayers, float bossLifeScale)
{
npc.lifeMac = (int)(npc.lifeMax * 0.579f * bossLifeScale);
npc.damage = (int)(npc.damage * 0.6f);
}
}
}


And the error code:

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\StoneCold.cs(40,3) : error CS1519: Invalid token '{' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\StoneCold.cs(41,18) : error CS1519: Invalid token '=' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\StoneCold.cs(41,46) : error CS1519: Invalid token ',' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\StoneCold.cs(42,16) : error CS1519: Invalid token '(' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\StoneCold.cs(42,21) : error CS1519: Invalid token ')' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\StoneCold.cs(42,36) : error CS1519: Invalid token ',' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\StoneCold.cs(42,42) : error CS1519: Invalid token ')' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\StoneCold.cs(42,57) : error CS1519: Invalid token ',' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\StoneCold.cs(42,68) : error CS1519: Invalid token ',' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\StoneCold.cs(42,80) : error CS1519: Invalid token ',' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\StoneCold.cs(42,94) : error CS1519: Invalid token '(' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\StoneCold.cs(44,19) : error CS1518: Expected class, delegate, enum, interface, or struct

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\StoneCold.cs(50,1) : error CS1022: Type or namespace definition, or end-of-file expected


Another boss code:

using System
using System.IO;
using Microsoft.Xna.Framework;
using Microsot.Xna.Framework.Graphics;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace TheOmegaMod.NPCs.Bosses
{
public class TheRock : ModNPC
{
public override void SetDefaults()
{
npc.name = "The Rock";
npc.displayName = "The Rock Bros.";
npc.aiStyle = 5;
npc.lifeMax = 145000;
npc.damage = 65;
npc.defense = 60;
npc.knockBackResist = 0.85f;
npc.width = 140;
npc.height = 140;
animationType = NPCID.Skeletron;
Main.npcFrameCount[npc.type] = 1;
npc.value = Item.buyPrice(0, 21, 29, 17);
npc.npcSlots = 2f;
npc.boss = true;
npc.lavaImmune = true;
npc.noGravity = true;
npc.noTileCollide = true;
npc.buffImmune[24] = true;
npc.netAlways = true;
}
public override void AutoloadHead(ref string headTexture, ref string bossHeadTexture)
{
bossHeadTexture = "TheOmegaMod/NPCs/Bosses/TheRockHead";
}
public override void BossLoot(ref string name, ref int potionType);
{
potionType = Item.ID.SuperHealingPotion, 20;
Item.NewItem((int)npc.position.x, (int)npc.position.y, npc.width, npc.height, mod.ItemType("TheRockSword"));
}
public override void ScaleExpertStats(int numPlayers, float bossLifeScale)
{
npc.lifeMac = (int)(npc.lifeMax * 0.579f * bossLifeScale);
npc.damage = (int)(npc.damage * 0.6f);
}
}
}

Another error code:


c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(1,13) : error CS1002: ; expected

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(40,3) : error CS1519: Invalid token '{' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(41,18) : error CS1519: Invalid token '=' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(41,46) : error CS1519: Invalid token ',' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(42,16) : error CS1519: Invalid token '(' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(42,21) : error CS1519: Invalid token ')' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(42,36) : error CS1519: Invalid token ',' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(42,42) : error CS1519: Invalid token ')' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(42,57) : error CS1519: Invalid token ',' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(42,68) : error CS1519: Invalid token ',' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(42,80) : error CS1519: Invalid token ',' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(42,94) : error CS1519: Invalid token '(' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(44,19) : error CS1518: Expected class, delegate, enum, interface, or struct

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(50,1) : error CS1022: Type or namespace definition, or end-of-file expected

So if anybody at all took the time to read through any of that at all, thank you :D
 
How would you make a boss summoner spawn the boss above you? The method in the ExampleMod just makes the boss spawn in a place randomly around you.
 
public override void BossLoot(ref string name, ref int potionType);

For your first boss, there shouldn't be a semicolon at the end of the quoted method definition, so just remove the semicolon from the quoted line.

using System

For the second boss, the very first line, quoted above, is missing the semicolon, so add one to the end of that line.
 
For your first boss, there shouldn't be a semicolon at the end of the quoted method definition, so just remove the semicolon from the quoted line.



For the second boss, the very first line, quoted above, is missing the semicolon, so add one to the end of that line.
Thanks :D
 
Hmm... it still seems that there are a few problems with the code
[doublepost=1469853749,1469853561][/doublepost]c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(40,3) : error CS1519: Invalid token '{' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(41,18) : error CS1519: Invalid token '=' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(41,46) : error CS1519: Invalid token ',' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(42,16) : error CS1519: Invalid token '(' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(42,21) : error CS1519: Invalid token ')' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(42,36) : error CS1519: Invalid token ',' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(42,42) : error CS1519: Invalid token ')' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(42,57) : error CS1519: Invalid token ',' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(42,68) : error CS1519: Invalid token ',' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(42,80) : error CS1519: Invalid token ',' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(42,94) : error CS1519: Invalid token '(' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(44,19) : error CS1518: Expected class, delegate, enum, interface, or struct

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(50,1) : error CS1022: Type or namespace definition, or end-of-file expected

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(11,15) : error CS0101: The namespace 'TheOmegaMod.NPCs.Bosses' already contains a definition for 'TheRock'

Heres the code for TheRock which is where all the errors are:

using System;
using System.IO;
using Microsoft.Xna.Framework;
using Microsot.Xna.Framework.Graphics;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace TheOmegaMod.NPCs.Bosses
{
public class TheRock : ModNPC
{
public override void SetDefaults()
{
npc.name = "Stone Cold";
npc.displayName = "The Rock Bros.";
npc.aiStyle = 5;
npc.lifeMax = 150000;
npc.damage = 65;
npc.defense = 60;
npc.knockBackResist = 0.90f;
npc.width = 140;
npc.height = 140;
animationType = NPCID.Skeletron;
Main.npcFrameCount[npc.type] = 1;
npc.value = Item.buyPrice(0, 24, 46, 28);
npc.npcSlots = 2f;
npc.boss = true;
npc.lavaImmune = true;
npc.noGravity = true;
npc.noTileCollide = true;
npc.buffImmune[24] = true;
npc.netAlways = true;
}
public override void AutoloadHead(ref string headTexture, ref string bossHeadTexture)
{
bossHeadTexture = "TheOmegaMod/NPCs/Bosses/TheRockHead";
}
public override void BossLoot(ref string name, ref int potionType)
{
potionType = Item.ID.SuperHealingPotion, 20;
Item.NewItem((int)npc.position.x, (int)npc.position.y, npc.width, npc.height, mod.ItemType("TheRockSword"));
}
public override void ScaleExpertStats(int numPlayers, float bossLifeScale)
{
npc.lifeMac = (int)(npc.lifeMax * 0.579f * bossLifeScale);
npc.damage = (int)(npc.damage * 0.6f);
}
}
}
 
Hmm... it still seems that there are a few problems with the code
[doublepost=1469853749,1469853561][/doublepost]c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(40,3) : error CS1519: Invalid token '{' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(41,18) : error CS1519: Invalid token '=' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(41,46) : error CS1519: Invalid token ',' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(42,16) : error CS1519: Invalid token '(' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(42,21) : error CS1519: Invalid token ')' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(42,36) : error CS1519: Invalid token ',' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(42,42) : error CS1519: Invalid token ')' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(42,57) : error CS1519: Invalid token ',' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(42,68) : error CS1519: Invalid token ',' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(42,80) : error CS1519: Invalid token ',' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(42,94) : error CS1519: Invalid token '(' in class, struct, or interface member declaration

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(44,19) : error CS1518: Expected class, delegate, enum, interface, or struct

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(50,1) : error CS1022: Type or namespace definition, or end-of-file expected

c:\Users\nick\Documents\My Games\Terraria\ModLoader\Mod Sources\TheOmegaMod\NPCs\Bosses\TheRock.cs(11,15) : error CS0101: The namespace 'TheOmegaMod.NPCs.Bosses' already contains a definition for 'TheRock'

Heres the code for TheRock which is where all the errors are:

using System;
using System.IO;
using Microsoft.Xna.Framework;
using Microsot.Xna.Framework.Graphics;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace TheOmegaMod.NPCs.Bosses
{
public class TheRock : ModNPC
{
public override void SetDefaults()
{
npc.name = "Stone Cold";
npc.displayName = "The Rock Bros.";
npc.aiStyle = 5;
npc.lifeMax = 150000;
npc.damage = 65;
npc.defense = 60;
npc.knockBackResist = 0.90f;
npc.width = 140;
npc.height = 140;
animationType = NPCID.Skeletron;
Main.npcFrameCount[npc.type] = 1;
npc.value = Item.buyPrice(0, 24, 46, 28);
npc.npcSlots = 2f;
npc.boss = true;
npc.lavaImmune = true;
npc.noGravity = true;
npc.noTileCollide = true;
npc.buffImmune[24] = true;
npc.netAlways = true;
}
public override void AutoloadHead(ref string headTexture, ref string bossHeadTexture)
{
bossHeadTexture = "TheOmegaMod/NPCs/Bosses/TheRockHead";
}
public override void BossLoot(ref string name, ref int potionType)
{
potionType = Item.ID.SuperHealingPotion, 20;
Item.NewItem((int)npc.position.x, (int)npc.position.y, npc.width, npc.height, mod.ItemType("TheRockSword"));
}
public override void ScaleExpertStats(int numPlayers, float bossLifeScale)
{
npc.lifeMac = (int)(npc.lifeMax * 0.579f * bossLifeScale);
npc.damage = (int)(npc.damage * 0.6f);
}
}
}
These are all simple syntax/spelling errors. I'd suggest using Visual Studio Code to code, or learn to read the errors.
http://i.imgur.com/decFcPw.png
http://i.imgur.com/YL6rVbq.png -- look up the correct one
http://i.imgur.com/88J46wA.png -- capitalization, spelling, why is there a ", 20"?
 
Can someone help me out with a crafting station I'm making? it looks like this:
BakeryBench.png
and when I put it into the game its all glitched out.
Here's its code
Code:
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.ObjectData;

namespace EdgeWood.Tiles
{
    public class BakeryBench : 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.Style6x3);
            TileObjectData.newTile.CoordinateHeights = new int[]{ 54 };
            TileObjectData.addTile(Type);
            AddMapEntry(new Color(200, 200, 200), "Bakery Bench");
            disableSmartCursor = true;
            adjTiles = new int[]{ TileID.WorkBenches };
        }

        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("BakeryBench"));
        }
    }
}

Some things are off cause I was screwing around with stuff and trying to figure out whats wrong. I'm really confused someone help me out please
 
Can someone help me out with a crafting station I'm making? it looks like this: View attachment 130747 and when I put it into the game its all glitched out.
Here's its code
Code:
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.ObjectData;

namespace EdgeWood.Tiles
{
    public class BakeryBench : 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.Style6x3);
            TileObjectData.newTile.CoordinateHeights = new int[]{ 54 };
            TileObjectData.addTile(Type);
            AddMapEntry(new Color(200, 200, 200), "Bakery Bench");
            disableSmartCursor = true;
            adjTiles = new int[]{ TileID.WorkBenches };
        }

        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("BakeryBench"));
        }
    }
}

Some things are off cause I was screwing around with stuff and trying to figure out whats wrong. I'm really confused someone help me out please
TileObjectData.newTile.CoordinateHeights = new int[]{ 54 }; is wrong.
Read the guide in my signature.
 
I'm not sure, but shouldn't it be Style3x3 instead of Style6x3?:
Code:
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3);

And CoordinateHeights should be an array the length of the height of the tile and since you are using standard 16 by 16 pixel areas in your image, the array should use 16, not 54:
Code:
TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16 };
 
How would you make a boss summoner spawn the boss above you? The method in the ExampleMod just makes the boss spawn in a place randomly around you.
Take the player's position, for example player.position or player.center. Let's say you take player.position. Then add the height of the player to y. Then add the height of your boss to y. The boss is now exactly above the player. (visualise in your mind). You can add any more to y to create more spacing. Remember, adding 16 is one tile.
[doublepost=1469870615,1469870509][/doublepost]
You should have made a backup. If not, rename Terraria.exe to Terraria.bak or delete it, then let Steam resync files. (Google if you don't know how)
 
Can a custom chest have a different amount of item slots?
 
Take the player's position, for example player.position or player.center. Let's say you take player.position. Then add the height of the player to y. Then add the height of your boss to y. The boss is now exactly above the player. (visualise in your mind). You can add any more to y to create more spacing. Remember, adding 16 is one tile.
That doesn't work, because the method in Example Mod uses (int, int) and referencing the player position is not an int, so, am I missing an argument here?
 
Back
Top Bottom