Le tromp du Jawa
Eye of Cthulhu
problem on your endSweet, it's not launching after new update
problem on your endSweet, it's not launching after new update
but i've backuped to 9.0.2 and i've got no problem at that version, but on 9.0.3Make sure you copied my edited code in its entirety. It should not be throwing that error.
Also, if you want to attract my attention, either quote my messages by pressing the Reply button in the lower left corner of my post, or tag me (@Kazzymodus). Otherwise, I won't be notified when you ask a question.
Try running the server manually and check the output for errors.
Failed to read Reduced Grinding's config file! Recreating config...
BossChecklist Call Error: at BossChecklist.BossChecklist.Call(Object[] args) in D:\Documents\My Games\Terraria\ModLoader\Mod Sources\BossChecklist\BossChecklist.cs:line 110Object reference not set to an instance of an object.
yes, look there at the error, it says BossExpertise.I finally got my tmodlodaer working, and now it starts up just fine. That is until it starts loading mods and comes up with this error and crashes:
---------------------------
Terraria: Error
---------------------------
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)
---------------------------
OK
---------------------------
is this because my mods just need to be updated?
Here is the new parameters to player.Hurt:could someone here please explain to me what had changed in the "hurt"-method? (in item not modplayer)
public double Hurt(PlayerDeathReason damageSource, int Damage, int hitDirection, bool pvp = false, bool quiet = false, bool Crit = false, int cooldownCounter = -1)
ah ok not bad...You can do a custom reason with PlayerDeathReason.ByCustomReason
Make sure you copied my edited code in its entirety. It should not be throwing that error.
Also, if you want to attract my attention, either quote my messages by pressing the Reply button in the lower left corner of my post, or tag me (@Kazzymodus). Otherwise, I won't be notified when you ask a question.
Ah, yes. Remove the CanSpawn override you don't want.Weirdly enough copied ur code but i get this error
error CS0111: Type 'NicksMod.NPCs.KillerWhale' already defines a member called 'CanSpawn' with the same parameter types
here code incase
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 float CanSpawn(NPCSpawnInfo spawnInfo)
{
return spawnInfo.spawnTileY < Main.worldSurface && !Main.dayTime ? 0.5f : 0.5f;
}
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)
}
}
}
... ehmm... where do I have to put it in?Here is the new parameters to player.Hurt:
Code:public double Hurt(PlayerDeathReason damageSource, int Damage, int hitDirection, bool pvp = false, bool quiet = false, bool Crit = false,
The old was:... ehmm... where do I have to put it in?
... it doesnt like that at me but like this... :So, if before you were calling:
player.Hurt(10, 1);
now you would call
player.Hurt(PlayerDeathReason.ByCustomReason("Too much candy"), 10, 1);
public override void OnHitNPC(Player player, NPC target, int damage, float knockBack, bool crit)
{
int spike = (int)Math.Floor((double)(damage / 10));
player.Hurt(spike, target.direction);
base.OnHitNPC(player, target, damage, knockBack, crit);
}
You're not giving me much to go on here....what IS the error?... it doesnt like that at me but like this... :
so is it wrong the way I did it?Code:public override void OnHitNPC(Player player, NPC target, int damage, float knockBack, bool crit) { int spike = (int)Math.Floor((double)(damage / 10)); player.Hurt(spike, target.direction); base.OnHitNPC(player, target, damage, knockBack, crit); }
sorry 'bout thatYou're not giving me much to go on here....what IS the error?
but i mnot a modder.It is, the page hasn't been updated. Click on GOG installer and it's updated.
(A GOG user)
nvm ignore hwat i saidIt is, the page hasn't been updated. Click on GOG installer and it's updated.
(A GOG user)
Yeah, you are missing the PlayerDeathReason!sorry 'bout that
well i have to translate it from german...
i think it says something like "no overload accepts 2-arguments for the 'hurt'-method" or something like that
i already figured out that there is something missing between the brackets... but i dont know whats missing
Aaahhh ok hot ot thanks again for this and sorry for my stupidity XDYeah, you are missing the PlayerDeathReason!