Standalone [1.3] tModLoader - A Modding API

I opened up terraria to play on my modded world, but when it opened tmodloader seemed to have been uninstalled. While reinstalling it windows defender blocked the file due to it finding malware within the file. This didnt happen the last time i downloaded it and im a bit confused. Anyone else getting this?
 
I opened up terraria to play on my modded world, but when it opened tmodloader seemed to have been uninstalled. While reinstalling it windows defender blocked the file due to it finding malware within the file. This didnt happen the last time i downloaded it and im a bit confused. Anyone else getting this?
I just had the same problem. Just disable windows defender while you install it and then exclude the folder where Terraria is installed from the windows defender scan. If you don't know how to do that just google it, there are a lot of websites that explain this.
[doublepost=1477085897,1477085642][/doublepost]
Suggestion:
Could you maybe add a way to export a modpack? It would make sharing them way easier.
 
So, long time not come around here. Really nice to See so many contents have been added into tModLoader.
But wondering through the example mod, still gotta ask:
Is removing, restricting or modifying the spread of corruption/crisom possible now?
If no, then... well, never mind.
If yes, where can I find a reference?
 
When I try to publish my MOD, I get the following error.

Unable to load DLL 'CSteamworks': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at Steamworks.NativeMethods.SteamClient()
at Steamworks.InteropHelp.TestIfAvailableClient()
at Terraria.ModLoader.UI.UIModSourceItem.Publish(UIMouseEvent evt, UIElement listeningElement)
at Terraria.UI.UIElement.Click(UIMouseEvent evt)
at Terraria.UI.UserInterface.Update(GameTime time)
at Terraria.Main.DoUpdate(GameTime gameTime)
at Terraria.Main.Update(GameTime gameTime)

I am using a GOG version. Is there anything I can do to fix this??
 
Can Somebody help me with this
c:\Users\preet\Documents\My Games\Terraria\ModLoader\Mod Sources\ZJKMsMod\NPCs\Boss\Emblem.cs(53,10) : error CS1513: } expected
It keeps asking me to do this if i add more or if i put it at (53,0)
 
It still does work here is my code

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

namespace ZJKMsMod.NPCs.Boss
{
public class Emblem : ModNPC
{
public override void SetDefaults()
{
npc.name = "The Emblem";
npc.displayName = "The Emblem";
npc.aiStyle = 30;
npc.lifeMax = 5500;
npc.damage = 30;
npc.defense = 10;
npc.knockBackResist = 0f;
npc.width = 100;
npc.height = 100;
animationType = NPCID.EyeofCthulhu;
Main.npcFrameCount[npc.type] = 4;
npc.value = Item.buyPrice(0, 4, 75, 45);
npc.npcSlots = 1f;
npc.boss = true;
npc.lavaImmune = true;
npc.noGravity = true;
npc.noTileCollide = true;
npc.soundHit = 8;
npc.soundKilled = 14;
npc.buffImmune[24] = true;
music = MusicID.Boss1;
npc.netAlways = true;
}
public override void AutoloadHead(ref string headTexture, ref string bossHeadTexture)
{
bossHeadTexture = "ZJKMsMod/NPCs/Boss/Emblem_Head_Boss"; //the boss head texture
}
public override void BossLoot(ref string name, ref int potionType)
{
potionType = ItemID.HealingPotion; //Will always drop this <-----
if (Main.expertMode)// Checking if your world is in expert mode.... If so it will drop the bag.
{
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("TreasureBag"));
}
{
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, (mod.ItemType("AnAkwardTome"));
}
}
}
[doublepost=1477118330,1477117738][/doublepost]
It still does work here is my code

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

namespace ZJKMsMod.NPCs.Boss
{
public class Emblem : ModNPC
{
public override void SetDefaults()
{
npc.name = "The Emblem";
npc.displayName = "The Emblem";
npc.aiStyle = 30;
npc.lifeMax = 5500;
npc.damage = 30;
npc.defense = 10;
npc.knockBackResist = 0f;
npc.width = 100;
npc.height = 100;
animationType = NPCID.EyeofCthulhu;
Main.npcFrameCount[npc.type] = 4;
npc.value = Item.buyPrice(0, 4, 75, 45);
npc.npcSlots = 1f;
npc.boss = true;
npc.lavaImmune = true;
npc.noGravity = true;
npc.noTileCollide = true;
npc.soundHit = 8;
npc.soundKilled = 14;
npc.buffImmune[24] = true;
music = MusicID.Boss1;
npc.netAlways = true;
}
public override void AutoloadHead(ref string headTexture, ref string bossHeadTexture)
{
bossHeadTexture = "ZJKMsMod/NPCs/Boss/Emblem_Head_Boss"; //the boss head texture
}
public override void BossLoot(ref string name, ref int potionType)
{
potionType = ItemID.HealingPotion; //Will always drop this <-----
if (Main.expertMode)// Checking if your world is in expert mode.... If so it will drop the bag.
{
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("TreasureBag"));
}
{
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, (mod.ItemType("AnAkwardTome"));
}
}
}
sorry i meant it doesnt work >.<
 
