There is nothing wrong with asking modding code questions in this thread, but the member I was speaking to was making posts that weren't questions and weren't directly about TML which is what I was addressing. Sorry if my post was confusing on that point.
There is nothing wrong with asking modding code questions in this thread, but the member I was speaking to was making posts that weren't questions and weren't directly about TML which is what I was addressing. Sorry if my post was confusing on that point.
I cant join the discord group. It says invite expired even though i havent joined yet so i cant be banned. Any halp?
[doublepost=1480209330,1480209246][/doublepost]
I've given this a try. Seems easy enough. I tried following your example however, but even your example doesn't work. I've done the steps correctly, but the recipes don't show up in-game. And no, I'm not getting compiling errors either.
Welcome to the forum. Members are required to include relevant, on-topic content when posting in threads. In the future, please make sure your posts include relevant, on-topic content or you could earn warning marks.
i cant download tmodloader it always gives me an error that the dll file couldnt be installed then it says 'CSteamWorks' couldnt find something module plz help
[doublepost=1480217840,1480217338][/doublepost]my tmodloader doesnt work i have downloaded it several times and i always get the same exact error could not find dll file 'CSteamWorks' could not find controlmodule (tryrestartingapp)
i cant download tmodloader it always gives me an error that the dll file couldnt be installed then it says 'CSteamWorks' couldnt find something module plz help
[doublepost=1480217840,1480217338][/doublepost]my tmodloader doesnt work i have downloaded it several times and i always get the same exact error could not find dll file 'CSteamWorks' could not find controlmodule (tryrestartingapp)
Uh, so I'm trying to make some infinite flight wings and whenever I try to build and reload I get this error message: c:\Users\(You dont need to know my real name)\Documents\My Games\Terraria\ModLoader\Mod Sources\OxysMod\Items\TerrariansLastWings.cs(27,40) : error CS0246: The type or namespace name 'Player' could not be found (are you missing a using directive or an assembly reference?)
I don't really know what to do here since I'm kinda new, here's the code:
using System.Collections.Generic;
using Terraria.ID;
using Terraria.ModLoader;
namespace OxysMod.Items
{
public class TerrariansLastWings : ModItem
{
public override bool Autoload(ref string name, ref string texture, IList<EquipType> equips)
{
equips.Add(EquipType.Wings);
return true;
}
public override void SetDefaults()
{
item.name = "Terrarians Last Wings";
item.width = 22;
item.height = 20;
item.toolTip = "It's about time.";
item.toolTip2 = "Allows complete freedom of flight";
item.value = 10000;
item.rare = 11;
item.accessory = true;
}
//these wings use the same values as the solar wings
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.wingTimeMax = -1;
}
Uh, so I'm trying to make some infinite flight wings and whenever I try to build and reload I get this error message: c:\Users\(You dont need to know my real name)\Documents\My Games\Terraria\ModLoader\Mod Sources\OxysMod\Items\TerrariansLastWings.cs(27,40) : error CS0246: The type or namespace name 'Player' could not be found (are you missing a using directive or an assembly reference?)
I don't really know what to do here since I'm kinda new, here's the code:
using System.Collections.Generic;
using Terraria.ID;
using Terraria.ModLoader;
namespace OxysMod.Items
{
public class TerrariansLastWings : ModItem
{
public override bool Autoload(ref string name, ref string texture, IList<EquipType> equips)
{
equips.Add(EquipType.Wings);
return true;
}
public override void SetDefaults()
{
item.name = "Terrarians Last Wings";
item.width = 22;
item.height = 20;
item.toolTip = "It's about time.";
item.toolTip2 = "Allows complete freedom of flight";
item.value = 10000;
item.rare = 11;
item.accessory = true;
}
//these wings use the same values as the solar wings
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.wingTimeMax = -1;
}
Oh, well, I got another problem with making a sword projectile similar to the Terra beam.
I'll just put the code and error message here.
Projectiles/RuleBeam
at Terraria.ModLoader.Mod.GetTexture(String name)
at Terraria.ModLoader.ModLoader.GetTexture(String name)
at Terraria.ModLoader.Mod.SetupContent()
at Terraria.ModLoader.ModLoader.do_Load(Object threadContext)
using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace OxysMod.Projectiles
{
public class RuleBeam : ModProjectile
{
public override void SetDefaults()
{
projectile.name = "RuleBeam"; //projectile name
projectile.width = 20; //projectile width
projectile.height = 28; //projectile height
projectile.friendly = true; //make that the projectile will not damage you
projectile.melee = true; //
projectile.tileCollide = true; //make that the projectile will be destroed if it hits the terrain
projectile.penetrate = 15; //how many npc will penetrate
projectile.timeLeft = 200; //how many time this projectile has before disepire
projectile.light = 0.75f; // projectile light
projectile.extraUpdates = 1;
projectile.ignoreWater = false;
}
public override void AI() //this make that the projectile will face the corect way
{ // |
projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f;
}
}
}
EDIT: I wont be surprised if I'm on here asking a lot of questions
Oh, well, I got another problem with making a sword projectile similar to the Terra beam.
I'll just put the code and error message here.
Projectiles/RuleBeam
at Terraria.ModLoader.Mod.GetTexture(String name)
at Terraria.ModLoader.ModLoader.GetTexture(String name)
at Terraria.ModLoader.Mod.SetupContent()
at Terraria.ModLoader.ModLoader.do_Load(Object threadContext)
using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace OxysMod.Projectiles
{
public class RuleBeam : ModProjectile
{
public override void SetDefaults()
{
projectile.name = "RuleBeam"; //projectile name
projectile.width = 20; //projectile width
projectile.height = 28; //projectile height
projectile.friendly = true; //make that the projectile will not damage you
projectile.melee = true; //
projectile.tileCollide = true; //make that the projectile will be destroed if it hits the terrain
projectile.penetrate = 15; //how many npc will penetrate
projectile.timeLeft = 200; //how many time this projectile has before disepire
projectile.light = 0.75f; // projectile light
projectile.extraUpdates = 1;
projectile.ignoreWater = false;
}
public override void AI() //this make that the projectile will face the corect way
{ // |
projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f;
}
}
}
EDIT: I wont be surprised if I'm on here asking a lot of questions
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.