the king (lol)
Terrarian
ok. and one more thing: its working fine on mine. try the option that jojopelly gave you right above meThe issue is long lasting, it has been there for a while now, reinstalling does not work either.
ok. and one more thing: its working fine on mine. try the option that jojopelly gave you right above meThe issue is long lasting, it has been there for a while now, reinstalling does not work either.
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 (!Main.NormalSpawn(spawnInfo) && (tile == 53 || tile == 112 || tile == 116 || tile == 234) && !Main.NoZoneAllowWater(spawnInfo) && spawnInfo.water) && y < Main.rockLayer && (x < 250 || x > Main.maxTilesX - 250);
}
}
}
Those are helper classes written into ExampleMod. You can copy them over if you'd like to use themerror CS0117: 'Terraria.Main' does not contain a definition for 'NormalSpawn'
error CS0117: 'Terraria.Main' does not contain a definition for 'NoZoneAllowWater'
does anyone know what works or does contain a definition for NormalSpawn and NoZoneAllowWater
Code: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 (!Main.NormalSpawn(spawnInfo) && (tile == 53 || tile == 112 || tile == 116 || tile == 234) && !Main.NoZoneAllowWater(spawnInfo) && spawnInfo.water) && y < Main.rockLayer && (x < 250 || x > Main.maxTilesX - 250); } } }
Basically delete all the tmod files then open tmodloader when you update to 0.9how to fix this jopejelly i dont now why this is working beacause this GOG im using tmodloader 0.9.0.2 and its said is this
System.MissingFieldException: Field not found: 'Terraria.Main.rand'.
at BossExpertise.BossExpertise.ModifyTransformMatrix(Matrix transform)
at Terraria.ModLoader.ModHooks.ModifyTransformMatrix(Matrix Transform)
at Terraria.Main.do_Draw(GameTime gameTime)
at Terraria.Main.DoDraw(GameTime gameTime)
at Terraria.Main.Draw(GameTime gameTime)
at Microsoft.Xna.Framework.Game.DrawFrame()
at Microsoft.Xna.Framework.Game.Tick()
at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
at Microsoft.Xna.Framework.GameHost.OnIdle()
at Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Microsoft.Xna.Framework.WindowsGameHost.Run()
at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
at Terraria.Program.LaunchGame(String[] args)
Delete the mods from the mod folder, go in game and download the mods you had before that are now updated. It should be fineI installed 9.0.3 and now whenever i open it it tells me something is wrong with some mods so i click okay then it closes and shows me a bunch of coding (i think its coding???). So what i want to know is if i get rid of all my mods and redownload them once im able to open the game, will everything be as it was before or will it ruin my worlds and characters?
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 (ExampleMod.NormalSpawn(spawnInfo) && (tile == 53 || tile == 112 || tile == 116 || tile == 234) && ExampleMod.NoZoneAllowWater(spawnInfo) && spawnInfo.water) && y < Main.rockLayer && (x < 250 || x > Main.maxTilesX - 250);
}
}
}
Remove FastStart .tmodI had a problem when i open the Terraria with this version of tmodloader the mods are not updated i think thats normal, later when i open the mod browser it was empty and finally i try to enter to singleplayer and it crashes and show me this:
View attachment 152313
Where i can found that??Remove FastStart .tmod
Something similar to "Documents\my games\Terraria\ModLoader\Mods"Where i can found that??