Standalone [1.3] tModLoader - A Modding API

It's been less than ten minutes...
that dindt awsnermy other comment
[doublepost=1482187944,1482187814][/doublepost]
upload_2016-12-19_17-51-8.png
what i do now
 
whoops sorry for posting in the wrong section. another thing. i want to make a mod but i dont know how to code. can you help me?
Most learn from learning c# from tutorials and adapting things from ExampleMod into their SkeletonMod (see op), and asking specific questions here or on discord. If you can't code or can't learn, you can join a mod team as a spriter or just and idea person or playtester.
 
Most learn from learning c# from tutorials and adapting things from ExampleMod into their SkeletonMod (see op), and asking specific questions here or on discord. If you can't code or can't learn, you can join a mod team as a spriter or just and idea person or playtester.
ok thanks
 
@Kazzymodus could u help me with what this error is?
error CS1002: ; expected

using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;


namespace NicksMod.NPCs
{
public class KillerWhale : ModNPC
{
public override void SetDefaults()
{
npc.name = "Killer Whale";
npc.displayName = "Killer Whale";
npc.width = 70;
npc.height = 70;
npc.damage = 65;
npc.defense = 15;
npc.lifeMax = 500;
npc.HitSound = SoundID.NPCHit1;
npc.DeathSound = SoundID.NPCDeath1;
npc.value = 60f;
npc.knockBackResist = 0.5f;
npc.aiStyle = 16;
Main.npcFrameCount[npc.type] = 3;
aiType = NPCID.Shark; //npc behavior
animationType = NPCID.Shark;


}
public override void FindFrame(int frameHeight)
{
npc.frameCounter -= 0.1F; // Determines the animation speed. Higher value = faster animation.
npc.frameCounter %= Main.npcFrameCount[npc.type];
int frame = (int)npc.frameCounter;
npc.frame.Y = frame * frameHeight;
npc.spriteDirection = npc.direction;
}

public override void NPCLoot() //Npc drop
{
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("OrcaFin"));
}

public override float CanSpawn(NPCSpawnInfo spawnInfo)
{
int x = spawnInfo.spawnTileX;
int y = spawnInfo.spawnTileY;
int tile = (int)Main.tile[x, y].type;
return (NicksMod.NormalSpawn(spawnInfo) && (tile == 53 || tile == 112 || tile == 116 || tile == 234) && NicksMod.NoZoneAllowWater(spawnInfo) && spawnInfo.water) && y < Main.rockLayer && (x < 250 || x > Main.maxTilesX - 250)
}
}
}
 
@Kazzymodus could u help me with what this error is?
error CS1002: ; expected

using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;


namespace NicksMod.NPCs
{
public class KillerWhale : ModNPC
{
public override void SetDefaults()
{
npc.name = "Killer Whale";
npc.displayName = "Killer Whale";
npc.width = 70;
npc.height = 70;
npc.damage = 65;
npc.defense = 15;
npc.lifeMax = 500;
npc.HitSound = SoundID.NPCHit1;
npc.DeathSound = SoundID.NPCDeath1;
npc.value = 60f;
npc.knockBackResist = 0.5f;
npc.aiStyle = 16;
Main.npcFrameCount[npc.type] = 3;
aiType = NPCID.Shark; //npc behavior
animationType = NPCID.Shark;


}
public override void FindFrame(int frameHeight)
{
npc.frameCounter -= 0.1F; // Determines the animation speed. Higher value = faster animation.
npc.frameCounter %= Main.npcFrameCount[npc.type];
int frame = (int)npc.frameCounter;
npc.frame.Y = frame * frameHeight;
npc.spriteDirection = npc.direction;
}

public override void NPCLoot() //Npc drop
{
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("OrcaFin"));
}

public override float CanSpawn(NPCSpawnInfo spawnInfo)
{
int x = spawnInfo.spawnTileX;
int y = spawnInfo.spawnTileY;
int tile = (int)Main.tile[x, y].type;
return (NicksMod.NormalSpawn(spawnInfo) && (tile == 53 || tile == 112 || tile == 116 || tile == 234) && NicksMod.NoZoneAllowWater(spawnInfo) && spawnInfo.water) && y < Main.rockLayer && (x < 250 || x > Main.maxTilesX - 250)
}
}
}
Here's what I'd suggest, since you don't have VS it appears. Copy and paste this code to here: https://dotnetfiddle.net/, then click the tidy up button. You should see where your syntax is bad.
[doublepost=1482189391,1482189354][/doublepost]Also:
sWWs4et.png
 
Im having a bit of issues with tmodloader, so i'm wondering if anyone one else is having the same problem. The mod browser feature stopped working completlely and reinstalling it on any version doesn't do the trick.
20161219150358_1.jpg
 
I've found a issue with npcs.
There seems to be no way of setting up variables for each npc in the world, at least when it spawns,
tried checking if GlobalNPC would do it, but it look's like it handles all npcs at the same time,
causing all npcs to have variable changes when a new monster spawns, I tried making arrays
instead to define the variable values for each npcs,
and discovered that when a monster is respawned, it's "whoAmI" integer is resetted to 0,
which is impossibilitating me of setting up monster values in the array when ResetEffects() and
SetDefaults() is run, because the first npc will get all variable changes once a npc spawns, and
cause all others to not have, plus causing several bugs due to that.
 
I have a bug with some recipes where the vanilla items in the recipe make loads of textures disappear while the mouse is hovered over them in the crafting menu, everything goes back to normal when i move the mouse away. Also could someone tell me what happens if you remove a mod that has placed blocks in your world? I want to get rid of one but I really don't want to corrupt my world
 
For some reason, when i updated to 0.9.0.3., i started a new character and world and chopped down a tree, but when i did, my character froze in place and could not move, is this a bug with the mod loader or is it just my computer?
 
Back
Top Bottom