I'm getting this error and I really want to make a projectile any help pls? heres th error
"The type or namespace name "shootSpeed" does not exist in namespace ProjectileTest.Items" are you missing an assembly reference? any help?
heres my sword
using System;
using Microsoft.Xna.Framework...
So I keep getting the error when I'm repeatedly trying to make a mudded projectile here's the error :
The type or namespace name 'shoot' does not exist in the namespace ProjectileTest.Items ( are you missing an assembly reference? )
here's my code for my sword which I'm having issues with...
Hello you there?
projectile.rotation = 1.57; (float) Math.Atan2((double)projectile.velocity.Y); (double)projectile.velocity.X; + 1.57f; it wont stop saying that the float is messed up
IDK I guess since it didn't error them I kept them
I just got the same error again with the suffix's
projectile.rotation = 1.57; (float) Math.Atan2((double)projectile.velocity = 1.57f); (double)projectile.velocity = 1.57; + 1.57f;
Like (F) instead of float?
Cause I did that
projectile.rotation = 1.57; (F); Math.Atan2((double)projectile.velocity = 1.57f); (double)projectile.velocity = 1.57; + 1.57f;
Still same error
So it popped up this random thing saying
and I'm pretty sure its for this line - projectile.rotation = 1.57; (F)Math.Atan2((double)projectile.velocity = 1.57f); (double)projectile.velocity = 1.57; + 1.57f;
it's telling me that "literal of type double cant implicitly converted to type "float;"...
So it popped up this random thing saying
and I'm pretty sure its for this line - projectile.rotation = 1.57; (F)Math.Atan2((double)projectile.velocity = 1.57f); (double)projectile.velocity = 1.57; + 1.57f;
it's telling me that "literal of type double cant implicitly converted to type "float;"...
hey I actually think i'm doing something cool right now but I have a new error on this line
projectiles.rotation = 1.57; (float)Math.Atan2((double)projectiles.velocity = 1.57f (double)projectiles.velocity.X) + 1.57f...
WAIT I THINK I UNDERSTAND THE VELOCITY AND ROTATION THING FROM THE FIRST POST!
so I have to change the rotation to an actual number because it's rotating the item and the Y and X velocity is a number as well for the same reason
ok so what you're saying is replace all the Projectiles with...
So the = is the assignment w/ the semicolon and to fix it I replace the shoot with .projectile?
PS sorry If I make you frustrated I'm really new to this
So I tried making a sword that shoots knomes and I got this error
Documents/MyGames/Terraria/ModLoader/ModSources/GravityFallsMod/Items/Weapons/StoneBroadSword.cs(25,19)
The type or namespace ".shoot" does not exist in "GravityFallsMod.items" (Are you missing an assembly reference?)
Here's my...
wait I might've figured out the problem hold on
YES I DID IT JOPOJELLY!
Basically the names didn't match up
Wooden LongBow was supposed to be all WoodenLongBow
and Stone BroadSword was meant to be all be StoneBroadSword
So I keep getting the String Error for my Stone BroadSword Weapon and I don't know why. I have the correct file placement.
Here's The Error
"An error occurred loading PreHardmodeWeapons
This mod has automatically been disabled
Items/Weapons/Stone BroadSword
at...
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.