Standalone [1.3] tModLoader - A Modding API

where is the steamapps folder? (sorry for all these questions)
That's okay:p
Assuming you use windows 7, press the start button on your keyboard, or in the bottom left corner of your screen. Then search for "steamapps". One of the first files will be your steamapps folder.
If you don't use Windows 7, then I can't help you. Searching google will probably give you the answer.
 
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?
 
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
 
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.
 
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"?
 
Back
Top Bottom