Suggestion:
Could you maybe add a way to export a modpack? It would make sharing them way easier.
Well, you can go to \Terraria\ModLoader\Mods\ModPacks for the modpack (text) files. If you mean distributing the actual mods, the easiest way would just be to host a server and have people join you, since the mods will sync.
So, long time not come around here. Really nice to See so many contents have been added into tModLoader.
But wondering through the example mod, still gotta ask:
Is removing, restricting or modifying the spread of corruption/crisom possible now?
If no, then... well, never mind.
If yes, where can I find a reference?
No
When I try to publish my MOD, I get the following error.

Unable to load DLL 'CSteamworks': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at Steamworks.NativeMethods.SteamClient()
at Steamworks.InteropHelp.TestIfAvailableClient()
at Terraria.ModLoader.UI.UIModSourceItem.Publish(UIMouseEvent evt, UIElement listeningElement)
at Terraria.UI.UIElement.Click(UIMouseEvent evt)
at Terraria.UI.UserInterface.Update(GameTime time)
at Terraria.Main.DoUpdate(GameTime gameTime)
at Terraria.Main.Update(GameTime gameTime)

I am using a GOG version. Is there anything I can do to fix this??
We may need to look into this. We haven't had any gog users try to publish yet. Good to know.
 
Can Somebody help me with this
c:\Users\preet\Documents\My Games\Terraria\ModLoader\Mod Sources\ZJKMsMod\NPCs\Boss\Emblem.cs(53,10) : error CS1513: } expected
It keeps asking me to do this if i add more or if i put it at (53,0)

you are definitely missing a } in the end... count the numbers of { and } one is missing
[doublepost=1477119834,1477119705][/doublepost]
Well, you can go to \Terraria\ModLoader\Mods\ModPacks for the modpack (text) files. If you mean distributing the actual mods, the easiest way would just be to host a server and have people join you, since the mods will sync.

No

We may need to look into this. We haven't had any gog users try to publish yet. Good to know.

Hope it gets fixed soon.
 
I'm not sure where it's supposed to go I'm pretty new to modding. I thought i had them all in the right place >.<
 
I'm not sure where it's supposed to go I'm pretty new to modding. I thought i had them all in the right place >.<
kjZk7V9.png

Looks like you didn't close the namespace. Also, you have a problem there with the parenthesis on that AnAkwardTome line.
 
I'm not sure where it's supposed to go I'm pretty new to modding. I thought i had them all in the right place >.<

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

namespace ZJKMsMod.NPCs.Boss
{
public class Emblem : ModNPC
{
public override void SetDefaults()
{
npc.name = "The Emblem";
npc.displayName = "The Emblem";
npc.aiStyle = 30;
npc.lifeMax = 5500;
npc.damage = 30;
npc.defense = 10;
npc.knockBackResist = 0f;
npc.width = 100;
npc.height = 100;
animationType = NPCID.EyeofCthulhu;
Main.npcFrameCount[npc.type] = 4;
npc.value = Item.buyPrice(0, 4, 75, 45);
npc.npcSlots = 1f;
npc.boss = true;
npc.lavaImmune = true;
npc.noGravity = true;
npc.noTileCollide = true;
npc.soundHit = 8;
npc.soundKilled = 14;
npc.buffImmune[24] = true;
music = MusicID.Boss1;
npc.netAlways = true;
}
public override void AutoloadHead(ref string headTexture, ref string bossHeadTexture)
{
bossHeadTexture = "ZJKMsMod/NPCs/Boss/Emblem_Head_Boss"; //the boss head texture
}
public override void BossLoot(ref string name, ref int potionType)
{
potionType = ItemID.HealingPotion; //Will always drop this <-----
if (Main.expertMode)// Checking if your world is in expert mode.... If so it will drop the bag.
{
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("TreasureBag"));
}

Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AnAkwardTome"));

}
}
}

Try this
 
Yes, pretty much.
[doublepost=1476351306,1476351207][/doublepost]
Which mods do you have enabled, and on which tML version are you?
So nobody knows which of theme mods could cause corruption? I've been searching all over and still havent found a fix.
[doublepost=1477165488][/doublepost]
I'm on Tmodloader Version 0.8.3.4

My mods are:
Dye easy
Prefixes for enemies
eXtreme fishing bait
Even more modifiers
Player Health Bar
Tremor
Wireless
Snakes fishing expansion
imkShushi mod and the boss loot bags extension
Maxstackplus
Terranova
Pies vanity sets
Jayl Mod-fishing
Worldgen previewer
Quality Of Life
Infinity-endless items
RPG Classes
The luggage

Holy moly, never notice how big that list was before.
Sorry, I meant to quote this
 
Back
Top Bottom